1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for GCC Quad-precision Math Library 0.1.
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='GCC Quad-precision Math Library'
589PACKAGE_TARNAME='libquadmath'
590PACKAGE_VERSION='0.1'
591PACKAGE_STRING='GCC Quad-precision Math Library 0.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595# Factoring default headers for most tests.
596ac_includes_default="\
597#include <stdio.h>
598#ifdef HAVE_SYS_TYPES_H
599# include <sys/types.h>
600#endif
601#ifdef HAVE_SYS_STAT_H
602# include <sys/stat.h>
603#endif
604#ifdef STDC_HEADERS
605# include <stdlib.h>
606# include <stddef.h>
607#else
608# ifdef HAVE_STDLIB_H
609#  include <stdlib.h>
610# endif
611#endif
612#ifdef HAVE_STRING_H
613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614#  include <memory.h>
615# endif
616# include <string.h>
617#endif
618#ifdef HAVE_STRINGS_H
619# include <strings.h>
620#endif
621#ifdef HAVE_INTTYPES_H
622# include <inttypes.h>
623#endif
624#ifdef HAVE_STDINT_H
625# include <stdint.h>
626#endif
627#ifdef HAVE_UNISTD_H
628# include <unistd.h>
629#endif"
630
631ac_subst_vars='am__EXEEXT_FALSE
632am__EXEEXT_TRUE
633LTLIBOBJS
634LIBOBJS
635get_gcc_base_ver
636GENINSRC_FALSE
637GENINSRC_TRUE
638XCFLAGS
639BUILD_LIBQUADMATH_FALSE
640BUILD_LIBQUADMATH_TRUE
641LIBQUAD_USE_SYMVER_SUN_FALSE
642LIBQUAD_USE_SYMVER_SUN_TRUE
643LIBQUAD_USE_SYMVER_GNU_FALSE
644LIBQUAD_USE_SYMVER_GNU_TRUE
645LIBQUAD_USE_SYMVER_FALSE
646LIBQUAD_USE_SYMVER_TRUE
647toolexeclibdir
648toolexecdir
649MAINT
650MAINTAINER_MODE_FALSE
651MAINTAINER_MODE_TRUE
652enable_static
653enable_shared
654lt_host_flags
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660RANLIB
661AR
662OBJDUMP
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669SED
670LIBTOOL
671REPORT_BUGS_TEXI
672REPORT_BUGS_TO
673BUILD_INFO_FALSE
674BUILD_INFO_TRUE
675EGREP
676GREP
677CPP
678am__fastdepCC_FALSE
679am__fastdepCC_TRUE
680CCDEPMODE
681am__nodep
682AMDEPBACKSLASH
683AMDEP_FALSE
684AMDEP_TRUE
685am__quote
686am__include
687DEPDIR
688OBJEXT
689EXEEXT
690ac_ct_CC
691CPPFLAGS
692LDFLAGS
693CFLAGS
694CC
695AM_BACKSLASH
696AM_DEFAULT_VERBOSITY
697AM_DEFAULT_V
698AM_V
699am__untar
700am__tar
701AMTAR
702am__leading_dot
703SET_MAKE
704AWK
705mkdir_p
706MKDIR_P
707INSTALL_STRIP_PROGRAM
708STRIP
709install_sh
710MAKEINFO
711AUTOHEADER
712AUTOMAKE
713AUTOCONF
714ACLOCAL
715VERSION
716PACKAGE
717CYGPATH_W
718am__isrc
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722multi_basedir
723target_noncanonical
724target_os
725target_vendor
726target_cpu
727target
728host_os
729host_vendor
730host_cpu
731host
732build_os
733build_vendor
734build_cpu
735build
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files=''
775ac_user_opts='
776enable_option_checking
777enable_multilib
778enable_silent_rules
779enable_version_specific_runtime_libs
780enable_dependency_tracking
781with_bugurl
782enable_shared
783enable_static
784with_pic
785enable_fast_install
786with_gnu_ld
787enable_libtool_lock
788enable_maintainer_mode
789enable_symvers
790enable_cet
791enable_generated_files_in_srcdir
792with_gcc_major_version_only
793'
794      ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CPP'
803
804
805# Initialize some variables set by options.
806ac_init_help=
807ac_init_version=false
808ac_unrecognized_opts=
809ac_unrecognized_sep=
810# The variables have the same names as the options, with
811# dashes changed to underlines.
812cache_file=/dev/null
813exec_prefix=NONE
814no_create=
815no_recursion=
816prefix=NONE
817program_prefix=NONE
818program_suffix=NONE
819program_transform_name=s,x,x,
820silent=
821site=
822srcdir=
823verbose=
824x_includes=NONE
825x_libraries=NONE
826
827# Installation directory options.
828# These are left unexpanded so users can "make install exec_prefix=/foo"
829# and all the variables that are supposed to be based on exec_prefix
830# by default will actually change.
831# Use braces instead of parens because sh, perl, etc. also accept them.
832# (The list follows the same order as the GNU Coding Standards.)
833bindir='${exec_prefix}/bin'
834sbindir='${exec_prefix}/sbin'
835libexecdir='${exec_prefix}/libexec'
836datarootdir='${prefix}/share'
837datadir='${datarootdir}'
838sysconfdir='${prefix}/etc'
839sharedstatedir='${prefix}/com'
840localstatedir='${prefix}/var'
841includedir='${prefix}/include'
842oldincludedir='/usr/include'
843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844infodir='${datarootdir}/info'
845htmldir='${docdir}'
846dvidir='${docdir}'
847pdfdir='${docdir}'
848psdir='${docdir}'
849libdir='${exec_prefix}/lib'
850localedir='${datarootdir}/locale'
851mandir='${datarootdir}/man'
852
853ac_prev=
854ac_dashdash=
855for ac_option
856do
857  # If the previous option needs an argument, assign it.
858  if test -n "$ac_prev"; then
859    eval $ac_prev=\$ac_option
860    ac_prev=
861    continue
862  fi
863
864  case $ac_option in
865  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866  *=)   ac_optarg= ;;
867  *)    ac_optarg=yes ;;
868  esac
869
870  # Accept the important Cygnus configure options, so we can diagnose typos.
871
872  case $ac_dashdash$ac_option in
873  --)
874    ac_dashdash=yes ;;
875
876  -bindir | --bindir | --bindi | --bind | --bin | --bi)
877    ac_prev=bindir ;;
878  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879    bindir=$ac_optarg ;;
880
881  -build | --build | --buil | --bui | --bu)
882    ac_prev=build_alias ;;
883  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884    build_alias=$ac_optarg ;;
885
886  -cache-file | --cache-file | --cache-fil | --cache-fi \
887  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888    ac_prev=cache_file ;;
889  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891    cache_file=$ac_optarg ;;
892
893  --config-cache | -C)
894    cache_file=config.cache ;;
895
896  -datadir | --datadir | --datadi | --datad)
897    ac_prev=datadir ;;
898  -datadir=* | --datadir=* | --datadi=* | --datad=*)
899    datadir=$ac_optarg ;;
900
901  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902  | --dataroo | --dataro | --datar)
903    ac_prev=datarootdir ;;
904  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906    datarootdir=$ac_optarg ;;
907
908  -disable-* | --disable-*)
909    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910    # Reject names that are not valid shell variable names.
911    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912      as_fn_error $? "invalid feature name: $ac_useropt"
913    ac_useropt_orig=$ac_useropt
914    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915    case $ac_user_opts in
916      *"
917"enable_$ac_useropt"
918"*) ;;
919      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920	 ac_unrecognized_sep=', ';;
921    esac
922    eval enable_$ac_useropt=no ;;
923
924  -docdir | --docdir | --docdi | --doc | --do)
925    ac_prev=docdir ;;
926  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927    docdir=$ac_optarg ;;
928
929  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930    ac_prev=dvidir ;;
931  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932    dvidir=$ac_optarg ;;
933
934  -enable-* | --enable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: $ac_useropt"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=\$ac_optarg ;;
949
950  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952  | --exec | --exe | --ex)
953    ac_prev=exec_prefix ;;
954  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956  | --exec=* | --exe=* | --ex=*)
957    exec_prefix=$ac_optarg ;;
958
959  -gas | --gas | --ga | --g)
960    # Obsolete; use --with-gas.
961    with_gas=yes ;;
962
963  -help | --help | --hel | --he | -h)
964    ac_init_help=long ;;
965  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966    ac_init_help=recursive ;;
967  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968    ac_init_help=short ;;
969
970  -host | --host | --hos | --ho)
971    ac_prev=host_alias ;;
972  -host=* | --host=* | --hos=* | --ho=*)
973    host_alias=$ac_optarg ;;
974
975  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976    ac_prev=htmldir ;;
977  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978  | --ht=*)
979    htmldir=$ac_optarg ;;
980
981  -includedir | --includedir | --includedi | --included | --include \
982  | --includ | --inclu | --incl | --inc)
983    ac_prev=includedir ;;
984  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985  | --includ=* | --inclu=* | --incl=* | --inc=*)
986    includedir=$ac_optarg ;;
987
988  -infodir | --infodir | --infodi | --infod | --info | --inf)
989    ac_prev=infodir ;;
990  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991    infodir=$ac_optarg ;;
992
993  -libdir | --libdir | --libdi | --libd)
994    ac_prev=libdir ;;
995  -libdir=* | --libdir=* | --libdi=* | --libd=*)
996    libdir=$ac_optarg ;;
997
998  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999  | --libexe | --libex | --libe)
1000    ac_prev=libexecdir ;;
1001  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002  | --libexe=* | --libex=* | --libe=*)
1003    libexecdir=$ac_optarg ;;
1004
1005  -localedir | --localedir | --localedi | --localed | --locale)
1006    ac_prev=localedir ;;
1007  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008    localedir=$ac_optarg ;;
1009
1010  -localstatedir | --localstatedir | --localstatedi | --localstated \
1011  | --localstate | --localstat | --localsta | --localst | --locals)
1012    ac_prev=localstatedir ;;
1013  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015    localstatedir=$ac_optarg ;;
1016
1017  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018    ac_prev=mandir ;;
1019  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020    mandir=$ac_optarg ;;
1021
1022  -nfp | --nfp | --nf)
1023    # Obsolete; use --without-fp.
1024    with_fp=no ;;
1025
1026  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027  | --no-cr | --no-c | -n)
1028    no_create=yes ;;
1029
1030  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032    no_recursion=yes ;;
1033
1034  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036  | --oldin | --oldi | --old | --ol | --o)
1037    ac_prev=oldincludedir ;;
1038  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041    oldincludedir=$ac_optarg ;;
1042
1043  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044    ac_prev=prefix ;;
1045  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046    prefix=$ac_optarg ;;
1047
1048  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049  | --program-pre | --program-pr | --program-p)
1050    ac_prev=program_prefix ;;
1051  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053    program_prefix=$ac_optarg ;;
1054
1055  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056  | --program-suf | --program-su | --program-s)
1057    ac_prev=program_suffix ;;
1058  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060    program_suffix=$ac_optarg ;;
1061
1062  -program-transform-name | --program-transform-name \
1063  | --program-transform-nam | --program-transform-na \
1064  | --program-transform-n | --program-transform- \
1065  | --program-transform | --program-transfor \
1066  | --program-transfo | --program-transf \
1067  | --program-trans | --program-tran \
1068  | --progr-tra | --program-tr | --program-t)
1069    ac_prev=program_transform_name ;;
1070  -program-transform-name=* | --program-transform-name=* \
1071  | --program-transform-nam=* | --program-transform-na=* \
1072  | --program-transform-n=* | --program-transform-=* \
1073  | --program-transform=* | --program-transfor=* \
1074  | --program-transfo=* | --program-transf=* \
1075  | --program-trans=* | --program-tran=* \
1076  | --progr-tra=* | --program-tr=* | --program-t=*)
1077    program_transform_name=$ac_optarg ;;
1078
1079  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080    ac_prev=pdfdir ;;
1081  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082    pdfdir=$ac_optarg ;;
1083
1084  -psdir | --psdir | --psdi | --psd | --ps)
1085    ac_prev=psdir ;;
1086  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087    psdir=$ac_optarg ;;
1088
1089  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090  | -silent | --silent | --silen | --sile | --sil)
1091    silent=yes ;;
1092
1093  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094    ac_prev=sbindir ;;
1095  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096  | --sbi=* | --sb=*)
1097    sbindir=$ac_optarg ;;
1098
1099  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101  | --sharedst | --shareds | --shared | --share | --shar \
1102  | --sha | --sh)
1103    ac_prev=sharedstatedir ;;
1104  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107  | --sha=* | --sh=*)
1108    sharedstatedir=$ac_optarg ;;
1109
1110  -site | --site | --sit)
1111    ac_prev=site ;;
1112  -site=* | --site=* | --sit=*)
1113    site=$ac_optarg ;;
1114
1115  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116    ac_prev=srcdir ;;
1117  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118    srcdir=$ac_optarg ;;
1119
1120  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121  | --syscon | --sysco | --sysc | --sys | --sy)
1122    ac_prev=sysconfdir ;;
1123  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125    sysconfdir=$ac_optarg ;;
1126
1127  -target | --target | --targe | --targ | --tar | --ta | --t)
1128    ac_prev=target_alias ;;
1129  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130    target_alias=$ac_optarg ;;
1131
1132  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133    verbose=yes ;;
1134
1135  -version | --version | --versio | --versi | --vers | -V)
1136    ac_init_version=: ;;
1137
1138  -with-* | --with-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=\$ac_optarg ;;
1153
1154  -without-* | --without-*)
1155    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156    # Reject names that are not valid shell variable names.
1157    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158      as_fn_error $? "invalid package name: $ac_useropt"
1159    ac_useropt_orig=$ac_useropt
1160    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161    case $ac_user_opts in
1162      *"
1163"with_$ac_useropt"
1164"*) ;;
1165      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166	 ac_unrecognized_sep=', ';;
1167    esac
1168    eval with_$ac_useropt=no ;;
1169
1170  --x)
1171    # Obsolete; use --with-x.
1172    with_x=yes ;;
1173
1174  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175  | --x-incl | --x-inc | --x-in | --x-i)
1176    ac_prev=x_includes ;;
1177  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179    x_includes=$ac_optarg ;;
1180
1181  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183    ac_prev=x_libraries ;;
1184  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186    x_libraries=$ac_optarg ;;
1187
1188  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189Try \`$0 --help' for more information"
1190    ;;
1191
1192  *=*)
1193    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194    # Reject names that are not valid shell variable names.
1195    case $ac_envvar in #(
1196      '' | [0-9]* | *[!_$as_cr_alnum]* )
1197      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198    esac
1199    eval $ac_envvar=\$ac_optarg
1200    export $ac_envvar ;;
1201
1202  *)
1203    # FIXME: should be removed in autoconf 3.0.
1204    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208    ;;
1209
1210  esac
1211done
1212
1213if test -n "$ac_prev"; then
1214  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215  as_fn_error $? "missing argument to $ac_option"
1216fi
1217
1218if test -n "$ac_unrecognized_opts"; then
1219  case $enable_option_checking in
1220    no) ;;
1221    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223  esac
1224fi
1225
1226# Check all directory arguments for consistency.
1227for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228		datadir sysconfdir sharedstatedir localstatedir includedir \
1229		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230		libdir localedir mandir
1231do
1232  eval ac_val=\$$ac_var
1233  # Remove trailing slashes.
1234  case $ac_val in
1235    */ )
1236      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237      eval $ac_var=\$ac_val;;
1238  esac
1239  # Be sure to have absolute directory names.
1240  case $ac_val in
1241    [\\/$]* | ?:[\\/]* )  continue;;
1242    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243  esac
1244  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245done
1246
1247# There might be people who depend on the old broken behavior: `$host'
1248# used to hold the argument of --host etc.
1249# FIXME: To remove some day.
1250build=$build_alias
1251host=$host_alias
1252target=$target_alias
1253
1254# FIXME: To remove some day.
1255if test "x$host_alias" != x; then
1256  if test "x$build_alias" = x; then
1257    cross_compiling=maybe
1258  elif test "x$build_alias" != "x$host_alias"; then
1259    cross_compiling=yes
1260  fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272  as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274  as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279  ac_srcdir_defaulted=yes
1280  # Try the directory containing this script, then the parent directory.
1281  ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283	 X"$as_myself" : 'X\(//\)[^/]' \| \
1284	 X"$as_myself" : 'X\(//\)$' \| \
1285	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)[^/].*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\).*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  s/.*/./; q'`
1304  srcdir=$ac_confdir
1305  if test ! -r "$srcdir/$ac_unique_file"; then
1306    srcdir=..
1307  fi
1308else
1309  ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318	pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321  srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331  eval ac_env_${ac_var}_value=\$${ac_var}
1332  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340  # Omit some internal or obsolete options to make the list less imposing.
1341  # This message is too long to be a string in the A/UX 3.1 sh.
1342  cat <<_ACEOF
1343\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353  -h, --help              display this help and exit
1354      --help=short        display options specific to this package
1355      --help=recursive    display the short help of all the included packages
1356  -V, --version           display version information and exit
1357  -q, --quiet, --silent   do not print \`checking ...' messages
1358      --cache-file=FILE   cache test results in FILE [disabled]
1359  -C, --config-cache      alias for \`--cache-file=config.cache'
1360  -n, --no-create         do not create output files
1361      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363Installation directories:
1364  --prefix=PREFIX         install architecture-independent files in PREFIX
1365                          [$ac_default_prefix]
1366  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                          [PREFIX]
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377  --bindir=DIR            user executables [EPREFIX/bin]
1378  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379  --libexecdir=DIR        program executables [EPREFIX/libexec]
1380  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383  --libdir=DIR            object code libraries [EPREFIX/lib]
1384  --includedir=DIR        C header files [PREFIX/include]
1385  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388  --infodir=DIR           info documentation [DATAROOTDIR/info]
1389  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390  --mandir=DIR            man documentation [DATAROOTDIR/man]
1391  --docdir=DIR            documentation root [DATAROOTDIR/doc/libquadmath]
1392  --htmldir=DIR           html documentation [DOCDIR]
1393  --dvidir=DIR            dvi documentation [DOCDIR]
1394  --pdfdir=DIR            pdf documentation [DOCDIR]
1395  --psdir=DIR             ps documentation [DOCDIR]
1396_ACEOF
1397
1398  cat <<\_ACEOF
1399
1400Program names:
1401  --program-prefix=PREFIX            prepend PREFIX to installed program names
1402  --program-suffix=SUFFIX            append SUFFIX to installed program names
1403  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1404
1405System types:
1406  --build=BUILD     configure for building on BUILD [guessed]
1407  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1408  --target=TARGET   configure for building compilers for TARGET [HOST]
1409_ACEOF
1410fi
1411
1412if test -n "$ac_init_help"; then
1413  case $ac_init_help in
1414     short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";;
1415   esac
1416  cat <<\_ACEOF
1417
1418Optional Features:
1419  --disable-option-checking  ignore unrecognized --enable/--with options
1420  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422  --enable-multilib       build many library versions (default)
1423  --enable-silent-rules   less verbose build output (undo: "make V=1")
1424  --disable-silent-rules  verbose build output (undo: "make V=0")
1425  --enable-version-specific-runtime-libs
1426                          specify that runtime libraries should be installed
1427                          in a compiler-specific directory
1428  --enable-dependency-tracking
1429                          do not reject slow dependency extractors
1430  --disable-dependency-tracking
1431                          speeds up one-time build
1432  --enable-shared[=PKGS]  build shared libraries [default=yes]
1433  --enable-static[=PKGS]  build static libraries [default=yes]
1434  --enable-fast-install[=PKGS]
1435                          optimize for fast installation [default=yes]
1436  --disable-libtool-lock  avoid locking (might break parallel builds)
1437  --enable-maintainer-mode
1438                          enable make rules and dependencies not useful (and
1439                          sometimes confusing) to the casual installer
1440  --disable-symvers       disable symbol versioning for libquadmath
1441  --enable-cet            enable Intel CET in target libraries [default=no]
1442  --enable-generated-files-in-srcdir
1443                          put copies of generated files in source dir intended
1444                          for creating source tarballs for users without
1445                          texinfo bison or flex
1446
1447Optional Packages:
1448  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1449  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1450  --with-bugurl=URL       Direct users to URL to report a bug
1451  --with-pic              try to use only PIC/non-PIC objects [default=use
1452                          both]
1453  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1454  --with-gcc-major-version-only
1455                          use only GCC major number in filesystem paths
1456
1457Some influential environment variables:
1458  CC          C compiler command
1459  CFLAGS      C compiler flags
1460  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461              nonstandard directory <lib dir>
1462  LIBS        libraries to pass to the linker, e.g. -l<library>
1463  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464              you have headers in a nonstandard directory <include dir>
1465  CPP         C preprocessor
1466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
1470Report bugs to the package provider.
1471_ACEOF
1472ac_status=$?
1473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476  # If there are subdirs, report their specific --help.
1477  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478    test -d "$ac_dir" ||
1479      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480      continue
1481    ac_builddir=.
1482
1483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
1486  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487  # A ".." for each directory in $ac_dir_suffix.
1488  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489  case $ac_top_builddir_sub in
1490  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492  esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
1498
1499case $srcdir in
1500  .)  # We are building in place.
1501    ac_srcdir=.
1502    ac_top_srcdir=$ac_top_builddir_sub
1503    ac_abs_top_srcdir=$ac_pwd ;;
1504  [\\/]* | ?:[\\/]* )  # Absolute name.
1505    ac_srcdir=$srcdir$ac_dir_suffix;
1506    ac_top_srcdir=$srcdir
1507    ac_abs_top_srcdir=$srcdir ;;
1508  *) # Relative name.
1509    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510    ac_top_srcdir=$ac_top_build_prefix$srcdir
1511    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512esac
1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515    cd "$ac_dir" || { ac_status=$?; continue; }
1516    # Check for guested configure.
1517    if test -f "$ac_srcdir/configure.gnu"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520    elif test -f "$ac_srcdir/configure"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure" --help=recursive
1523    else
1524      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525    fi || ac_status=$?
1526    cd "$ac_pwd" || { ac_status=$?; break; }
1527  done
1528fi
1529
1530test -n "$ac_init_help" && exit $ac_status
1531if $ac_init_version; then
1532  cat <<\_ACEOF
1533GCC Quad-precision Math Library configure 0.1
1534generated by GNU Autoconf 2.69
1535
1536Copyright (C) 2012 Free Software Foundation, Inc.
1537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
1539_ACEOF
1540  exit
1541fi
1542
1543## ------------------------ ##
1544## Autoconf initialization. ##
1545## ------------------------ ##
1546
1547# ac_fn_c_try_compile LINENO
1548# --------------------------
1549# Try to compile conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_compile ()
1551{
1552  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553  rm -f conftest.$ac_objext
1554  if { { ac_try="$ac_compile"
1555case "(($ac_try" in
1556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557  *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560$as_echo "$ac_try_echo"; } >&5
1561  (eval "$ac_compile") 2>conftest.err
1562  ac_status=$?
1563  if test -s conftest.err; then
1564    grep -v '^ *+' conftest.err >conftest.er1
1565    cat conftest.er1 >&5
1566    mv -f conftest.er1 conftest.err
1567  fi
1568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569  test $ac_status = 0; } && {
1570	 test -z "$ac_c_werror_flag" ||
1571	 test ! -s conftest.err
1572       } && test -s conftest.$ac_objext; then :
1573  ac_retval=0
1574else
1575  $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
1577
1578	ac_retval=1
1579fi
1580  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581  as_fn_set_status $ac_retval
1582
1583} # ac_fn_c_try_compile
1584
1585# ac_fn_c_try_cpp LINENO
1586# ----------------------
1587# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588ac_fn_c_try_cpp ()
1589{
1590  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591  if { { ac_try="$ac_cpp conftest.$ac_ext"
1592case "(($ac_try" in
1593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594  *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1599  ac_status=$?
1600  if test -s conftest.err; then
1601    grep -v '^ *+' conftest.err >conftest.er1
1602    cat conftest.er1 >&5
1603    mv -f conftest.er1 conftest.err
1604  fi
1605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606  test $ac_status = 0; } > conftest.i && {
1607	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1608	 test ! -s conftest.err
1609       }; then :
1610  ac_retval=0
1611else
1612  $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
1614
1615    ac_retval=1
1616fi
1617  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618  as_fn_set_status $ac_retval
1619
1620} # ac_fn_c_try_cpp
1621
1622# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1623# -------------------------------------------------------
1624# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1625# the include files in INCLUDES and setting the cache variable VAR
1626# accordingly.
1627ac_fn_c_check_header_mongrel ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  if eval \${$3+:} false; then :
1631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632$as_echo_n "checking for $2... " >&6; }
1633if eval \${$3+:} false; then :
1634  $as_echo_n "(cached) " >&6
1635fi
1636eval ac_res=\$$3
1637	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638$as_echo "$ac_res" >&6; }
1639else
1640  # Is the header compilable?
1641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1642$as_echo_n "checking $2 usability... " >&6; }
1643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644/* end confdefs.h.  */
1645$4
1646#include <$2>
1647_ACEOF
1648if ac_fn_c_try_compile "$LINENO"; then :
1649  ac_header_compiler=yes
1650else
1651  ac_header_compiler=no
1652fi
1653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1655$as_echo "$ac_header_compiler" >&6; }
1656
1657# Is the header present?
1658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1659$as_echo_n "checking $2 presence... " >&6; }
1660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h.  */
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_cpp "$LINENO"; then :
1665  ac_header_preproc=yes
1666else
1667  ac_header_preproc=no
1668fi
1669rm -f conftest.err conftest.i conftest.$ac_ext
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1671$as_echo "$ac_header_preproc" >&6; }
1672
1673# So?  What about this header?
1674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1675  yes:no: )
1676    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1677$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1678    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680    ;;
1681  no:yes:* )
1682    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1683$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1684    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1685$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1686    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1687$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1688    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1689$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1690    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1692    ;;
1693esac
1694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695$as_echo_n "checking for $2... " >&6; }
1696if eval \${$3+:} false; then :
1697  $as_echo_n "(cached) " >&6
1698else
1699  eval "$3=\$ac_header_compiler"
1700fi
1701eval ac_res=\$$3
1702	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703$as_echo "$ac_res" >&6; }
1704fi
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707} # ac_fn_c_check_header_mongrel
1708
1709# ac_fn_c_try_run LINENO
1710# ----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712# that executables *can* be run.
1713ac_fn_c_try_run ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_link") 2>&5
1724  ac_status=$?
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727  { { case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_try") 2>&5
1734  ac_status=$?
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; }; }; then :
1737  ac_retval=0
1738else
1739  $as_echo "$as_me: program exited with status $ac_status" >&5
1740       $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743       ac_retval=$ac_status
1744fi
1745  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_run
1750
1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752# -------------------------------------------------------
1753# Tests whether HEADER exists and can be compiled using the include files in
1754# INCLUDES, setting the cache variable VAR accordingly.
1755ac_fn_c_check_header_compile ()
1756{
1757  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if eval \${$3+:} false; then :
1761  $as_echo_n "(cached) " >&6
1762else
1763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765$4
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_compile "$LINENO"; then :
1769  eval "$3=yes"
1770else
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774fi
1775eval ac_res=\$$3
1776	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780} # ac_fn_c_check_header_compile
1781
1782# ac_fn_c_try_link LINENO
1783# -----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_link ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  rm -f conftest.$ac_objext conftest$ac_exeext
1789  if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792  *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796  (eval "$ac_link") 2>conftest.err
1797  ac_status=$?
1798  if test -s conftest.err; then
1799    grep -v '^ *+' conftest.err >conftest.er1
1800    cat conftest.er1 >&5
1801    mv -f conftest.er1 conftest.err
1802  fi
1803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804  test $ac_status = 0; } && {
1805	 test -z "$ac_c_werror_flag" ||
1806	 test ! -s conftest.err
1807       } && test -s conftest$ac_exeext && {
1808	 test "$cross_compiling" = yes ||
1809	 test -x conftest$ac_exeext
1810       }; then :
1811  ac_retval=0
1812else
1813  $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816	ac_retval=1
1817fi
1818  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820  # interfere with the next link command; also delete a directory that is
1821  # left behind by Apple's compiler.  We do this before executing the actions.
1822  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824  as_fn_set_status $ac_retval
1825
1826} # ac_fn_c_try_link
1827
1828# ac_fn_c_check_func LINENO FUNC VAR
1829# ----------------------------------
1830# Tests whether FUNC exists, setting the cache variable VAR accordingly
1831ac_fn_c_check_func ()
1832{
1833  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835$as_echo_n "checking for $2... " >&6; }
1836if eval \${$3+:} false; then :
1837  $as_echo_n "(cached) " >&6
1838else
1839  if test x$gcc_no_link = xyes; then
1840  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1841fi
1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h.  */
1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1846#define $2 innocuous_$2
1847
1848/* System header to define __stub macros and hopefully few prototypes,
1849    which can conflict with char $2 (); below.
1850    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1851    <limits.h> exists even on freestanding compilers.  */
1852
1853#ifdef __STDC__
1854# include <limits.h>
1855#else
1856# include <assert.h>
1857#endif
1858
1859#undef $2
1860
1861/* Override any GCC internal prototype to avoid an error.
1862   Use char because int might match the return type of a GCC
1863   builtin and then its argument prototype would still apply.  */
1864#ifdef __cplusplus
1865extern "C"
1866#endif
1867char $2 ();
1868/* The GNU C library defines this for functions which it implements
1869    to always fail with ENOSYS.  Some functions are actually named
1870    something starting with __ and the normal name is an alias.  */
1871#if defined __stub_$2 || defined __stub___$2
1872choke me
1873#endif
1874
1875int
1876main ()
1877{
1878return $2 ();
1879  ;
1880  return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_link "$LINENO"; then :
1884  eval "$3=yes"
1885else
1886  eval "$3=no"
1887fi
1888rm -f core conftest.err conftest.$ac_objext \
1889    conftest$ac_exeext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_check_func
1897cat >config.log <<_ACEOF
1898This file contains any messages produced by compilers while
1899running configure, to aid debugging if configure makes a mistake.
1900
1901It was created by GCC Quad-precision Math Library $as_me 0.1, which was
1902generated by GNU Autoconf 2.69.  Invocation command line was
1903
1904  $ $0 $@
1905
1906_ACEOF
1907exec 5>>config.log
1908{
1909cat <<_ASUNAME
1910## --------- ##
1911## Platform. ##
1912## --------- ##
1913
1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1922
1923/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1924/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1927/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1928/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1929/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1930
1931_ASUNAME
1932
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938    $as_echo "PATH: $as_dir"
1939  done
1940IFS=$as_save_IFS
1941
1942} >&5
1943
1944cat >&5 <<_ACEOF
1945
1946
1947## ----------- ##
1948## Core tests. ##
1949## ----------- ##
1950
1951_ACEOF
1952
1953
1954# Keep a trace of the command line.
1955# Strip out --no-create and --no-recursion so they do not pile up.
1956# Strip out --silent because we don't want to record it for future runs.
1957# Also quote any args containing shell meta-characters.
1958# Make two passes to allow for proper duplicate-argument suppression.
1959ac_configure_args=
1960ac_configure_args0=
1961ac_configure_args1=
1962ac_must_keep_next=false
1963for ac_pass in 1 2
1964do
1965  for ac_arg
1966  do
1967    case $ac_arg in
1968    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970    | -silent | --silent | --silen | --sile | --sil)
1971      continue ;;
1972    *\'*)
1973      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974    esac
1975    case $ac_pass in
1976    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977    2)
1978      as_fn_append ac_configure_args1 " '$ac_arg'"
1979      if test $ac_must_keep_next = true; then
1980	ac_must_keep_next=false # Got value, back to normal.
1981      else
1982	case $ac_arg in
1983	  *=* | --config-cache | -C | -disable-* | --disable-* \
1984	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986	  | -with-* | --with-* | -without-* | --without-* | --x)
1987	    case "$ac_configure_args0 " in
1988	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989	    esac
1990	    ;;
1991	  -* ) ac_must_keep_next=true ;;
1992	esac
1993      fi
1994      as_fn_append ac_configure_args " '$ac_arg'"
1995      ;;
1996    esac
1997  done
1998done
1999{ ac_configure_args0=; unset ac_configure_args0;}
2000{ ac_configure_args1=; unset ac_configure_args1;}
2001
2002# When interrupted or exit'd, cleanup temporary files, and complete
2003# config.log.  We remove comments because anyway the quotes in there
2004# would cause problems or look ugly.
2005# WARNING: Use '\'' to represent an apostrophe within the trap.
2006# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007trap 'exit_status=$?
2008  # Save into config.log some information that might help in debugging.
2009  {
2010    echo
2011
2012    $as_echo "## ---------------- ##
2013## Cache variables. ##
2014## ---------------- ##"
2015    echo
2016    # The following way of writing the cache mishandles newlines in values,
2017(
2018  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019    eval ac_val=\$$ac_var
2020    case $ac_val in #(
2021    *${as_nl}*)
2022      case $ac_var in #(
2023      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025      esac
2026      case $ac_var in #(
2027      _ | IFS | as_nl) ;; #(
2028      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029      *) { eval $ac_var=; unset $ac_var;} ;;
2030      esac ;;
2031    esac
2032  done
2033  (set) 2>&1 |
2034    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035    *${as_nl}ac_space=\ *)
2036      sed -n \
2037	"s/'\''/'\''\\\\'\'''\''/g;
2038	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039      ;; #(
2040    *)
2041      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042      ;;
2043    esac |
2044    sort
2045)
2046    echo
2047
2048    $as_echo "## ----------------- ##
2049## Output variables. ##
2050## ----------------- ##"
2051    echo
2052    for ac_var in $ac_subst_vars
2053    do
2054      eval ac_val=\$$ac_var
2055      case $ac_val in
2056      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057      esac
2058      $as_echo "$ac_var='\''$ac_val'\''"
2059    done | sort
2060    echo
2061
2062    if test -n "$ac_subst_files"; then
2063      $as_echo "## ------------------- ##
2064## File substitutions. ##
2065## ------------------- ##"
2066      echo
2067      for ac_var in $ac_subst_files
2068      do
2069	eval ac_val=\$$ac_var
2070	case $ac_val in
2071	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072	esac
2073	$as_echo "$ac_var='\''$ac_val'\''"
2074      done | sort
2075      echo
2076    fi
2077
2078    if test -s confdefs.h; then
2079      $as_echo "## ----------- ##
2080## confdefs.h. ##
2081## ----------- ##"
2082      echo
2083      cat confdefs.h
2084      echo
2085    fi
2086    test "$ac_signal" != 0 &&
2087      $as_echo "$as_me: caught signal $ac_signal"
2088    $as_echo "$as_me: exit $exit_status"
2089  } >&5
2090  rm -f core *.core core.conftest.* &&
2091    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092    exit $exit_status
2093' 0
2094for ac_signal in 1 2 13 15; do
2095  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096done
2097ac_signal=0
2098
2099# confdefs.h avoids OS command line length limits that DEFS can exceed.
2100rm -f -r conftest* confdefs.h
2101
2102$as_echo "/* confdefs.h */" > confdefs.h
2103
2104# Predefined preprocessor variables.
2105
2106cat >>confdefs.h <<_ACEOF
2107#define PACKAGE_NAME "$PACKAGE_NAME"
2108_ACEOF
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_VERSION "$PACKAGE_VERSION"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_STRING "$PACKAGE_STRING"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_URL "$PACKAGE_URL"
2128_ACEOF
2129
2130
2131# Let the site file select an alternate cache file if it wants to.
2132# Prefer an explicitly selected file to automatically selected ones.
2133ac_site_file1=NONE
2134ac_site_file2=NONE
2135if test -n "$CONFIG_SITE"; then
2136  # We do not want a PATH search for config.site.
2137  case $CONFIG_SITE in #((
2138    -*)  ac_site_file1=./$CONFIG_SITE;;
2139    */*) ac_site_file1=$CONFIG_SITE;;
2140    *)   ac_site_file1=./$CONFIG_SITE;;
2141  esac
2142elif test "x$prefix" != xNONE; then
2143  ac_site_file1=$prefix/share/config.site
2144  ac_site_file2=$prefix/etc/config.site
2145else
2146  ac_site_file1=$ac_default_prefix/share/config.site
2147  ac_site_file2=$ac_default_prefix/etc/config.site
2148fi
2149for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150do
2151  test "x$ac_site_file" = xNONE && continue
2152  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155    sed 's/^/| /' "$ac_site_file" >&5
2156    . "$ac_site_file" \
2157      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159as_fn_error $? "failed to load site script $ac_site_file
2160See \`config.log' for more details" "$LINENO" 5; }
2161  fi
2162done
2163
2164if test -r "$cache_file"; then
2165  # Some versions of bash will fail to source /dev/null (special files
2166  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2167  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169$as_echo "$as_me: loading cache $cache_file" >&6;}
2170    case $cache_file in
2171      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172      *)                      . "./$cache_file";;
2173    esac
2174  fi
2175else
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177$as_echo "$as_me: creating cache $cache_file" >&6;}
2178  >$cache_file
2179fi
2180
2181# Check that the precious variables saved in the cache have kept the same
2182# value.
2183ac_cache_corrupted=false
2184for ac_var in $ac_precious_vars; do
2185  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186  eval ac_new_set=\$ac_env_${ac_var}_set
2187  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188  eval ac_new_val=\$ac_env_${ac_var}_value
2189  case $ac_old_set,$ac_new_set in
2190    set,)
2191      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193      ac_cache_corrupted=: ;;
2194    ,set)
2195      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197      ac_cache_corrupted=: ;;
2198    ,);;
2199    *)
2200      if test "x$ac_old_val" != "x$ac_new_val"; then
2201	# differences in whitespace do not lead to failure.
2202	ac_old_val_w=`echo x $ac_old_val`
2203	ac_new_val_w=`echo x $ac_new_val`
2204	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207	  ac_cache_corrupted=:
2208	else
2209	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211	  eval $ac_var=\$ac_old_val
2212	fi
2213	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2214$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2215	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2216$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2217      fi;;
2218  esac
2219  # Pass precious variables to config.status.
2220  if test "$ac_new_set" = set; then
2221    case $ac_new_val in
2222    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223    *) ac_arg=$ac_var=$ac_new_val ;;
2224    esac
2225    case " $ac_configure_args " in
2226      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2227      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228    esac
2229  fi
2230done
2231if $ac_cache_corrupted; then
2232  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237fi
2238## -------------------- ##
2239## Main body of script. ##
2240## -------------------- ##
2241
2242ac_ext=c
2243ac_cpp='$CPP $CPPFLAGS'
2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249
2250
2251
2252ac_config_headers="$ac_config_headers config.h"
2253
2254
2255# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2256#
2257# You will slowly go insane if you do not grok the following fact:  when
2258# building this library, the top-level /target/ becomes the library's /host/.
2259#
2260# configure then causes --target to default to --host, exactly like any
2261# other package using autoconf.  Therefore, 'target' and 'host' will
2262# always be the same.  This makes sense both for native and cross compilers
2263# just think about it for a little while.  :-)
2264#
2265# Also, if this library is being configured as part of a cross compiler, the
2266# top-level configure script will pass the "real" host as $with_cross_host.
2267#
2268# Do not delete or change the following two lines.  For why, see
2269# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2270ac_aux_dir=
2271for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272  if test -f "$ac_dir/install-sh"; then
2273    ac_aux_dir=$ac_dir
2274    ac_install_sh="$ac_aux_dir/install-sh -c"
2275    break
2276  elif test -f "$ac_dir/install.sh"; then
2277    ac_aux_dir=$ac_dir
2278    ac_install_sh="$ac_aux_dir/install.sh -c"
2279    break
2280  elif test -f "$ac_dir/shtool"; then
2281    ac_aux_dir=$ac_dir
2282    ac_install_sh="$ac_aux_dir/shtool install -c"
2283    break
2284  fi
2285done
2286if test -z "$ac_aux_dir"; then
2287  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2288fi
2289
2290# These three variables are undocumented and unsupported,
2291# and are intended to be withdrawn in a future Autoconf release.
2292# They can cause serious problems if a builder's source tree is in a directory
2293# whose full name contains unusual characters.
2294ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2295ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2296ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2297
2298
2299# Make sure we can run config.sub.
2300$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2301  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2302
2303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2304$as_echo_n "checking build system type... " >&6; }
2305if ${ac_cv_build+:} false; then :
2306  $as_echo_n "(cached) " >&6
2307else
2308  ac_build_alias=$build_alias
2309test "x$ac_build_alias" = x &&
2310  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2311test "x$ac_build_alias" = x &&
2312  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2313ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2314  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2315
2316fi
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2318$as_echo "$ac_cv_build" >&6; }
2319case $ac_cv_build in
2320*-*-*) ;;
2321*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2322esac
2323build=$ac_cv_build
2324ac_save_IFS=$IFS; IFS='-'
2325set x $ac_cv_build
2326shift
2327build_cpu=$1
2328build_vendor=$2
2329shift; shift
2330# Remember, the first character of IFS is used to create $*,
2331# except with old shells:
2332build_os=$*
2333IFS=$ac_save_IFS
2334case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2335
2336
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2338$as_echo_n "checking host system type... " >&6; }
2339if ${ac_cv_host+:} false; then :
2340  $as_echo_n "(cached) " >&6
2341else
2342  if test "x$host_alias" = x; then
2343  ac_cv_host=$ac_cv_build
2344else
2345  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2346    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2347fi
2348
2349fi
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2351$as_echo "$ac_cv_host" >&6; }
2352case $ac_cv_host in
2353*-*-*) ;;
2354*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2355esac
2356host=$ac_cv_host
2357ac_save_IFS=$IFS; IFS='-'
2358set x $ac_cv_host
2359shift
2360host_cpu=$1
2361host_vendor=$2
2362shift; shift
2363# Remember, the first character of IFS is used to create $*,
2364# except with old shells:
2365host_os=$*
2366IFS=$ac_save_IFS
2367case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2368
2369
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2371$as_echo_n "checking target system type... " >&6; }
2372if ${ac_cv_target+:} false; then :
2373  $as_echo_n "(cached) " >&6
2374else
2375  if test "x$target_alias" = x; then
2376  ac_cv_target=$ac_cv_host
2377else
2378  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2379    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2380fi
2381
2382fi
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2384$as_echo "$ac_cv_target" >&6; }
2385case $ac_cv_target in
2386*-*-*) ;;
2387*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2388esac
2389target=$ac_cv_target
2390ac_save_IFS=$IFS; IFS='-'
2391set x $ac_cv_target
2392shift
2393target_cpu=$1
2394target_vendor=$2
2395shift; shift
2396# Remember, the first character of IFS is used to create $*,
2397# except with old shells:
2398target_os=$*
2399IFS=$ac_save_IFS
2400case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2401
2402
2403# The aliases save the names the user supplied, while $host etc.
2404# will get canonicalized.
2405test -n "$target_alias" &&
2406  test "$program_prefix$program_suffix$program_transform_name" = \
2407    NONENONEs,x,x, &&
2408  program_prefix=${target_alias}-
2409
2410 case ${build_alias} in
2411  "") build_noncanonical=${build} ;;
2412  *) build_noncanonical=${build_alias} ;;
2413esac
2414
2415 case ${host_alias} in
2416  "") host_noncanonical=${build_noncanonical} ;;
2417  *) host_noncanonical=${host_alias} ;;
2418esac
2419
2420 case ${target_alias} in
2421  "") target_noncanonical=${host_noncanonical} ;;
2422  *) target_noncanonical=${target_alias} ;;
2423esac
2424
2425
2426
2427
2428# Default to --enable-multilib
2429# Check whether --enable-multilib was given.
2430if test "${enable_multilib+set}" = set; then :
2431  enableval=$enable_multilib; case "$enableval" in
2432  yes) multilib=yes ;;
2433  no)  multilib=no ;;
2434  *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2435 esac
2436else
2437  multilib=yes
2438fi
2439
2440
2441# We may get other options which we leave undocumented:
2442# --with-target-subdir, --with-multisrctop, --with-multisubdir
2443# See config-ml.in if you want the gory details.
2444
2445if test "$srcdir" = "."; then
2446  if test "$with_target_subdir" != "."; then
2447    multi_basedir="$srcdir/$with_multisrctop../.."
2448  else
2449    multi_basedir="$srcdir/$with_multisrctop.."
2450  fi
2451else
2452  multi_basedir="$srcdir/.."
2453fi
2454
2455
2456# Even if the default multilib is not a cross compilation,
2457# it may be that some of the other multilibs are.
2458if test $cross_compiling = no && test $multilib = yes \
2459   && test "x${with_multisubdir}" != x ; then
2460   cross_compiling=maybe
2461fi
2462
2463ac_config_commands="$ac_config_commands default-1"
2464
2465
2466target_alias=${target_alias-$host_alias}
2467
2468
2469am__api_version='1.15'
2470
2471# Find a good install program.  We prefer a C program (faster),
2472# so one script is as good as another.  But avoid the broken or
2473# incompatible versions:
2474# SysV /etc/install, /usr/sbin/install
2475# SunOS /usr/etc/install
2476# IRIX /sbin/install
2477# AIX /bin/install
2478# AmigaOS /C/install, which installs bootblocks on floppy discs
2479# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2480# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2481# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2482# OS/2's system install, which has a completely different semantic
2483# ./install, which can be erroneously created by make from ./install.sh.
2484# Reject install programs that cannot install multiple files.
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2486$as_echo_n "checking for a BSD-compatible install... " >&6; }
2487if test -z "$INSTALL"; then
2488if ${ac_cv_path_install+:} false; then :
2489  $as_echo_n "(cached) " >&6
2490else
2491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494  IFS=$as_save_IFS
2495  test -z "$as_dir" && as_dir=.
2496    # Account for people who put trailing slashes in PATH elements.
2497case $as_dir/ in #((
2498  ./ | .// | /[cC]/* | \
2499  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2500  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2501  /usr/ucb/* ) ;;
2502  *)
2503    # OSF1 and SCO ODT 3.0 have their own names for install.
2504    # Don't use installbsd from OSF since it installs stuff as root
2505    # by default.
2506    for ac_prog in ginstall scoinst install; do
2507      for ac_exec_ext in '' $ac_executable_extensions; do
2508	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2509	  if test $ac_prog = install &&
2510	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511	    # AIX install.  It has an incompatible calling convention.
2512	    :
2513	  elif test $ac_prog = install &&
2514	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515	    # program-specific install script used by HP pwplus--don't use.
2516	    :
2517	  else
2518	    rm -rf conftest.one conftest.two conftest.dir
2519	    echo one > conftest.one
2520	    echo two > conftest.two
2521	    mkdir conftest.dir
2522	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2523	      test -s conftest.one && test -s conftest.two &&
2524	      test -s conftest.dir/conftest.one &&
2525	      test -s conftest.dir/conftest.two
2526	    then
2527	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528	      break 3
2529	    fi
2530	  fi
2531	fi
2532      done
2533    done
2534    ;;
2535esac
2536
2537  done
2538IFS=$as_save_IFS
2539
2540rm -rf conftest.one conftest.two conftest.dir
2541
2542fi
2543  if test "${ac_cv_path_install+set}" = set; then
2544    INSTALL=$ac_cv_path_install
2545  else
2546    # As a last resort, use the slow shell script.  Don't cache a
2547    # value for INSTALL within a source directory, because that will
2548    # break other packages using the cache if that directory is
2549    # removed, or if the value is a relative name.
2550    INSTALL=$ac_install_sh
2551  fi
2552fi
2553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2554$as_echo "$INSTALL" >&6; }
2555
2556# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2557# It thinks the first close brace ends the variable substitution.
2558test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2559
2560test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2561
2562test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2563
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2565$as_echo_n "checking whether build environment is sane... " >&6; }
2566# Reject unsafe characters in $srcdir or the absolute working directory
2567# name.  Accept space and tab only in the latter.
2568am_lf='
2569'
2570case `pwd` in
2571  *[\\\"\#\$\&\'\`$am_lf]*)
2572    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2573esac
2574case $srcdir in
2575  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2576    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2577esac
2578
2579# Do 'set' in a subshell so we don't clobber the current shell's
2580# arguments.  Must try -L first in case configure is actually a
2581# symlink; some systems play weird games with the mod time of symlinks
2582# (eg FreeBSD returns the mod time of the symlink's containing
2583# directory).
2584if (
2585   am_has_slept=no
2586   for am_try in 1 2; do
2587     echo "timestamp, slept: $am_has_slept" > conftest.file
2588     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2589     if test "$*" = "X"; then
2590	# -L didn't work.
2591	set X `ls -t "$srcdir/configure" conftest.file`
2592     fi
2593     if test "$*" != "X $srcdir/configure conftest.file" \
2594	&& test "$*" != "X conftest.file $srcdir/configure"; then
2595
2596	# If neither matched, then we have a broken ls.  This can happen
2597	# if, for instance, CONFIG_SHELL is bash and it inherits a
2598	# broken ls alias from the environment.  This has actually
2599	# happened.  Such a system could not be considered "sane".
2600	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2601  alias in your environment" "$LINENO" 5
2602     fi
2603     if test "$2" = conftest.file || test $am_try -eq 2; then
2604       break
2605     fi
2606     # Just in case.
2607     sleep 1
2608     am_has_slept=yes
2609   done
2610   test "$2" = conftest.file
2611   )
2612then
2613   # Ok.
2614   :
2615else
2616   as_fn_error $? "newly created file is older than distributed files!
2617Check your system clock" "$LINENO" 5
2618fi
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2620$as_echo "yes" >&6; }
2621# If we didn't sleep, we still need to ensure time stamps of config.status and
2622# generated files are strictly newer.
2623am_sleep_pid=
2624if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2625  ( sleep 1 ) &
2626  am_sleep_pid=$!
2627fi
2628
2629rm -f conftest.file
2630
2631test "$program_prefix" != NONE &&
2632  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2633# Use a double $ so make ignores it.
2634test "$program_suffix" != NONE &&
2635  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2636# Double any \ or $.
2637# By default was `s,x,x', remove it if useless.
2638ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2639program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2640
2641# Expand $ac_aux_dir to an absolute path.
2642am_aux_dir=`cd "$ac_aux_dir" && pwd`
2643
2644if test x"${MISSING+set}" != xset; then
2645  case $am_aux_dir in
2646  *\ * | *\	*)
2647    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2648  *)
2649    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2650  esac
2651fi
2652# Use eval to expand $SHELL
2653if eval "$MISSING --is-lightweight"; then
2654  am_missing_run="$MISSING "
2655else
2656  am_missing_run=
2657  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2658$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2659fi
2660
2661if test x"${install_sh+set}" != xset; then
2662  case $am_aux_dir in
2663  *\ * | *\	*)
2664    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2665  *)
2666    install_sh="\${SHELL} $am_aux_dir/install-sh"
2667  esac
2668fi
2669
2670# Installed binaries are usually stripped using 'strip' when the user
2671# run "make install-strip".  However 'strip' might not be the right
2672# tool to use in cross-compilation environments, therefore Automake
2673# will honor the 'STRIP' environment variable to overrule this program.
2674if test "$cross_compiling" != no; then
2675  if test -n "$ac_tool_prefix"; then
2676  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2677set dummy ${ac_tool_prefix}strip; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
2680if ${ac_cv_prog_STRIP+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  if test -n "$STRIP"; then
2684  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689  IFS=$as_save_IFS
2690  test -z "$as_dir" && as_dir=.
2691    for ac_exec_ext in '' $ac_executable_extensions; do
2692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695    break 2
2696  fi
2697done
2698  done
2699IFS=$as_save_IFS
2700
2701fi
2702fi
2703STRIP=$ac_cv_prog_STRIP
2704if test -n "$STRIP"; then
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2706$as_echo "$STRIP" >&6; }
2707else
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
2710fi
2711
2712
2713fi
2714if test -z "$ac_cv_prog_STRIP"; then
2715  ac_ct_STRIP=$STRIP
2716  # Extract the first word of "strip", so it can be a program name with args.
2717set dummy strip; ac_word=$2
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719$as_echo_n "checking for $ac_word... " >&6; }
2720if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2721  $as_echo_n "(cached) " >&6
2722else
2723  if test -n "$ac_ct_STRIP"; then
2724  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2725else
2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727for as_dir in $PATH
2728do
2729  IFS=$as_save_IFS
2730  test -z "$as_dir" && as_dir=.
2731    for ac_exec_ext in '' $ac_executable_extensions; do
2732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733    ac_cv_prog_ac_ct_STRIP="strip"
2734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735    break 2
2736  fi
2737done
2738  done
2739IFS=$as_save_IFS
2740
2741fi
2742fi
2743ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2744if test -n "$ac_ct_STRIP"; then
2745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2746$as_echo "$ac_ct_STRIP" >&6; }
2747else
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750fi
2751
2752  if test "x$ac_ct_STRIP" = x; then
2753    STRIP=":"
2754  else
2755    case $cross_compiling:$ac_tool_warned in
2756yes:)
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759ac_tool_warned=yes ;;
2760esac
2761    STRIP=$ac_ct_STRIP
2762  fi
2763else
2764  STRIP="$ac_cv_prog_STRIP"
2765fi
2766
2767fi
2768INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2771$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2772if test -z "$MKDIR_P"; then
2773  if ${ac_cv_path_mkdir+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2778do
2779  IFS=$as_save_IFS
2780  test -z "$as_dir" && as_dir=.
2781    for ac_prog in mkdir gmkdir; do
2782	 for ac_exec_ext in '' $ac_executable_extensions; do
2783	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2784	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2785	     'mkdir (GNU coreutils) '* | \
2786	     'mkdir (coreutils) '* | \
2787	     'mkdir (fileutils) '4.1*)
2788	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2789	       break 3;;
2790	   esac
2791	 done
2792       done
2793  done
2794IFS=$as_save_IFS
2795
2796fi
2797
2798  test -d ./--version && rmdir ./--version
2799  if test "${ac_cv_path_mkdir+set}" = set; then
2800    MKDIR_P="$ac_cv_path_mkdir -p"
2801  else
2802    # As a last resort, use the slow shell script.  Don't cache a
2803    # value for MKDIR_P within a source directory, because that will
2804    # break other packages using the cache if that directory is
2805    # removed, or if the value is a relative name.
2806    MKDIR_P="$ac_install_sh -d"
2807  fi
2808fi
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2810$as_echo "$MKDIR_P" >&6; }
2811
2812for ac_prog in gawk mawk nawk awk
2813do
2814  # Extract the first word of "$ac_prog", so it can be a program name with args.
2815set dummy $ac_prog; ac_word=$2
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817$as_echo_n "checking for $ac_word... " >&6; }
2818if ${ac_cv_prog_AWK+:} false; then :
2819  $as_echo_n "(cached) " >&6
2820else
2821  if test -n "$AWK"; then
2822  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827  IFS=$as_save_IFS
2828  test -z "$as_dir" && as_dir=.
2829    for ac_exec_ext in '' $ac_executable_extensions; do
2830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831    ac_cv_prog_AWK="$ac_prog"
2832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833    break 2
2834  fi
2835done
2836  done
2837IFS=$as_save_IFS
2838
2839fi
2840fi
2841AWK=$ac_cv_prog_AWK
2842if test -n "$AWK"; then
2843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2844$as_echo "$AWK" >&6; }
2845else
2846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847$as_echo "no" >&6; }
2848fi
2849
2850
2851  test -n "$AWK" && break
2852done
2853
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2855$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2856set x ${MAKE-make}
2857ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2858if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  cat >conftest.make <<\_ACEOF
2862SHELL = /bin/sh
2863all:
2864	@echo '@@@%%%=$(MAKE)=@@@%%%'
2865_ACEOF
2866# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2867case `${MAKE-make} -f conftest.make 2>/dev/null` in
2868  *@@@%%%=?*=@@@%%%*)
2869    eval ac_cv_prog_make_${ac_make}_set=yes;;
2870  *)
2871    eval ac_cv_prog_make_${ac_make}_set=no;;
2872esac
2873rm -f conftest.make
2874fi
2875if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2877$as_echo "yes" >&6; }
2878  SET_MAKE=
2879else
2880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881$as_echo "no" >&6; }
2882  SET_MAKE="MAKE=${MAKE-make}"
2883fi
2884
2885rm -rf .tst 2>/dev/null
2886mkdir .tst 2>/dev/null
2887if test -d .tst; then
2888  am__leading_dot=.
2889else
2890  am__leading_dot=_
2891fi
2892rmdir .tst 2>/dev/null
2893
2894# Check whether --enable-silent-rules was given.
2895if test "${enable_silent_rules+set}" = set; then :
2896  enableval=$enable_silent_rules;
2897fi
2898
2899case $enable_silent_rules in # (((
2900  yes) AM_DEFAULT_VERBOSITY=0;;
2901   no) AM_DEFAULT_VERBOSITY=1;;
2902    *) AM_DEFAULT_VERBOSITY=1;;
2903esac
2904am_make=${MAKE-make}
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2906$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2907if ${am_cv_make_support_nested_variables+:} false; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  if $as_echo 'TRUE=$(BAR$(V))
2911BAR0=false
2912BAR1=true
2913V=1
2914am__doit:
2915	@$(TRUE)
2916.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2917  am_cv_make_support_nested_variables=yes
2918else
2919  am_cv_make_support_nested_variables=no
2920fi
2921fi
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2923$as_echo "$am_cv_make_support_nested_variables" >&6; }
2924if test $am_cv_make_support_nested_variables = yes; then
2925    AM_V='$(V)'
2926  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2927else
2928  AM_V=$AM_DEFAULT_VERBOSITY
2929  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2930fi
2931AM_BACKSLASH='\'
2932
2933if test "`cd $srcdir && pwd`" != "`pwd`"; then
2934  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2935  # is not polluted with repeated "-I."
2936  am__isrc=' -I$(srcdir)'
2937  # test to see if srcdir already configured
2938  if test -f $srcdir/config.status; then
2939    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2940  fi
2941fi
2942
2943# test whether we have cygpath
2944if test -z "$CYGPATH_W"; then
2945  if (cygpath --version) >/dev/null 2>/dev/null; then
2946    CYGPATH_W='cygpath -w'
2947  else
2948    CYGPATH_W=echo
2949  fi
2950fi
2951
2952
2953# Define the identity of the package.
2954 PACKAGE='libquadmath'
2955 VERSION='0.1'
2956
2957
2958cat >>confdefs.h <<_ACEOF
2959#define PACKAGE "$PACKAGE"
2960_ACEOF
2961
2962
2963cat >>confdefs.h <<_ACEOF
2964#define VERSION "$VERSION"
2965_ACEOF
2966
2967# Some tools Automake needs.
2968
2969ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2970
2971
2972AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2973
2974
2975AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2976
2977
2978AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2979
2980
2981MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2982
2983# For better backward compatibility.  To be removed once Automake 1.9.x
2984# dies out for good.  For more background, see:
2985# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2986# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2987mkdir_p='$(MKDIR_P)'
2988
2989# We need awk for the "check" target (and possibly the TAP driver).  The
2990# system "awk" is bad on some platforms.
2991# Always define AMTAR for backward compatibility.  Yes, it's still used
2992# in the wild :-(  We should find a proper way to deprecate it ...
2993AMTAR='$${TAR-tar}'
2994
2995
2996# We'll loop over all known methods to create a tar archive until one works.
2997_am_tools='gnutar  pax cpio none'
2998
2999am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3000
3001
3002
3003
3004
3005
3006# POSIX will say in a future version that running "rm -f" with no argument
3007# is OK; and we want to be able to make that assumption in our Makefile
3008# recipes.  So use an aggressive probe to check that the usage we want is
3009# actually supported "in the wild" to an acceptable degree.
3010# See automake bug#10828.
3011# To make any issue more visible, cause the running configure to be aborted
3012# by default if the 'rm' program in use doesn't match our expectations; the
3013# user can still override this though.
3014if rm -f && rm -fr && rm -rf; then : OK; else
3015  cat >&2 <<'END'
3016Oops!
3017
3018Your 'rm' program seems unable to run without file operands specified
3019on the command line, even when the '-f' option is present.  This is contrary
3020to the behaviour of most rm programs out there, and not conforming with
3021the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3022
3023Please tell bug-automake@gnu.org about your system, including the value
3024of your $PATH and any error possibly output before this message.  This
3025can help us improve future automake versions.
3026
3027END
3028  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3029    echo 'Configuration will proceed anyway, since you have set the' >&2
3030    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3031    echo >&2
3032  else
3033    cat >&2 <<'END'
3034Aborting the configuration process, to ensure you take notice of the issue.
3035
3036You can download and install GNU coreutils to get an 'rm' implementation
3037that behaves properly: <http://www.gnu.org/software/coreutils/>.
3038
3039If you want to complete the configuration process using your problematic
3040'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3041to "yes", and re-run configure.
3042
3043END
3044    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3045  fi
3046fi
3047
3048
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
3050$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
3051# Check whether --enable-version-specific-runtime-libs was given.
3052if test "${enable_version_specific_runtime_libs+set}" = set; then :
3053  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3054 yes) version_specific_libs=yes ;;
3055 no)  version_specific_libs=no ;;
3056 *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3057 esac
3058else
3059  version_specific_libs=no
3060fi
3061
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
3063$as_echo "$version_specific_libs" >&6; }
3064
3065
3066
3067DEPDIR="${am__leading_dot}deps"
3068
3069ac_config_commands="$ac_config_commands depfiles"
3070
3071
3072am_make=${MAKE-make}
3073cat > confinc << 'END'
3074am__doit:
3075	@echo this is the am__doit target
3076.PHONY: am__doit
3077END
3078# If we don't find an include directive, just comment out the code.
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3080$as_echo_n "checking for style of include used by $am_make... " >&6; }
3081am__include="#"
3082am__quote=
3083_am_result=none
3084# First try GNU make style include.
3085echo "include confinc" > confmf
3086# Ignore all kinds of additional output from 'make'.
3087case `$am_make -s -f confmf 2> /dev/null` in #(
3088*the\ am__doit\ target*)
3089  am__include=include
3090  am__quote=
3091  _am_result=GNU
3092  ;;
3093esac
3094# Now try BSD make style include.
3095if test "$am__include" = "#"; then
3096   echo '.include "confinc"' > confmf
3097   case `$am_make -s -f confmf 2> /dev/null` in #(
3098   *the\ am__doit\ target*)
3099     am__include=.include
3100     am__quote="\""
3101     _am_result=BSD
3102     ;;
3103   esac
3104fi
3105
3106
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3108$as_echo "$_am_result" >&6; }
3109rm -f confinc confmf
3110
3111# Check whether --enable-dependency-tracking was given.
3112if test "${enable_dependency_tracking+set}" = set; then :
3113  enableval=$enable_dependency_tracking;
3114fi
3115
3116if test "x$enable_dependency_tracking" != xno; then
3117  am_depcomp="$ac_aux_dir/depcomp"
3118  AMDEPBACKSLASH='\'
3119  am__nodep='_no'
3120fi
3121 if test "x$enable_dependency_tracking" != xno; then
3122  AMDEP_TRUE=
3123  AMDEP_FALSE='#'
3124else
3125  AMDEP_TRUE='#'
3126  AMDEP_FALSE=
3127fi
3128
3129
3130ac_ext=c
3131ac_cpp='$CPP $CPPFLAGS'
3132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135if test -n "$ac_tool_prefix"; then
3136  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3137set dummy ${ac_tool_prefix}gcc; ac_word=$2
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if ${ac_cv_prog_CC+:} false; then :
3141  $as_echo_n "(cached) " >&6
3142else
3143  if test -n "$CC"; then
3144  ac_cv_prog_CC="$CC" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149  IFS=$as_save_IFS
3150  test -z "$as_dir" && as_dir=.
3151    for ac_exec_ext in '' $ac_executable_extensions; do
3152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155    break 2
3156  fi
3157done
3158  done
3159IFS=$as_save_IFS
3160
3161fi
3162fi
3163CC=$ac_cv_prog_CC
3164if test -n "$CC"; then
3165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3166$as_echo "$CC" >&6; }
3167else
3168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
3170fi
3171
3172
3173fi
3174if test -z "$ac_cv_prog_CC"; then
3175  ac_ct_CC=$CC
3176  # Extract the first word of "gcc", so it can be a program name with args.
3177set dummy gcc; ac_word=$2
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179$as_echo_n "checking for $ac_word... " >&6; }
3180if ${ac_cv_prog_ac_ct_CC+:} false; then :
3181  $as_echo_n "(cached) " >&6
3182else
3183  if test -n "$ac_ct_CC"; then
3184  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185else
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189  IFS=$as_save_IFS
3190  test -z "$as_dir" && as_dir=.
3191    for ac_exec_ext in '' $ac_executable_extensions; do
3192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193    ac_cv_prog_ac_ct_CC="gcc"
3194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195    break 2
3196  fi
3197done
3198  done
3199IFS=$as_save_IFS
3200
3201fi
3202fi
3203ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204if test -n "$ac_ct_CC"; then
3205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206$as_echo "$ac_ct_CC" >&6; }
3207else
3208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210fi
3211
3212  if test "x$ac_ct_CC" = x; then
3213    CC=""
3214  else
3215    case $cross_compiling:$ac_tool_warned in
3216yes:)
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219ac_tool_warned=yes ;;
3220esac
3221    CC=$ac_ct_CC
3222  fi
3223else
3224  CC="$ac_cv_prog_CC"
3225fi
3226
3227if test -z "$CC"; then
3228          if test -n "$ac_tool_prefix"; then
3229    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3230set dummy ${ac_tool_prefix}cc; ac_word=$2
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232$as_echo_n "checking for $ac_word... " >&6; }
3233if ${ac_cv_prog_CC+:} false; then :
3234  $as_echo_n "(cached) " >&6
3235else
3236  if test -n "$CC"; then
3237  ac_cv_prog_CC="$CC" # Let the user override the test.
3238else
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242  IFS=$as_save_IFS
3243  test -z "$as_dir" && as_dir=.
3244    for ac_exec_ext in '' $ac_executable_extensions; do
3245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246    ac_cv_prog_CC="${ac_tool_prefix}cc"
3247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248    break 2
3249  fi
3250done
3251  done
3252IFS=$as_save_IFS
3253
3254fi
3255fi
3256CC=$ac_cv_prog_CC
3257if test -n "$CC"; then
3258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259$as_echo "$CC" >&6; }
3260else
3261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262$as_echo "no" >&6; }
3263fi
3264
3265
3266  fi
3267fi
3268if test -z "$CC"; then
3269  # Extract the first word of "cc", so it can be a program name with args.
3270set dummy cc; ac_word=$2
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272$as_echo_n "checking for $ac_word... " >&6; }
3273if ${ac_cv_prog_CC+:} false; then :
3274  $as_echo_n "(cached) " >&6
3275else
3276  if test -n "$CC"; then
3277  ac_cv_prog_CC="$CC" # Let the user override the test.
3278else
3279  ac_prog_rejected=no
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285    for ac_exec_ext in '' $ac_executable_extensions; do
3286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3288       ac_prog_rejected=yes
3289       continue
3290     fi
3291    ac_cv_prog_CC="cc"
3292    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293    break 2
3294  fi
3295done
3296  done
3297IFS=$as_save_IFS
3298
3299if test $ac_prog_rejected = yes; then
3300  # We found a bogon in the path, so make sure we never use it.
3301  set dummy $ac_cv_prog_CC
3302  shift
3303  if test $# != 0; then
3304    # We chose a different compiler from the bogus one.
3305    # However, it has the same basename, so the bogon will be chosen
3306    # first if we set CC to just the basename; use the full file name.
3307    shift
3308    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3309  fi
3310fi
3311fi
3312fi
3313CC=$ac_cv_prog_CC
3314if test -n "$CC"; then
3315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3316$as_echo "$CC" >&6; }
3317else
3318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319$as_echo "no" >&6; }
3320fi
3321
3322
3323fi
3324if test -z "$CC"; then
3325  if test -n "$ac_tool_prefix"; then
3326  for ac_prog in cl.exe
3327  do
3328    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3329set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331$as_echo_n "checking for $ac_word... " >&6; }
3332if ${ac_cv_prog_CC+:} false; then :
3333  $as_echo_n "(cached) " >&6
3334else
3335  if test -n "$CC"; then
3336  ac_cv_prog_CC="$CC" # Let the user override the test.
3337else
3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341  IFS=$as_save_IFS
3342  test -z "$as_dir" && as_dir=.
3343    for ac_exec_ext in '' $ac_executable_extensions; do
3344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350  done
3351IFS=$as_save_IFS
3352
3353fi
3354fi
3355CC=$ac_cv_prog_CC
3356if test -n "$CC"; then
3357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358$as_echo "$CC" >&6; }
3359else
3360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
3362fi
3363
3364
3365    test -n "$CC" && break
3366  done
3367fi
3368if test -z "$CC"; then
3369  ac_ct_CC=$CC
3370  for ac_prog in cl.exe
3371do
3372  # Extract the first word of "$ac_prog", so it can be a program name with args.
3373set dummy $ac_prog; ac_word=$2
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375$as_echo_n "checking for $ac_word... " >&6; }
3376if ${ac_cv_prog_ac_ct_CC+:} false; then :
3377  $as_echo_n "(cached) " >&6
3378else
3379  if test -n "$ac_ct_CC"; then
3380  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3381else
3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383for as_dir in $PATH
3384do
3385  IFS=$as_save_IFS
3386  test -z "$as_dir" && as_dir=.
3387    for ac_exec_ext in '' $ac_executable_extensions; do
3388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389    ac_cv_prog_ac_ct_CC="$ac_prog"
3390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391    break 2
3392  fi
3393done
3394  done
3395IFS=$as_save_IFS
3396
3397fi
3398fi
3399ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400if test -n "$ac_ct_CC"; then
3401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3402$as_echo "$ac_ct_CC" >&6; }
3403else
3404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405$as_echo "no" >&6; }
3406fi
3407
3408
3409  test -n "$ac_ct_CC" && break
3410done
3411
3412  if test "x$ac_ct_CC" = x; then
3413    CC=""
3414  else
3415    case $cross_compiling:$ac_tool_warned in
3416yes:)
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3419ac_tool_warned=yes ;;
3420esac
3421    CC=$ac_ct_CC
3422  fi
3423fi
3424
3425fi
3426
3427
3428test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430as_fn_error $? "no acceptable C compiler found in \$PATH
3431See \`config.log' for more details" "$LINENO" 5; }
3432
3433# Provide some information about the compiler.
3434$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3435set X $ac_compile
3436ac_compiler=$2
3437for ac_option in --version -v -V -qversion; do
3438  { { ac_try="$ac_compiler $ac_option >&5"
3439case "(($ac_try" in
3440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441  *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
3445  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3446  ac_status=$?
3447  if test -s conftest.err; then
3448    sed '10a\
3449... rest of stderr output deleted ...
3450         10q' conftest.err >conftest.er1
3451    cat conftest.er1 >&5
3452  fi
3453  rm -f conftest.er1 conftest.err
3454  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455  test $ac_status = 0; }
3456done
3457
3458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459/* end confdefs.h.  */
3460
3461int
3462main ()
3463{
3464
3465  ;
3466  return 0;
3467}
3468_ACEOF
3469# FIXME: Cleanup?
3470if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3471  (eval $ac_link) 2>&5
3472  ac_status=$?
3473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474  test $ac_status = 0; }; then :
3475  gcc_no_link=no
3476else
3477  gcc_no_link=yes
3478fi
3479if test x$gcc_no_link = xyes; then
3480  # Setting cross_compile will disable run tests; it will
3481  # also disable AC_CHECK_FILE but that's generally
3482  # correct if we can't link.
3483  cross_compiling=yes
3484  EXEEXT=
3485else
3486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488
3489int
3490main ()
3491{
3492
3493  ;
3494  return 0;
3495}
3496_ACEOF
3497ac_clean_files_save=$ac_clean_files
3498ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3499# Try to create an executable without -o first, disregard a.out.
3500# It will help us diagnose broken compilers, and finding out an intuition
3501# of exeext.
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3503$as_echo_n "checking whether the C compiler works... " >&6; }
3504ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3505
3506# The possible output files:
3507ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3508
3509ac_rmfiles=
3510for ac_file in $ac_files
3511do
3512  case $ac_file in
3513    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3514    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3515  esac
3516done
3517rm -f $ac_rmfiles
3518
3519if { { ac_try="$ac_link_default"
3520case "(($ac_try" in
3521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522  *) ac_try_echo=$ac_try;;
3523esac
3524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525$as_echo "$ac_try_echo"; } >&5
3526  (eval "$ac_link_default") 2>&5
3527  ac_status=$?
3528  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529  test $ac_status = 0; }; then :
3530  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3531# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3532# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3533# so that the user can short-circuit this test for compilers unknown to
3534# Autoconf.
3535for ac_file in $ac_files ''
3536do
3537  test -f "$ac_file" || continue
3538  case $ac_file in
3539    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3540	;;
3541    [ab].out )
3542	# We found the default executable, but exeext='' is most
3543	# certainly right.
3544	break;;
3545    *.* )
3546	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3547	then :; else
3548	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549	fi
3550	# We set ac_cv_exeext here because the later test for it is not
3551	# safe: cross compilers may not add the suffix if given an `-o'
3552	# argument, so we may need to know it at that point already.
3553	# Even if this section looks crufty: it has the advantage of
3554	# actually working.
3555	break;;
3556    * )
3557	break;;
3558  esac
3559done
3560test "$ac_cv_exeext" = no && ac_cv_exeext=
3561
3562else
3563  ac_file=''
3564fi
3565if test -z "$ac_file"; then :
3566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567$as_echo "no" >&6; }
3568$as_echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573as_fn_error 77 "C compiler cannot create executables
3574See \`config.log' for more details" "$LINENO" 5; }
3575else
3576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3577$as_echo "yes" >&6; }
3578fi
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3580$as_echo_n "checking for C compiler default output file name... " >&6; }
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3582$as_echo "$ac_file" >&6; }
3583ac_exeext=$ac_cv_exeext
3584
3585rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3586ac_clean_files=$ac_clean_files_save
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3588$as_echo_n "checking for suffix of executables... " >&6; }
3589if { { ac_try="$ac_link"
3590case "(($ac_try" in
3591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592  *) ac_try_echo=$ac_try;;
3593esac
3594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595$as_echo "$ac_try_echo"; } >&5
3596  (eval "$ac_link") 2>&5
3597  ac_status=$?
3598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599  test $ac_status = 0; }; then :
3600  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3601# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3602# work properly (i.e., refer to `conftest.exe'), while it won't with
3603# `rm'.
3604for ac_file in conftest.exe conftest conftest.*; do
3605  test -f "$ac_file" || continue
3606  case $ac_file in
3607    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609	  break;;
3610    * ) break;;
3611  esac
3612done
3613else
3614  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3617See \`config.log' for more details" "$LINENO" 5; }
3618fi
3619rm -f conftest conftest$ac_cv_exeext
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3621$as_echo "$ac_cv_exeext" >&6; }
3622
3623rm -f conftest.$ac_ext
3624EXEEXT=$ac_cv_exeext
3625ac_exeext=$EXEEXT
3626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627/* end confdefs.h.  */
3628#include <stdio.h>
3629int
3630main ()
3631{
3632FILE *f = fopen ("conftest.out", "w");
3633 return ferror (f) || fclose (f) != 0;
3634
3635  ;
3636  return 0;
3637}
3638_ACEOF
3639ac_clean_files="$ac_clean_files conftest.out"
3640# Check that the compiler produces executables we can run.  If not, either
3641# the compiler is broken, or we cross compile.
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3643$as_echo_n "checking whether we are cross compiling... " >&6; }
3644if test "$cross_compiling" != yes; then
3645  { { ac_try="$ac_link"
3646case "(($ac_try" in
3647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648  *) ac_try_echo=$ac_try;;
3649esac
3650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651$as_echo "$ac_try_echo"; } >&5
3652  (eval "$ac_link") 2>&5
3653  ac_status=$?
3654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655  test $ac_status = 0; }
3656  if { ac_try='./conftest$ac_cv_exeext'
3657  { { case "(($ac_try" in
3658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659  *) ac_try_echo=$ac_try;;
3660esac
3661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662$as_echo "$ac_try_echo"; } >&5
3663  (eval "$ac_try") 2>&5
3664  ac_status=$?
3665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666  test $ac_status = 0; }; }; then
3667    cross_compiling=no
3668  else
3669    if test "$cross_compiling" = maybe; then
3670	cross_compiling=yes
3671    else
3672	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674as_fn_error $? "cannot run C compiled programs.
3675If you meant to cross compile, use \`--host'.
3676See \`config.log' for more details" "$LINENO" 5; }
3677    fi
3678  fi
3679fi
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3681$as_echo "$cross_compiling" >&6; }
3682
3683rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3684ac_clean_files=$ac_clean_files_save
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3687$as_echo_n "checking for suffix of object files... " >&6; }
3688if ${ac_cv_objext+:} false; then :
3689  $as_echo_n "(cached) " >&6
3690else
3691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h.  */
3693
3694int
3695main ()
3696{
3697
3698  ;
3699  return 0;
3700}
3701_ACEOF
3702rm -f conftest.o conftest.obj
3703if { { ac_try="$ac_compile"
3704case "(($ac_try" in
3705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706  *) ac_try_echo=$ac_try;;
3707esac
3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3709$as_echo "$ac_try_echo"; } >&5
3710  (eval "$ac_compile") 2>&5
3711  ac_status=$?
3712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713  test $ac_status = 0; }; then :
3714  for ac_file in conftest.o conftest.obj conftest.*; do
3715  test -f "$ac_file" || continue;
3716  case $ac_file in
3717    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3718    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3719       break;;
3720  esac
3721done
3722else
3723  $as_echo "$as_me: failed program was:" >&5
3724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3728as_fn_error $? "cannot compute suffix of object files: cannot compile
3729See \`config.log' for more details" "$LINENO" 5; }
3730fi
3731rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3734$as_echo "$ac_cv_objext" >&6; }
3735OBJEXT=$ac_cv_objext
3736ac_objext=$OBJEXT
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3738$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3739if ${ac_cv_c_compiler_gnu+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743/* end confdefs.h.  */
3744
3745int
3746main ()
3747{
3748#ifndef __GNUC__
3749       choke me
3750#endif
3751
3752  ;
3753  return 0;
3754}
3755_ACEOF
3756if ac_fn_c_try_compile "$LINENO"; then :
3757  ac_compiler_gnu=yes
3758else
3759  ac_compiler_gnu=no
3760fi
3761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762ac_cv_c_compiler_gnu=$ac_compiler_gnu
3763
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3766$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3767if test $ac_compiler_gnu = yes; then
3768  GCC=yes
3769else
3770  GCC=
3771fi
3772ac_test_CFLAGS=${CFLAGS+set}
3773ac_save_CFLAGS=$CFLAGS
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3775$as_echo_n "checking whether $CC accepts -g... " >&6; }
3776if ${ac_cv_prog_cc_g+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  ac_save_c_werror_flag=$ac_c_werror_flag
3780   ac_c_werror_flag=yes
3781   ac_cv_prog_cc_g=no
3782   CFLAGS="-g"
3783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794if ac_fn_c_try_compile "$LINENO"; then :
3795  ac_cv_prog_cc_g=yes
3796else
3797  CFLAGS=""
3798      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h.  */
3800
3801int
3802main ()
3803{
3804
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809if ac_fn_c_try_compile "$LINENO"; then :
3810
3811else
3812  ac_c_werror_flag=$ac_save_c_werror_flag
3813	 CFLAGS="-g"
3814	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816
3817int
3818main ()
3819{
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825if ac_fn_c_try_compile "$LINENO"; then :
3826  ac_cv_prog_cc_g=yes
3827fi
3828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829fi
3830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831fi
3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833   ac_c_werror_flag=$ac_save_c_werror_flag
3834fi
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3836$as_echo "$ac_cv_prog_cc_g" >&6; }
3837if test "$ac_test_CFLAGS" = set; then
3838  CFLAGS=$ac_save_CFLAGS
3839elif test $ac_cv_prog_cc_g = yes; then
3840  if test "$GCC" = yes; then
3841    CFLAGS="-g -O2"
3842  else
3843    CFLAGS="-g"
3844  fi
3845else
3846  if test "$GCC" = yes; then
3847    CFLAGS="-O2"
3848  else
3849    CFLAGS=
3850  fi
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3853$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3854if ${ac_cv_prog_cc_c89+:} false; then :
3855  $as_echo_n "(cached) " >&6
3856else
3857  ac_cv_prog_cc_c89=no
3858ac_save_CC=$CC
3859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861#include <stdarg.h>
3862#include <stdio.h>
3863struct stat;
3864/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3865struct buf { int x; };
3866FILE * (*rcsopen) (struct buf *, struct stat *, int);
3867static char *e (p, i)
3868     char **p;
3869     int i;
3870{
3871  return p[i];
3872}
3873static char *f (char * (*g) (char **, int), char **p, ...)
3874{
3875  char *s;
3876  va_list v;
3877  va_start (v,p);
3878  s = g (p, va_arg (v,int));
3879  va_end (v);
3880  return s;
3881}
3882
3883/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3884   function prototypes and stuff, but not '\xHH' hex character constants.
3885   These don't provoke an error unfortunately, instead are silently treated
3886   as 'x'.  The following induces an error, until -std is added to get
3887   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3888   array size at least.  It's necessary to write '\x00'==0 to get something
3889   that's true only with -std.  */
3890int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3891
3892/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3893   inside strings and character constants.  */
3894#define FOO(x) 'x'
3895int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3896
3897int test (int i, double x);
3898struct s1 {int (*f) (int a);};
3899struct s2 {int (*f) (double a);};
3900int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3901int argc;
3902char **argv;
3903int
3904main ()
3905{
3906return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3907  ;
3908  return 0;
3909}
3910_ACEOF
3911for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3912	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3913do
3914  CC="$ac_save_CC $ac_arg"
3915  if ac_fn_c_try_compile "$LINENO"; then :
3916  ac_cv_prog_cc_c89=$ac_arg
3917fi
3918rm -f core conftest.err conftest.$ac_objext
3919  test "x$ac_cv_prog_cc_c89" != "xno" && break
3920done
3921rm -f conftest.$ac_ext
3922CC=$ac_save_CC
3923
3924fi
3925# AC_CACHE_VAL
3926case "x$ac_cv_prog_cc_c89" in
3927  x)
3928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3929$as_echo "none needed" >&6; } ;;
3930  xno)
3931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3932$as_echo "unsupported" >&6; } ;;
3933  *)
3934    CC="$CC $ac_cv_prog_cc_c89"
3935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3936$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3937esac
3938if test "x$ac_cv_prog_cc_c89" != xno; then :
3939
3940fi
3941
3942ac_ext=c
3943ac_cpp='$CPP $CPPFLAGS'
3944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947
3948ac_ext=c
3949ac_cpp='$CPP $CPPFLAGS'
3950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3954$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3955if ${am_cv_prog_cc_c_o+:} false; then :
3956  $as_echo_n "(cached) " >&6
3957else
3958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959/* end confdefs.h.  */
3960
3961int
3962main ()
3963{
3964
3965  ;
3966  return 0;
3967}
3968_ACEOF
3969  # Make sure it works both with $CC and with simple cc.
3970  # Following AC_PROG_CC_C_O, we do the test twice because some
3971  # compilers refuse to overwrite an existing .o file with -o,
3972  # though they will create one.
3973  am_cv_prog_cc_c_o=yes
3974  for am_i in 1 2; do
3975    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3976   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); } \
3980         && test -f conftest2.$ac_objext; then
3981      : OK
3982    else
3983      am_cv_prog_cc_c_o=no
3984      break
3985    fi
3986  done
3987  rm -f core conftest*
3988  unset am_i
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3991$as_echo "$am_cv_prog_cc_c_o" >&6; }
3992if test "$am_cv_prog_cc_c_o" != yes; then
3993   # Losing compiler, so override with the script.
3994   # FIXME: It is wrong to rewrite CC.
3995   # But if we don't then we get into trouble of one sort or another.
3996   # A longer-term fix would be to have automake use am__CC in this case,
3997   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3998   CC="$am_aux_dir/compile $CC"
3999fi
4000ac_ext=c
4001ac_cpp='$CPP $CPPFLAGS'
4002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005
4006
4007depcc="$CC"   am_compiler_list=
4008
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4010$as_echo_n "checking dependency style of $depcc... " >&6; }
4011if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4012  $as_echo_n "(cached) " >&6
4013else
4014  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4015  # We make a subdir and do the tests there.  Otherwise we can end up
4016  # making bogus files that we don't know about and never remove.  For
4017  # instance it was reported that on HP-UX the gcc test will end up
4018  # making a dummy file named 'D' -- because '-MD' means "put the output
4019  # in D".
4020  rm -rf conftest.dir
4021  mkdir conftest.dir
4022  # Copy depcomp to subdir because otherwise we won't find it if we're
4023  # using a relative directory.
4024  cp "$am_depcomp" conftest.dir
4025  cd conftest.dir
4026  # We will build objects and dependencies in a subdirectory because
4027  # it helps to detect inapplicable dependency modes.  For instance
4028  # both Tru64's cc and ICC support -MD to output dependencies as a
4029  # side effect of compilation, but ICC will put the dependencies in
4030  # the current directory while Tru64 will put them in the object
4031  # directory.
4032  mkdir sub
4033
4034  am_cv_CC_dependencies_compiler_type=none
4035  if test "$am_compiler_list" = ""; then
4036     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4037  fi
4038  am__universal=false
4039  case " $depcc " in #(
4040     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4041     esac
4042
4043  for depmode in $am_compiler_list; do
4044    # Setup a source with many dependencies, because some compilers
4045    # like to wrap large dependency lists on column 80 (with \), and
4046    # we should not choose a depcomp mode which is confused by this.
4047    #
4048    # We need to recreate these files for each test, as the compiler may
4049    # overwrite some of them when testing with obscure command lines.
4050    # This happens at least with the AIX C compiler.
4051    : > sub/conftest.c
4052    for i in 1 2 3 4 5 6; do
4053      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4054      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4055      # Solaris 10 /bin/sh.
4056      echo '/* dummy */' > sub/conftst$i.h
4057    done
4058    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4059
4060    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4061    # mode.  It turns out that the SunPro C++ compiler does not properly
4062    # handle '-M -o', and we need to detect this.  Also, some Intel
4063    # versions had trouble with output in subdirs.
4064    am__obj=sub/conftest.${OBJEXT-o}
4065    am__minus_obj="-o $am__obj"
4066    case $depmode in
4067    gcc)
4068      # This depmode causes a compiler race in universal mode.
4069      test "$am__universal" = false || continue
4070      ;;
4071    nosideeffect)
4072      # After this tag, mechanisms are not by side-effect, so they'll
4073      # only be used when explicitly requested.
4074      if test "x$enable_dependency_tracking" = xyes; then
4075	continue
4076      else
4077	break
4078      fi
4079      ;;
4080    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4081      # This compiler won't grok '-c -o', but also, the minuso test has
4082      # not run yet.  These depmodes are late enough in the game, and
4083      # so weak that their functioning should not be impacted.
4084      am__obj=conftest.${OBJEXT-o}
4085      am__minus_obj=
4086      ;;
4087    none) break ;;
4088    esac
4089    if depmode=$depmode \
4090       source=sub/conftest.c object=$am__obj \
4091       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4092       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4093         >/dev/null 2>conftest.err &&
4094       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4095       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4096       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4097       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4098      # icc doesn't choke on unknown options, it will just issue warnings
4099      # or remarks (even with -Werror).  So we grep stderr for any message
4100      # that says an option was ignored or not supported.
4101      # When given -MP, icc 7.0 and 7.1 complain thusly:
4102      #   icc: Command line warning: ignoring option '-M'; no argument required
4103      # The diagnosis changed in icc 8.0:
4104      #   icc: Command line remark: option '-MP' not supported
4105      if (grep 'ignoring option' conftest.err ||
4106          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4107        am_cv_CC_dependencies_compiler_type=$depmode
4108        break
4109      fi
4110    fi
4111  done
4112
4113  cd ..
4114  rm -rf conftest.dir
4115else
4116  am_cv_CC_dependencies_compiler_type=none
4117fi
4118
4119fi
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4121$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4122CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4123
4124 if
4125  test "x$enable_dependency_tracking" != xno \
4126  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4127  am__fastdepCC_TRUE=
4128  am__fastdepCC_FALSE='#'
4129else
4130  am__fastdepCC_TRUE='#'
4131  am__fastdepCC_FALSE=
4132fi
4133
4134
4135
4136ac_ext=c
4137ac_cpp='$CPP $CPPFLAGS'
4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4142$as_echo_n "checking how to run the C preprocessor... " >&6; }
4143# On Suns, sometimes $CPP names a directory.
4144if test -n "$CPP" && test -d "$CPP"; then
4145  CPP=
4146fi
4147if test -z "$CPP"; then
4148  if ${ac_cv_prog_CPP+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
4151      # Double quotes because CPP needs to be expanded
4152    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4153    do
4154      ac_preproc_ok=false
4155for ac_c_preproc_warn_flag in '' yes
4156do
4157  # Use a header file that comes with gcc, so configuring glibc
4158  # with a fresh cross-compiler works.
4159  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4160  # <limits.h> exists even on freestanding compilers.
4161  # On the NeXT, cc -E runs the code through the compiler's parser,
4162  # not just through cpp. "Syntax error" is here to catch this case.
4163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164/* end confdefs.h.  */
4165#ifdef __STDC__
4166# include <limits.h>
4167#else
4168# include <assert.h>
4169#endif
4170		     Syntax error
4171_ACEOF
4172if ac_fn_c_try_cpp "$LINENO"; then :
4173
4174else
4175  # Broken: fails on valid input.
4176continue
4177fi
4178rm -f conftest.err conftest.i conftest.$ac_ext
4179
4180  # OK, works on sane cases.  Now check whether nonexistent headers
4181  # can be detected and how.
4182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183/* end confdefs.h.  */
4184#include <ac_nonexistent.h>
4185_ACEOF
4186if ac_fn_c_try_cpp "$LINENO"; then :
4187  # Broken: success on invalid input.
4188continue
4189else
4190  # Passes both tests.
4191ac_preproc_ok=:
4192break
4193fi
4194rm -f conftest.err conftest.i conftest.$ac_ext
4195
4196done
4197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4198rm -f conftest.i conftest.err conftest.$ac_ext
4199if $ac_preproc_ok; then :
4200  break
4201fi
4202
4203    done
4204    ac_cv_prog_CPP=$CPP
4205
4206fi
4207  CPP=$ac_cv_prog_CPP
4208else
4209  ac_cv_prog_CPP=$CPP
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4212$as_echo "$CPP" >&6; }
4213ac_preproc_ok=false
4214for ac_c_preproc_warn_flag in '' yes
4215do
4216  # Use a header file that comes with gcc, so configuring glibc
4217  # with a fresh cross-compiler works.
4218  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4219  # <limits.h> exists even on freestanding compilers.
4220  # On the NeXT, cc -E runs the code through the compiler's parser,
4221  # not just through cpp. "Syntax error" is here to catch this case.
4222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223/* end confdefs.h.  */
4224#ifdef __STDC__
4225# include <limits.h>
4226#else
4227# include <assert.h>
4228#endif
4229		     Syntax error
4230_ACEOF
4231if ac_fn_c_try_cpp "$LINENO"; then :
4232
4233else
4234  # Broken: fails on valid input.
4235continue
4236fi
4237rm -f conftest.err conftest.i conftest.$ac_ext
4238
4239  # OK, works on sane cases.  Now check whether nonexistent headers
4240  # can be detected and how.
4241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h.  */
4243#include <ac_nonexistent.h>
4244_ACEOF
4245if ac_fn_c_try_cpp "$LINENO"; then :
4246  # Broken: success on invalid input.
4247continue
4248else
4249  # Passes both tests.
4250ac_preproc_ok=:
4251break
4252fi
4253rm -f conftest.err conftest.i conftest.$ac_ext
4254
4255done
4256# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257rm -f conftest.i conftest.err conftest.$ac_ext
4258if $ac_preproc_ok; then :
4259
4260else
4261  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4263as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4264See \`config.log' for more details" "$LINENO" 5; }
4265fi
4266
4267ac_ext=c
4268ac_cpp='$CPP $CPPFLAGS'
4269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271ac_compiler_gnu=$ac_cv_c_compiler_gnu
4272
4273
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4275$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4276if ${ac_cv_path_GREP+:} false; then :
4277  $as_echo_n "(cached) " >&6
4278else
4279  if test -z "$GREP"; then
4280  ac_path_GREP_found=false
4281  # Loop through the user's path and test for each of PROGNAME-LIST
4282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284do
4285  IFS=$as_save_IFS
4286  test -z "$as_dir" && as_dir=.
4287    for ac_prog in grep ggrep; do
4288    for ac_exec_ext in '' $ac_executable_extensions; do
4289      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4290      as_fn_executable_p "$ac_path_GREP" || continue
4291# Check for GNU ac_path_GREP and select it if it is found.
4292  # Check for GNU $ac_path_GREP
4293case `"$ac_path_GREP" --version 2>&1` in
4294*GNU*)
4295  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4296*)
4297  ac_count=0
4298  $as_echo_n 0123456789 >"conftest.in"
4299  while :
4300  do
4301    cat "conftest.in" "conftest.in" >"conftest.tmp"
4302    mv "conftest.tmp" "conftest.in"
4303    cp "conftest.in" "conftest.nl"
4304    $as_echo 'GREP' >> "conftest.nl"
4305    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4306    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4307    as_fn_arith $ac_count + 1 && ac_count=$as_val
4308    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4309      # Best one so far, save it but keep looking for a better one
4310      ac_cv_path_GREP="$ac_path_GREP"
4311      ac_path_GREP_max=$ac_count
4312    fi
4313    # 10*(2^10) chars as input seems more than enough
4314    test $ac_count -gt 10 && break
4315  done
4316  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4317esac
4318
4319      $ac_path_GREP_found && break 3
4320    done
4321  done
4322  done
4323IFS=$as_save_IFS
4324  if test -z "$ac_cv_path_GREP"; then
4325    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4326  fi
4327else
4328  ac_cv_path_GREP=$GREP
4329fi
4330
4331fi
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4333$as_echo "$ac_cv_path_GREP" >&6; }
4334 GREP="$ac_cv_path_GREP"
4335
4336
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4338$as_echo_n "checking for egrep... " >&6; }
4339if ${ac_cv_path_EGREP+:} false; then :
4340  $as_echo_n "(cached) " >&6
4341else
4342  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4343   then ac_cv_path_EGREP="$GREP -E"
4344   else
4345     if test -z "$EGREP"; then
4346  ac_path_EGREP_found=false
4347  # Loop through the user's path and test for each of PROGNAME-LIST
4348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350do
4351  IFS=$as_save_IFS
4352  test -z "$as_dir" && as_dir=.
4353    for ac_prog in egrep; do
4354    for ac_exec_ext in '' $ac_executable_extensions; do
4355      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4356      as_fn_executable_p "$ac_path_EGREP" || continue
4357# Check for GNU ac_path_EGREP and select it if it is found.
4358  # Check for GNU $ac_path_EGREP
4359case `"$ac_path_EGREP" --version 2>&1` in
4360*GNU*)
4361  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4362*)
4363  ac_count=0
4364  $as_echo_n 0123456789 >"conftest.in"
4365  while :
4366  do
4367    cat "conftest.in" "conftest.in" >"conftest.tmp"
4368    mv "conftest.tmp" "conftest.in"
4369    cp "conftest.in" "conftest.nl"
4370    $as_echo 'EGREP' >> "conftest.nl"
4371    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373    as_fn_arith $ac_count + 1 && ac_count=$as_val
4374    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4375      # Best one so far, save it but keep looking for a better one
4376      ac_cv_path_EGREP="$ac_path_EGREP"
4377      ac_path_EGREP_max=$ac_count
4378    fi
4379    # 10*(2^10) chars as input seems more than enough
4380    test $ac_count -gt 10 && break
4381  done
4382  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383esac
4384
4385      $ac_path_EGREP_found && break 3
4386    done
4387  done
4388  done
4389IFS=$as_save_IFS
4390  if test -z "$ac_cv_path_EGREP"; then
4391    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392  fi
4393else
4394  ac_cv_path_EGREP=$EGREP
4395fi
4396
4397   fi
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4400$as_echo "$ac_cv_path_EGREP" >&6; }
4401 EGREP="$ac_cv_path_EGREP"
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4405$as_echo_n "checking for ANSI C header files... " >&6; }
4406if ${ac_cv_header_stdc+:} false; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410/* end confdefs.h.  */
4411#include <stdlib.h>
4412#include <stdarg.h>
4413#include <string.h>
4414#include <float.h>
4415
4416int
4417main ()
4418{
4419
4420  ;
4421  return 0;
4422}
4423_ACEOF
4424if ac_fn_c_try_compile "$LINENO"; then :
4425  ac_cv_header_stdc=yes
4426else
4427  ac_cv_header_stdc=no
4428fi
4429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430
4431if test $ac_cv_header_stdc = yes; then
4432  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434/* end confdefs.h.  */
4435#include <string.h>
4436
4437_ACEOF
4438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439  $EGREP "memchr" >/dev/null 2>&1; then :
4440
4441else
4442  ac_cv_header_stdc=no
4443fi
4444rm -f conftest*
4445
4446fi
4447
4448if test $ac_cv_header_stdc = yes; then
4449  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h.  */
4452#include <stdlib.h>
4453
4454_ACEOF
4455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4456  $EGREP "free" >/dev/null 2>&1; then :
4457
4458else
4459  ac_cv_header_stdc=no
4460fi
4461rm -f conftest*
4462
4463fi
4464
4465if test $ac_cv_header_stdc = yes; then
4466  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4467  if test "$cross_compiling" = yes; then :
4468  :
4469else
4470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h.  */
4472#include <ctype.h>
4473#include <stdlib.h>
4474#if ((' ' & 0x0FF) == 0x020)
4475# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4476# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4477#else
4478# define ISLOWER(c) \
4479		   (('a' <= (c) && (c) <= 'i') \
4480		     || ('j' <= (c) && (c) <= 'r') \
4481		     || ('s' <= (c) && (c) <= 'z'))
4482# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4483#endif
4484
4485#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4486int
4487main ()
4488{
4489  int i;
4490  for (i = 0; i < 256; i++)
4491    if (XOR (islower (i), ISLOWER (i))
4492	|| toupper (i) != TOUPPER (i))
4493      return 2;
4494  return 0;
4495}
4496_ACEOF
4497if ac_fn_c_try_run "$LINENO"; then :
4498
4499else
4500  ac_cv_header_stdc=no
4501fi
4502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4503  conftest.$ac_objext conftest.beam conftest.$ac_ext
4504fi
4505
4506fi
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4509$as_echo "$ac_cv_header_stdc" >&6; }
4510if test $ac_cv_header_stdc = yes; then
4511
4512$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4513
4514fi
4515
4516# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4517for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4518		  inttypes.h stdint.h unistd.h
4519do :
4520  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4521ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4522"
4523if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4524  cat >>confdefs.h <<_ACEOF
4525#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4526_ACEOF
4527
4528fi
4529
4530done
4531
4532
4533
4534  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4535if test "x$ac_cv_header_minix_config_h" = xyes; then :
4536  MINIX=yes
4537else
4538  MINIX=
4539fi
4540
4541
4542  if test "$MINIX" = yes; then
4543
4544$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4545
4546
4547$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4548
4549
4550$as_echo "#define _MINIX 1" >>confdefs.h
4551
4552  fi
4553
4554
4555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4556$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4557if ${ac_cv_safe_to_define___extensions__+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561/* end confdefs.h.  */
4562
4563#         define __EXTENSIONS__ 1
4564          $ac_includes_default
4565int
4566main ()
4567{
4568
4569  ;
4570  return 0;
4571}
4572_ACEOF
4573if ac_fn_c_try_compile "$LINENO"; then :
4574  ac_cv_safe_to_define___extensions__=yes
4575else
4576  ac_cv_safe_to_define___extensions__=no
4577fi
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4581$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4582  test $ac_cv_safe_to_define___extensions__ = yes &&
4583    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4584
4585  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4586
4587  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4588
4589  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4590
4591  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4592
4593
4594
4595# See if makeinfo has been installed and is modern enough
4596# that we can use it.
4597
4598  # Extract the first word of "makeinfo", so it can be a program name with args.
4599set dummy makeinfo; ac_word=$2
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601$as_echo_n "checking for $ac_word... " >&6; }
4602if ${ac_cv_prog_MAKEINFO+:} false; then :
4603  $as_echo_n "(cached) " >&6
4604else
4605  if test -n "$MAKEINFO"; then
4606  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4607else
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611  IFS=$as_save_IFS
4612  test -z "$as_dir" && as_dir=.
4613    for ac_exec_ext in '' $ac_executable_extensions; do
4614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615    ac_cv_prog_MAKEINFO="makeinfo"
4616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617    break 2
4618  fi
4619done
4620  done
4621IFS=$as_save_IFS
4622
4623fi
4624fi
4625MAKEINFO=$ac_cv_prog_MAKEINFO
4626if test -n "$MAKEINFO"; then
4627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4628$as_echo "$MAKEINFO" >&6; }
4629else
4630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631$as_echo "no" >&6; }
4632fi
4633
4634
4635  if test -n "$MAKEINFO"; then
4636    # Found it, now check the version.
4637    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4638$as_echo_n "checking for modern makeinfo... " >&6; }
4639if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4640  $as_echo_n "(cached) " >&6
4641else
4642  ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4643                                     sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4644
4645                    case $ac_prog_version in
4646                      '')  gcc_cv_prog_makeinfo_modern=no;;
4647                      4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
4648                      *)   gcc_cv_prog_makeinfo_modern=no;;
4649                    esac
4650
4651fi
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4653$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4654  else
4655    gcc_cv_prog_makeinfo_modern=no
4656  fi
4657  if test $gcc_cv_prog_makeinfo_modern = no; then
4658    MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4659  fi
4660
4661 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4662  BUILD_INFO_TRUE=
4663  BUILD_INFO_FALSE='#'
4664else
4665  BUILD_INFO_TRUE='#'
4666  BUILD_INFO_FALSE=
4667fi
4668
4669
4670
4671
4672# Check whether --with-bugurl was given.
4673if test "${with_bugurl+set}" = set; then :
4674  withval=$with_bugurl; case "$withval" in
4675      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
4676      no)  BUGURL=
4677	   ;;
4678      *)   BUGURL="$withval"
4679	   ;;
4680     esac
4681else
4682  BUGURL="https://gcc.gnu.org/bugs/"
4683
4684fi
4685
4686  case ${BUGURL} in
4687  "")
4688    REPORT_BUGS_TO=
4689    REPORT_BUGS_TEXI=
4690    ;;
4691  *)
4692    REPORT_BUGS_TO="<$BUGURL>"
4693    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4694    ;;
4695  esac;
4696
4697
4698
4699
4700# Configure libtool
4701case `pwd` in
4702  *\ * | *\	*)
4703    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4704$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4705esac
4706
4707
4708
4709macro_version='2.2.7a'
4710macro_revision='1.3134'
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724ltmain="$ac_aux_dir/ltmain.sh"
4725
4726# Backslashify metacharacters that are still active within
4727# double-quoted strings.
4728sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4729
4730# Same as above, but do not quote variable references.
4731double_quote_subst='s/\(["`\\]\)/\\\1/g'
4732
4733# Sed substitution to delay expansion of an escaped shell variable in a
4734# double_quote_subst'ed string.
4735delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4736
4737# Sed substitution to delay expansion of an escaped single quote.
4738delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4739
4740# Sed substitution to avoid accidental globbing in evaled expressions
4741no_glob_subst='s/\*/\\\*/g'
4742
4743ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4744ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4745ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4746
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4748$as_echo_n "checking how to print strings... " >&6; }
4749# Test print first, because it will be a builtin if present.
4750if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4751   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4752  ECHO='print -r --'
4753elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4754  ECHO='printf %s\n'
4755else
4756  # Use this function as a fallback that always works.
4757  func_fallback_echo ()
4758  {
4759    eval 'cat <<_LTECHO_EOF
4760$1
4761_LTECHO_EOF'
4762  }
4763  ECHO='func_fallback_echo'
4764fi
4765
4766# func_echo_all arg...
4767# Invoke $ECHO with all args, space-separated.
4768func_echo_all ()
4769{
4770    $ECHO ""
4771}
4772
4773case "$ECHO" in
4774  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4775$as_echo "printf" >&6; } ;;
4776  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4777$as_echo "print -r" >&6; } ;;
4778  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4779$as_echo "cat" >&6; } ;;
4780esac
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4796$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4797if ${ac_cv_path_SED+:} false; then :
4798  $as_echo_n "(cached) " >&6
4799else
4800            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4801     for ac_i in 1 2 3 4 5 6 7; do
4802       ac_script="$ac_script$as_nl$ac_script"
4803     done
4804     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4805     { ac_script=; unset ac_script;}
4806     if test -z "$SED"; then
4807  ac_path_SED_found=false
4808  # Loop through the user's path and test for each of PROGNAME-LIST
4809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812  IFS=$as_save_IFS
4813  test -z "$as_dir" && as_dir=.
4814    for ac_prog in sed gsed; do
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4817      as_fn_executable_p "$ac_path_SED" || continue
4818# Check for GNU ac_path_SED and select it if it is found.
4819  # Check for GNU $ac_path_SED
4820case `"$ac_path_SED" --version 2>&1` in
4821*GNU*)
4822  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4823*)
4824  ac_count=0
4825  $as_echo_n 0123456789 >"conftest.in"
4826  while :
4827  do
4828    cat "conftest.in" "conftest.in" >"conftest.tmp"
4829    mv "conftest.tmp" "conftest.in"
4830    cp "conftest.in" "conftest.nl"
4831    $as_echo '' >> "conftest.nl"
4832    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834    as_fn_arith $ac_count + 1 && ac_count=$as_val
4835    if test $ac_count -gt ${ac_path_SED_max-0}; then
4836      # Best one so far, save it but keep looking for a better one
4837      ac_cv_path_SED="$ac_path_SED"
4838      ac_path_SED_max=$ac_count
4839    fi
4840    # 10*(2^10) chars as input seems more than enough
4841    test $ac_count -gt 10 && break
4842  done
4843  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844esac
4845
4846      $ac_path_SED_found && break 3
4847    done
4848  done
4849  done
4850IFS=$as_save_IFS
4851  if test -z "$ac_cv_path_SED"; then
4852    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4853  fi
4854else
4855  ac_cv_path_SED=$SED
4856fi
4857
4858fi
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4860$as_echo "$ac_cv_path_SED" >&6; }
4861 SED="$ac_cv_path_SED"
4862  rm -f conftest.sed
4863
4864test -z "$SED" && SED=sed
4865Xsed="$SED -e 1s/^X//"
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4878$as_echo_n "checking for fgrep... " >&6; }
4879if ${ac_cv_path_FGREP+:} false; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4883   then ac_cv_path_FGREP="$GREP -F"
4884   else
4885     if test -z "$FGREP"; then
4886  ac_path_FGREP_found=false
4887  # Loop through the user's path and test for each of PROGNAME-LIST
4888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4890do
4891  IFS=$as_save_IFS
4892  test -z "$as_dir" && as_dir=.
4893    for ac_prog in fgrep; do
4894    for ac_exec_ext in '' $ac_executable_extensions; do
4895      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4896      as_fn_executable_p "$ac_path_FGREP" || continue
4897# Check for GNU ac_path_FGREP and select it if it is found.
4898  # Check for GNU $ac_path_FGREP
4899case `"$ac_path_FGREP" --version 2>&1` in
4900*GNU*)
4901  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4902*)
4903  ac_count=0
4904  $as_echo_n 0123456789 >"conftest.in"
4905  while :
4906  do
4907    cat "conftest.in" "conftest.in" >"conftest.tmp"
4908    mv "conftest.tmp" "conftest.in"
4909    cp "conftest.in" "conftest.nl"
4910    $as_echo 'FGREP' >> "conftest.nl"
4911    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4912    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4913    as_fn_arith $ac_count + 1 && ac_count=$as_val
4914    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4915      # Best one so far, save it but keep looking for a better one
4916      ac_cv_path_FGREP="$ac_path_FGREP"
4917      ac_path_FGREP_max=$ac_count
4918    fi
4919    # 10*(2^10) chars as input seems more than enough
4920    test $ac_count -gt 10 && break
4921  done
4922  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4923esac
4924
4925      $ac_path_FGREP_found && break 3
4926    done
4927  done
4928  done
4929IFS=$as_save_IFS
4930  if test -z "$ac_cv_path_FGREP"; then
4931    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4932  fi
4933else
4934  ac_cv_path_FGREP=$FGREP
4935fi
4936
4937   fi
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4940$as_echo "$ac_cv_path_FGREP" >&6; }
4941 FGREP="$ac_cv_path_FGREP"
4942
4943
4944test -z "$GREP" && GREP=grep
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964# Check whether --with-gnu-ld was given.
4965if test "${with_gnu_ld+set}" = set; then :
4966  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4967else
4968  with_gnu_ld=no
4969fi
4970
4971ac_prog=ld
4972if test "$GCC" = yes; then
4973  # Check if gcc -print-prog-name=ld gives a path.
4974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4975$as_echo_n "checking for ld used by $CC... " >&6; }
4976  case $host in
4977  *-*-mingw*)
4978    # gcc leaves a trailing carriage return which upsets mingw
4979    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4980  *)
4981    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4982  esac
4983  case $ac_prog in
4984    # Accept absolute paths.
4985    [\\/]* | ?:[\\/]*)
4986      re_direlt='/[^/][^/]*/\.\./'
4987      # Canonicalize the pathname of ld
4988      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4989      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4990	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4991      done
4992      test -z "$LD" && LD="$ac_prog"
4993      ;;
4994  "")
4995    # If it fails, then pretend we aren't using GCC.
4996    ac_prog=ld
4997    ;;
4998  *)
4999    # If it is relative, then search for the first ld in PATH.
5000    with_gnu_ld=unknown
5001    ;;
5002  esac
5003elif test "$with_gnu_ld" = yes; then
5004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5005$as_echo_n "checking for GNU ld... " >&6; }
5006else
5007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5008$as_echo_n "checking for non-GNU ld... " >&6; }
5009fi
5010if ${lt_cv_path_LD+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  if test -z "$LD"; then
5014  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5015  for ac_dir in $PATH; do
5016    IFS="$lt_save_ifs"
5017    test -z "$ac_dir" && ac_dir=.
5018    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5019      lt_cv_path_LD="$ac_dir/$ac_prog"
5020      # Check to see if the program is GNU ld.  I'd rather use --version,
5021      # but apparently some variants of GNU ld only accept -v.
5022      # Break only if it was the GNU/non-GNU ld that we prefer.
5023      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5024      *GNU* | *'with BFD'*)
5025	test "$with_gnu_ld" != no && break
5026	;;
5027      *)
5028	test "$with_gnu_ld" != yes && break
5029	;;
5030      esac
5031    fi
5032  done
5033  IFS="$lt_save_ifs"
5034else
5035  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5036fi
5037fi
5038
5039LD="$lt_cv_path_LD"
5040if test -n "$LD"; then
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5042$as_echo "$LD" >&6; }
5043else
5044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
5046fi
5047test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5049$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5050if ${lt_cv_prog_gnu_ld+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5054case `$LD -v 2>&1 </dev/null` in
5055*GNU* | *'with BFD'*)
5056  lt_cv_prog_gnu_ld=yes
5057  ;;
5058*)
5059  lt_cv_prog_gnu_ld=no
5060  ;;
5061esac
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5064$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5065with_gnu_ld=$lt_cv_prog_gnu_ld
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5076$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5077if ${lt_cv_path_NM+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080  if test -n "$NM"; then
5081  # Let the user override the test.
5082  lt_cv_path_NM="$NM"
5083else
5084  lt_nm_to_check="${ac_tool_prefix}nm"
5085  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5086    lt_nm_to_check="$lt_nm_to_check nm"
5087  fi
5088  for lt_tmp_nm in $lt_nm_to_check; do
5089    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5090    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5091      IFS="$lt_save_ifs"
5092      test -z "$ac_dir" && ac_dir=.
5093      tmp_nm="$ac_dir/$lt_tmp_nm"
5094      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5095	# Check to see if the nm accepts a BSD-compat flag.
5096	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5097	#   nm: unknown option "B" ignored
5098	# Tru64's nm complains that /dev/null is an invalid object file
5099	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5100	*/dev/null* | *'Invalid file or object type'*)
5101	  lt_cv_path_NM="$tmp_nm -B"
5102	  break
5103	  ;;
5104	*)
5105	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5106	  */dev/null*)
5107	    lt_cv_path_NM="$tmp_nm -p"
5108	    break
5109	    ;;
5110	  *)
5111	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5112	    continue # so that we can try to find one that supports BSD flags
5113	    ;;
5114	  esac
5115	  ;;
5116	esac
5117      fi
5118    done
5119    IFS="$lt_save_ifs"
5120  done
5121  : ${lt_cv_path_NM=no}
5122fi
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5125$as_echo "$lt_cv_path_NM" >&6; }
5126if test "$lt_cv_path_NM" != "no"; then
5127  NM="$lt_cv_path_NM"
5128else
5129  # Didn't find any BSD compatible name lister, look for dumpbin.
5130  if test -n "$DUMPBIN"; then :
5131    # Let the user override the test.
5132  else
5133    if test -n "$ac_tool_prefix"; then
5134  for ac_prog in dumpbin "link -dump"
5135  do
5136    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139$as_echo_n "checking for $ac_word... " >&6; }
5140if ${ac_cv_prog_DUMPBIN+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  if test -n "$DUMPBIN"; then
5144  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149  IFS=$as_save_IFS
5150  test -z "$as_dir" && as_dir=.
5151    for ac_exec_ext in '' $ac_executable_extensions; do
5152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155    break 2
5156  fi
5157done
5158  done
5159IFS=$as_save_IFS
5160
5161fi
5162fi
5163DUMPBIN=$ac_cv_prog_DUMPBIN
5164if test -n "$DUMPBIN"; then
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5166$as_echo "$DUMPBIN" >&6; }
5167else
5168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169$as_echo "no" >&6; }
5170fi
5171
5172
5173    test -n "$DUMPBIN" && break
5174  done
5175fi
5176if test -z "$DUMPBIN"; then
5177  ac_ct_DUMPBIN=$DUMPBIN
5178  for ac_prog in dumpbin "link -dump"
5179do
5180  # Extract the first word of "$ac_prog", so it can be a program name with args.
5181set dummy $ac_prog; ac_word=$2
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183$as_echo_n "checking for $ac_word... " >&6; }
5184if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5185  $as_echo_n "(cached) " >&6
5186else
5187  if test -n "$ac_ct_DUMPBIN"; then
5188  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5189else
5190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193  IFS=$as_save_IFS
5194  test -z "$as_dir" && as_dir=.
5195    for ac_exec_ext in '' $ac_executable_extensions; do
5196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199    break 2
5200  fi
5201done
5202  done
5203IFS=$as_save_IFS
5204
5205fi
5206fi
5207ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5208if test -n "$ac_ct_DUMPBIN"; then
5209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5210$as_echo "$ac_ct_DUMPBIN" >&6; }
5211else
5212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213$as_echo "no" >&6; }
5214fi
5215
5216
5217  test -n "$ac_ct_DUMPBIN" && break
5218done
5219
5220  if test "x$ac_ct_DUMPBIN" = x; then
5221    DUMPBIN=":"
5222  else
5223    case $cross_compiling:$ac_tool_warned in
5224yes:)
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227ac_tool_warned=yes ;;
5228esac
5229    DUMPBIN=$ac_ct_DUMPBIN
5230  fi
5231fi
5232
5233    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5234    *COFF*)
5235      DUMPBIN="$DUMPBIN -symbols"
5236      ;;
5237    *)
5238      DUMPBIN=:
5239      ;;
5240    esac
5241  fi
5242
5243  if test "$DUMPBIN" != ":"; then
5244    NM="$DUMPBIN"
5245  fi
5246fi
5247test -z "$NM" && NM=nm
5248
5249
5250
5251
5252
5253
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5255$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5256if ${lt_cv_nm_interface+:} false; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  lt_cv_nm_interface="BSD nm"
5260  echo "int some_variable = 0;" > conftest.$ac_ext
5261  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5262  (eval "$ac_compile" 2>conftest.err)
5263  cat conftest.err >&5
5264  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5265  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5266  cat conftest.err >&5
5267  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5268  cat conftest.out >&5
5269  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5270    lt_cv_nm_interface="MS dumpbin"
5271  fi
5272  rm -f conftest*
5273fi
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5275$as_echo "$lt_cv_nm_interface" >&6; }
5276
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5278$as_echo_n "checking whether ln -s works... " >&6; }
5279LN_S=$as_ln_s
5280if test "$LN_S" = "ln -s"; then
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5282$as_echo "yes" >&6; }
5283else
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5285$as_echo "no, using $LN_S" >&6; }
5286fi
5287
5288# find the maximum length of command line arguments
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5290$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5291if ${lt_cv_sys_max_cmd_len+:} false; then :
5292  $as_echo_n "(cached) " >&6
5293else
5294    i=0
5295  teststring="ABCD"
5296
5297  case $build_os in
5298  msdosdjgpp*)
5299    # On DJGPP, this test can blow up pretty badly due to problems in libc
5300    # (any single argument exceeding 2000 bytes causes a buffer overrun
5301    # during glob expansion).  Even if it were fixed, the result of this
5302    # check would be larger than it should be.
5303    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5304    ;;
5305
5306  gnu*)
5307    # Under GNU Hurd, this test is not required because there is
5308    # no limit to the length of command line arguments.
5309    # Libtool will interpret -1 as no limit whatsoever
5310    lt_cv_sys_max_cmd_len=-1;
5311    ;;
5312
5313  cygwin* | mingw* | cegcc*)
5314    # On Win9x/ME, this test blows up -- it succeeds, but takes
5315    # about 5 minutes as the teststring grows exponentially.
5316    # Worse, since 9x/ME are not pre-emptively multitasking,
5317    # you end up with a "frozen" computer, even though with patience
5318    # the test eventually succeeds (with a max line length of 256k).
5319    # Instead, let's just punt: use the minimum linelength reported by
5320    # all of the supported platforms: 8192 (on NT/2K/XP).
5321    lt_cv_sys_max_cmd_len=8192;
5322    ;;
5323
5324  mint*)
5325    # On MiNT this can take a long time and run out of memory.
5326    lt_cv_sys_max_cmd_len=8192;
5327    ;;
5328
5329  amigaos*)
5330    # On AmigaOS with pdksh, this test takes hours, literally.
5331    # So we just punt and use a minimum line length of 8192.
5332    lt_cv_sys_max_cmd_len=8192;
5333    ;;
5334
5335  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5336    # This has been around since 386BSD, at least.  Likely further.
5337    if test -x /sbin/sysctl; then
5338      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5339    elif test -x /usr/sbin/sysctl; then
5340      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5341    else
5342      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5343    fi
5344    # And add a safety zone
5345    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5346    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5347    ;;
5348
5349  interix*)
5350    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5351    lt_cv_sys_max_cmd_len=196608
5352    ;;
5353
5354  osf*)
5355    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5356    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5357    # nice to cause kernel panics so lets avoid the loop below.
5358    # First set a reasonable default.
5359    lt_cv_sys_max_cmd_len=16384
5360    #
5361    if test -x /sbin/sysconfig; then
5362      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5363        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5364      esac
5365    fi
5366    ;;
5367  sco3.2v5*)
5368    lt_cv_sys_max_cmd_len=102400
5369    ;;
5370  sysv5* | sco5v6* | sysv4.2uw2*)
5371    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5372    if test -n "$kargmax"; then
5373      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5374    else
5375      lt_cv_sys_max_cmd_len=32768
5376    fi
5377    ;;
5378  *)
5379    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5380    if test -n "$lt_cv_sys_max_cmd_len"; then
5381      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5382      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5383    else
5384      # Make teststring a little bigger before we do anything with it.
5385      # a 1K string should be a reasonable start.
5386      for i in 1 2 3 4 5 6 7 8 ; do
5387        teststring=$teststring$teststring
5388      done
5389      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5390      # If test is not a shell built-in, we'll probably end up computing a
5391      # maximum length that is only half of the actual maximum length, but
5392      # we can't tell.
5393      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5394	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5395	      test $i != 17 # 1/2 MB should be enough
5396      do
5397        i=`expr $i + 1`
5398        teststring=$teststring$teststring
5399      done
5400      # Only check the string length outside the loop.
5401      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5402      teststring=
5403      # Add a significant safety factor because C++ compilers can tack on
5404      # massive amounts of additional arguments before passing them to the
5405      # linker.  It appears as though 1/2 is a usable value.
5406      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5407    fi
5408    ;;
5409  esac
5410
5411fi
5412
5413if test -n $lt_cv_sys_max_cmd_len ; then
5414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5415$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5416else
5417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5418$as_echo "none" >&6; }
5419fi
5420max_cmd_len=$lt_cv_sys_max_cmd_len
5421
5422
5423
5424
5425
5426
5427: ${CP="cp -f"}
5428: ${MV="mv -f"}
5429: ${RM="rm -f"}
5430
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5432$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5433# Try some XSI features
5434xsi_shell=no
5435( _lt_dummy="a/b/c"
5436  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5437      = c,a/b,, \
5438    && eval 'test $(( 1 + 1 )) -eq 2 \
5439    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5440  && xsi_shell=yes
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5442$as_echo "$xsi_shell" >&6; }
5443
5444
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5446$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5447lt_shell_append=no
5448( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5449    >/dev/null 2>&1 \
5450  && lt_shell_append=yes
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5452$as_echo "$lt_shell_append" >&6; }
5453
5454
5455if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5456  lt_unset=unset
5457else
5458  lt_unset=false
5459fi
5460
5461
5462
5463
5464
5465# test EBCDIC or ASCII
5466case `echo X|tr X '\101'` in
5467 A) # ASCII based system
5468    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5469  lt_SP2NL='tr \040 \012'
5470  lt_NL2SP='tr \015\012 \040\040'
5471  ;;
5472 *) # EBCDIC based system
5473  lt_SP2NL='tr \100 \n'
5474  lt_NL2SP='tr \r\n \100\100'
5475  ;;
5476esac
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5487$as_echo_n "checking for $LD option to reload object files... " >&6; }
5488if ${lt_cv_ld_reload_flag+:} false; then :
5489  $as_echo_n "(cached) " >&6
5490else
5491  lt_cv_ld_reload_flag='-r'
5492fi
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5494$as_echo "$lt_cv_ld_reload_flag" >&6; }
5495reload_flag=$lt_cv_ld_reload_flag
5496case $reload_flag in
5497"" | " "*) ;;
5498*) reload_flag=" $reload_flag" ;;
5499esac
5500reload_cmds='$LD$reload_flag -o $output$reload_objs'
5501case $host_os in
5502  darwin*)
5503    if test "$GCC" = yes; then
5504      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5505    else
5506      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5507    fi
5508    ;;
5509esac
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519if test -n "$ac_tool_prefix"; then
5520  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5521set dummy ${ac_tool_prefix}objdump; ac_word=$2
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523$as_echo_n "checking for $ac_word... " >&6; }
5524if ${ac_cv_prog_OBJDUMP+:} false; then :
5525  $as_echo_n "(cached) " >&6
5526else
5527  if test -n "$OBJDUMP"; then
5528  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5529else
5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535    for ac_exec_ext in '' $ac_executable_extensions; do
5536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539    break 2
5540  fi
5541done
5542  done
5543IFS=$as_save_IFS
5544
5545fi
5546fi
5547OBJDUMP=$ac_cv_prog_OBJDUMP
5548if test -n "$OBJDUMP"; then
5549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5550$as_echo "$OBJDUMP" >&6; }
5551else
5552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553$as_echo "no" >&6; }
5554fi
5555
5556
5557fi
5558if test -z "$ac_cv_prog_OBJDUMP"; then
5559  ac_ct_OBJDUMP=$OBJDUMP
5560  # Extract the first word of "objdump", so it can be a program name with args.
5561set dummy objdump; ac_word=$2
5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563$as_echo_n "checking for $ac_word... " >&6; }
5564if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  if test -n "$ac_ct_OBJDUMP"; then
5568  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5569else
5570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571for as_dir in $PATH
5572do
5573  IFS=$as_save_IFS
5574  test -z "$as_dir" && as_dir=.
5575    for ac_exec_ext in '' $ac_executable_extensions; do
5576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579    break 2
5580  fi
5581done
5582  done
5583IFS=$as_save_IFS
5584
5585fi
5586fi
5587ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5588if test -n "$ac_ct_OBJDUMP"; then
5589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5590$as_echo "$ac_ct_OBJDUMP" >&6; }
5591else
5592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593$as_echo "no" >&6; }
5594fi
5595
5596  if test "x$ac_ct_OBJDUMP" = x; then
5597    OBJDUMP="false"
5598  else
5599    case $cross_compiling:$ac_tool_warned in
5600yes:)
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5603ac_tool_warned=yes ;;
5604esac
5605    OBJDUMP=$ac_ct_OBJDUMP
5606  fi
5607else
5608  OBJDUMP="$ac_cv_prog_OBJDUMP"
5609fi
5610
5611test -z "$OBJDUMP" && OBJDUMP=objdump
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5622$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5623if ${lt_cv_deplibs_check_method+:} false; then :
5624  $as_echo_n "(cached) " >&6
5625else
5626  lt_cv_file_magic_cmd='$MAGIC_CMD'
5627lt_cv_file_magic_test_file=
5628lt_cv_deplibs_check_method='unknown'
5629# Need to set the preceding variable on all platforms that support
5630# interlibrary dependencies.
5631# 'none' -- dependencies not supported.
5632# `unknown' -- same as none, but documents that we really don't know.
5633# 'pass_all' -- all dependencies passed with no checks.
5634# 'test_compile' -- check by making test program.
5635# 'file_magic [[regex]]' -- check by looking for files in library path
5636# which responds to the $file_magic_cmd with a given extended regex.
5637# If you have `file' or equivalent on your system and you're not sure
5638# whether `pass_all' will *always* work, you probably want this one.
5639
5640case $host_os in
5641aix[4-9]*)
5642  lt_cv_deplibs_check_method=pass_all
5643  ;;
5644
5645beos*)
5646  lt_cv_deplibs_check_method=pass_all
5647  ;;
5648
5649bsdi[45]*)
5650  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5651  lt_cv_file_magic_cmd='/usr/bin/file -L'
5652  lt_cv_file_magic_test_file=/shlib/libc.so
5653  ;;
5654
5655cygwin*)
5656  # func_win32_libid is a shell function defined in ltmain.sh
5657  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5658  lt_cv_file_magic_cmd='func_win32_libid'
5659  ;;
5660
5661mingw* | pw32*)
5662  # Base MSYS/MinGW do not provide the 'file' command needed by
5663  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5664  # unless we find 'file', for example because we are cross-compiling.
5665  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5666  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5667    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5668    lt_cv_file_magic_cmd='func_win32_libid'
5669  else
5670    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5671    lt_cv_file_magic_cmd='$OBJDUMP -f'
5672  fi
5673  ;;
5674
5675cegcc*)
5676  # use the weaker test based on 'objdump'. See mingw*.
5677  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5678  lt_cv_file_magic_cmd='$OBJDUMP -f'
5679  ;;
5680
5681darwin* | rhapsody*)
5682  lt_cv_deplibs_check_method=pass_all
5683  ;;
5684
5685freebsd* | dragonfly*)
5686  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5687    case $host_cpu in
5688    i*86 )
5689      # Not sure whether the presence of OpenBSD here was a mistake.
5690      # Let's accept both of them until this is cleared up.
5691      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5692      lt_cv_file_magic_cmd=/usr/bin/file
5693      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5694      ;;
5695    esac
5696  else
5697    lt_cv_deplibs_check_method=pass_all
5698  fi
5699  ;;
5700
5701gnu*)
5702  lt_cv_deplibs_check_method=pass_all
5703  ;;
5704
5705haiku*)
5706  lt_cv_deplibs_check_method=pass_all
5707  ;;
5708
5709hpux10.20* | hpux11*)
5710  lt_cv_file_magic_cmd=/usr/bin/file
5711  case $host_cpu in
5712  ia64*)
5713    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5714    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5715    ;;
5716  hppa*64*)
5717    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]'
5718    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5719    ;;
5720  *)
5721    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5722    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5723    ;;
5724  esac
5725  ;;
5726
5727interix[3-9]*)
5728  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5729  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5730  ;;
5731
5732irix5* | irix6* | nonstopux*)
5733  case $LD in
5734  *-32|*"-32 ") libmagic=32-bit;;
5735  *-n32|*"-n32 ") libmagic=N32;;
5736  *-64|*"-64 ") libmagic=64-bit;;
5737  *) libmagic=never-match;;
5738  esac
5739  lt_cv_deplibs_check_method=pass_all
5740  ;;
5741
5742# This must be Linux ELF.
5743linux* | k*bsd*-gnu | kopensolaris*-gnu)
5744  lt_cv_deplibs_check_method=pass_all
5745  ;;
5746
5747netbsd*)
5748  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5749    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5750  else
5751    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5752  fi
5753  ;;
5754
5755newos6*)
5756  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5757  lt_cv_file_magic_cmd=/usr/bin/file
5758  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5759  ;;
5760
5761*nto* | *qnx*)
5762  lt_cv_deplibs_check_method=pass_all
5763  ;;
5764
5765openbsd*)
5766  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5767    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5768  else
5769    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5770  fi
5771  ;;
5772
5773osf3* | osf4* | osf5*)
5774  lt_cv_deplibs_check_method=pass_all
5775  ;;
5776
5777rdos*)
5778  lt_cv_deplibs_check_method=pass_all
5779  ;;
5780
5781solaris*)
5782  lt_cv_deplibs_check_method=pass_all
5783  ;;
5784
5785sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5786  lt_cv_deplibs_check_method=pass_all
5787  ;;
5788
5789sysv4 | sysv4.3*)
5790  case $host_vendor in
5791  motorola)
5792    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]'
5793    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5794    ;;
5795  ncr)
5796    lt_cv_deplibs_check_method=pass_all
5797    ;;
5798  sequent)
5799    lt_cv_file_magic_cmd='/bin/file'
5800    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5801    ;;
5802  sni)
5803    lt_cv_file_magic_cmd='/bin/file'
5804    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5805    lt_cv_file_magic_test_file=/lib/libc.so
5806    ;;
5807  siemens)
5808    lt_cv_deplibs_check_method=pass_all
5809    ;;
5810  pc)
5811    lt_cv_deplibs_check_method=pass_all
5812    ;;
5813  esac
5814  ;;
5815
5816tpf*)
5817  lt_cv_deplibs_check_method=pass_all
5818  ;;
5819esac
5820
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5823$as_echo "$lt_cv_deplibs_check_method" >&6; }
5824file_magic_cmd=$lt_cv_file_magic_cmd
5825deplibs_check_method=$lt_cv_deplibs_check_method
5826test -z "$deplibs_check_method" && deplibs_check_method=unknown
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839if test -n "$ac_tool_prefix"; then
5840  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5841set dummy ${ac_tool_prefix}ar; ac_word=$2
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
5844if ${ac_cv_prog_AR+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  if test -n "$AR"; then
5848  ac_cv_prog_AR="$AR" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853  IFS=$as_save_IFS
5854  test -z "$as_dir" && as_dir=.
5855    for ac_exec_ext in '' $ac_executable_extensions; do
5856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857    ac_cv_prog_AR="${ac_tool_prefix}ar"
5858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859    break 2
5860  fi
5861done
5862  done
5863IFS=$as_save_IFS
5864
5865fi
5866fi
5867AR=$ac_cv_prog_AR
5868if test -n "$AR"; then
5869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5870$as_echo "$AR" >&6; }
5871else
5872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873$as_echo "no" >&6; }
5874fi
5875
5876
5877fi
5878if test -z "$ac_cv_prog_AR"; then
5879  ac_ct_AR=$AR
5880  # Extract the first word of "ar", so it can be a program name with args.
5881set dummy ar; ac_word=$2
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
5884if ${ac_cv_prog_ac_ct_AR+:} false; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  if test -n "$ac_ct_AR"; then
5888  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893  IFS=$as_save_IFS
5894  test -z "$as_dir" && as_dir=.
5895    for ac_exec_ext in '' $ac_executable_extensions; do
5896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897    ac_cv_prog_ac_ct_AR="ar"
5898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899    break 2
5900  fi
5901done
5902  done
5903IFS=$as_save_IFS
5904
5905fi
5906fi
5907ac_ct_AR=$ac_cv_prog_ac_ct_AR
5908if test -n "$ac_ct_AR"; then
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5910$as_echo "$ac_ct_AR" >&6; }
5911else
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
5915
5916  if test "x$ac_ct_AR" = x; then
5917    AR="false"
5918  else
5919    case $cross_compiling:$ac_tool_warned in
5920yes:)
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5923ac_tool_warned=yes ;;
5924esac
5925    AR=$ac_ct_AR
5926  fi
5927else
5928  AR="$ac_cv_prog_AR"
5929fi
5930
5931test -z "$AR" && AR=ar
5932test -z "$AR_FLAGS" && AR_FLAGS=cru
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944if test -n "$ac_tool_prefix"; then
5945  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5946set dummy ${ac_tool_prefix}strip; ac_word=$2
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948$as_echo_n "checking for $ac_word... " >&6; }
5949if ${ac_cv_prog_STRIP+:} false; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952  if test -n "$STRIP"; then
5953  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958  IFS=$as_save_IFS
5959  test -z "$as_dir" && as_dir=.
5960    for ac_exec_ext in '' $ac_executable_extensions; do
5961  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964    break 2
5965  fi
5966done
5967  done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972STRIP=$ac_cv_prog_STRIP
5973if test -n "$STRIP"; then
5974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5975$as_echo "$STRIP" >&6; }
5976else
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978$as_echo "no" >&6; }
5979fi
5980
5981
5982fi
5983if test -z "$ac_cv_prog_STRIP"; then
5984  ac_ct_STRIP=$STRIP
5985  # Extract the first word of "strip", so it can be a program name with args.
5986set dummy strip; ac_word=$2
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5988$as_echo_n "checking for $ac_word... " >&6; }
5989if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  if test -n "$ac_ct_STRIP"; then
5993  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5994else
5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998  IFS=$as_save_IFS
5999  test -z "$as_dir" && as_dir=.
6000    for ac_exec_ext in '' $ac_executable_extensions; do
6001  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6002    ac_cv_prog_ac_ct_STRIP="strip"
6003    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004    break 2
6005  fi
6006done
6007  done
6008IFS=$as_save_IFS
6009
6010fi
6011fi
6012ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6013if test -n "$ac_ct_STRIP"; then
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6015$as_echo "$ac_ct_STRIP" >&6; }
6016else
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018$as_echo "no" >&6; }
6019fi
6020
6021  if test "x$ac_ct_STRIP" = x; then
6022    STRIP=":"
6023  else
6024    case $cross_compiling:$ac_tool_warned in
6025yes:)
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6028ac_tool_warned=yes ;;
6029esac
6030    STRIP=$ac_ct_STRIP
6031  fi
6032else
6033  STRIP="$ac_cv_prog_STRIP"
6034fi
6035
6036test -z "$STRIP" && STRIP=:
6037
6038
6039
6040
6041
6042
6043if test -n "$ac_tool_prefix"; then
6044  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if ${ac_cv_prog_RANLIB+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  if test -n "$RANLIB"; then
6052  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059    for ac_exec_ext in '' $ac_executable_extensions; do
6060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066  done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071RANLIB=$ac_cv_prog_RANLIB
6072if test -n "$RANLIB"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6074$as_echo "$RANLIB" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081fi
6082if test -z "$ac_cv_prog_RANLIB"; then
6083  ac_ct_RANLIB=$RANLIB
6084  # Extract the first word of "ranlib", so it can be a program name with args.
6085set dummy ranlib; ac_word=$2
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087$as_echo_n "checking for $ac_word... " >&6; }
6088if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  if test -n "$ac_ct_RANLIB"; then
6092  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097  IFS=$as_save_IFS
6098  test -z "$as_dir" && as_dir=.
6099    for ac_exec_ext in '' $ac_executable_extensions; do
6100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6101    ac_cv_prog_ac_ct_RANLIB="ranlib"
6102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6103    break 2
6104  fi
6105done
6106  done
6107IFS=$as_save_IFS
6108
6109fi
6110fi
6111ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6112if test -n "$ac_ct_RANLIB"; then
6113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6114$as_echo "$ac_ct_RANLIB" >&6; }
6115else
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117$as_echo "no" >&6; }
6118fi
6119
6120  if test "x$ac_ct_RANLIB" = x; then
6121    RANLIB=":"
6122  else
6123    case $cross_compiling:$ac_tool_warned in
6124yes:)
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129    RANLIB=$ac_ct_RANLIB
6130  fi
6131else
6132  RANLIB="$ac_cv_prog_RANLIB"
6133fi
6134
6135test -z "$RANLIB" && RANLIB=:
6136
6137
6138
6139
6140
6141
6142# Determine commands to create old-style static archives.
6143old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6144old_postinstall_cmds='chmod 644 $oldlib'
6145old_postuninstall_cmds=
6146
6147if test -n "$RANLIB"; then
6148  case $host_os in
6149  openbsd*)
6150    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6151    ;;
6152  *)
6153    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6154    ;;
6155  esac
6156  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6157fi
6158
6159case $host_os in
6160  darwin*)
6161    lock_old_archive_extraction=yes ;;
6162  *)
6163    lock_old_archive_extraction=no ;;
6164esac
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204# If no C compiler was specified, use CC.
6205LTCC=${LTCC-"$CC"}
6206
6207# If no C compiler flags were specified, use CFLAGS.
6208LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6209
6210# Allow CC to be a program name with arguments.
6211compiler=$CC
6212
6213
6214# Check for command to grab the raw symbol name followed by C symbol from nm.
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6216$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6217if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220
6221# These are sane defaults that work on at least a few old systems.
6222# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6223
6224# Character class describing NM global symbol codes.
6225symcode='[BCDEGRST]'
6226
6227# Regexp to match symbols that can be accessed directly from C.
6228sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6229
6230# Define system-specific variables.
6231case $host_os in
6232aix*)
6233  symcode='[BCDT]'
6234  ;;
6235cygwin* | mingw* | pw32* | cegcc*)
6236  symcode='[ABCDGISTW]'
6237  ;;
6238hpux*)
6239  if test "$host_cpu" = ia64; then
6240    symcode='[ABCDEGRST]'
6241  fi
6242  ;;
6243irix* | nonstopux*)
6244  symcode='[BCDEGRST]'
6245  ;;
6246osf*)
6247  symcode='[BCDEGQRST]'
6248  ;;
6249solaris*)
6250  symcode='[BDRT]'
6251  ;;
6252sco3.2v5*)
6253  symcode='[DT]'
6254  ;;
6255sysv4.2uw2*)
6256  symcode='[DT]'
6257  ;;
6258sysv5* | sco5v6* | unixware* | OpenUNIX*)
6259  symcode='[ABDT]'
6260  ;;
6261sysv4)
6262  symcode='[DFNSTU]'
6263  ;;
6264esac
6265
6266# If we're using GNU nm, then use its standard symbol codes.
6267case `$NM -V 2>&1` in
6268*GNU* | *'with BFD'*)
6269  symcode='[ABCDGIRSTW]' ;;
6270esac
6271
6272# Transform an extracted symbol line into a proper C declaration.
6273# Some systems (esp. on ia64) link data and code symbols differently,
6274# so use this general approach.
6275lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6276
6277# Transform an extracted symbol line into symbol name and symbol address
6278lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6279lt_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'"
6280
6281# Handle CRLF in mingw tool chain
6282opt_cr=
6283case $build_os in
6284mingw*)
6285  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6286  ;;
6287esac
6288
6289# Try without a prefix underscore, then with it.
6290for ac_symprfx in "" "_"; do
6291
6292  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6293  symxfrm="\\1 $ac_symprfx\\2 \\2"
6294
6295  # Write the raw and C identifiers.
6296  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6297    # Fake it for dumpbin and say T for any non-static function
6298    # and D for any global variable.
6299    # Also find C++ and __fastcall symbols from MSVC++,
6300    # which start with @ or ?.
6301    lt_cv_sys_global_symbol_pipe="$AWK '"\
6302"     {last_section=section; section=\$ 3};"\
6303"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6304"     \$ 0!~/External *\|/{next};"\
6305"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6306"     {if(hide[section]) next};"\
6307"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6308"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6309"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6310"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6311"     ' prfx=^$ac_symprfx"
6312  else
6313    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6314  fi
6315
6316  # Check to see that the pipe works correctly.
6317  pipe_works=no
6318
6319  rm -f conftest*
6320  cat > conftest.$ac_ext <<_LT_EOF
6321#ifdef __cplusplus
6322extern "C" {
6323#endif
6324char nm_test_var;
6325void nm_test_func(void);
6326void nm_test_func(void){}
6327#ifdef __cplusplus
6328}
6329#endif
6330int main(){nm_test_var='a';nm_test_func();return(0);}
6331_LT_EOF
6332
6333  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6334  (eval $ac_compile) 2>&5
6335  ac_status=$?
6336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6337  test $ac_status = 0; }; then
6338    # Now try to grab the symbols.
6339    nlist=conftest.nm
6340    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6341  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6342  ac_status=$?
6343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344  test $ac_status = 0; } && test -s "$nlist"; then
6345      # Try sorting and uniquifying the output.
6346      if sort "$nlist" | uniq > "$nlist"T; then
6347	mv -f "$nlist"T "$nlist"
6348      else
6349	rm -f "$nlist"T
6350      fi
6351
6352      # Make sure that we snagged all the symbols we need.
6353      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6354	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6355	  cat <<_LT_EOF > conftest.$ac_ext
6356#ifdef __cplusplus
6357extern "C" {
6358#endif
6359
6360_LT_EOF
6361	  # Now generate the symbol file.
6362	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6363
6364	  cat <<_LT_EOF >> conftest.$ac_ext
6365
6366/* The mapping between symbol names and symbols.  */
6367const struct {
6368  const char *name;
6369  void       *address;
6370}
6371lt__PROGRAM__LTX_preloaded_symbols[] =
6372{
6373  { "@PROGRAM@", (void *) 0 },
6374_LT_EOF
6375	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6376	  cat <<\_LT_EOF >> conftest.$ac_ext
6377  {0, (void *) 0}
6378};
6379
6380/* This works around a problem in FreeBSD linker */
6381#ifdef FREEBSD_WORKAROUND
6382static const void *lt_preloaded_setup() {
6383  return lt__PROGRAM__LTX_preloaded_symbols;
6384}
6385#endif
6386
6387#ifdef __cplusplus
6388}
6389#endif
6390_LT_EOF
6391	  # Now try linking the two files.
6392	  mv conftest.$ac_objext conftstm.$ac_objext
6393	  lt_save_LIBS="$LIBS"
6394	  lt_save_CFLAGS="$CFLAGS"
6395	  LIBS="conftstm.$ac_objext"
6396	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6397	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6398  (eval $ac_link) 2>&5
6399  ac_status=$?
6400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6402	    pipe_works=yes
6403	  fi
6404	  LIBS="$lt_save_LIBS"
6405	  CFLAGS="$lt_save_CFLAGS"
6406	else
6407	  echo "cannot find nm_test_func in $nlist" >&5
6408	fi
6409      else
6410	echo "cannot find nm_test_var in $nlist" >&5
6411      fi
6412    else
6413      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6414    fi
6415  else
6416    echo "$progname: failed program was:" >&5
6417    cat conftest.$ac_ext >&5
6418  fi
6419  rm -rf conftest* conftst*
6420
6421  # Do not use the global_symbol_pipe unless it works.
6422  if test "$pipe_works" = yes; then
6423    break
6424  else
6425    lt_cv_sys_global_symbol_pipe=
6426  fi
6427done
6428
6429fi
6430
6431if test -z "$lt_cv_sys_global_symbol_pipe"; then
6432  lt_cv_sys_global_symbol_to_cdecl=
6433fi
6434if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6436$as_echo "failed" >&6; }
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6439$as_echo "ok" >&6; }
6440fi
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463# Check whether --enable-libtool-lock was given.
6464if test "${enable_libtool_lock+set}" = set; then :
6465  enableval=$enable_libtool_lock;
6466fi
6467
6468test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6469
6470# Some flags need to be propagated to the compiler or linker for good
6471# libtool support.
6472case $host in
6473ia64-*-hpux*)
6474  # Find out which ABI we are using.
6475  echo 'int i;' > conftest.$ac_ext
6476  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6477  (eval $ac_compile) 2>&5
6478  ac_status=$?
6479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480  test $ac_status = 0; }; then
6481    case `/usr/bin/file conftest.$ac_objext` in
6482      *ELF-32*)
6483	HPUX_IA64_MODE="32"
6484	;;
6485      *ELF-64*)
6486	HPUX_IA64_MODE="64"
6487	;;
6488    esac
6489  fi
6490  rm -rf conftest*
6491  ;;
6492*-*-irix6*)
6493  # Find out which ABI we are using.
6494  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6495  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6496  (eval $ac_compile) 2>&5
6497  ac_status=$?
6498  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6499  test $ac_status = 0; }; then
6500    if test "$lt_cv_prog_gnu_ld" = yes; then
6501      case `/usr/bin/file conftest.$ac_objext` in
6502	*32-bit*)
6503	  LD="${LD-ld} -melf32bsmip"
6504	  ;;
6505	*N32*)
6506	  LD="${LD-ld} -melf32bmipn32"
6507	  ;;
6508	*64-bit*)
6509	  LD="${LD-ld} -melf64bmip"
6510	;;
6511      esac
6512    else
6513      case `/usr/bin/file conftest.$ac_objext` in
6514	*32-bit*)
6515	  LD="${LD-ld} -32"
6516	  ;;
6517	*N32*)
6518	  LD="${LD-ld} -n32"
6519	  ;;
6520	*64-bit*)
6521	  LD="${LD-ld} -64"
6522	  ;;
6523      esac
6524    fi
6525  fi
6526  rm -rf conftest*
6527  ;;
6528
6529x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6530s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6531  # Find out which ABI we are using.
6532  echo 'int i;' > conftest.$ac_ext
6533  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6534  (eval $ac_compile) 2>&5
6535  ac_status=$?
6536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537  test $ac_status = 0; }; then
6538    case `/usr/bin/file conftest.o` in
6539      *32-bit*)
6540	case $host in
6541	  x86_64-*kfreebsd*-gnu)
6542	    LD="${LD-ld} -m elf_i386_fbsd"
6543	    ;;
6544	  x86_64-*linux*)
6545	    case `/usr/bin/file conftest.o` in
6546	      *x86-64*)
6547		LD="${LD-ld} -m elf32_x86_64"
6548		;;
6549	      *)
6550		LD="${LD-ld} -m elf_i386"
6551		;;
6552	    esac
6553	    ;;
6554	  powerpc64le-*linux*)
6555	    LD="${LD-ld} -m elf32lppclinux"
6556	    ;;
6557	  powerpc64-*linux*)
6558	    LD="${LD-ld} -m elf32ppclinux"
6559	    ;;
6560	  s390x-*linux*)
6561	    LD="${LD-ld} -m elf_s390"
6562	    ;;
6563	  sparc64-*linux*)
6564	    LD="${LD-ld} -m elf32_sparc"
6565	    ;;
6566	esac
6567	;;
6568      *64-bit*)
6569	case $host in
6570	  x86_64-*kfreebsd*-gnu)
6571	    LD="${LD-ld} -m elf_x86_64_fbsd"
6572	    ;;
6573	  x86_64-*linux*)
6574	    LD="${LD-ld} -m elf_x86_64"
6575	    ;;
6576	  powerpcle-*linux*)
6577	    LD="${LD-ld} -m elf64lppc"
6578	    ;;
6579	  powerpc-*linux*)
6580	    LD="${LD-ld} -m elf64ppc"
6581	    ;;
6582	  s390*-*linux*|s390*-*tpf*)
6583	    LD="${LD-ld} -m elf64_s390"
6584	    ;;
6585	  sparc*-*linux*)
6586	    LD="${LD-ld} -m elf64_sparc"
6587	    ;;
6588	esac
6589	;;
6590    esac
6591  fi
6592  rm -rf conftest*
6593  ;;
6594
6595*-*-sco3.2v5*)
6596  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6597  SAVE_CFLAGS="$CFLAGS"
6598  CFLAGS="$CFLAGS -belf"
6599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6600$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6601if ${lt_cv_cc_needs_belf+:} false; then :
6602  $as_echo_n "(cached) " >&6
6603else
6604  ac_ext=c
6605ac_cpp='$CPP $CPPFLAGS'
6606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609
6610     if test x$gcc_no_link = xyes; then
6611  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6612fi
6613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h.  */
6615
6616int
6617main ()
6618{
6619
6620  ;
6621  return 0;
6622}
6623_ACEOF
6624if ac_fn_c_try_link "$LINENO"; then :
6625  lt_cv_cc_needs_belf=yes
6626else
6627  lt_cv_cc_needs_belf=no
6628fi
6629rm -f core conftest.err conftest.$ac_objext \
6630    conftest$ac_exeext conftest.$ac_ext
6631     ac_ext=c
6632ac_cpp='$CPP $CPPFLAGS'
6633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635ac_compiler_gnu=$ac_cv_c_compiler_gnu
6636
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6639$as_echo "$lt_cv_cc_needs_belf" >&6; }
6640  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6641    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6642    CFLAGS="$SAVE_CFLAGS"
6643  fi
6644  ;;
6645sparc*-*solaris*)
6646  # Find out which ABI we are using.
6647  echo 'int i;' > conftest.$ac_ext
6648  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6649  (eval $ac_compile) 2>&5
6650  ac_status=$?
6651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652  test $ac_status = 0; }; then
6653    case `/usr/bin/file conftest.o` in
6654    *64-bit*)
6655      case $lt_cv_prog_gnu_ld in
6656      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6657      *)
6658	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6659	  LD="${LD-ld} -64"
6660	fi
6661	;;
6662      esac
6663      ;;
6664    esac
6665  fi
6666  rm -rf conftest*
6667  ;;
6668esac
6669
6670need_locks="$enable_libtool_lock"
6671
6672
6673  case $host_os in
6674    rhapsody* | darwin*)
6675    if test -n "$ac_tool_prefix"; then
6676  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6677set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679$as_echo_n "checking for $ac_word... " >&6; }
6680if ${ac_cv_prog_DSYMUTIL+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  if test -n "$DSYMUTIL"; then
6684  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689  IFS=$as_save_IFS
6690  test -z "$as_dir" && as_dir=.
6691    for ac_exec_ext in '' $ac_executable_extensions; do
6692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695    break 2
6696  fi
6697done
6698  done
6699IFS=$as_save_IFS
6700
6701fi
6702fi
6703DSYMUTIL=$ac_cv_prog_DSYMUTIL
6704if test -n "$DSYMUTIL"; then
6705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6706$as_echo "$DSYMUTIL" >&6; }
6707else
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709$as_echo "no" >&6; }
6710fi
6711
6712
6713fi
6714if test -z "$ac_cv_prog_DSYMUTIL"; then
6715  ac_ct_DSYMUTIL=$DSYMUTIL
6716  # Extract the first word of "dsymutil", so it can be a program name with args.
6717set dummy dsymutil; ac_word=$2
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719$as_echo_n "checking for $ac_word... " >&6; }
6720if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  if test -n "$ac_ct_DSYMUTIL"; then
6724  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729  IFS=$as_save_IFS
6730  test -z "$as_dir" && as_dir=.
6731    for ac_exec_ext in '' $ac_executable_extensions; do
6732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735    break 2
6736  fi
6737done
6738  done
6739IFS=$as_save_IFS
6740
6741fi
6742fi
6743ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6744if test -n "$ac_ct_DSYMUTIL"; then
6745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6746$as_echo "$ac_ct_DSYMUTIL" >&6; }
6747else
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749$as_echo "no" >&6; }
6750fi
6751
6752  if test "x$ac_ct_DSYMUTIL" = x; then
6753    DSYMUTIL=":"
6754  else
6755    case $cross_compiling:$ac_tool_warned in
6756yes:)
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759ac_tool_warned=yes ;;
6760esac
6761    DSYMUTIL=$ac_ct_DSYMUTIL
6762  fi
6763else
6764  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6765fi
6766
6767    if test -n "$ac_tool_prefix"; then
6768  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6769set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771$as_echo_n "checking for $ac_word... " >&6; }
6772if ${ac_cv_prog_NMEDIT+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  if test -n "$NMEDIT"; then
6776  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6777else
6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779for as_dir in $PATH
6780do
6781  IFS=$as_save_IFS
6782  test -z "$as_dir" && as_dir=.
6783    for ac_exec_ext in '' $ac_executable_extensions; do
6784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787    break 2
6788  fi
6789done
6790  done
6791IFS=$as_save_IFS
6792
6793fi
6794fi
6795NMEDIT=$ac_cv_prog_NMEDIT
6796if test -n "$NMEDIT"; then
6797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6798$as_echo "$NMEDIT" >&6; }
6799else
6800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801$as_echo "no" >&6; }
6802fi
6803
6804
6805fi
6806if test -z "$ac_cv_prog_NMEDIT"; then
6807  ac_ct_NMEDIT=$NMEDIT
6808  # Extract the first word of "nmedit", so it can be a program name with args.
6809set dummy nmedit; ac_word=$2
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811$as_echo_n "checking for $ac_word... " >&6; }
6812if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  if test -n "$ac_ct_NMEDIT"; then
6816  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821  IFS=$as_save_IFS
6822  test -z "$as_dir" && as_dir=.
6823    for ac_exec_ext in '' $ac_executable_extensions; do
6824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827    break 2
6828  fi
6829done
6830  done
6831IFS=$as_save_IFS
6832
6833fi
6834fi
6835ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6836if test -n "$ac_ct_NMEDIT"; then
6837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6838$as_echo "$ac_ct_NMEDIT" >&6; }
6839else
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843
6844  if test "x$ac_ct_NMEDIT" = x; then
6845    NMEDIT=":"
6846  else
6847    case $cross_compiling:$ac_tool_warned in
6848yes:)
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851ac_tool_warned=yes ;;
6852esac
6853    NMEDIT=$ac_ct_NMEDIT
6854  fi
6855else
6856  NMEDIT="$ac_cv_prog_NMEDIT"
6857fi
6858
6859    if test -n "$ac_tool_prefix"; then
6860  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6861set dummy ${ac_tool_prefix}lipo; ac_word=$2
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863$as_echo_n "checking for $ac_word... " >&6; }
6864if ${ac_cv_prog_LIPO+:} false; then :
6865  $as_echo_n "(cached) " >&6
6866else
6867  if test -n "$LIPO"; then
6868  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6869else
6870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871for as_dir in $PATH
6872do
6873  IFS=$as_save_IFS
6874  test -z "$as_dir" && as_dir=.
6875    for ac_exec_ext in '' $ac_executable_extensions; do
6876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879    break 2
6880  fi
6881done
6882  done
6883IFS=$as_save_IFS
6884
6885fi
6886fi
6887LIPO=$ac_cv_prog_LIPO
6888if test -n "$LIPO"; then
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6890$as_echo "$LIPO" >&6; }
6891else
6892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893$as_echo "no" >&6; }
6894fi
6895
6896
6897fi
6898if test -z "$ac_cv_prog_LIPO"; then
6899  ac_ct_LIPO=$LIPO
6900  # Extract the first word of "lipo", so it can be a program name with args.
6901set dummy lipo; ac_word=$2
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907  if test -n "$ac_ct_LIPO"; then
6908  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913  IFS=$as_save_IFS
6914  test -z "$as_dir" && as_dir=.
6915    for ac_exec_ext in '' $ac_executable_extensions; do
6916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917    ac_cv_prog_ac_ct_LIPO="lipo"
6918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919    break 2
6920  fi
6921done
6922  done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6928if test -n "$ac_ct_LIPO"; then
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6930$as_echo "$ac_ct_LIPO" >&6; }
6931else
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936  if test "x$ac_ct_LIPO" = x; then
6937    LIPO=":"
6938  else
6939    case $cross_compiling:$ac_tool_warned in
6940yes:)
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943ac_tool_warned=yes ;;
6944esac
6945    LIPO=$ac_ct_LIPO
6946  fi
6947else
6948  LIPO="$ac_cv_prog_LIPO"
6949fi
6950
6951    if test -n "$ac_tool_prefix"; then
6952  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6953set dummy ${ac_tool_prefix}otool; ac_word=$2
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955$as_echo_n "checking for $ac_word... " >&6; }
6956if ${ac_cv_prog_OTOOL+:} false; then :
6957  $as_echo_n "(cached) " >&6
6958else
6959  if test -n "$OTOOL"; then
6960  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965  IFS=$as_save_IFS
6966  test -z "$as_dir" && as_dir=.
6967    for ac_exec_ext in '' $ac_executable_extensions; do
6968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971    break 2
6972  fi
6973done
6974  done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979OTOOL=$ac_cv_prog_OTOOL
6980if test -n "$OTOOL"; then
6981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6982$as_echo "$OTOOL" >&6; }
6983else
6984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985$as_echo "no" >&6; }
6986fi
6987
6988
6989fi
6990if test -z "$ac_cv_prog_OTOOL"; then
6991  ac_ct_OTOOL=$OTOOL
6992  # Extract the first word of "otool", so it can be a program name with args.
6993set dummy otool; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  if test -n "$ac_ct_OTOOL"; then
7000  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007    for ac_exec_ext in '' $ac_executable_extensions; do
7008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009    ac_cv_prog_ac_ct_OTOOL="otool"
7010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014  done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7020if test -n "$ac_ct_OTOOL"; then
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7022$as_echo "$ac_ct_OTOOL" >&6; }
7023else
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028  if test "x$ac_ct_OTOOL" = x; then
7029    OTOOL=":"
7030  else
7031    case $cross_compiling:$ac_tool_warned in
7032yes:)
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035ac_tool_warned=yes ;;
7036esac
7037    OTOOL=$ac_ct_OTOOL
7038  fi
7039else
7040  OTOOL="$ac_cv_prog_OTOOL"
7041fi
7042
7043    if test -n "$ac_tool_prefix"; then
7044  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7045set dummy ${ac_tool_prefix}otool64; ac_word=$2
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047$as_echo_n "checking for $ac_word... " >&6; }
7048if ${ac_cv_prog_OTOOL64+:} false; then :
7049  $as_echo_n "(cached) " >&6
7050else
7051  if test -n "$OTOOL64"; then
7052  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057  IFS=$as_save_IFS
7058  test -z "$as_dir" && as_dir=.
7059    for ac_exec_ext in '' $ac_executable_extensions; do
7060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7061    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063    break 2
7064  fi
7065done
7066  done
7067IFS=$as_save_IFS
7068
7069fi
7070fi
7071OTOOL64=$ac_cv_prog_OTOOL64
7072if test -n "$OTOOL64"; then
7073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7074$as_echo "$OTOOL64" >&6; }
7075else
7076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077$as_echo "no" >&6; }
7078fi
7079
7080
7081fi
7082if test -z "$ac_cv_prog_OTOOL64"; then
7083  ac_ct_OTOOL64=$OTOOL64
7084  # Extract the first word of "otool64", so it can be a program name with args.
7085set dummy otool64; ac_word=$2
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087$as_echo_n "checking for $ac_word... " >&6; }
7088if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7089  $as_echo_n "(cached) " >&6
7090else
7091  if test -n "$ac_ct_OTOOL64"; then
7092  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097  IFS=$as_save_IFS
7098  test -z "$as_dir" && as_dir=.
7099    for ac_exec_ext in '' $ac_executable_extensions; do
7100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101    ac_cv_prog_ac_ct_OTOOL64="otool64"
7102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103    break 2
7104  fi
7105done
7106  done
7107IFS=$as_save_IFS
7108
7109fi
7110fi
7111ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7112if test -n "$ac_ct_OTOOL64"; then
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7114$as_echo "$ac_ct_OTOOL64" >&6; }
7115else
7116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117$as_echo "no" >&6; }
7118fi
7119
7120  if test "x$ac_ct_OTOOL64" = x; then
7121    OTOOL64=":"
7122  else
7123    case $cross_compiling:$ac_tool_warned in
7124yes:)
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7127ac_tool_warned=yes ;;
7128esac
7129    OTOOL64=$ac_ct_OTOOL64
7130  fi
7131else
7132  OTOOL64="$ac_cv_prog_OTOOL64"
7133fi
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7162$as_echo_n "checking for -single_module linker flag... " >&6; }
7163if ${lt_cv_apple_cc_single_mod+:} false; then :
7164  $as_echo_n "(cached) " >&6
7165else
7166  lt_cv_apple_cc_single_mod=no
7167      if test -z "${LT_MULTI_MODULE}"; then
7168	# By default we will add the -single_module flag. You can override
7169	# by either setting the environment variable LT_MULTI_MODULE
7170	# non-empty at configure time, or by adding -multi_module to the
7171	# link flags.
7172	rm -rf libconftest.dylib*
7173	echo "int foo(void){return 1;}" > conftest.c
7174	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7175-dynamiclib -Wl,-single_module conftest.c" >&5
7176	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7177	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7178        _lt_result=$?
7179	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7180	  lt_cv_apple_cc_single_mod=yes
7181	else
7182	  cat conftest.err >&5
7183	fi
7184	rm -rf libconftest.dylib*
7185	rm -f conftest.*
7186      fi
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7189$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7191$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7192if ${lt_cv_ld_exported_symbols_list+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  lt_cv_ld_exported_symbols_list=no
7196      save_LDFLAGS=$LDFLAGS
7197      echo "_main" > conftest.sym
7198      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7199      if test x$gcc_no_link = xyes; then
7200  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7201fi
7202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204
7205int
7206main ()
7207{
7208
7209  ;
7210  return 0;
7211}
7212_ACEOF
7213if ac_fn_c_try_link "$LINENO"; then :
7214  lt_cv_ld_exported_symbols_list=yes
7215else
7216  lt_cv_ld_exported_symbols_list=no
7217fi
7218rm -f core conftest.err conftest.$ac_objext \
7219    conftest$ac_exeext conftest.$ac_ext
7220	LDFLAGS="$save_LDFLAGS"
7221
7222fi
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7224$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7225    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7226$as_echo_n "checking for -force_load linker flag... " >&6; }
7227if ${lt_cv_ld_force_load+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  lt_cv_ld_force_load=no
7231      cat > conftest.c << _LT_EOF
7232int forced_loaded() { return 2;}
7233_LT_EOF
7234      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7235      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7236      echo "$AR cru libconftest.a conftest.o" >&5
7237      $AR cru libconftest.a conftest.o 2>&5
7238      cat > conftest.c << _LT_EOF
7239int main() { return 0;}
7240_LT_EOF
7241      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7242      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7243      _lt_result=$?
7244      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7245	lt_cv_ld_force_load=yes
7246      else
7247	cat conftest.err >&5
7248      fi
7249        rm -f conftest.err libconftest.a conftest conftest.c
7250        rm -rf conftest.dSYM
7251
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7254$as_echo "$lt_cv_ld_force_load" >&6; }
7255    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7256    # build without first building modern cctools / linker.
7257    case $host_cpu-$host_os in
7258    *-rhapsody* | *-darwin1.[012])
7259      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7260    *-darwin1.*)
7261      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7262    *-darwin*)
7263      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7264      # deployment target is forced to an earlier version.
7265      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7266	UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7267	  ;;
7268	10.[012][,.]*)
7269	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7270	  ;;
7271	*)
7272	  ;;
7273     esac
7274    ;;
7275  esac
7276    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7277      _lt_dar_single_mod='$single_module'
7278    fi
7279    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7280      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7281    else
7282      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7283    fi
7284    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7285      _lt_dsymutil='~$DSYMUTIL $lib || :'
7286    else
7287      _lt_dsymutil=
7288    fi
7289    ;;
7290  esac
7291
7292for ac_header in dlfcn.h
7293do :
7294  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7295"
7296if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7297  cat >>confdefs.h <<_ACEOF
7298#define HAVE_DLFCN_H 1
7299_ACEOF
7300
7301fi
7302
7303done
7304
7305
7306
7307
7308
7309# Set options
7310
7311
7312
7313        enable_dlopen=no
7314
7315
7316  enable_win32_dll=no
7317
7318
7319            # Check whether --enable-shared was given.
7320if test "${enable_shared+set}" = set; then :
7321  enableval=$enable_shared; p=${PACKAGE-default}
7322    case $enableval in
7323    yes) enable_shared=yes ;;
7324    no) enable_shared=no ;;
7325    *)
7326      enable_shared=no
7327      # Look at the argument we got.  We use all the common list separators.
7328      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7329      for pkg in $enableval; do
7330	IFS="$lt_save_ifs"
7331	if test "X$pkg" = "X$p"; then
7332	  enable_shared=yes
7333	fi
7334      done
7335      IFS="$lt_save_ifs"
7336      ;;
7337    esac
7338else
7339  enable_shared=yes
7340fi
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350  # Check whether --enable-static was given.
7351if test "${enable_static+set}" = set; then :
7352  enableval=$enable_static; p=${PACKAGE-default}
7353    case $enableval in
7354    yes) enable_static=yes ;;
7355    no) enable_static=no ;;
7356    *)
7357     enable_static=no
7358      # Look at the argument we got.  We use all the common list separators.
7359      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7360      for pkg in $enableval; do
7361	IFS="$lt_save_ifs"
7362	if test "X$pkg" = "X$p"; then
7363	  enable_static=yes
7364	fi
7365      done
7366      IFS="$lt_save_ifs"
7367      ;;
7368    esac
7369else
7370  enable_static=yes
7371fi
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382# Check whether --with-pic was given.
7383if test "${with_pic+set}" = set; then :
7384  withval=$with_pic; pic_mode="$withval"
7385else
7386  pic_mode=default
7387fi
7388
7389
7390test -z "$pic_mode" && pic_mode=default
7391
7392
7393
7394
7395
7396
7397
7398  # Check whether --enable-fast-install was given.
7399if test "${enable_fast_install+set}" = set; then :
7400  enableval=$enable_fast_install; p=${PACKAGE-default}
7401    case $enableval in
7402    yes) enable_fast_install=yes ;;
7403    no) enable_fast_install=no ;;
7404    *)
7405      enable_fast_install=no
7406      # Look at the argument we got.  We use all the common list separators.
7407      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7408      for pkg in $enableval; do
7409	IFS="$lt_save_ifs"
7410	if test "X$pkg" = "X$p"; then
7411	  enable_fast_install=yes
7412	fi
7413      done
7414      IFS="$lt_save_ifs"
7415      ;;
7416    esac
7417else
7418  enable_fast_install=yes
7419fi
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431# This can be used to rebuild libtool when needed
7432LIBTOOL_DEPS="$ltmain"
7433
7434# Always use our own libtool.
7435LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462test -z "$LN_S" && LN_S="ln -s"
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477if test -n "${ZSH_VERSION+set}" ; then
7478   setopt NO_GLOB_SUBST
7479fi
7480
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7482$as_echo_n "checking for objdir... " >&6; }
7483if ${lt_cv_objdir+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  rm -f .libs 2>/dev/null
7487mkdir .libs 2>/dev/null
7488if test -d .libs; then
7489  lt_cv_objdir=.libs
7490else
7491  # MS-DOS does not allow filenames that begin with a dot.
7492  lt_cv_objdir=_libs
7493fi
7494rmdir .libs 2>/dev/null
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7497$as_echo "$lt_cv_objdir" >&6; }
7498objdir=$lt_cv_objdir
7499
7500
7501
7502
7503
7504cat >>confdefs.h <<_ACEOF
7505#define LT_OBJDIR "$lt_cv_objdir/"
7506_ACEOF
7507
7508
7509
7510
7511case $host_os in
7512aix3*)
7513  # AIX sometimes has problems with the GCC collect2 program.  For some
7514  # reason, if we set the COLLECT_NAMES environment variable, the problems
7515  # vanish in a puff of smoke.
7516  if test "X${COLLECT_NAMES+set}" != Xset; then
7517    COLLECT_NAMES=
7518    export COLLECT_NAMES
7519  fi
7520  ;;
7521esac
7522
7523# Global variables:
7524ofile=libtool
7525can_build_shared=yes
7526
7527# All known linkers require a `.a' archive for static linking (except MSVC,
7528# which needs '.lib').
7529libext=a
7530
7531with_gnu_ld="$lt_cv_prog_gnu_ld"
7532
7533old_CC="$CC"
7534old_CFLAGS="$CFLAGS"
7535
7536# Set sane defaults for various variables
7537test -z "$CC" && CC=cc
7538test -z "$LTCC" && LTCC=$CC
7539test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7540test -z "$LD" && LD=ld
7541test -z "$ac_objext" && ac_objext=o
7542
7543for cc_temp in $compiler""; do
7544  case $cc_temp in
7545    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7546    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7547    \-*) ;;
7548    *) break;;
7549  esac
7550done
7551cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7552
7553
7554# Only perform the check for file, if the check method requires it
7555test -z "$MAGIC_CMD" && MAGIC_CMD=file
7556case $deplibs_check_method in
7557file_magic*)
7558  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7560$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7561if ${lt_cv_path_MAGIC_CMD+:} false; then :
7562  $as_echo_n "(cached) " >&6
7563else
7564  case $MAGIC_CMD in
7565[\\/*] |  ?:[\\/]*)
7566  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7567  ;;
7568*)
7569  lt_save_MAGIC_CMD="$MAGIC_CMD"
7570  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7571  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7572  for ac_dir in $ac_dummy; do
7573    IFS="$lt_save_ifs"
7574    test -z "$ac_dir" && ac_dir=.
7575    if test -f $ac_dir/${ac_tool_prefix}file; then
7576      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7577      if test -n "$file_magic_test_file"; then
7578	case $deplibs_check_method in
7579	"file_magic "*)
7580	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7581	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7582	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7583	    $EGREP "$file_magic_regex" > /dev/null; then
7584	    :
7585	  else
7586	    cat <<_LT_EOF 1>&2
7587
7588*** Warning: the command libtool uses to detect shared libraries,
7589*** $file_magic_cmd, produces output that libtool cannot recognize.
7590*** The result is that libtool may fail to recognize shared libraries
7591*** as such.  This will affect the creation of libtool libraries that
7592*** depend on shared libraries, but programs linked with such libtool
7593*** libraries will work regardless of this problem.  Nevertheless, you
7594*** may want to report the problem to your system manager and/or to
7595*** bug-libtool@gnu.org
7596
7597_LT_EOF
7598	  fi ;;
7599	esac
7600      fi
7601      break
7602    fi
7603  done
7604  IFS="$lt_save_ifs"
7605  MAGIC_CMD="$lt_save_MAGIC_CMD"
7606  ;;
7607esac
7608fi
7609
7610MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7611if test -n "$MAGIC_CMD"; then
7612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7613$as_echo "$MAGIC_CMD" >&6; }
7614else
7615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
7617fi
7618
7619
7620
7621
7622
7623if test -z "$lt_cv_path_MAGIC_CMD"; then
7624  if test -n "$ac_tool_prefix"; then
7625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7626$as_echo_n "checking for file... " >&6; }
7627if ${lt_cv_path_MAGIC_CMD+:} false; then :
7628  $as_echo_n "(cached) " >&6
7629else
7630  case $MAGIC_CMD in
7631[\\/*] |  ?:[\\/]*)
7632  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7633  ;;
7634*)
7635  lt_save_MAGIC_CMD="$MAGIC_CMD"
7636  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7637  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7638  for ac_dir in $ac_dummy; do
7639    IFS="$lt_save_ifs"
7640    test -z "$ac_dir" && ac_dir=.
7641    if test -f $ac_dir/file; then
7642      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7643      if test -n "$file_magic_test_file"; then
7644	case $deplibs_check_method in
7645	"file_magic "*)
7646	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7647	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7648	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7649	    $EGREP "$file_magic_regex" > /dev/null; then
7650	    :
7651	  else
7652	    cat <<_LT_EOF 1>&2
7653
7654*** Warning: the command libtool uses to detect shared libraries,
7655*** $file_magic_cmd, produces output that libtool cannot recognize.
7656*** The result is that libtool may fail to recognize shared libraries
7657*** as such.  This will affect the creation of libtool libraries that
7658*** depend on shared libraries, but programs linked with such libtool
7659*** libraries will work regardless of this problem.  Nevertheless, you
7660*** may want to report the problem to your system manager and/or to
7661*** bug-libtool@gnu.org
7662
7663_LT_EOF
7664	  fi ;;
7665	esac
7666      fi
7667      break
7668    fi
7669  done
7670  IFS="$lt_save_ifs"
7671  MAGIC_CMD="$lt_save_MAGIC_CMD"
7672  ;;
7673esac
7674fi
7675
7676MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7677if test -n "$MAGIC_CMD"; then
7678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7679$as_echo "$MAGIC_CMD" >&6; }
7680else
7681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
7683fi
7684
7685
7686  else
7687    MAGIC_CMD=:
7688  fi
7689fi
7690
7691  fi
7692  ;;
7693esac
7694
7695# Use C for the default configuration in the libtool script
7696
7697lt_save_CC="$CC"
7698ac_ext=c
7699ac_cpp='$CPP $CPPFLAGS'
7700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702ac_compiler_gnu=$ac_cv_c_compiler_gnu
7703
7704
7705# Source file extension for C test sources.
7706ac_ext=c
7707
7708# Object file extension for compiled C test sources.
7709objext=o
7710objext=$objext
7711
7712# Code to be used in simple compile tests
7713lt_simple_compile_test_code="int some_variable = 0;"
7714
7715# Code to be used in simple link tests
7716lt_simple_link_test_code='int main(){return(0);}'
7717
7718
7719
7720
7721
7722
7723
7724# If no C compiler was specified, use CC.
7725LTCC=${LTCC-"$CC"}
7726
7727# If no C compiler flags were specified, use CFLAGS.
7728LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7729
7730# Allow CC to be a program name with arguments.
7731compiler=$CC
7732
7733# Save the default compiler, since it gets overwritten when the other
7734# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7735compiler_DEFAULT=$CC
7736
7737# save warnings/boilerplate of simple test code
7738ac_outfile=conftest.$ac_objext
7739echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7740eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7741_lt_compiler_boilerplate=`cat conftest.err`
7742$RM conftest*
7743
7744ac_outfile=conftest.$ac_objext
7745echo "$lt_simple_link_test_code" >conftest.$ac_ext
7746eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7747_lt_linker_boilerplate=`cat conftest.err`
7748$RM -r conftest*
7749
7750
7751## CAVEAT EMPTOR:
7752## There is no encapsulation within the following macros, do not change
7753## the running order or otherwise move them around unless you know exactly
7754## what you are doing...
7755if test -n "$compiler"; then
7756
7757lt_prog_compiler_no_builtin_flag=
7758
7759if test "$GCC" = yes; then
7760  case $cc_basename in
7761  nvcc*)
7762    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7763  *)
7764    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7765  esac
7766
7767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7768$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7769if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7770  $as_echo_n "(cached) " >&6
7771else
7772  lt_cv_prog_compiler_rtti_exceptions=no
7773   ac_outfile=conftest.$ac_objext
7774   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7775   lt_compiler_flag="-fno-rtti -fno-exceptions"
7776   # Insert the option either (1) after the last *FLAGS variable, or
7777   # (2) before a word containing "conftest.", or (3) at the end.
7778   # Note that $ac_compile itself does not contain backslashes and begins
7779   # with a dollar sign (not a hyphen), so the echo should work correctly.
7780   # The option is referenced via a variable to avoid confusing sed.
7781   lt_compile=`echo "$ac_compile" | $SED \
7782   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7783   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7784   -e 's:$: $lt_compiler_flag:'`
7785   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7786   (eval "$lt_compile" 2>conftest.err)
7787   ac_status=$?
7788   cat conftest.err >&5
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   if (exit $ac_status) && test -s "$ac_outfile"; then
7791     # The compiler can only warn and ignore the option if not recognized
7792     # So say no if there are warnings other than the usual output.
7793     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7794     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7795     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7796       lt_cv_prog_compiler_rtti_exceptions=yes
7797     fi
7798   fi
7799   $RM conftest*
7800
7801fi
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7803$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7804
7805if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7806    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7807else
7808    :
7809fi
7810
7811fi
7812
7813
7814
7815
7816
7817
7818  lt_prog_compiler_wl=
7819lt_prog_compiler_pic=
7820lt_prog_compiler_static=
7821
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7823$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7824
7825  if test "$GCC" = yes; then
7826    lt_prog_compiler_wl='-Wl,'
7827    lt_prog_compiler_static='-static'
7828
7829    case $host_os in
7830      aix*)
7831      # All AIX code is PIC.
7832      if test "$host_cpu" = ia64; then
7833	# AIX 5 now supports IA64 processor
7834	lt_prog_compiler_static='-Bstatic'
7835      fi
7836      lt_prog_compiler_pic='-fPIC'
7837      ;;
7838
7839    amigaos*)
7840      case $host_cpu in
7841      powerpc)
7842            # see comment about AmigaOS4 .so support
7843            lt_prog_compiler_pic='-fPIC'
7844        ;;
7845      m68k)
7846            # FIXME: we need at least 68020 code to build shared libraries, but
7847            # adding the `-m68020' flag to GCC prevents building anything better,
7848            # like `-m68040'.
7849            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7850        ;;
7851      esac
7852      ;;
7853
7854    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7855      # PIC is the default for these OSes.
7856      ;;
7857
7858    mingw* | cygwin* | pw32* | os2* | cegcc*)
7859      # This hack is so that the source file can tell whether it is being
7860      # built for inclusion in a dll (and should export symbols for example).
7861      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7862      # (--disable-auto-import) libraries
7863      lt_prog_compiler_pic='-DDLL_EXPORT'
7864      ;;
7865
7866    darwin* | rhapsody*)
7867      # PIC is the default on this platform
7868      # Common symbols not allowed in MH_DYLIB files
7869      lt_prog_compiler_pic='-fno-common'
7870      ;;
7871
7872    haiku*)
7873      # PIC is the default for Haiku.
7874      # The "-static" flag exists, but is broken.
7875      lt_prog_compiler_static=
7876      ;;
7877
7878    hpux*)
7879      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7880      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7881      # sets the default TLS model and affects inlining.
7882      case $host_cpu in
7883      hppa*64*)
7884	# +Z the default
7885	;;
7886      *)
7887	lt_prog_compiler_pic='-fPIC'
7888	;;
7889      esac
7890      ;;
7891
7892    interix[3-9]*)
7893      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7894      # Instead, we relocate shared libraries at runtime.
7895      ;;
7896
7897    msdosdjgpp*)
7898      # Just because we use GCC doesn't mean we suddenly get shared libraries
7899      # on systems that don't support them.
7900      lt_prog_compiler_can_build_shared=no
7901      enable_shared=no
7902      ;;
7903
7904    *nto* | *qnx*)
7905      # QNX uses GNU C++, but need to define -shared option too, otherwise
7906      # it will coredump.
7907      lt_prog_compiler_pic='-fPIC -shared'
7908      ;;
7909
7910    sysv4*MP*)
7911      if test -d /usr/nec; then
7912	lt_prog_compiler_pic=-Kconform_pic
7913      fi
7914      ;;
7915
7916    *)
7917      lt_prog_compiler_pic='-fPIC'
7918      ;;
7919    esac
7920
7921    case $cc_basename in
7922    nvcc*) # Cuda Compiler Driver 2.2
7923      lt_prog_compiler_wl='-Xlinker '
7924      lt_prog_compiler_pic='-Xcompiler -fPIC'
7925      ;;
7926    esac
7927  else
7928    # PORTME Check for flag to pass linker flags through the system compiler.
7929    case $host_os in
7930    aix*)
7931      lt_prog_compiler_wl='-Wl,'
7932      if test "$host_cpu" = ia64; then
7933	# AIX 5 now supports IA64 processor
7934	lt_prog_compiler_static='-Bstatic'
7935      else
7936	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7937      fi
7938      ;;
7939
7940    mingw* | cygwin* | pw32* | os2* | cegcc*)
7941      # This hack is so that the source file can tell whether it is being
7942      # built for inclusion in a dll (and should export symbols for example).
7943      lt_prog_compiler_pic='-DDLL_EXPORT'
7944      ;;
7945
7946    hpux9* | hpux10* | hpux11*)
7947      lt_prog_compiler_wl='-Wl,'
7948      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7949      # not for PA HP-UX.
7950      case $host_cpu in
7951      hppa*64*|ia64*)
7952	# +Z the default
7953	;;
7954      *)
7955	lt_prog_compiler_pic='+Z'
7956	;;
7957      esac
7958      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7959      lt_prog_compiler_static='${wl}-a ${wl}archive'
7960      ;;
7961
7962    irix5* | irix6* | nonstopux*)
7963      lt_prog_compiler_wl='-Wl,'
7964      # PIC (with -KPIC) is the default.
7965      lt_prog_compiler_static='-non_shared'
7966      ;;
7967
7968    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7969      case $cc_basename in
7970      # old Intel for x86_64 which still supported -KPIC.
7971      ecc*)
7972	lt_prog_compiler_wl='-Wl,'
7973	lt_prog_compiler_pic='-KPIC'
7974	lt_prog_compiler_static='-static'
7975        ;;
7976      # icc used to be incompatible with GCC.
7977      # ICC 10 doesn't accept -KPIC any more.
7978      icc* | ifort*)
7979	lt_prog_compiler_wl='-Wl,'
7980	lt_prog_compiler_pic='-fPIC'
7981	lt_prog_compiler_static='-static'
7982        ;;
7983      # Lahey Fortran 8.1.
7984      lf95*)
7985	lt_prog_compiler_wl='-Wl,'
7986	lt_prog_compiler_pic='--shared'
7987	lt_prog_compiler_static='--static'
7988	;;
7989      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7990        # Portland Group compilers (*not* the Pentium gcc compiler,
7991	# which looks to be a dead project)
7992	lt_prog_compiler_wl='-Wl,'
7993	lt_prog_compiler_pic='-fpic'
7994	lt_prog_compiler_static='-Bstatic'
7995        ;;
7996      ccc*)
7997        lt_prog_compiler_wl='-Wl,'
7998        # All Alpha code is PIC.
7999        lt_prog_compiler_static='-non_shared'
8000        ;;
8001      xl* | bgxl* | bgf* | mpixl*)
8002	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8003	lt_prog_compiler_wl='-Wl,'
8004	lt_prog_compiler_pic='-qpic'
8005	lt_prog_compiler_static='-qstaticlink'
8006	;;
8007      *)
8008	case `$CC -V 2>&1 | sed 5q` in
8009	*Sun\ F* | *Sun*Fortran*)
8010	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8011	  lt_prog_compiler_pic='-KPIC'
8012	  lt_prog_compiler_static='-Bstatic'
8013	  lt_prog_compiler_wl=''
8014	  ;;
8015	*Sun\ C*)
8016	  # Sun C 5.9
8017	  lt_prog_compiler_pic='-KPIC'
8018	  lt_prog_compiler_static='-Bstatic'
8019	  lt_prog_compiler_wl='-Wl,'
8020	  ;;
8021	esac
8022	;;
8023      esac
8024      ;;
8025
8026    newsos6)
8027      lt_prog_compiler_pic='-KPIC'
8028      lt_prog_compiler_static='-Bstatic'
8029      ;;
8030
8031    *nto* | *qnx*)
8032      # QNX uses GNU C++, but need to define -shared option too, otherwise
8033      # it will coredump.
8034      lt_prog_compiler_pic='-fPIC -shared'
8035      ;;
8036
8037    osf3* | osf4* | osf5*)
8038      lt_prog_compiler_wl='-Wl,'
8039      # All OSF/1 code is PIC.
8040      lt_prog_compiler_static='-non_shared'
8041      ;;
8042
8043    rdos*)
8044      lt_prog_compiler_static='-non_shared'
8045      ;;
8046
8047    solaris*)
8048      lt_prog_compiler_pic='-KPIC'
8049      lt_prog_compiler_static='-Bstatic'
8050      case $cc_basename in
8051      f77* | f90* | f95*)
8052	lt_prog_compiler_wl='-Qoption ld ';;
8053      *)
8054	lt_prog_compiler_wl='-Wl,';;
8055      esac
8056      ;;
8057
8058    sunos4*)
8059      lt_prog_compiler_wl='-Qoption ld '
8060      lt_prog_compiler_pic='-PIC'
8061      lt_prog_compiler_static='-Bstatic'
8062      ;;
8063
8064    sysv4 | sysv4.2uw2* | sysv4.3*)
8065      lt_prog_compiler_wl='-Wl,'
8066      lt_prog_compiler_pic='-KPIC'
8067      lt_prog_compiler_static='-Bstatic'
8068      ;;
8069
8070    sysv4*MP*)
8071      if test -d /usr/nec ;then
8072	lt_prog_compiler_pic='-Kconform_pic'
8073	lt_prog_compiler_static='-Bstatic'
8074      fi
8075      ;;
8076
8077    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8078      lt_prog_compiler_wl='-Wl,'
8079      lt_prog_compiler_pic='-KPIC'
8080      lt_prog_compiler_static='-Bstatic'
8081      ;;
8082
8083    unicos*)
8084      lt_prog_compiler_wl='-Wl,'
8085      lt_prog_compiler_can_build_shared=no
8086      ;;
8087
8088    uts4*)
8089      lt_prog_compiler_pic='-pic'
8090      lt_prog_compiler_static='-Bstatic'
8091      ;;
8092
8093    *)
8094      lt_prog_compiler_can_build_shared=no
8095      ;;
8096    esac
8097  fi
8098
8099case $host_os in
8100  # For platforms which do not support PIC, -DPIC is meaningless:
8101  *djgpp*)
8102    lt_prog_compiler_pic=
8103    ;;
8104  *)
8105    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8106    ;;
8107esac
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8109$as_echo "$lt_prog_compiler_pic" >&6; }
8110
8111
8112
8113
8114
8115
8116#
8117# Check to make sure the PIC flag actually works.
8118#
8119if test -n "$lt_prog_compiler_pic"; then
8120  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8121$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8122if ${lt_cv_prog_compiler_pic_works+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  lt_cv_prog_compiler_pic_works=no
8126   ac_outfile=conftest.$ac_objext
8127   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8128   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8129   # Insert the option either (1) after the last *FLAGS variable, or
8130   # (2) before a word containing "conftest.", or (3) at the end.
8131   # Note that $ac_compile itself does not contain backslashes and begins
8132   # with a dollar sign (not a hyphen), so the echo should work correctly.
8133   # The option is referenced via a variable to avoid confusing sed.
8134   lt_compile=`echo "$ac_compile" | $SED \
8135   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8136   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8137   -e 's:$: $lt_compiler_flag:'`
8138   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8139   (eval "$lt_compile" 2>conftest.err)
8140   ac_status=$?
8141   cat conftest.err >&5
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   if (exit $ac_status) && test -s "$ac_outfile"; then
8144     # The compiler can only warn and ignore the option if not recognized
8145     # So say no if there are warnings other than the usual output.
8146     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8147     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8148     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8149       lt_cv_prog_compiler_pic_works=yes
8150     fi
8151   fi
8152   $RM conftest*
8153
8154fi
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8156$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8157
8158if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8159    case $lt_prog_compiler_pic in
8160     "" | " "*) ;;
8161     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8162     esac
8163else
8164    lt_prog_compiler_pic=
8165     lt_prog_compiler_can_build_shared=no
8166fi
8167
8168fi
8169
8170
8171
8172
8173
8174
8175#
8176# Check to make sure the static flag actually works.
8177#
8178wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8180$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8181if ${lt_cv_prog_compiler_static_works+:} false; then :
8182  $as_echo_n "(cached) " >&6
8183else
8184  lt_cv_prog_compiler_static_works=no
8185   save_LDFLAGS="$LDFLAGS"
8186   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8187   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8188   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8189     # The linker can only warn and ignore the option if not recognized
8190     # So say no if there are warnings
8191     if test -s conftest.err; then
8192       # Append any errors to the config.log.
8193       cat conftest.err 1>&5
8194       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8195       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8196       if diff conftest.exp conftest.er2 >/dev/null; then
8197         lt_cv_prog_compiler_static_works=yes
8198       fi
8199     else
8200       lt_cv_prog_compiler_static_works=yes
8201     fi
8202   fi
8203   $RM -r conftest*
8204   LDFLAGS="$save_LDFLAGS"
8205
8206fi
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8208$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8209
8210if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8211    :
8212else
8213    lt_prog_compiler_static=
8214fi
8215
8216
8217
8218
8219
8220
8221
8222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8223$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8224if ${lt_cv_prog_compiler_c_o+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  lt_cv_prog_compiler_c_o=no
8228   $RM -r conftest 2>/dev/null
8229   mkdir conftest
8230   cd conftest
8231   mkdir out
8232   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8233
8234   lt_compiler_flag="-o out/conftest2.$ac_objext"
8235   # Insert the option either (1) after the last *FLAGS variable, or
8236   # (2) before a word containing "conftest.", or (3) at the end.
8237   # Note that $ac_compile itself does not contain backslashes and begins
8238   # with a dollar sign (not a hyphen), so the echo should work correctly.
8239   lt_compile=`echo "$ac_compile" | $SED \
8240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8242   -e 's:$: $lt_compiler_flag:'`
8243   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8244   (eval "$lt_compile" 2>out/conftest.err)
8245   ac_status=$?
8246   cat out/conftest.err >&5
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8249   then
8250     # The compiler can only warn and ignore the option if not recognized
8251     # So say no if there are warnings
8252     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8253     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8254     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8255       lt_cv_prog_compiler_c_o=yes
8256     fi
8257   fi
8258   chmod u+w . 2>&5
8259   $RM conftest*
8260   # SGI C++ compiler will create directory out/ii_files/ for
8261   # template instantiation
8262   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8263   $RM out/* && rmdir out
8264   cd ..
8265   $RM -r conftest
8266   $RM conftest*
8267
8268fi
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8270$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8271
8272
8273
8274
8275
8276
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8278$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8279if ${lt_cv_prog_compiler_c_o+:} false; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  lt_cv_prog_compiler_c_o=no
8283   $RM -r conftest 2>/dev/null
8284   mkdir conftest
8285   cd conftest
8286   mkdir out
8287   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8288
8289   lt_compiler_flag="-o out/conftest2.$ac_objext"
8290   # Insert the option either (1) after the last *FLAGS variable, or
8291   # (2) before a word containing "conftest.", or (3) at the end.
8292   # Note that $ac_compile itself does not contain backslashes and begins
8293   # with a dollar sign (not a hyphen), so the echo should work correctly.
8294   lt_compile=`echo "$ac_compile" | $SED \
8295   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8296   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8297   -e 's:$: $lt_compiler_flag:'`
8298   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8299   (eval "$lt_compile" 2>out/conftest.err)
8300   ac_status=$?
8301   cat out/conftest.err >&5
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8304   then
8305     # The compiler can only warn and ignore the option if not recognized
8306     # So say no if there are warnings
8307     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8308     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8309     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8310       lt_cv_prog_compiler_c_o=yes
8311     fi
8312   fi
8313   chmod u+w . 2>&5
8314   $RM conftest*
8315   # SGI C++ compiler will create directory out/ii_files/ for
8316   # template instantiation
8317   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8318   $RM out/* && rmdir out
8319   cd ..
8320   $RM -r conftest
8321   $RM conftest*
8322
8323fi
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8325$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8326
8327
8328
8329
8330hard_links="nottested"
8331if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8332  # do not overwrite the value of need_locks provided by the user
8333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8334$as_echo_n "checking if we can lock with hard links... " >&6; }
8335  hard_links=yes
8336  $RM conftest*
8337  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8338  touch conftest.a
8339  ln conftest.a conftest.b 2>&5 || hard_links=no
8340  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8342$as_echo "$hard_links" >&6; }
8343  if test "$hard_links" = no; then
8344    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8345$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8346    need_locks=warn
8347  fi
8348else
8349  need_locks=no
8350fi
8351
8352
8353
8354
8355
8356
8357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8358$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8359
8360  runpath_var=
8361  allow_undefined_flag=
8362  always_export_symbols=no
8363  archive_cmds=
8364  archive_expsym_cmds=
8365  compiler_needs_object=no
8366  enable_shared_with_static_runtimes=no
8367  export_dynamic_flag_spec=
8368  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8369  hardcode_automatic=no
8370  hardcode_direct=no
8371  hardcode_direct_absolute=no
8372  hardcode_libdir_flag_spec=
8373  hardcode_libdir_flag_spec_ld=
8374  hardcode_libdir_separator=
8375  hardcode_minus_L=no
8376  hardcode_shlibpath_var=unsupported
8377  inherit_rpath=no
8378  link_all_deplibs=unknown
8379  module_cmds=
8380  module_expsym_cmds=
8381  old_archive_from_new_cmds=
8382  old_archive_from_expsyms_cmds=
8383  thread_safe_flag_spec=
8384  whole_archive_flag_spec=
8385  # include_expsyms should be a list of space-separated symbols to be *always*
8386  # included in the symbol list
8387  include_expsyms=
8388  # exclude_expsyms can be an extended regexp of symbols to exclude
8389  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8390  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8391  # as well as any symbol that contains `d'.
8392  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8393  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8394  # platforms (ab)use it in PIC code, but their linkers get confused if
8395  # the symbol is explicitly referenced.  Since portable code cannot
8396  # rely on this symbol name, it's probably fine to never include it in
8397  # preloaded symbol tables.
8398  # Exclude shared library initialization/finalization symbols.
8399  extract_expsyms_cmds=
8400
8401  case $host_os in
8402  cygwin* | mingw* | pw32* | cegcc*)
8403    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8404    # When not using gcc, we currently assume that we are using
8405    # Microsoft Visual C++.
8406    if test "$GCC" != yes; then
8407      with_gnu_ld=no
8408    fi
8409    ;;
8410  interix*)
8411    # we just hope/assume this is gcc and not c89 (= MSVC++)
8412    with_gnu_ld=yes
8413    ;;
8414  openbsd*)
8415    with_gnu_ld=no
8416    ;;
8417  esac
8418
8419  ld_shlibs=yes
8420
8421  # On some targets, GNU ld is compatible enough with the native linker
8422  # that we're better off using the native interface for both.
8423  lt_use_gnu_ld_interface=no
8424  if test "$with_gnu_ld" = yes; then
8425    case $host_os in
8426      aix*)
8427	# The AIX port of GNU ld has always aspired to compatibility
8428	# with the native linker.  However, as the warning in the GNU ld
8429	# block says, versions before 2.19.5* couldn't really create working
8430	# shared libraries, regardless of the interface used.
8431	case `$LD -v 2>&1` in
8432	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8433	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8434	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8435	  *)
8436	    lt_use_gnu_ld_interface=yes
8437	    ;;
8438	esac
8439	;;
8440      *)
8441	lt_use_gnu_ld_interface=yes
8442	;;
8443    esac
8444  fi
8445
8446  if test "$lt_use_gnu_ld_interface" = yes; then
8447    # If archive_cmds runs LD, not CC, wlarc should be empty
8448    wlarc='${wl}'
8449
8450    # Set some defaults for GNU ld with shared library support. These
8451    # are reset later if shared libraries are not supported. Putting them
8452    # here allows them to be overridden if necessary.
8453    runpath_var=LD_RUN_PATH
8454    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8455    export_dynamic_flag_spec='${wl}--export-dynamic'
8456    # ancient GNU ld didn't support --whole-archive et. al.
8457    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8458      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8459    else
8460      whole_archive_flag_spec=
8461    fi
8462    supports_anon_versioning=no
8463    case `$LD -v 2>&1` in
8464      *GNU\ gold*) supports_anon_versioning=yes ;;
8465      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8466      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8467      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8468      *\ 2.11.*) ;; # other 2.11 versions
8469      *) supports_anon_versioning=yes ;;
8470    esac
8471
8472    # See if GNU ld supports shared libraries.
8473    case $host_os in
8474    aix[3-9]*)
8475      # On AIX/PPC, the GNU linker is very broken
8476      if test "$host_cpu" != ia64; then
8477	ld_shlibs=no
8478	cat <<_LT_EOF 1>&2
8479
8480*** Warning: the GNU linker, at least up to release 2.19, is reported
8481*** to be unable to reliably create shared libraries on AIX.
8482*** Therefore, libtool is disabling shared libraries support.  If you
8483*** really care for shared libraries, you may want to install binutils
8484*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8485*** You will then need to restart the configuration process.
8486
8487_LT_EOF
8488      fi
8489      ;;
8490
8491    amigaos*)
8492      case $host_cpu in
8493      powerpc)
8494            # see comment about AmigaOS4 .so support
8495            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496            archive_expsym_cmds=''
8497        ;;
8498      m68k)
8499            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)'
8500            hardcode_libdir_flag_spec='-L$libdir'
8501            hardcode_minus_L=yes
8502        ;;
8503      esac
8504      ;;
8505
8506    beos*)
8507      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8508	allow_undefined_flag=unsupported
8509	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8510	# support --undefined.  This deserves some investigation.  FIXME
8511	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8512      else
8513	ld_shlibs=no
8514      fi
8515      ;;
8516
8517    cygwin* | mingw* | pw32* | cegcc*)
8518      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8519      # as there is no search path for DLLs.
8520      hardcode_libdir_flag_spec='-L$libdir'
8521      export_dynamic_flag_spec='${wl}--export-all-symbols'
8522      allow_undefined_flag=unsupported
8523      always_export_symbols=no
8524      enable_shared_with_static_runtimes=yes
8525      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8526
8527      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8528        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8529	# If the export-symbols file already is a .def file (1st line
8530	# is EXPORTS), use it as is; otherwise, prepend...
8531	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8532	  cp $export_symbols $output_objdir/$soname.def;
8533	else
8534	  echo EXPORTS > $output_objdir/$soname.def;
8535	  cat $export_symbols >> $output_objdir/$soname.def;
8536	fi~
8537	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8538      else
8539	ld_shlibs=no
8540      fi
8541      ;;
8542
8543    haiku*)
8544      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545      link_all_deplibs=yes
8546      ;;
8547
8548    interix[3-9]*)
8549      hardcode_direct=no
8550      hardcode_shlibpath_var=no
8551      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8552      export_dynamic_flag_spec='${wl}-E'
8553      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8554      # Instead, shared libraries are loaded at an image base (0x10000000 by
8555      # default) and relocated if they conflict, which is a slow very memory
8556      # consuming and fragmenting process.  To avoid this, we pick a random,
8557      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8558      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8559      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8560      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'
8561      ;;
8562
8563    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8564      tmp_diet=no
8565      if test "$host_os" = linux-dietlibc; then
8566	case $cc_basename in
8567	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8568	esac
8569      fi
8570      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8571	 && test "$tmp_diet" = no
8572      then
8573	tmp_addflag=' $pic_flag'
8574	tmp_sharedflag='-shared'
8575	case $cc_basename,$host_cpu in
8576        pgcc*)				# Portland Group C compiler
8577	  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'
8578	  tmp_addflag=' $pic_flag'
8579	  ;;
8580	pgf77* | pgf90* | pgf95* | pgfortran*)
8581					# Portland Group f77 and f90 compilers
8582	  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'
8583	  tmp_addflag=' $pic_flag -Mnomain' ;;
8584	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8585	  tmp_addflag=' -i_dynamic' ;;
8586	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8587	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8588	ifc* | ifort*)			# Intel Fortran compiler
8589	  tmp_addflag=' -nofor_main' ;;
8590	lf95*)				# Lahey Fortran 8.1
8591	  whole_archive_flag_spec=
8592	  tmp_sharedflag='--shared' ;;
8593	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8594	  tmp_sharedflag='-qmkshrobj'
8595	  tmp_addflag= ;;
8596	nvcc*)	# Cuda Compiler Driver 2.2
8597	  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'
8598	  compiler_needs_object=yes
8599	  ;;
8600	esac
8601	case `$CC -V 2>&1 | sed 5q` in
8602	*Sun\ C*)			# Sun C 5.9
8603	  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'
8604	  compiler_needs_object=yes
8605	  tmp_sharedflag='-G' ;;
8606	*Sun\ F*)			# Sun Fortran 8.3
8607	  tmp_sharedflag='-G' ;;
8608	esac
8609	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8610
8611        if test "x$supports_anon_versioning" = xyes; then
8612          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8613	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8614	    echo "local: *; };" >> $output_objdir/$libname.ver~
8615	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8616        fi
8617
8618	case $cc_basename in
8619	xlf* | bgf* | bgxlf* | mpixlf*)
8620	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8621	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8622	  hardcode_libdir_flag_spec=
8623	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8624	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8625	  if test "x$supports_anon_versioning" = xyes; then
8626	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8627	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8628	      echo "local: *; };" >> $output_objdir/$libname.ver~
8629	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8630	  fi
8631	  ;;
8632	esac
8633      else
8634        ld_shlibs=no
8635      fi
8636      ;;
8637
8638    netbsd*)
8639      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8640	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8641	wlarc=
8642      else
8643	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8644	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8645      fi
8646      ;;
8647
8648    solaris*)
8649      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8650	ld_shlibs=no
8651	cat <<_LT_EOF 1>&2
8652
8653*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8654*** create shared libraries on Solaris systems.  Therefore, libtool
8655*** is disabling shared libraries support.  We urge you to upgrade GNU
8656*** binutils to release 2.9.1 or newer.  Another option is to modify
8657*** your PATH or compiler configuration so that the native linker is
8658*** used, and then restart.
8659
8660_LT_EOF
8661      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8662	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8664      else
8665	ld_shlibs=no
8666      fi
8667      ;;
8668
8669    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8670      case `$LD -v 2>&1` in
8671        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8672	ld_shlibs=no
8673	cat <<_LT_EOF 1>&2
8674
8675*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8676*** reliably create shared libraries on SCO systems.  Therefore, libtool
8677*** is disabling shared libraries support.  We urge you to upgrade GNU
8678*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8679*** your PATH or compiler configuration so that the native linker is
8680*** used, and then restart.
8681
8682_LT_EOF
8683	;;
8684	*)
8685	  # For security reasons, it is highly recommended that you always
8686	  # use absolute paths for naming shared libraries, and exclude the
8687	  # DT_RUNPATH tag from executables and libraries.  But doing so
8688	  # requires that you compile everything twice, which is a pain.
8689	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8690	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8691	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8693	  else
8694	    ld_shlibs=no
8695	  fi
8696	;;
8697      esac
8698      ;;
8699
8700    sunos4*)
8701      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8702      wlarc=
8703      hardcode_direct=yes
8704      hardcode_shlibpath_var=no
8705      ;;
8706
8707    *)
8708      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8709	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711      else
8712	ld_shlibs=no
8713      fi
8714      ;;
8715    esac
8716
8717    if test "$ld_shlibs" = no; then
8718      runpath_var=
8719      hardcode_libdir_flag_spec=
8720      export_dynamic_flag_spec=
8721      whole_archive_flag_spec=
8722    fi
8723  else
8724    # PORTME fill in a description of your system's linker (not GNU ld)
8725    case $host_os in
8726    aix3*)
8727      allow_undefined_flag=unsupported
8728      always_export_symbols=yes
8729      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'
8730      # Note: this linker hardcodes the directories in LIBPATH if there
8731      # are no directories specified by -L.
8732      hardcode_minus_L=yes
8733      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8734	# Neither direct hardcoding nor static linking is supported with a
8735	# broken collect2.
8736	hardcode_direct=unsupported
8737      fi
8738      ;;
8739
8740    aix[4-9]*)
8741      if test "$host_cpu" = ia64; then
8742	# On IA64, the linker does run time linking by default, so we don't
8743	# have to do anything special.
8744	aix_use_runtimelinking=no
8745	exp_sym_flag='-Bexport'
8746	no_entry_flag=""
8747      else
8748	# If we're using GNU nm, then we don't want the "-C" option.
8749	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8750	# Also, AIX nm treats weak defined symbols like other global
8751	# defined symbols, whereas GNU nm marks them as "W".
8752	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8753	  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'
8754	else
8755	  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'
8756	fi
8757	aix_use_runtimelinking=no
8758
8759	# Test if we are trying to use run time linking or normal
8760	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8761	# need to do runtime linking.
8762	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8763	  for ld_flag in $LDFLAGS; do
8764	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8765	    aix_use_runtimelinking=yes
8766	    break
8767	  fi
8768	  done
8769	  ;;
8770	esac
8771
8772	exp_sym_flag='-bexport'
8773	no_entry_flag='-bnoentry'
8774      fi
8775
8776      # When large executables or shared objects are built, AIX ld can
8777      # have problems creating the table of contents.  If linking a library
8778      # or program results in "error TOC overflow" add -mminimal-toc to
8779      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8780      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8781
8782      archive_cmds=''
8783      hardcode_direct=yes
8784      hardcode_direct_absolute=yes
8785      hardcode_libdir_separator=':'
8786      link_all_deplibs=yes
8787      file_list_spec='${wl}-f,'
8788
8789      if test "$GCC" = yes; then
8790	case $host_os in aix4.[012]|aix4.[012].*)
8791	# We only want to do this on AIX 4.2 and lower, the check
8792	# below for broken collect2 doesn't work under 4.3+
8793	  collect2name=`${CC} -print-prog-name=collect2`
8794	  if test -f "$collect2name" &&
8795	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8796	  then
8797	  # We have reworked collect2
8798	  :
8799	  else
8800	  # We have old collect2
8801	  hardcode_direct=unsupported
8802	  # It fails to find uninstalled libraries when the uninstalled
8803	  # path is not listed in the libpath.  Setting hardcode_minus_L
8804	  # to unsupported forces relinking
8805	  hardcode_minus_L=yes
8806	  hardcode_libdir_flag_spec='-L$libdir'
8807	  hardcode_libdir_separator=
8808	  fi
8809	  ;;
8810	esac
8811	shared_flag='-shared'
8812	if test "$aix_use_runtimelinking" = yes; then
8813	  shared_flag="$shared_flag "'${wl}-G'
8814	fi
8815      else
8816	# not using gcc
8817	if test "$host_cpu" = ia64; then
8818	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8819	# chokes on -Wl,-G. The following line is correct:
8820	  shared_flag='-G'
8821	else
8822	  if test "$aix_use_runtimelinking" = yes; then
8823	    shared_flag='${wl}-G'
8824	  else
8825	    shared_flag='${wl}-bM:SRE'
8826	  fi
8827	fi
8828      fi
8829
8830      export_dynamic_flag_spec='${wl}-bexpall'
8831      # It seems that -bexpall does not export symbols beginning with
8832      # underscore (_), so it is better to generate a list of symbols to export.
8833      always_export_symbols=yes
8834      if test "$aix_use_runtimelinking" = yes; then
8835	# Warning - without using the other runtime loading flags (-brtl),
8836	# -berok will link without error, but may produce a broken library.
8837	allow_undefined_flag='-berok'
8838        # Determine the default libpath from the value encoded in an
8839        # empty executable.
8840        if test x$gcc_no_link = xyes; then
8841  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8842fi
8843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844/* end confdefs.h.  */
8845
8846int
8847main ()
8848{
8849
8850  ;
8851  return 0;
8852}
8853_ACEOF
8854if ac_fn_c_try_link "$LINENO"; then :
8855
8856lt_aix_libpath_sed='
8857    /Import File Strings/,/^$/ {
8858	/^0/ {
8859	    s/^0  *\(.*\)$/\1/
8860	    p
8861	}
8862    }'
8863aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8864# Check for a 64-bit object if we didn't find anything.
8865if test -z "$aix_libpath"; then
8866  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8867fi
8868fi
8869rm -f core conftest.err conftest.$ac_objext \
8870    conftest$ac_exeext conftest.$ac_ext
8871if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8872
8873        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8874        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"
8875      else
8876	if test "$host_cpu" = ia64; then
8877	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8878	  allow_undefined_flag="-z nodefs"
8879	  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"
8880	else
8881	 # Determine the default libpath from the value encoded in an
8882	 # empty executable.
8883	 if test x$gcc_no_link = xyes; then
8884  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8885fi
8886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887/* end confdefs.h.  */
8888
8889int
8890main ()
8891{
8892
8893  ;
8894  return 0;
8895}
8896_ACEOF
8897if ac_fn_c_try_link "$LINENO"; then :
8898
8899lt_aix_libpath_sed='
8900    /Import File Strings/,/^$/ {
8901	/^0/ {
8902	    s/^0  *\(.*\)$/\1/
8903	    p
8904	}
8905    }'
8906aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8907# Check for a 64-bit object if we didn't find anything.
8908if test -z "$aix_libpath"; then
8909  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8910fi
8911fi
8912rm -f core conftest.err conftest.$ac_objext \
8913    conftest$ac_exeext conftest.$ac_ext
8914if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8915
8916	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8917	  # Warning - without using the other run time loading flags,
8918	  # -berok will link without error, but may produce a broken library.
8919	  no_undefined_flag=' ${wl}-bernotok'
8920	  allow_undefined_flag=' ${wl}-berok'
8921	  if test "$with_gnu_ld" = yes; then
8922	    # We only use this code for GNU lds that support --whole-archive.
8923	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8924	  else
8925	    # Exported symbols can be pulled into shared objects from archives
8926	    whole_archive_flag_spec='$convenience'
8927	  fi
8928	  archive_cmds_need_lc=yes
8929	  # This is similar to how AIX traditionally builds its shared libraries.
8930	  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'
8931	fi
8932      fi
8933      ;;
8934
8935    amigaos*)
8936      case $host_cpu in
8937      powerpc)
8938            # see comment about AmigaOS4 .so support
8939            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940            archive_expsym_cmds=''
8941        ;;
8942      m68k)
8943            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)'
8944            hardcode_libdir_flag_spec='-L$libdir'
8945            hardcode_minus_L=yes
8946        ;;
8947      esac
8948      ;;
8949
8950    bsdi[45]*)
8951      export_dynamic_flag_spec=-rdynamic
8952      ;;
8953
8954    cygwin* | mingw* | pw32* | cegcc*)
8955      # When not using gcc, we currently assume that we are using
8956      # Microsoft Visual C++.
8957      # hardcode_libdir_flag_spec is actually meaningless, as there is
8958      # no search path for DLLs.
8959      hardcode_libdir_flag_spec=' '
8960      allow_undefined_flag=unsupported
8961      # Tell ltmain to make .lib files, not .a files.
8962      libext=lib
8963      # Tell ltmain to make .dll files, not .so files.
8964      shrext_cmds=".dll"
8965      # FIXME: Setting linknames here is a bad hack.
8966      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8967      # The linker will automatically build a .lib file if we build a DLL.
8968      old_archive_from_new_cmds='true'
8969      # FIXME: Should let the user specify the lib program.
8970      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8971      fix_srcfile_path='`cygpath -w "$srcfile"`'
8972      enable_shared_with_static_runtimes=yes
8973      ;;
8974
8975    darwin* | rhapsody*)
8976
8977
8978  archive_cmds_need_lc=no
8979  hardcode_direct=no
8980  hardcode_automatic=yes
8981  hardcode_shlibpath_var=unsupported
8982  if test "$lt_cv_ld_force_load" = "yes"; then
8983    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\"`'
8984  else
8985    whole_archive_flag_spec=''
8986  fi
8987  link_all_deplibs=yes
8988  allow_undefined_flag="$_lt_dar_allow_undefined"
8989  case $cc_basename in
8990     ifort*) _lt_dar_can_shared=yes ;;
8991     *) _lt_dar_can_shared=$GCC ;;
8992  esac
8993  if test "$_lt_dar_can_shared" = "yes"; then
8994    output_verbose_link_cmd=func_echo_all
8995    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8996    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8997    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}"
8998    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}"
8999
9000  else
9001  ld_shlibs=no
9002  fi
9003
9004      ;;
9005
9006    dgux*)
9007      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9008      hardcode_libdir_flag_spec='-L$libdir'
9009      hardcode_shlibpath_var=no
9010      ;;
9011
9012    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9013    # support.  Future versions do this automatically, but an explicit c++rt0.o
9014    # does not break anything, and helps significantly (at the cost of a little
9015    # extra space).
9016    freebsd2.2*)
9017      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9018      hardcode_libdir_flag_spec='-R$libdir'
9019      hardcode_direct=yes
9020      hardcode_shlibpath_var=no
9021      ;;
9022
9023    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9024    freebsd2.*)
9025      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026      hardcode_direct=yes
9027      hardcode_minus_L=yes
9028      hardcode_shlibpath_var=no
9029      ;;
9030
9031    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9032    freebsd* | dragonfly*)
9033      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9034      hardcode_libdir_flag_spec='-R$libdir'
9035      hardcode_direct=yes
9036      hardcode_shlibpath_var=no
9037      ;;
9038
9039    hpux9*)
9040      if test "$GCC" = yes; then
9041	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'
9042      else
9043	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'
9044      fi
9045      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9046      hardcode_libdir_separator=:
9047      hardcode_direct=yes
9048
9049      # hardcode_minus_L: Not really in the search PATH,
9050      # but as the default location of the library.
9051      hardcode_minus_L=yes
9052      export_dynamic_flag_spec='${wl}-E'
9053      ;;
9054
9055    hpux10*)
9056      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9057	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9058      else
9059	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9060      fi
9061      if test "$with_gnu_ld" = no; then
9062	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9063	hardcode_libdir_flag_spec_ld='+b $libdir'
9064	hardcode_libdir_separator=:
9065	hardcode_direct=yes
9066	hardcode_direct_absolute=yes
9067	export_dynamic_flag_spec='${wl}-E'
9068	# hardcode_minus_L: Not really in the search PATH,
9069	# but as the default location of the library.
9070	hardcode_minus_L=yes
9071      fi
9072      ;;
9073
9074    hpux11*)
9075      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9076	case $host_cpu in
9077	hppa*64*)
9078	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079	  ;;
9080	ia64*)
9081	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9082	  ;;
9083	*)
9084	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9085	  ;;
9086	esac
9087      else
9088	case $host_cpu in
9089	hppa*64*)
9090	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091	  ;;
9092	ia64*)
9093	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9094	  ;;
9095	*)
9096
9097	  # Older versions of the 11.00 compiler do not understand -b yet
9098	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9099	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9100$as_echo_n "checking if $CC understands -b... " >&6; }
9101if ${lt_cv_prog_compiler__b+:} false; then :
9102  $as_echo_n "(cached) " >&6
9103else
9104  lt_cv_prog_compiler__b=no
9105   save_LDFLAGS="$LDFLAGS"
9106   LDFLAGS="$LDFLAGS -b"
9107   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9108   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9109     # The linker can only warn and ignore the option if not recognized
9110     # So say no if there are warnings
9111     if test -s conftest.err; then
9112       # Append any errors to the config.log.
9113       cat conftest.err 1>&5
9114       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9115       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9116       if diff conftest.exp conftest.er2 >/dev/null; then
9117         lt_cv_prog_compiler__b=yes
9118       fi
9119     else
9120       lt_cv_prog_compiler__b=yes
9121     fi
9122   fi
9123   $RM -r conftest*
9124   LDFLAGS="$save_LDFLAGS"
9125
9126fi
9127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9128$as_echo "$lt_cv_prog_compiler__b" >&6; }
9129
9130if test x"$lt_cv_prog_compiler__b" = xyes; then
9131    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9132else
9133    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9134fi
9135
9136	  ;;
9137	esac
9138      fi
9139      if test "$with_gnu_ld" = no; then
9140	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9141	hardcode_libdir_separator=:
9142
9143	case $host_cpu in
9144	hppa*64*|ia64*)
9145	  hardcode_direct=no
9146	  hardcode_shlibpath_var=no
9147	  ;;
9148	*)
9149	  hardcode_direct=yes
9150	  hardcode_direct_absolute=yes
9151	  export_dynamic_flag_spec='${wl}-E'
9152
9153	  # hardcode_minus_L: Not really in the search PATH,
9154	  # but as the default location of the library.
9155	  hardcode_minus_L=yes
9156	  ;;
9157	esac
9158      fi
9159      ;;
9160
9161    irix5* | irix6* | nonstopux*)
9162      if test "$GCC" = yes; then
9163	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'
9164	# Try to use the -exported_symbol ld option, if it does not
9165	# work, assume that -exports_file does not work either and
9166	# implicitly export all symbols.
9167        save_LDFLAGS="$LDFLAGS"
9168        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9169        if test x$gcc_no_link = xyes; then
9170  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9171fi
9172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h.  */
9174int foo(void) {}
9175_ACEOF
9176if ac_fn_c_try_link "$LINENO"; then :
9177  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'
9178
9179fi
9180rm -f core conftest.err conftest.$ac_objext \
9181    conftest$ac_exeext conftest.$ac_ext
9182        LDFLAGS="$save_LDFLAGS"
9183      else
9184	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'
9185	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'
9186      fi
9187      archive_cmds_need_lc='no'
9188      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189      hardcode_libdir_separator=:
9190      inherit_rpath=yes
9191      link_all_deplibs=yes
9192      ;;
9193
9194    netbsd*)
9195      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9196	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9197      else
9198	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9199      fi
9200      hardcode_libdir_flag_spec='-R$libdir'
9201      hardcode_direct=yes
9202      hardcode_shlibpath_var=no
9203      ;;
9204
9205    newsos6)
9206      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9207      hardcode_direct=yes
9208      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9209      hardcode_libdir_separator=:
9210      hardcode_shlibpath_var=no
9211      ;;
9212
9213    *nto* | *qnx*)
9214      ;;
9215
9216    openbsd*)
9217      if test -f /usr/libexec/ld.so; then
9218	hardcode_direct=yes
9219	hardcode_shlibpath_var=no
9220	hardcode_direct_absolute=yes
9221	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9222	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9223	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9224	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9225	  export_dynamic_flag_spec='${wl}-E'
9226	else
9227	  case $host_os in
9228	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9229	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9230	     hardcode_libdir_flag_spec='-R$libdir'
9231	     ;;
9232	   *)
9233	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9234	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9235	     ;;
9236	  esac
9237	fi
9238      else
9239	ld_shlibs=no
9240      fi
9241      ;;
9242
9243    os2*)
9244      hardcode_libdir_flag_spec='-L$libdir'
9245      hardcode_minus_L=yes
9246      allow_undefined_flag=unsupported
9247      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'
9248      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9249      ;;
9250
9251    osf3*)
9252      if test "$GCC" = yes; then
9253	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9254	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'
9255      else
9256	allow_undefined_flag=' -expect_unresolved \*'
9257	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'
9258      fi
9259      archive_cmds_need_lc='no'
9260      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9261      hardcode_libdir_separator=:
9262      ;;
9263
9264    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9265      if test "$GCC" = yes; then
9266	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9267	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'
9268	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9269      else
9270	allow_undefined_flag=' -expect_unresolved \*'
9271	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'
9272	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~
9273	$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'
9274
9275	# Both c and cxx compiler support -rpath directly
9276	hardcode_libdir_flag_spec='-rpath $libdir'
9277      fi
9278      archive_cmds_need_lc='no'
9279      hardcode_libdir_separator=:
9280      ;;
9281
9282    solaris*)
9283      no_undefined_flag=' -z defs'
9284      if test "$GCC" = yes; then
9285	wlarc='${wl}'
9286	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9287	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9288	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9289      else
9290	case `$CC -V 2>&1` in
9291	*"Compilers 5.0"*)
9292	  wlarc=''
9293	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9295	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9296	  ;;
9297	*)
9298	  wlarc='${wl}'
9299	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9300	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9301	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9302	  ;;
9303	esac
9304      fi
9305      hardcode_libdir_flag_spec='-R$libdir'
9306      hardcode_shlibpath_var=no
9307      case $host_os in
9308      solaris2.[0-5] | solaris2.[0-5].*) ;;
9309      *)
9310	# The compiler driver will combine and reorder linker options,
9311	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9312	# but is careful enough not to reorder.
9313	# Supported since Solaris 2.6 (maybe 2.5.1?)
9314	if test "$GCC" = yes; then
9315	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9316	else
9317	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9318	fi
9319	;;
9320      esac
9321      link_all_deplibs=yes
9322      ;;
9323
9324    sunos4*)
9325      if test "x$host_vendor" = xsequent; then
9326	# Use $CC to link under sequent, because it throws in some extra .o
9327	# files that make .init and .fini sections work.
9328	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9329      else
9330	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9331      fi
9332      hardcode_libdir_flag_spec='-L$libdir'
9333      hardcode_direct=yes
9334      hardcode_minus_L=yes
9335      hardcode_shlibpath_var=no
9336      ;;
9337
9338    sysv4)
9339      case $host_vendor in
9340	sni)
9341	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342	  hardcode_direct=yes # is this really true???
9343	;;
9344	siemens)
9345	  ## LD is ld it makes a PLAMLIB
9346	  ## CC just makes a GrossModule.
9347	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9348	  reload_cmds='$CC -r -o $output$reload_objs'
9349	  hardcode_direct=no
9350        ;;
9351	motorola)
9352	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9353	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9354	;;
9355      esac
9356      runpath_var='LD_RUN_PATH'
9357      hardcode_shlibpath_var=no
9358      ;;
9359
9360    sysv4.3*)
9361      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362      hardcode_shlibpath_var=no
9363      export_dynamic_flag_spec='-Bexport'
9364      ;;
9365
9366    sysv4*MP*)
9367      if test -d /usr/nec; then
9368	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369	hardcode_shlibpath_var=no
9370	runpath_var=LD_RUN_PATH
9371	hardcode_runpath_var=yes
9372	ld_shlibs=yes
9373      fi
9374      ;;
9375
9376    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9377      no_undefined_flag='${wl}-z,text'
9378      archive_cmds_need_lc=no
9379      hardcode_shlibpath_var=no
9380      runpath_var='LD_RUN_PATH'
9381
9382      if test "$GCC" = yes; then
9383	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9384	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385      else
9386	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9388      fi
9389      ;;
9390
9391    sysv5* | sco3.2v5* | sco5v6*)
9392      # Note: We can NOT use -z defs as we might desire, because we do not
9393      # link with -lc, and that would cause any symbols used from libc to
9394      # always be unresolved, which means just about no library would
9395      # ever link correctly.  If we're not using GNU ld we use -z text
9396      # though, which does catch some bad symbols but isn't as heavy-handed
9397      # as -z defs.
9398      no_undefined_flag='${wl}-z,text'
9399      allow_undefined_flag='${wl}-z,nodefs'
9400      archive_cmds_need_lc=no
9401      hardcode_shlibpath_var=no
9402      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9403      hardcode_libdir_separator=':'
9404      link_all_deplibs=yes
9405      export_dynamic_flag_spec='${wl}-Bexport'
9406      runpath_var='LD_RUN_PATH'
9407
9408      if test "$GCC" = yes; then
9409	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411      else
9412	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414      fi
9415      ;;
9416
9417    uts4*)
9418      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419      hardcode_libdir_flag_spec='-L$libdir'
9420      hardcode_shlibpath_var=no
9421      ;;
9422
9423    *)
9424      ld_shlibs=no
9425      ;;
9426    esac
9427
9428    if test x$host_vendor = xsni; then
9429      case $host in
9430      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9431	export_dynamic_flag_spec='${wl}-Blargedynsym'
9432	;;
9433      esac
9434    fi
9435  fi
9436
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9438$as_echo "$ld_shlibs" >&6; }
9439test "$ld_shlibs" = no && can_build_shared=no
9440
9441with_gnu_ld=$with_gnu_ld
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457#
9458# Do we need to explicitly link libc?
9459#
9460case "x$archive_cmds_need_lc" in
9461x|xyes)
9462  # Assume -lc should be added
9463  archive_cmds_need_lc=yes
9464
9465  if test "$enable_shared" = yes && test "$GCC" = yes; then
9466    case $archive_cmds in
9467    *'~'*)
9468      # FIXME: we may have to deal with multi-command sequences.
9469      ;;
9470    '$CC '*)
9471      # Test whether the compiler implicitly links with -lc since on some
9472      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9473      # to ld, don't add -lc before -lgcc.
9474      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9475$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9476if ${lt_cv_archive_cmds_need_lc+:} false; then :
9477  $as_echo_n "(cached) " >&6
9478else
9479  $RM conftest*
9480	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9481
9482	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9483  (eval $ac_compile) 2>&5
9484  ac_status=$?
9485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486  test $ac_status = 0; } 2>conftest.err; then
9487	  soname=conftest
9488	  lib=conftest
9489	  libobjs=conftest.$ac_objext
9490	  deplibs=
9491	  wl=$lt_prog_compiler_wl
9492	  pic_flag=$lt_prog_compiler_pic
9493	  compiler_flags=-v
9494	  linker_flags=-v
9495	  verstring=
9496	  output_objdir=.
9497	  libname=conftest
9498	  lt_save_allow_undefined_flag=$allow_undefined_flag
9499	  allow_undefined_flag=
9500	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9501  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9502  ac_status=$?
9503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9504  test $ac_status = 0; }
9505	  then
9506	    lt_cv_archive_cmds_need_lc=no
9507	  else
9508	    lt_cv_archive_cmds_need_lc=yes
9509	  fi
9510	  allow_undefined_flag=$lt_save_allow_undefined_flag
9511	else
9512	  cat conftest.err 1>&5
9513	fi
9514	$RM conftest*
9515
9516fi
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9518$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9519      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9520      ;;
9521    esac
9522  fi
9523  ;;
9524esac
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9683$as_echo_n "checking dynamic linker characteristics... " >&6; }
9684
9685if test "$GCC" = yes; then
9686  case $host_os in
9687    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9688    *) lt_awk_arg="/^libraries:/" ;;
9689  esac
9690  case $host_os in
9691    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9692    *) lt_sed_strip_eq="s,=/,/,g" ;;
9693  esac
9694  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9695  case $lt_search_path_spec in
9696  *\;*)
9697    # if the path contains ";" then we assume it to be the separator
9698    # otherwise default to the standard path separator (i.e. ":") - it is
9699    # assumed that no part of a normal pathname contains ";" but that should
9700    # okay in the real world where ";" in dirpaths is itself problematic.
9701    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9702    ;;
9703  *)
9704    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9705    ;;
9706  esac
9707  # Ok, now we have the path, separated by spaces, we can step through it
9708  # and add multilib dir if necessary.
9709  lt_tmp_lt_search_path_spec=
9710  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9711  for lt_sys_path in $lt_search_path_spec; do
9712    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9713      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9714    else
9715      test -d "$lt_sys_path" && \
9716	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9717    fi
9718  done
9719  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9720BEGIN {RS=" "; FS="/|\n";} {
9721  lt_foo="";
9722  lt_count=0;
9723  for (lt_i = NF; lt_i > 0; lt_i--) {
9724    if ($lt_i != "" && $lt_i != ".") {
9725      if ($lt_i == "..") {
9726        lt_count++;
9727      } else {
9728        if (lt_count == 0) {
9729          lt_foo="/" $lt_i lt_foo;
9730        } else {
9731          lt_count--;
9732        }
9733      }
9734    }
9735  }
9736  if (lt_foo != "") { lt_freq[lt_foo]++; }
9737  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9738}'`
9739  # AWK program above erroneously prepends '/' to C:/dos/paths
9740  # for these hosts.
9741  case $host_os in
9742    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9743      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9744  esac
9745  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9746else
9747  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9748fi
9749library_names_spec=
9750libname_spec='lib$name'
9751soname_spec=
9752shrext_cmds=".so"
9753postinstall_cmds=
9754postuninstall_cmds=
9755finish_cmds=
9756finish_eval=
9757shlibpath_var=
9758shlibpath_overrides_runpath=unknown
9759version_type=none
9760dynamic_linker="$host_os ld.so"
9761sys_lib_dlsearch_path_spec="/lib /usr/lib"
9762need_lib_prefix=unknown
9763hardcode_into_libs=no
9764
9765# when you set need_version to no, make sure it does not cause -set_version
9766# flags to be left without arguments
9767need_version=unknown
9768
9769case $host_os in
9770aix3*)
9771  version_type=linux
9772  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9773  shlibpath_var=LIBPATH
9774
9775  # AIX 3 has no versioning support, so we append a major version to the name.
9776  soname_spec='${libname}${release}${shared_ext}$major'
9777  ;;
9778
9779aix[4-9]*)
9780  version_type=linux
9781  need_lib_prefix=no
9782  need_version=no
9783  hardcode_into_libs=yes
9784  if test "$host_cpu" = ia64; then
9785    # AIX 5 supports IA64
9786    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9787    shlibpath_var=LD_LIBRARY_PATH
9788  else
9789    # With GCC up to 2.95.x, collect2 would create an import file
9790    # for dependence libraries.  The import file would start with
9791    # the line `#! .'.  This would cause the generated library to
9792    # depend on `.', always an invalid library.  This was fixed in
9793    # development snapshots of GCC prior to 3.0.
9794    case $host_os in
9795      aix4 | aix4.[01] | aix4.[01].*)
9796      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9797	   echo ' yes '
9798	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9799	:
9800      else
9801	can_build_shared=no
9802      fi
9803      ;;
9804    esac
9805    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9806    # soname into executable. Probably we can add versioning support to
9807    # collect2, so additional links can be useful in future.
9808    if test "$aix_use_runtimelinking" = yes; then
9809      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9810      # instead of lib<name>.a to let people know that these are not
9811      # typical AIX shared libraries.
9812      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813    else
9814      # We preserve .a as extension for shared libraries through AIX4.2
9815      # and later when we are not doing run time linking.
9816      library_names_spec='${libname}${release}.a $libname.a'
9817      soname_spec='${libname}${release}${shared_ext}$major'
9818    fi
9819    shlibpath_var=LIBPATH
9820  fi
9821  ;;
9822
9823amigaos*)
9824  case $host_cpu in
9825  powerpc)
9826    # Since July 2007 AmigaOS4 officially supports .so libraries.
9827    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9829    ;;
9830  m68k)
9831    library_names_spec='$libname.ixlibrary $libname.a'
9832    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9833    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'
9834    ;;
9835  esac
9836  ;;
9837
9838beos*)
9839  library_names_spec='${libname}${shared_ext}'
9840  dynamic_linker="$host_os ld.so"
9841  shlibpath_var=LIBRARY_PATH
9842  ;;
9843
9844bsdi[45]*)
9845  version_type=linux
9846  need_version=no
9847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848  soname_spec='${libname}${release}${shared_ext}$major'
9849  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9850  shlibpath_var=LD_LIBRARY_PATH
9851  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9852  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9853  # the default ld.so.conf also contains /usr/contrib/lib and
9854  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9855  # libtool to hard-code these into programs
9856  ;;
9857
9858cygwin* | mingw* | pw32* | cegcc*)
9859  version_type=windows
9860  shrext_cmds=".dll"
9861  need_version=no
9862  need_lib_prefix=no
9863
9864  case $GCC,$host_os in
9865  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9866    library_names_spec='$libname.dll.a'
9867    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9868    postinstall_cmds='base_file=`basename \${file}`~
9869      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9870      dldir=$destdir/`dirname \$dlpath`~
9871      test -d \$dldir || mkdir -p \$dldir~
9872      $install_prog $dir/$dlname \$dldir/$dlname~
9873      chmod a+x \$dldir/$dlname~
9874      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9875        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9876      fi'
9877    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9878      dlpath=$dir/\$dldll~
9879       $RM \$dlpath'
9880    shlibpath_overrides_runpath=yes
9881
9882    case $host_os in
9883    cygwin*)
9884      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9885      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9886
9887      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9888      ;;
9889    mingw* | cegcc*)
9890      # MinGW DLLs use traditional 'lib' prefix
9891      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9892      ;;
9893    pw32*)
9894      # pw32 DLLs use 'pw' prefix rather than 'lib'
9895      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9896      ;;
9897    esac
9898    ;;
9899
9900  *)
9901    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9902    ;;
9903  esac
9904  dynamic_linker='Win32 ld.exe'
9905  # FIXME: first we should search . and the directory the executable is in
9906  shlibpath_var=PATH
9907  ;;
9908
9909darwin* | rhapsody*)
9910  dynamic_linker="$host_os dyld"
9911  version_type=darwin
9912  need_lib_prefix=no
9913  need_version=no
9914  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9915  soname_spec='${libname}${release}${major}$shared_ext'
9916  shlibpath_overrides_runpath=yes
9917  shlibpath_var=DYLD_LIBRARY_PATH
9918  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9919
9920  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9921  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9922  ;;
9923
9924dgux*)
9925  version_type=linux
9926  need_lib_prefix=no
9927  need_version=no
9928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9929  soname_spec='${libname}${release}${shared_ext}$major'
9930  shlibpath_var=LD_LIBRARY_PATH
9931  ;;
9932
9933freebsd* | dragonfly*)
9934  # DragonFly does not have aout.  When/if they implement a new
9935  # versioning mechanism, adjust this.
9936  if test -x /usr/bin/objformat; then
9937    objformat=`/usr/bin/objformat`
9938  else
9939    case $host_os in
9940    freebsd[23].*) objformat=aout ;;
9941    *) objformat=elf ;;
9942    esac
9943  fi
9944  version_type=freebsd-$objformat
9945  case $version_type in
9946    freebsd-elf*)
9947      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9948      need_version=no
9949      need_lib_prefix=no
9950      ;;
9951    freebsd-*)
9952      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9953      need_version=yes
9954      ;;
9955  esac
9956  shlibpath_var=LD_LIBRARY_PATH
9957  case $host_os in
9958  freebsd2.*)
9959    shlibpath_overrides_runpath=yes
9960    ;;
9961  freebsd3.[01]* | freebsdelf3.[01]*)
9962    shlibpath_overrides_runpath=yes
9963    hardcode_into_libs=yes
9964    ;;
9965  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9966  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9967    shlibpath_overrides_runpath=no
9968    hardcode_into_libs=yes
9969    ;;
9970  *) # from 4.6 on, and DragonFly
9971    shlibpath_overrides_runpath=yes
9972    hardcode_into_libs=yes
9973    ;;
9974  esac
9975  ;;
9976
9977gnu*)
9978  version_type=linux
9979  need_lib_prefix=no
9980  need_version=no
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9982  soname_spec='${libname}${release}${shared_ext}$major'
9983  shlibpath_var=LD_LIBRARY_PATH
9984  hardcode_into_libs=yes
9985  ;;
9986
9987haiku*)
9988  version_type=linux
9989  need_lib_prefix=no
9990  need_version=no
9991  dynamic_linker="$host_os runtime_loader"
9992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9993  soname_spec='${libname}${release}${shared_ext}$major'
9994  shlibpath_var=LIBRARY_PATH
9995  shlibpath_overrides_runpath=yes
9996  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9997  hardcode_into_libs=yes
9998  ;;
9999
10000hpux9* | hpux10* | hpux11*)
10001  # Give a soname corresponding to the major version so that dld.sl refuses to
10002  # link against other versions.
10003  version_type=sunos
10004  need_lib_prefix=no
10005  need_version=no
10006  case $host_cpu in
10007  ia64*)
10008    shrext_cmds='.so'
10009    hardcode_into_libs=yes
10010    dynamic_linker="$host_os dld.so"
10011    shlibpath_var=LD_LIBRARY_PATH
10012    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014    soname_spec='${libname}${release}${shared_ext}$major'
10015    if test "X$HPUX_IA64_MODE" = X32; then
10016      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10017    else
10018      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10019    fi
10020    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10021    ;;
10022  hppa*64*)
10023    shrext_cmds='.sl'
10024    hardcode_into_libs=yes
10025    dynamic_linker="$host_os dld.sl"
10026    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10027    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10028    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029    soname_spec='${libname}${release}${shared_ext}$major'
10030    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10031    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10032    ;;
10033  *)
10034    shrext_cmds='.sl'
10035    dynamic_linker="$host_os dld.sl"
10036    shlibpath_var=SHLIB_PATH
10037    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10038    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10039    soname_spec='${libname}${release}${shared_ext}$major'
10040    ;;
10041  esac
10042  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10043  postinstall_cmds='chmod 555 $lib'
10044  # or fails outright, so override atomically:
10045  install_override_mode=555
10046  ;;
10047
10048interix[3-9]*)
10049  version_type=linux
10050  need_lib_prefix=no
10051  need_version=no
10052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10053  soname_spec='${libname}${release}${shared_ext}$major'
10054  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10055  shlibpath_var=LD_LIBRARY_PATH
10056  shlibpath_overrides_runpath=no
10057  hardcode_into_libs=yes
10058  ;;
10059
10060irix5* | irix6* | nonstopux*)
10061  case $host_os in
10062    nonstopux*) version_type=nonstopux ;;
10063    *)
10064	if test "$lt_cv_prog_gnu_ld" = yes; then
10065		version_type=linux
10066	else
10067		version_type=irix
10068	fi ;;
10069  esac
10070  need_lib_prefix=no
10071  need_version=no
10072  soname_spec='${libname}${release}${shared_ext}$major'
10073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10074  case $host_os in
10075  irix5* | nonstopux*)
10076    libsuff= shlibsuff=
10077    ;;
10078  *)
10079    case $LD in # libtool.m4 will add one of these switches to LD
10080    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10081      libsuff= shlibsuff= libmagic=32-bit;;
10082    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10083      libsuff=32 shlibsuff=N32 libmagic=N32;;
10084    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10085      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10086    *) libsuff= shlibsuff= libmagic=never-match;;
10087    esac
10088    ;;
10089  esac
10090  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10091  shlibpath_overrides_runpath=no
10092  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10093  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10094  hardcode_into_libs=yes
10095  ;;
10096
10097# No shared lib support for Linux oldld, aout, or coff.
10098linux*oldld* | linux*aout* | linux*coff*)
10099  dynamic_linker=no
10100  ;;
10101
10102# This must be Linux ELF.
10103linux* | k*bsd*-gnu | kopensolaris*-gnu)
10104  version_type=linux
10105  need_lib_prefix=no
10106  need_version=no
10107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108  soname_spec='${libname}${release}${shared_ext}$major'
10109  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10110  shlibpath_var=LD_LIBRARY_PATH
10111  shlibpath_overrides_runpath=no
10112
10113  # Some binutils ld are patched to set DT_RUNPATH
10114  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10115  $as_echo_n "(cached) " >&6
10116else
10117  lt_cv_shlibpath_overrides_runpath=no
10118    save_LDFLAGS=$LDFLAGS
10119    save_libdir=$libdir
10120    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10121	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10122    if test x$gcc_no_link = xyes; then
10123  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10124fi
10125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h.  */
10127
10128int
10129main ()
10130{
10131
10132  ;
10133  return 0;
10134}
10135_ACEOF
10136if ac_fn_c_try_link "$LINENO"; then :
10137  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10138  lt_cv_shlibpath_overrides_runpath=yes
10139fi
10140fi
10141rm -f core conftest.err conftest.$ac_objext \
10142    conftest$ac_exeext conftest.$ac_ext
10143    LDFLAGS=$save_LDFLAGS
10144    libdir=$save_libdir
10145
10146fi
10147
10148  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10149
10150  # This implies no fast_install, which is unacceptable.
10151  # Some rework will be needed to allow for fast_install
10152  # before this can be enabled.
10153  hardcode_into_libs=yes
10154
10155  # Append ld.so.conf contents to the search path
10156  if test -f /etc/ld.so.conf; then
10157    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' ' '`
10158    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10159  fi
10160
10161  # We used to test for /lib/ld.so.1 and disable shared libraries on
10162  # powerpc, because MkLinux only supported shared libraries with the
10163  # GNU dynamic linker.  Since this was broken with cross compilers,
10164  # most powerpc-linux boxes support dynamic linking these days and
10165  # people can always --disable-shared, the test was removed, and we
10166  # assume the GNU/Linux dynamic linker is in use.
10167  dynamic_linker='GNU/Linux ld.so'
10168  ;;
10169
10170netbsd*)
10171  version_type=sunos
10172  need_lib_prefix=no
10173  need_version=no
10174  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10175    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10176    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10177    dynamic_linker='NetBSD (a.out) ld.so'
10178  else
10179    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10180    soname_spec='${libname}${release}${shared_ext}$major'
10181    dynamic_linker='NetBSD ld.elf_so'
10182  fi
10183  shlibpath_var=LD_LIBRARY_PATH
10184  shlibpath_overrides_runpath=yes
10185  hardcode_into_libs=yes
10186  ;;
10187
10188newsos6)
10189  version_type=linux
10190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191  shlibpath_var=LD_LIBRARY_PATH
10192  shlibpath_overrides_runpath=yes
10193  ;;
10194
10195*nto* | *qnx*)
10196  version_type=qnx
10197  need_lib_prefix=no
10198  need_version=no
10199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10200  soname_spec='${libname}${release}${shared_ext}$major'
10201  shlibpath_var=LD_LIBRARY_PATH
10202  shlibpath_overrides_runpath=no
10203  hardcode_into_libs=yes
10204  dynamic_linker='ldqnx.so'
10205  ;;
10206
10207openbsd*)
10208  version_type=sunos
10209  sys_lib_dlsearch_path_spec="/usr/lib"
10210  need_lib_prefix=no
10211  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10212  case $host_os in
10213    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10214    *)				need_version=no  ;;
10215  esac
10216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10217  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10218  shlibpath_var=LD_LIBRARY_PATH
10219  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10220    case $host_os in
10221      openbsd2.[89] | openbsd2.[89].*)
10222	shlibpath_overrides_runpath=no
10223	;;
10224      *)
10225	shlibpath_overrides_runpath=yes
10226	;;
10227      esac
10228  else
10229    shlibpath_overrides_runpath=yes
10230  fi
10231  ;;
10232
10233os2*)
10234  libname_spec='$name'
10235  shrext_cmds=".dll"
10236  need_lib_prefix=no
10237  library_names_spec='$libname${shared_ext} $libname.a'
10238  dynamic_linker='OS/2 ld.exe'
10239  shlibpath_var=LIBPATH
10240  ;;
10241
10242osf3* | osf4* | osf5*)
10243  version_type=osf
10244  need_lib_prefix=no
10245  need_version=no
10246  soname_spec='${libname}${release}${shared_ext}$major'
10247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248  shlibpath_var=LD_LIBRARY_PATH
10249  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10250  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10251  ;;
10252
10253rdos*)
10254  dynamic_linker=no
10255  ;;
10256
10257solaris*)
10258  version_type=linux
10259  need_lib_prefix=no
10260  need_version=no
10261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262  soname_spec='${libname}${release}${shared_ext}$major'
10263  shlibpath_var=LD_LIBRARY_PATH
10264  shlibpath_overrides_runpath=yes
10265  hardcode_into_libs=yes
10266  # ldd complains unless libraries are executable
10267  postinstall_cmds='chmod +x $lib'
10268  ;;
10269
10270sunos4*)
10271  version_type=sunos
10272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10273  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10274  shlibpath_var=LD_LIBRARY_PATH
10275  shlibpath_overrides_runpath=yes
10276  if test "$with_gnu_ld" = yes; then
10277    need_lib_prefix=no
10278  fi
10279  need_version=yes
10280  ;;
10281
10282sysv4 | sysv4.3*)
10283  version_type=linux
10284  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10285  soname_spec='${libname}${release}${shared_ext}$major'
10286  shlibpath_var=LD_LIBRARY_PATH
10287  case $host_vendor in
10288    sni)
10289      shlibpath_overrides_runpath=no
10290      need_lib_prefix=no
10291      runpath_var=LD_RUN_PATH
10292      ;;
10293    siemens)
10294      need_lib_prefix=no
10295      ;;
10296    motorola)
10297      need_lib_prefix=no
10298      need_version=no
10299      shlibpath_overrides_runpath=no
10300      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10301      ;;
10302  esac
10303  ;;
10304
10305sysv4*MP*)
10306  if test -d /usr/nec ;then
10307    version_type=linux
10308    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10309    soname_spec='$libname${shared_ext}.$major'
10310    shlibpath_var=LD_LIBRARY_PATH
10311  fi
10312  ;;
10313
10314sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10315  version_type=freebsd-elf
10316  need_lib_prefix=no
10317  need_version=no
10318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10319  soname_spec='${libname}${release}${shared_ext}$major'
10320  shlibpath_var=LD_LIBRARY_PATH
10321  shlibpath_overrides_runpath=yes
10322  hardcode_into_libs=yes
10323  if test "$with_gnu_ld" = yes; then
10324    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10325  else
10326    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10327    case $host_os in
10328      sco3.2v5*)
10329        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10330	;;
10331    esac
10332  fi
10333  sys_lib_dlsearch_path_spec='/usr/lib'
10334  ;;
10335
10336tpf*)
10337  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10338  version_type=linux
10339  need_lib_prefix=no
10340  need_version=no
10341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342  shlibpath_var=LD_LIBRARY_PATH
10343  shlibpath_overrides_runpath=no
10344  hardcode_into_libs=yes
10345  ;;
10346
10347uts4*)
10348  version_type=linux
10349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350  soname_spec='${libname}${release}${shared_ext}$major'
10351  shlibpath_var=LD_LIBRARY_PATH
10352  ;;
10353
10354*)
10355  dynamic_linker=no
10356  ;;
10357esac
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10359$as_echo "$dynamic_linker" >&6; }
10360test "$dynamic_linker" = no && can_build_shared=no
10361
10362variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10363if test "$GCC" = yes; then
10364  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10365fi
10366
10367if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10368  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10369fi
10370if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10371  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10372fi
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10466$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10467hardcode_action=
10468if test -n "$hardcode_libdir_flag_spec" ||
10469   test -n "$runpath_var" ||
10470   test "X$hardcode_automatic" = "Xyes" ; then
10471
10472  # We can hardcode non-existent directories.
10473  if test "$hardcode_direct" != no &&
10474     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10475     # have to relink, otherwise we might link with an installed library
10476     # when we should be linking with a yet-to-be-installed one
10477     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10478     test "$hardcode_minus_L" != no; then
10479    # Linking always hardcodes the temporary library directory.
10480    hardcode_action=relink
10481  else
10482    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10483    hardcode_action=immediate
10484  fi
10485else
10486  # We cannot hardcode anything, or else we can only hardcode existing
10487  # directories.
10488  hardcode_action=unsupported
10489fi
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10491$as_echo "$hardcode_action" >&6; }
10492
10493if test "$hardcode_action" = relink ||
10494   test "$inherit_rpath" = yes; then
10495  # Fast installation is not supported
10496  enable_fast_install=no
10497elif test "$shlibpath_overrides_runpath" = yes ||
10498     test "$enable_shared" = no; then
10499  # Fast installation is not necessary
10500  enable_fast_install=needless
10501fi
10502
10503
10504
10505
10506
10507
10508  if test "x$enable_dlopen" != xyes; then
10509  enable_dlopen=unknown
10510  enable_dlopen_self=unknown
10511  enable_dlopen_self_static=unknown
10512else
10513  lt_cv_dlopen=no
10514  lt_cv_dlopen_libs=
10515
10516  case $host_os in
10517  beos*)
10518    lt_cv_dlopen="load_add_on"
10519    lt_cv_dlopen_libs=
10520    lt_cv_dlopen_self=yes
10521    ;;
10522
10523  mingw* | pw32* | cegcc*)
10524    lt_cv_dlopen="LoadLibrary"
10525    lt_cv_dlopen_libs=
10526    ;;
10527
10528  cygwin*)
10529    lt_cv_dlopen="dlopen"
10530    lt_cv_dlopen_libs=
10531    ;;
10532
10533  darwin*)
10534  # if libdl is installed we need to link against it
10535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10536$as_echo_n "checking for dlopen in -ldl... " >&6; }
10537if ${ac_cv_lib_dl_dlopen+:} false; then :
10538  $as_echo_n "(cached) " >&6
10539else
10540  ac_check_lib_save_LIBS=$LIBS
10541LIBS="-ldl  $LIBS"
10542if test x$gcc_no_link = xyes; then
10543  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10544fi
10545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546/* end confdefs.h.  */
10547
10548/* Override any GCC internal prototype to avoid an error.
10549   Use char because int might match the return type of a GCC
10550   builtin and then its argument prototype would still apply.  */
10551#ifdef __cplusplus
10552extern "C"
10553#endif
10554char dlopen ();
10555int
10556main ()
10557{
10558return dlopen ();
10559  ;
10560  return 0;
10561}
10562_ACEOF
10563if ac_fn_c_try_link "$LINENO"; then :
10564  ac_cv_lib_dl_dlopen=yes
10565else
10566  ac_cv_lib_dl_dlopen=no
10567fi
10568rm -f core conftest.err conftest.$ac_objext \
10569    conftest$ac_exeext conftest.$ac_ext
10570LIBS=$ac_check_lib_save_LIBS
10571fi
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10573$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10574if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10575  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10576else
10577
10578    lt_cv_dlopen="dyld"
10579    lt_cv_dlopen_libs=
10580    lt_cv_dlopen_self=yes
10581
10582fi
10583
10584    ;;
10585
10586  *)
10587    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10588if test "x$ac_cv_func_shl_load" = xyes; then :
10589  lt_cv_dlopen="shl_load"
10590else
10591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10592$as_echo_n "checking for shl_load in -ldld... " >&6; }
10593if ${ac_cv_lib_dld_shl_load+:} false; then :
10594  $as_echo_n "(cached) " >&6
10595else
10596  ac_check_lib_save_LIBS=$LIBS
10597LIBS="-ldld  $LIBS"
10598if test x$gcc_no_link = xyes; then
10599  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10600fi
10601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602/* end confdefs.h.  */
10603
10604/* Override any GCC internal prototype to avoid an error.
10605   Use char because int might match the return type of a GCC
10606   builtin and then its argument prototype would still apply.  */
10607#ifdef __cplusplus
10608extern "C"
10609#endif
10610char shl_load ();
10611int
10612main ()
10613{
10614return shl_load ();
10615  ;
10616  return 0;
10617}
10618_ACEOF
10619if ac_fn_c_try_link "$LINENO"; then :
10620  ac_cv_lib_dld_shl_load=yes
10621else
10622  ac_cv_lib_dld_shl_load=no
10623fi
10624rm -f core conftest.err conftest.$ac_objext \
10625    conftest$ac_exeext conftest.$ac_ext
10626LIBS=$ac_check_lib_save_LIBS
10627fi
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10629$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10630if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10631  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10632else
10633  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10634if test "x$ac_cv_func_dlopen" = xyes; then :
10635  lt_cv_dlopen="dlopen"
10636else
10637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10638$as_echo_n "checking for dlopen in -ldl... " >&6; }
10639if ${ac_cv_lib_dl_dlopen+:} false; then :
10640  $as_echo_n "(cached) " >&6
10641else
10642  ac_check_lib_save_LIBS=$LIBS
10643LIBS="-ldl  $LIBS"
10644if test x$gcc_no_link = xyes; then
10645  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10646fi
10647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648/* end confdefs.h.  */
10649
10650/* Override any GCC internal prototype to avoid an error.
10651   Use char because int might match the return type of a GCC
10652   builtin and then its argument prototype would still apply.  */
10653#ifdef __cplusplus
10654extern "C"
10655#endif
10656char dlopen ();
10657int
10658main ()
10659{
10660return dlopen ();
10661  ;
10662  return 0;
10663}
10664_ACEOF
10665if ac_fn_c_try_link "$LINENO"; then :
10666  ac_cv_lib_dl_dlopen=yes
10667else
10668  ac_cv_lib_dl_dlopen=no
10669fi
10670rm -f core conftest.err conftest.$ac_objext \
10671    conftest$ac_exeext conftest.$ac_ext
10672LIBS=$ac_check_lib_save_LIBS
10673fi
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10675$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10676if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10677  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10678else
10679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10680$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10681if ${ac_cv_lib_svld_dlopen+:} false; then :
10682  $as_echo_n "(cached) " >&6
10683else
10684  ac_check_lib_save_LIBS=$LIBS
10685LIBS="-lsvld  $LIBS"
10686if test x$gcc_no_link = xyes; then
10687  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10688fi
10689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690/* end confdefs.h.  */
10691
10692/* Override any GCC internal prototype to avoid an error.
10693   Use char because int might match the return type of a GCC
10694   builtin and then its argument prototype would still apply.  */
10695#ifdef __cplusplus
10696extern "C"
10697#endif
10698char dlopen ();
10699int
10700main ()
10701{
10702return dlopen ();
10703  ;
10704  return 0;
10705}
10706_ACEOF
10707if ac_fn_c_try_link "$LINENO"; then :
10708  ac_cv_lib_svld_dlopen=yes
10709else
10710  ac_cv_lib_svld_dlopen=no
10711fi
10712rm -f core conftest.err conftest.$ac_objext \
10713    conftest$ac_exeext conftest.$ac_ext
10714LIBS=$ac_check_lib_save_LIBS
10715fi
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10717$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10718if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10719  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10720else
10721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10722$as_echo_n "checking for dld_link in -ldld... " >&6; }
10723if ${ac_cv_lib_dld_dld_link+:} false; then :
10724  $as_echo_n "(cached) " >&6
10725else
10726  ac_check_lib_save_LIBS=$LIBS
10727LIBS="-ldld  $LIBS"
10728if test x$gcc_no_link = xyes; then
10729  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10730fi
10731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732/* end confdefs.h.  */
10733
10734/* Override any GCC internal prototype to avoid an error.
10735   Use char because int might match the return type of a GCC
10736   builtin and then its argument prototype would still apply.  */
10737#ifdef __cplusplus
10738extern "C"
10739#endif
10740char dld_link ();
10741int
10742main ()
10743{
10744return dld_link ();
10745  ;
10746  return 0;
10747}
10748_ACEOF
10749if ac_fn_c_try_link "$LINENO"; then :
10750  ac_cv_lib_dld_dld_link=yes
10751else
10752  ac_cv_lib_dld_dld_link=no
10753fi
10754rm -f core conftest.err conftest.$ac_objext \
10755    conftest$ac_exeext conftest.$ac_ext
10756LIBS=$ac_check_lib_save_LIBS
10757fi
10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10759$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10760if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10761  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10762fi
10763
10764
10765fi
10766
10767
10768fi
10769
10770
10771fi
10772
10773
10774fi
10775
10776
10777fi
10778
10779    ;;
10780  esac
10781
10782  if test "x$lt_cv_dlopen" != xno; then
10783    enable_dlopen=yes
10784  else
10785    enable_dlopen=no
10786  fi
10787
10788  case $lt_cv_dlopen in
10789  dlopen)
10790    save_CPPFLAGS="$CPPFLAGS"
10791    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10792
10793    save_LDFLAGS="$LDFLAGS"
10794    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10795
10796    save_LIBS="$LIBS"
10797    LIBS="$lt_cv_dlopen_libs $LIBS"
10798
10799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10800$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10801if ${lt_cv_dlopen_self+:} false; then :
10802  $as_echo_n "(cached) " >&6
10803else
10804  	  if test "$cross_compiling" = yes; then :
10805  lt_cv_dlopen_self=cross
10806else
10807  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10808  lt_status=$lt_dlunknown
10809  cat > conftest.$ac_ext <<_LT_EOF
10810#line 10810 "configure"
10811#include "confdefs.h"
10812
10813#if HAVE_DLFCN_H
10814#include <dlfcn.h>
10815#endif
10816
10817#include <stdio.h>
10818
10819#ifdef RTLD_GLOBAL
10820#  define LT_DLGLOBAL		RTLD_GLOBAL
10821#else
10822#  ifdef DL_GLOBAL
10823#    define LT_DLGLOBAL		DL_GLOBAL
10824#  else
10825#    define LT_DLGLOBAL		0
10826#  endif
10827#endif
10828
10829/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10830   find out it does not work in some platform. */
10831#ifndef LT_DLLAZY_OR_NOW
10832#  ifdef RTLD_LAZY
10833#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10834#  else
10835#    ifdef DL_LAZY
10836#      define LT_DLLAZY_OR_NOW		DL_LAZY
10837#    else
10838#      ifdef RTLD_NOW
10839#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10840#      else
10841#        ifdef DL_NOW
10842#          define LT_DLLAZY_OR_NOW	DL_NOW
10843#        else
10844#          define LT_DLLAZY_OR_NOW	0
10845#        endif
10846#      endif
10847#    endif
10848#  endif
10849#endif
10850
10851/* When -fvisbility=hidden is used, assume the code has been annotated
10852   correspondingly for the symbols needed.  */
10853#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10854void fnord () __attribute__((visibility("default")));
10855#endif
10856
10857void fnord () { int i=42; }
10858int main ()
10859{
10860  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10861  int status = $lt_dlunknown;
10862
10863  if (self)
10864    {
10865      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10866      else
10867        {
10868	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10869          else puts (dlerror ());
10870	}
10871      /* dlclose (self); */
10872    }
10873  else
10874    puts (dlerror ());
10875
10876  return status;
10877}
10878_LT_EOF
10879  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10880  (eval $ac_link) 2>&5
10881  ac_status=$?
10882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10883  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10884    (./conftest; exit; ) >&5 2>/dev/null
10885    lt_status=$?
10886    case x$lt_status in
10887      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10888      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10889      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10890    esac
10891  else :
10892    # compilation failed
10893    lt_cv_dlopen_self=no
10894  fi
10895fi
10896rm -fr conftest*
10897
10898
10899fi
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10901$as_echo "$lt_cv_dlopen_self" >&6; }
10902
10903    if test "x$lt_cv_dlopen_self" = xyes; then
10904      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10905      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10906$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10907if ${lt_cv_dlopen_self_static+:} false; then :
10908  $as_echo_n "(cached) " >&6
10909else
10910  	  if test "$cross_compiling" = yes; then :
10911  lt_cv_dlopen_self_static=cross
10912else
10913  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10914  lt_status=$lt_dlunknown
10915  cat > conftest.$ac_ext <<_LT_EOF
10916#line 10916 "configure"
10917#include "confdefs.h"
10918
10919#if HAVE_DLFCN_H
10920#include <dlfcn.h>
10921#endif
10922
10923#include <stdio.h>
10924
10925#ifdef RTLD_GLOBAL
10926#  define LT_DLGLOBAL		RTLD_GLOBAL
10927#else
10928#  ifdef DL_GLOBAL
10929#    define LT_DLGLOBAL		DL_GLOBAL
10930#  else
10931#    define LT_DLGLOBAL		0
10932#  endif
10933#endif
10934
10935/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10936   find out it does not work in some platform. */
10937#ifndef LT_DLLAZY_OR_NOW
10938#  ifdef RTLD_LAZY
10939#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10940#  else
10941#    ifdef DL_LAZY
10942#      define LT_DLLAZY_OR_NOW		DL_LAZY
10943#    else
10944#      ifdef RTLD_NOW
10945#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10946#      else
10947#        ifdef DL_NOW
10948#          define LT_DLLAZY_OR_NOW	DL_NOW
10949#        else
10950#          define LT_DLLAZY_OR_NOW	0
10951#        endif
10952#      endif
10953#    endif
10954#  endif
10955#endif
10956
10957/* When -fvisbility=hidden is used, assume the code has been annotated
10958   correspondingly for the symbols needed.  */
10959#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10960void fnord () __attribute__((visibility("default")));
10961#endif
10962
10963void fnord () { int i=42; }
10964int main ()
10965{
10966  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10967  int status = $lt_dlunknown;
10968
10969  if (self)
10970    {
10971      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10972      else
10973        {
10974	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10975          else puts (dlerror ());
10976	}
10977      /* dlclose (self); */
10978    }
10979  else
10980    puts (dlerror ());
10981
10982  return status;
10983}
10984_LT_EOF
10985  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10986  (eval $ac_link) 2>&5
10987  ac_status=$?
10988  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10990    (./conftest; exit; ) >&5 2>/dev/null
10991    lt_status=$?
10992    case x$lt_status in
10993      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10994      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10995      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10996    esac
10997  else :
10998    # compilation failed
10999    lt_cv_dlopen_self_static=no
11000  fi
11001fi
11002rm -fr conftest*
11003
11004
11005fi
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11007$as_echo "$lt_cv_dlopen_self_static" >&6; }
11008    fi
11009
11010    CPPFLAGS="$save_CPPFLAGS"
11011    LDFLAGS="$save_LDFLAGS"
11012    LIBS="$save_LIBS"
11013    ;;
11014  esac
11015
11016  case $lt_cv_dlopen_self in
11017  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11018  *) enable_dlopen_self=unknown ;;
11019  esac
11020
11021  case $lt_cv_dlopen_self_static in
11022  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11023  *) enable_dlopen_self_static=unknown ;;
11024  esac
11025fi
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043striplib=
11044old_striplib=
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11046$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11047if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11048  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11049  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11051$as_echo "yes" >&6; }
11052else
11053# FIXME - insert some real tests, host_os isn't really good enough
11054  case $host_os in
11055  darwin*)
11056    if test -n "$STRIP" ; then
11057      striplib="$STRIP -x"
11058      old_striplib="$STRIP -S"
11059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11060$as_echo "yes" >&6; }
11061    else
11062      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
11064    fi
11065    ;;
11066  *)
11067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068$as_echo "no" >&6; }
11069    ;;
11070  esac
11071fi
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084  # Report which library types will actually be built
11085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11086$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11088$as_echo "$can_build_shared" >&6; }
11089
11090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11091$as_echo_n "checking whether to build shared libraries... " >&6; }
11092  test "$can_build_shared" = "no" && enable_shared=no
11093
11094  # On AIX, shared libraries and static libraries use the same namespace, and
11095  # are all built from PIC.
11096  case $host_os in
11097  aix3*)
11098    test "$enable_shared" = yes && enable_static=no
11099    if test -n "$RANLIB"; then
11100      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11101      postinstall_cmds='$RANLIB $lib'
11102    fi
11103    ;;
11104
11105  aix[4-9]*)
11106    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11107      test "$enable_shared" = yes && enable_static=no
11108    fi
11109    ;;
11110  esac
11111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11112$as_echo "$enable_shared" >&6; }
11113
11114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11115$as_echo_n "checking whether to build static libraries... " >&6; }
11116  # Make sure either enable_shared or enable_static is yes.
11117  test "$enable_shared" = yes || enable_static=yes
11118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11119$as_echo "$enable_static" >&6; }
11120
11121
11122
11123
11124fi
11125ac_ext=c
11126ac_cpp='$CPP $CPPFLAGS'
11127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11129ac_compiler_gnu=$ac_cv_c_compiler_gnu
11130
11131CC="$lt_save_CC"
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145        ac_config_commands="$ac_config_commands libtool"
11146
11147
11148
11149
11150# Only expand once:
11151
11152
11153
11154
11155
11156case $host in
11157  *-cygwin* | *-mingw*)
11158    # 'host' will be top-level target in the case of a target lib,
11159    # we must compare to with_cross_host to decide if this is a native
11160    # or cross-compiler and select where to install dlls appropriately.
11161    if test -n "$with_cross_host" &&
11162	test x"$with_cross_host" != x"no"; then
11163      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11164    else
11165      lt_host_flags='-no-undefined -bindir "$(bindir)"';
11166    fi
11167    ;;
11168  *)
11169    lt_host_flags=
11170    ;;
11171esac
11172
11173
11174
11175
11176
11177
11178
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11180$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11181    # Check whether --enable-maintainer-mode was given.
11182if test "${enable_maintainer_mode+set}" = set; then :
11183  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11184else
11185  USE_MAINTAINER_MODE=no
11186fi
11187
11188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11189$as_echo "$USE_MAINTAINER_MODE" >&6; }
11190   if test $USE_MAINTAINER_MODE = yes; then
11191  MAINTAINER_MODE_TRUE=
11192  MAINTAINER_MODE_FALSE='#'
11193else
11194  MAINTAINER_MODE_TRUE='#'
11195  MAINTAINER_MODE_FALSE=
11196fi
11197
11198  MAINT=$MAINTAINER_MODE_TRUE
11199
11200
11201
11202ac_ext=c
11203ac_cpp='$CPP $CPPFLAGS'
11204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11206ac_compiler_gnu=$ac_cv_c_compiler_gnu
11207
11208# The same as in boehm-gc and libstdc++. Have to borrow it from there.
11209# We must force CC to /not/ be precious variables; otherwise
11210# the wrong, non-multilib-adjusted value will be used in multilibs.
11211# As a side effect, we have to subst CFLAGS ourselves.
11212
11213
11214
11215ac_ext=c
11216ac_cpp='$CPP $CPPFLAGS'
11217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11219ac_compiler_gnu=$ac_cv_c_compiler_gnu
11220if test -n "$ac_tool_prefix"; then
11221  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11222set dummy ${ac_tool_prefix}gcc; ac_word=$2
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
11225if ${ac_cv_prog_CC+:} false; then :
11226  $as_echo_n "(cached) " >&6
11227else
11228  if test -n "$CC"; then
11229  ac_cv_prog_CC="$CC" # Let the user override the test.
11230else
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234  IFS=$as_save_IFS
11235  test -z "$as_dir" && as_dir=.
11236    for ac_exec_ext in '' $ac_executable_extensions; do
11237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240    break 2
11241  fi
11242done
11243  done
11244IFS=$as_save_IFS
11245
11246fi
11247fi
11248CC=$ac_cv_prog_CC
11249if test -n "$CC"; then
11250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11251$as_echo "$CC" >&6; }
11252else
11253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254$as_echo "no" >&6; }
11255fi
11256
11257
11258fi
11259if test -z "$ac_cv_prog_CC"; then
11260  ac_ct_CC=$CC
11261  # Extract the first word of "gcc", so it can be a program name with args.
11262set dummy gcc; ac_word=$2
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11264$as_echo_n "checking for $ac_word... " >&6; }
11265if ${ac_cv_prog_ac_ct_CC+:} false; then :
11266  $as_echo_n "(cached) " >&6
11267else
11268  if test -n "$ac_ct_CC"; then
11269  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11270else
11271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272for as_dir in $PATH
11273do
11274  IFS=$as_save_IFS
11275  test -z "$as_dir" && as_dir=.
11276    for ac_exec_ext in '' $ac_executable_extensions; do
11277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11278    ac_cv_prog_ac_ct_CC="gcc"
11279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280    break 2
11281  fi
11282done
11283  done
11284IFS=$as_save_IFS
11285
11286fi
11287fi
11288ac_ct_CC=$ac_cv_prog_ac_ct_CC
11289if test -n "$ac_ct_CC"; then
11290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11291$as_echo "$ac_ct_CC" >&6; }
11292else
11293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294$as_echo "no" >&6; }
11295fi
11296
11297  if test "x$ac_ct_CC" = x; then
11298    CC=""
11299  else
11300    case $cross_compiling:$ac_tool_warned in
11301yes:)
11302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11304ac_tool_warned=yes ;;
11305esac
11306    CC=$ac_ct_CC
11307  fi
11308else
11309  CC="$ac_cv_prog_CC"
11310fi
11311
11312if test -z "$CC"; then
11313          if test -n "$ac_tool_prefix"; then
11314    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11315set dummy ${ac_tool_prefix}cc; ac_word=$2
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
11318if ${ac_cv_prog_CC+:} false; then :
11319  $as_echo_n "(cached) " >&6
11320else
11321  if test -n "$CC"; then
11322  ac_cv_prog_CC="$CC" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327  IFS=$as_save_IFS
11328  test -z "$as_dir" && as_dir=.
11329    for ac_exec_ext in '' $ac_executable_extensions; do
11330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331    ac_cv_prog_CC="${ac_tool_prefix}cc"
11332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333    break 2
11334  fi
11335done
11336  done
11337IFS=$as_save_IFS
11338
11339fi
11340fi
11341CC=$ac_cv_prog_CC
11342if test -n "$CC"; then
11343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11344$as_echo "$CC" >&6; }
11345else
11346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347$as_echo "no" >&6; }
11348fi
11349
11350
11351  fi
11352fi
11353if test -z "$CC"; then
11354  # Extract the first word of "cc", so it can be a program name with args.
11355set dummy cc; ac_word=$2
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11357$as_echo_n "checking for $ac_word... " >&6; }
11358if ${ac_cv_prog_CC+:} false; then :
11359  $as_echo_n "(cached) " >&6
11360else
11361  if test -n "$CC"; then
11362  ac_cv_prog_CC="$CC" # Let the user override the test.
11363else
11364  ac_prog_rejected=no
11365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366for as_dir in $PATH
11367do
11368  IFS=$as_save_IFS
11369  test -z "$as_dir" && as_dir=.
11370    for ac_exec_ext in '' $ac_executable_extensions; do
11371  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11373       ac_prog_rejected=yes
11374       continue
11375     fi
11376    ac_cv_prog_CC="cc"
11377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11378    break 2
11379  fi
11380done
11381  done
11382IFS=$as_save_IFS
11383
11384if test $ac_prog_rejected = yes; then
11385  # We found a bogon in the path, so make sure we never use it.
11386  set dummy $ac_cv_prog_CC
11387  shift
11388  if test $# != 0; then
11389    # We chose a different compiler from the bogus one.
11390    # However, it has the same basename, so the bogon will be chosen
11391    # first if we set CC to just the basename; use the full file name.
11392    shift
11393    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11394  fi
11395fi
11396fi
11397fi
11398CC=$ac_cv_prog_CC
11399if test -n "$CC"; then
11400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11401$as_echo "$CC" >&6; }
11402else
11403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404$as_echo "no" >&6; }
11405fi
11406
11407
11408fi
11409if test -z "$CC"; then
11410  if test -n "$ac_tool_prefix"; then
11411  for ac_prog in cl.exe
11412  do
11413    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11416$as_echo_n "checking for $ac_word... " >&6; }
11417if ${ac_cv_prog_CC+:} false; then :
11418  $as_echo_n "(cached) " >&6
11419else
11420  if test -n "$CC"; then
11421  ac_cv_prog_CC="$CC" # Let the user override the test.
11422else
11423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424for as_dir in $PATH
11425do
11426  IFS=$as_save_IFS
11427  test -z "$as_dir" && as_dir=.
11428    for ac_exec_ext in '' $ac_executable_extensions; do
11429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432    break 2
11433  fi
11434done
11435  done
11436IFS=$as_save_IFS
11437
11438fi
11439fi
11440CC=$ac_cv_prog_CC
11441if test -n "$CC"; then
11442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11443$as_echo "$CC" >&6; }
11444else
11445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446$as_echo "no" >&6; }
11447fi
11448
11449
11450    test -n "$CC" && break
11451  done
11452fi
11453if test -z "$CC"; then
11454  ac_ct_CC=$CC
11455  for ac_prog in cl.exe
11456do
11457  # Extract the first word of "$ac_prog", so it can be a program name with args.
11458set dummy $ac_prog; ac_word=$2
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11460$as_echo_n "checking for $ac_word... " >&6; }
11461if ${ac_cv_prog_ac_ct_CC+:} false; then :
11462  $as_echo_n "(cached) " >&6
11463else
11464  if test -n "$ac_ct_CC"; then
11465  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11466else
11467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468for as_dir in $PATH
11469do
11470  IFS=$as_save_IFS
11471  test -z "$as_dir" && as_dir=.
11472    for ac_exec_ext in '' $ac_executable_extensions; do
11473  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11474    ac_cv_prog_ac_ct_CC="$ac_prog"
11475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11476    break 2
11477  fi
11478done
11479  done
11480IFS=$as_save_IFS
11481
11482fi
11483fi
11484ac_ct_CC=$ac_cv_prog_ac_ct_CC
11485if test -n "$ac_ct_CC"; then
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11487$as_echo "$ac_ct_CC" >&6; }
11488else
11489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490$as_echo "no" >&6; }
11491fi
11492
11493
11494  test -n "$ac_ct_CC" && break
11495done
11496
11497  if test "x$ac_ct_CC" = x; then
11498    CC=""
11499  else
11500    case $cross_compiling:$ac_tool_warned in
11501yes:)
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11504ac_tool_warned=yes ;;
11505esac
11506    CC=$ac_ct_CC
11507  fi
11508fi
11509
11510fi
11511
11512
11513test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11515as_fn_error $? "no acceptable C compiler found in \$PATH
11516See \`config.log' for more details" "$LINENO" 5; }
11517
11518# Provide some information about the compiler.
11519$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11520set X $ac_compile
11521ac_compiler=$2
11522for ac_option in --version -v -V -qversion; do
11523  { { ac_try="$ac_compiler $ac_option >&5"
11524case "(($ac_try" in
11525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526  *) ac_try_echo=$ac_try;;
11527esac
11528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11529$as_echo "$ac_try_echo"; } >&5
11530  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11531  ac_status=$?
11532  if test -s conftest.err; then
11533    sed '10a\
11534... rest of stderr output deleted ...
11535         10q' conftest.err >conftest.er1
11536    cat conftest.er1 >&5
11537  fi
11538  rm -f conftest.er1 conftest.err
11539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11540  test $ac_status = 0; }
11541done
11542
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11545if ${ac_cv_c_compiler_gnu+:} false; then :
11546  $as_echo_n "(cached) " >&6
11547else
11548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549/* end confdefs.h.  */
11550
11551int
11552main ()
11553{
11554#ifndef __GNUC__
11555       choke me
11556#endif
11557
11558  ;
11559  return 0;
11560}
11561_ACEOF
11562if ac_fn_c_try_compile "$LINENO"; then :
11563  ac_compiler_gnu=yes
11564else
11565  ac_compiler_gnu=no
11566fi
11567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568ac_cv_c_compiler_gnu=$ac_compiler_gnu
11569
11570fi
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11572$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11573if test $ac_compiler_gnu = yes; then
11574  GCC=yes
11575else
11576  GCC=
11577fi
11578ac_test_CFLAGS=${CFLAGS+set}
11579ac_save_CFLAGS=$CFLAGS
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11581$as_echo_n "checking whether $CC accepts -g... " >&6; }
11582if ${ac_cv_prog_cc_g+:} false; then :
11583  $as_echo_n "(cached) " >&6
11584else
11585  ac_save_c_werror_flag=$ac_c_werror_flag
11586   ac_c_werror_flag=yes
11587   ac_cv_prog_cc_g=no
11588   CFLAGS="-g"
11589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590/* end confdefs.h.  */
11591
11592int
11593main ()
11594{
11595
11596  ;
11597  return 0;
11598}
11599_ACEOF
11600if ac_fn_c_try_compile "$LINENO"; then :
11601  ac_cv_prog_cc_g=yes
11602else
11603  CFLAGS=""
11604      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605/* end confdefs.h.  */
11606
11607int
11608main ()
11609{
11610
11611  ;
11612  return 0;
11613}
11614_ACEOF
11615if ac_fn_c_try_compile "$LINENO"; then :
11616
11617else
11618  ac_c_werror_flag=$ac_save_c_werror_flag
11619	 CFLAGS="-g"
11620	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621/* end confdefs.h.  */
11622
11623int
11624main ()
11625{
11626
11627  ;
11628  return 0;
11629}
11630_ACEOF
11631if ac_fn_c_try_compile "$LINENO"; then :
11632  ac_cv_prog_cc_g=yes
11633fi
11634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11635fi
11636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637fi
11638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11639   ac_c_werror_flag=$ac_save_c_werror_flag
11640fi
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11642$as_echo "$ac_cv_prog_cc_g" >&6; }
11643if test "$ac_test_CFLAGS" = set; then
11644  CFLAGS=$ac_save_CFLAGS
11645elif test $ac_cv_prog_cc_g = yes; then
11646  if test "$GCC" = yes; then
11647    CFLAGS="-g -O2"
11648  else
11649    CFLAGS="-g"
11650  fi
11651else
11652  if test "$GCC" = yes; then
11653    CFLAGS="-O2"
11654  else
11655    CFLAGS=
11656  fi
11657fi
11658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11660if ${ac_cv_prog_cc_c89+:} false; then :
11661  $as_echo_n "(cached) " >&6
11662else
11663  ac_cv_prog_cc_c89=no
11664ac_save_CC=$CC
11665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666/* end confdefs.h.  */
11667#include <stdarg.h>
11668#include <stdio.h>
11669struct stat;
11670/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11671struct buf { int x; };
11672FILE * (*rcsopen) (struct buf *, struct stat *, int);
11673static char *e (p, i)
11674     char **p;
11675     int i;
11676{
11677  return p[i];
11678}
11679static char *f (char * (*g) (char **, int), char **p, ...)
11680{
11681  char *s;
11682  va_list v;
11683  va_start (v,p);
11684  s = g (p, va_arg (v,int));
11685  va_end (v);
11686  return s;
11687}
11688
11689/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11690   function prototypes and stuff, but not '\xHH' hex character constants.
11691   These don't provoke an error unfortunately, instead are silently treated
11692   as 'x'.  The following induces an error, until -std is added to get
11693   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11694   array size at least.  It's necessary to write '\x00'==0 to get something
11695   that's true only with -std.  */
11696int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11697
11698/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11699   inside strings and character constants.  */
11700#define FOO(x) 'x'
11701int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11702
11703int test (int i, double x);
11704struct s1 {int (*f) (int a);};
11705struct s2 {int (*f) (double a);};
11706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11707int argc;
11708char **argv;
11709int
11710main ()
11711{
11712return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11713  ;
11714  return 0;
11715}
11716_ACEOF
11717for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11718	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11719do
11720  CC="$ac_save_CC $ac_arg"
11721  if ac_fn_c_try_compile "$LINENO"; then :
11722  ac_cv_prog_cc_c89=$ac_arg
11723fi
11724rm -f core conftest.err conftest.$ac_objext
11725  test "x$ac_cv_prog_cc_c89" != "xno" && break
11726done
11727rm -f conftest.$ac_ext
11728CC=$ac_save_CC
11729
11730fi
11731# AC_CACHE_VAL
11732case "x$ac_cv_prog_cc_c89" in
11733  x)
11734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11735$as_echo "none needed" >&6; } ;;
11736  xno)
11737    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11738$as_echo "unsupported" >&6; } ;;
11739  *)
11740    CC="$CC $ac_cv_prog_cc_c89"
11741    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11742$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11743esac
11744if test "x$ac_cv_prog_cc_c89" != xno; then :
11745
11746fi
11747
11748ac_ext=c
11749ac_cpp='$CPP $CPPFLAGS'
11750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11752ac_compiler_gnu=$ac_cv_c_compiler_gnu
11753
11754ac_ext=c
11755ac_cpp='$CPP $CPPFLAGS'
11756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11758ac_compiler_gnu=$ac_cv_c_compiler_gnu
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
11760$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
11761if ${am_cv_prog_cc_c_o+:} false; then :
11762  $as_echo_n "(cached) " >&6
11763else
11764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765/* end confdefs.h.  */
11766
11767int
11768main ()
11769{
11770
11771  ;
11772  return 0;
11773}
11774_ACEOF
11775  # Make sure it works both with $CC and with simple cc.
11776  # Following AC_PROG_CC_C_O, we do the test twice because some
11777  # compilers refuse to overwrite an existing .o file with -o,
11778  # though they will create one.
11779  am_cv_prog_cc_c_o=yes
11780  for am_i in 1 2; do
11781    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
11782   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); } \
11786         && test -f conftest2.$ac_objext; then
11787      : OK
11788    else
11789      am_cv_prog_cc_c_o=no
11790      break
11791    fi
11792  done
11793  rm -f core conftest*
11794  unset am_i
11795fi
11796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
11797$as_echo "$am_cv_prog_cc_c_o" >&6; }
11798if test "$am_cv_prog_cc_c_o" != yes; then
11799   # Losing compiler, so override with the script.
11800   # FIXME: It is wrong to rewrite CC.
11801   # But if we don't then we get into trouble of one sort or another.
11802   # A longer-term fix would be to have automake use am__CC in this case,
11803   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11804   CC="$am_aux_dir/compile $CC"
11805fi
11806ac_ext=c
11807ac_cpp='$CPP $CPPFLAGS'
11808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810ac_compiler_gnu=$ac_cv_c_compiler_gnu
11811
11812
11813depcc="$CC"   am_compiler_list=
11814
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11816$as_echo_n "checking dependency style of $depcc... " >&6; }
11817if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11818  $as_echo_n "(cached) " >&6
11819else
11820  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11821  # We make a subdir and do the tests there.  Otherwise we can end up
11822  # making bogus files that we don't know about and never remove.  For
11823  # instance it was reported that on HP-UX the gcc test will end up
11824  # making a dummy file named 'D' -- because '-MD' means "put the output
11825  # in D".
11826  rm -rf conftest.dir
11827  mkdir conftest.dir
11828  # Copy depcomp to subdir because otherwise we won't find it if we're
11829  # using a relative directory.
11830  cp "$am_depcomp" conftest.dir
11831  cd conftest.dir
11832  # We will build objects and dependencies in a subdirectory because
11833  # it helps to detect inapplicable dependency modes.  For instance
11834  # both Tru64's cc and ICC support -MD to output dependencies as a
11835  # side effect of compilation, but ICC will put the dependencies in
11836  # the current directory while Tru64 will put them in the object
11837  # directory.
11838  mkdir sub
11839
11840  am_cv_CC_dependencies_compiler_type=none
11841  if test "$am_compiler_list" = ""; then
11842     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11843  fi
11844  am__universal=false
11845  case " $depcc " in #(
11846     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11847     esac
11848
11849  for depmode in $am_compiler_list; do
11850    # Setup a source with many dependencies, because some compilers
11851    # like to wrap large dependency lists on column 80 (with \), and
11852    # we should not choose a depcomp mode which is confused by this.
11853    #
11854    # We need to recreate these files for each test, as the compiler may
11855    # overwrite some of them when testing with obscure command lines.
11856    # This happens at least with the AIX C compiler.
11857    : > sub/conftest.c
11858    for i in 1 2 3 4 5 6; do
11859      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11860      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11861      # Solaris 10 /bin/sh.
11862      echo '/* dummy */' > sub/conftst$i.h
11863    done
11864    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11865
11866    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11867    # mode.  It turns out that the SunPro C++ compiler does not properly
11868    # handle '-M -o', and we need to detect this.  Also, some Intel
11869    # versions had trouble with output in subdirs.
11870    am__obj=sub/conftest.${OBJEXT-o}
11871    am__minus_obj="-o $am__obj"
11872    case $depmode in
11873    gcc)
11874      # This depmode causes a compiler race in universal mode.
11875      test "$am__universal" = false || continue
11876      ;;
11877    nosideeffect)
11878      # After this tag, mechanisms are not by side-effect, so they'll
11879      # only be used when explicitly requested.
11880      if test "x$enable_dependency_tracking" = xyes; then
11881	continue
11882      else
11883	break
11884      fi
11885      ;;
11886    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11887      # This compiler won't grok '-c -o', but also, the minuso test has
11888      # not run yet.  These depmodes are late enough in the game, and
11889      # so weak that their functioning should not be impacted.
11890      am__obj=conftest.${OBJEXT-o}
11891      am__minus_obj=
11892      ;;
11893    none) break ;;
11894    esac
11895    if depmode=$depmode \
11896       source=sub/conftest.c object=$am__obj \
11897       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11898       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11899         >/dev/null 2>conftest.err &&
11900       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11901       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11902       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11903       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11904      # icc doesn't choke on unknown options, it will just issue warnings
11905      # or remarks (even with -Werror).  So we grep stderr for any message
11906      # that says an option was ignored or not supported.
11907      # When given -MP, icc 7.0 and 7.1 complain thusly:
11908      #   icc: Command line warning: ignoring option '-M'; no argument required
11909      # The diagnosis changed in icc 8.0:
11910      #   icc: Command line remark: option '-MP' not supported
11911      if (grep 'ignoring option' conftest.err ||
11912          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11913        am_cv_CC_dependencies_compiler_type=$depmode
11914        break
11915      fi
11916    fi
11917  done
11918
11919  cd ..
11920  rm -rf conftest.dir
11921else
11922  am_cv_CC_dependencies_compiler_type=none
11923fi
11924
11925fi
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11927$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11928CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11929
11930 if
11931  test "x$enable_dependency_tracking" != xno \
11932  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11933  am__fastdepCC_TRUE=
11934  am__fastdepCC_FALSE='#'
11935else
11936  am__fastdepCC_TRUE='#'
11937  am__fastdepCC_FALSE=
11938fi
11939
11940
11941
11942
11943
11944
11945
11946
11947if test "x$GCC" != "xyes"; then
11948  as_fn_error $? "libquadmath must be built with GCC" "$LINENO" 5
11949fi
11950ac_ext=c
11951ac_cpp='$CPP $CPPFLAGS'
11952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11954ac_compiler_gnu=$ac_cv_c_compiler_gnu
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11956$as_echo_n "checking how to run the C preprocessor... " >&6; }
11957# On Suns, sometimes $CPP names a directory.
11958if test -n "$CPP" && test -d "$CPP"; then
11959  CPP=
11960fi
11961if test -z "$CPP"; then
11962  if ${ac_cv_prog_CPP+:} false; then :
11963  $as_echo_n "(cached) " >&6
11964else
11965      # Double quotes because CPP needs to be expanded
11966    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11967    do
11968      ac_preproc_ok=false
11969for ac_c_preproc_warn_flag in '' yes
11970do
11971  # Use a header file that comes with gcc, so configuring glibc
11972  # with a fresh cross-compiler works.
11973  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11974  # <limits.h> exists even on freestanding compilers.
11975  # On the NeXT, cc -E runs the code through the compiler's parser,
11976  # not just through cpp. "Syntax error" is here to catch this case.
11977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978/* end confdefs.h.  */
11979#ifdef __STDC__
11980# include <limits.h>
11981#else
11982# include <assert.h>
11983#endif
11984		     Syntax error
11985_ACEOF
11986if ac_fn_c_try_cpp "$LINENO"; then :
11987
11988else
11989  # Broken: fails on valid input.
11990continue
11991fi
11992rm -f conftest.err conftest.i conftest.$ac_ext
11993
11994  # OK, works on sane cases.  Now check whether nonexistent headers
11995  # can be detected and how.
11996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997/* end confdefs.h.  */
11998#include <ac_nonexistent.h>
11999_ACEOF
12000if ac_fn_c_try_cpp "$LINENO"; then :
12001  # Broken: success on invalid input.
12002continue
12003else
12004  # Passes both tests.
12005ac_preproc_ok=:
12006break
12007fi
12008rm -f conftest.err conftest.i conftest.$ac_ext
12009
12010done
12011# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12012rm -f conftest.i conftest.err conftest.$ac_ext
12013if $ac_preproc_ok; then :
12014  break
12015fi
12016
12017    done
12018    ac_cv_prog_CPP=$CPP
12019
12020fi
12021  CPP=$ac_cv_prog_CPP
12022else
12023  ac_cv_prog_CPP=$CPP
12024fi
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12026$as_echo "$CPP" >&6; }
12027ac_preproc_ok=false
12028for ac_c_preproc_warn_flag in '' yes
12029do
12030  # Use a header file that comes with gcc, so configuring glibc
12031  # with a fresh cross-compiler works.
12032  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12033  # <limits.h> exists even on freestanding compilers.
12034  # On the NeXT, cc -E runs the code through the compiler's parser,
12035  # not just through cpp. "Syntax error" is here to catch this case.
12036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037/* end confdefs.h.  */
12038#ifdef __STDC__
12039# include <limits.h>
12040#else
12041# include <assert.h>
12042#endif
12043		     Syntax error
12044_ACEOF
12045if ac_fn_c_try_cpp "$LINENO"; then :
12046
12047else
12048  # Broken: fails on valid input.
12049continue
12050fi
12051rm -f conftest.err conftest.i conftest.$ac_ext
12052
12053  # OK, works on sane cases.  Now check whether nonexistent headers
12054  # can be detected and how.
12055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056/* end confdefs.h.  */
12057#include <ac_nonexistent.h>
12058_ACEOF
12059if ac_fn_c_try_cpp "$LINENO"; then :
12060  # Broken: success on invalid input.
12061continue
12062else
12063  # Passes both tests.
12064ac_preproc_ok=:
12065break
12066fi
12067rm -f conftest.err conftest.i conftest.$ac_ext
12068
12069done
12070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12071rm -f conftest.i conftest.err conftest.$ac_ext
12072if $ac_preproc_ok; then :
12073
12074else
12075  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12077as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12078See \`config.log' for more details" "$LINENO" 5; }
12079fi
12080
12081ac_ext=c
12082ac_cpp='$CPP $CPPFLAGS'
12083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12085ac_compiler_gnu=$ac_cv_c_compiler_gnu
12086
12087
12088# Calculate toolexeclibdir
12089# Also toolexecdir, though it's only used in toolexeclibdir
12090case ${version_specific_libs} in
12091  yes)
12092    # Need the gcc compiler version to know where to install libraries
12093    # and header files if --enable-version-specific-runtime-libs option
12094    # is selected.
12095    toolexecdir='$(libdir)/gcc/$(target_alias)'
12096    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
12097    ;;
12098  no)
12099    if test -n "$with_cross_host" &&
12100       test x"$with_cross_host" != x"no"; then
12101      # Install a library built with a cross compiler in tooldir, not libdir.
12102      toolexecdir='$(exec_prefix)/$(target_alias)'
12103      toolexeclibdir='$(toolexecdir)/lib'
12104    else
12105      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12106      toolexeclibdir='$(libdir)'
12107    fi
12108    multi_os_directory=`$CC -print-multi-os-directory`
12109    case $multi_os_directory in
12110      .) ;; # Avoid trailing /.
12111      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12112    esac
12113    ;;
12114esac
12115
12116
12117
12118for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h
12119do :
12120  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12121ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12122if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12123  cat >>confdefs.h <<_ACEOF
12124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12125_ACEOF
12126
12127fi
12128
12129done
12130
12131
12132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5
12133$as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; }
12134if ${libgfor_cv_have_math_h_signgam+:} false; then :
12135  $as_echo_n "(cached) " >&6
12136else
12137
12138  save_CFLAGS="$CFLAGS"
12139  CFLAGS="$CFLAGS -Werror"
12140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141/* end confdefs.h.  */
12142
12143#include <math.h>
12144void foo(void) { signgam = 1; }
12145int
12146main ()
12147{
12148
12149  ;
12150  return 0;
12151}
12152_ACEOF
12153if ac_fn_c_try_compile "$LINENO"; then :
12154  libgfor_cv_have_math_h_signgam=yes
12155else
12156  libgfor_cv_have_math_h_signgam=no
12157fi
12158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159  CFLAGS="$save_CFLAGS"
12160fi
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5
12162$as_echo "$libgfor_cv_have_math_h_signgam" >&6; }
12163  if test $libgfor_cv_have_math_h_signgam = yes; then
12164
12165$as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h
12166
12167  fi
12168
12169# If available, sqrtl and cbrtl speed up the calculation -
12170# but they are not required
12171if test x$gcc_no_link != xyes; then
12172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
12173$as_echo_n "checking for sqrtl in -lm... " >&6; }
12174if ${ac_cv_lib_m_sqrtl+:} false; then :
12175  $as_echo_n "(cached) " >&6
12176else
12177  ac_check_lib_save_LIBS=$LIBS
12178LIBS="-lm  $LIBS"
12179if test x$gcc_no_link = xyes; then
12180  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12181fi
12182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183/* end confdefs.h.  */
12184
12185/* Override any GCC internal prototype to avoid an error.
12186   Use char because int might match the return type of a GCC
12187   builtin and then its argument prototype would still apply.  */
12188#ifdef __cplusplus
12189extern "C"
12190#endif
12191char sqrtl ();
12192int
12193main ()
12194{
12195return sqrtl ();
12196  ;
12197  return 0;
12198}
12199_ACEOF
12200if ac_fn_c_try_link "$LINENO"; then :
12201  ac_cv_lib_m_sqrtl=yes
12202else
12203  ac_cv_lib_m_sqrtl=no
12204fi
12205rm -f core conftest.err conftest.$ac_objext \
12206    conftest$ac_exeext conftest.$ac_ext
12207LIBS=$ac_check_lib_save_LIBS
12208fi
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
12210$as_echo "$ac_cv_lib_m_sqrtl" >&6; }
12211if test "x$ac_cv_lib_m_sqrtl" = xyes; then :
12212
12213$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12214
12215fi
12216
12217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5
12218$as_echo_n "checking for cbrtl in -lm... " >&6; }
12219if ${ac_cv_lib_m_cbrtl+:} false; then :
12220  $as_echo_n "(cached) " >&6
12221else
12222  ac_check_lib_save_LIBS=$LIBS
12223LIBS="-lm  $LIBS"
12224if test x$gcc_no_link = xyes; then
12225  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12226fi
12227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h.  */
12229
12230/* Override any GCC internal prototype to avoid an error.
12231   Use char because int might match the return type of a GCC
12232   builtin and then its argument prototype would still apply.  */
12233#ifdef __cplusplus
12234extern "C"
12235#endif
12236char cbrtl ();
12237int
12238main ()
12239{
12240return cbrtl ();
12241  ;
12242  return 0;
12243}
12244_ACEOF
12245if ac_fn_c_try_link "$LINENO"; then :
12246  ac_cv_lib_m_cbrtl=yes
12247else
12248  ac_cv_lib_m_cbrtl=no
12249fi
12250rm -f core conftest.err conftest.$ac_objext \
12251    conftest$ac_exeext conftest.$ac_ext
12252LIBS=$ac_check_lib_save_LIBS
12253fi
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5
12255$as_echo "$ac_cv_lib_m_cbrtl" >&6; }
12256if test "x$ac_cv_lib_m_cbrtl" = xyes; then :
12257
12258$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12259
12260fi
12261
12262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5
12263$as_echo_n "checking for feholdexcept in -lm... " >&6; }
12264if ${ac_cv_lib_m_feholdexcept+:} false; then :
12265  $as_echo_n "(cached) " >&6
12266else
12267  ac_check_lib_save_LIBS=$LIBS
12268LIBS="-lm  $LIBS"
12269if test x$gcc_no_link = xyes; then
12270  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12271fi
12272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273/* end confdefs.h.  */
12274
12275/* Override any GCC internal prototype to avoid an error.
12276   Use char because int might match the return type of a GCC
12277   builtin and then its argument prototype would still apply.  */
12278#ifdef __cplusplus
12279extern "C"
12280#endif
12281char feholdexcept ();
12282int
12283main ()
12284{
12285return feholdexcept ();
12286  ;
12287  return 0;
12288}
12289_ACEOF
12290if ac_fn_c_try_link "$LINENO"; then :
12291  ac_cv_lib_m_feholdexcept=yes
12292else
12293  ac_cv_lib_m_feholdexcept=no
12294fi
12295rm -f core conftest.err conftest.$ac_objext \
12296    conftest$ac_exeext conftest.$ac_ext
12297LIBS=$ac_check_lib_save_LIBS
12298fi
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5
12300$as_echo "$ac_cv_lib_m_feholdexcept" >&6; }
12301if test "x$ac_cv_lib_m_feholdexcept" = xyes; then :
12302
12303$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12304
12305fi
12306
12307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5
12308$as_echo_n "checking for fesetround in -lm... " >&6; }
12309if ${ac_cv_lib_m_fesetround+:} false; then :
12310  $as_echo_n "(cached) " >&6
12311else
12312  ac_check_lib_save_LIBS=$LIBS
12313LIBS="-lm  $LIBS"
12314if test x$gcc_no_link = xyes; then
12315  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12316fi
12317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318/* end confdefs.h.  */
12319
12320/* Override any GCC internal prototype to avoid an error.
12321   Use char because int might match the return type of a GCC
12322   builtin and then its argument prototype would still apply.  */
12323#ifdef __cplusplus
12324extern "C"
12325#endif
12326char fesetround ();
12327int
12328main ()
12329{
12330return fesetround ();
12331  ;
12332  return 0;
12333}
12334_ACEOF
12335if ac_fn_c_try_link "$LINENO"; then :
12336  ac_cv_lib_m_fesetround=yes
12337else
12338  ac_cv_lib_m_fesetround=no
12339fi
12340rm -f core conftest.err conftest.$ac_objext \
12341    conftest$ac_exeext conftest.$ac_ext
12342LIBS=$ac_check_lib_save_LIBS
12343fi
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5
12345$as_echo "$ac_cv_lib_m_fesetround" >&6; }
12346if test "x$ac_cv_lib_m_fesetround" = xyes; then :
12347
12348$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12349
12350fi
12351
12352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5
12353$as_echo_n "checking for feupdateenv in -lm... " >&6; }
12354if ${ac_cv_lib_m_feupdateenv+:} false; then :
12355  $as_echo_n "(cached) " >&6
12356else
12357  ac_check_lib_save_LIBS=$LIBS
12358LIBS="-lm  $LIBS"
12359if test x$gcc_no_link = xyes; then
12360  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12361fi
12362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363/* end confdefs.h.  */
12364
12365/* Override any GCC internal prototype to avoid an error.
12366   Use char because int might match the return type of a GCC
12367   builtin and then its argument prototype would still apply.  */
12368#ifdef __cplusplus
12369extern "C"
12370#endif
12371char feupdateenv ();
12372int
12373main ()
12374{
12375return feupdateenv ();
12376  ;
12377  return 0;
12378}
12379_ACEOF
12380if ac_fn_c_try_link "$LINENO"; then :
12381  ac_cv_lib_m_feupdateenv=yes
12382else
12383  ac_cv_lib_m_feupdateenv=no
12384fi
12385rm -f core conftest.err conftest.$ac_objext \
12386    conftest$ac_exeext conftest.$ac_ext
12387LIBS=$ac_check_lib_save_LIBS
12388fi
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5
12390$as_echo "$ac_cv_lib_m_feupdateenv" >&6; }
12391if test "x$ac_cv_lib_m_feupdateenv" = xyes; then :
12392
12393$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12394
12395fi
12396
12397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5
12398$as_echo_n "checking for fesetenv in -lm... " >&6; }
12399if ${ac_cv_lib_m_fesetenv+:} false; then :
12400  $as_echo_n "(cached) " >&6
12401else
12402  ac_check_lib_save_LIBS=$LIBS
12403LIBS="-lm  $LIBS"
12404if test x$gcc_no_link = xyes; then
12405  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12406fi
12407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408/* end confdefs.h.  */
12409
12410/* Override any GCC internal prototype to avoid an error.
12411   Use char because int might match the return type of a GCC
12412   builtin and then its argument prototype would still apply.  */
12413#ifdef __cplusplus
12414extern "C"
12415#endif
12416char fesetenv ();
12417int
12418main ()
12419{
12420return fesetenv ();
12421  ;
12422  return 0;
12423}
12424_ACEOF
12425if ac_fn_c_try_link "$LINENO"; then :
12426  ac_cv_lib_m_fesetenv=yes
12427else
12428  ac_cv_lib_m_fesetenv=no
12429fi
12430rm -f core conftest.err conftest.$ac_objext \
12431    conftest$ac_exeext conftest.$ac_ext
12432LIBS=$ac_check_lib_save_LIBS
12433fi
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5
12435$as_echo "$ac_cv_lib_m_fesetenv" >&6; }
12436if test "x$ac_cv_lib_m_fesetenv" = xyes; then :
12437
12438$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12439
12440fi
12441
12442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5
12443$as_echo_n "checking for fetestexcept in -lm... " >&6; }
12444if ${ac_cv_lib_m_fetestexcept+:} false; then :
12445  $as_echo_n "(cached) " >&6
12446else
12447  ac_check_lib_save_LIBS=$LIBS
12448LIBS="-lm  $LIBS"
12449if test x$gcc_no_link = xyes; then
12450  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12451fi
12452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453/* end confdefs.h.  */
12454
12455/* Override any GCC internal prototype to avoid an error.
12456   Use char because int might match the return type of a GCC
12457   builtin and then its argument prototype would still apply.  */
12458#ifdef __cplusplus
12459extern "C"
12460#endif
12461char fetestexcept ();
12462int
12463main ()
12464{
12465return fetestexcept ();
12466  ;
12467  return 0;
12468}
12469_ACEOF
12470if ac_fn_c_try_link "$LINENO"; then :
12471  ac_cv_lib_m_fetestexcept=yes
12472else
12473  ac_cv_lib_m_fetestexcept=no
12474fi
12475rm -f core conftest.err conftest.$ac_objext \
12476    conftest$ac_exeext conftest.$ac_ext
12477LIBS=$ac_check_lib_save_LIBS
12478fi
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5
12480$as_echo "$ac_cv_lib_m_fetestexcept" >&6; }
12481if test "x$ac_cv_lib_m_fetestexcept" = xyes; then :
12482
12483$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12484
12485fi
12486
12487  for ac_func in strtoull
12488do :
12489  ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
12490if test "x$ac_cv_func_strtoull" = xyes; then :
12491  cat >>confdefs.h <<_ACEOF
12492#define HAVE_STRTOULL 1
12493_ACEOF
12494
12495fi
12496done
12497
12498else
12499  if test "x$ac_cv_lib_m_sqrtl" = x""yes; then
12500
12501$as_echo "#define HAVE_SQRTL 1" >>confdefs.h
12502
12503  fi
12504  if test "x$ac_cv_lib_m_cbrtl" = x""yes; then
12505
12506$as_echo "#define HAVE_CBRTL 1" >>confdefs.h
12507
12508  fi
12509  if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then
12510
12511$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h
12512
12513  fi
12514  if test "x$ac_cv_lib_m_fesetround" = x""yes; then
12515
12516$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h
12517
12518  fi
12519  if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then
12520
12521$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h
12522
12523  fi
12524  if test "x$ac_cv_lib_m_fesetenv" = x""yes; then
12525
12526$as_echo "#define HAVE_FESETENV 1" >>confdefs.h
12527
12528  fi
12529  if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then
12530
12531$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h
12532
12533  fi
12534fi
12535
12536# Check for hidden visibility (copied from libssp).
12537saved_CFLAGS="$CFLAGS"
12538CFLAGS="$CFLAGS -Werror"
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
12540$as_echo_n "checking whether hidden visibility is supported... " >&6; }
12541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542/* end confdefs.h.  */
12543
12544void __attribute__((visibility ("hidden"))) bar (void) {}
12545int
12546main ()
12547{
12548
12549  ;
12550  return 0;
12551}
12552_ACEOF
12553if ac_fn_c_try_compile "$LINENO"; then :
12554  quadmath_hidden=yes
12555else
12556  quadmath_hidden=no
12557fi
12558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5
12560$as_echo "$quadmath_hidden" >&6; }
12561if test x$quadmath_hidden = xyes; then
12562
12563$as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
12564
12565fi
12566CFLAGS="$saved_CFLAGS"
12567
12568# Check for symbol versioning (copied from libssp).
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
12570$as_echo_n "checking whether symbol versioning is supported... " >&6; }
12571# Check whether --enable-symvers was given.
12572if test "${enable_symvers+set}" = set; then :
12573  enableval=$enable_symvers; quadmath_use_symver=$enableval
12574else
12575  quadmath_use_symver=yes
12576fi
12577
12578if test "x$quadmath_use_symver" != xno; then
12579  if test x$gcc_no_link = xyes; then
12580    # If we cannot link, we cannot build shared libraries, so do not use
12581    # symbol versioning.
12582    quadmath_use_symver=no
12583  else
12584    save_LDFLAGS="$LDFLAGS"
12585    LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
12586    cat > conftest.map <<EOF
12587FOO_1.0 {
12588  global: *foo*; bar; local: *;
12589};
12590EOF
12591    if test x$gcc_no_link = xyes; then
12592  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12593fi
12594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595/* end confdefs.h.  */
12596int foo;
12597int
12598main ()
12599{
12600
12601  ;
12602  return 0;
12603}
12604_ACEOF
12605if ac_fn_c_try_link "$LINENO"; then :
12606  quadmath_use_symver=gnu
12607else
12608  quadmath_use_symver=no
12609fi
12610rm -f core conftest.err conftest.$ac_objext \
12611    conftest$ac_exeext conftest.$ac_ext
12612    if test x$quadmath_use_symver = xno; then
12613      case "$target_os" in
12614        solaris2*)
12615          LDFLAGS="$save_LDFLAGS"
12616          LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
12617          # Sun ld cannot handle wildcards and treats all entries as undefined.
12618          cat > conftest.map <<EOF
12619FOO_1.0 {
12620  global: foo; local: *;
12621};
12622EOF
12623          if test x$gcc_no_link = xyes; then
12624  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12625fi
12626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627/* end confdefs.h.  */
12628int foo;
12629int
12630main ()
12631{
12632
12633  ;
12634  return 0;
12635}
12636_ACEOF
12637if ac_fn_c_try_link "$LINENO"; then :
12638  quadmath_use_symver=sun
12639else
12640  quadmath_use_symver=no
12641fi
12642rm -f core conftest.err conftest.$ac_objext \
12643    conftest$ac_exeext conftest.$ac_ext
12644          ;;
12645      esac
12646    fi
12647    LDFLAGS="$save_LDFLAGS"
12648  fi
12649fi
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5
12651$as_echo "$quadmath_use_symver" >&6; }
12652 if test "x$quadmath_use_symver" != xno; then
12653  LIBQUAD_USE_SYMVER_TRUE=
12654  LIBQUAD_USE_SYMVER_FALSE='#'
12655else
12656  LIBQUAD_USE_SYMVER_TRUE='#'
12657  LIBQUAD_USE_SYMVER_FALSE=
12658fi
12659
12660 if test "x$quadmath_use_symver" = xgnu; then
12661  LIBQUAD_USE_SYMVER_GNU_TRUE=
12662  LIBQUAD_USE_SYMVER_GNU_FALSE='#'
12663else
12664  LIBQUAD_USE_SYMVER_GNU_TRUE='#'
12665  LIBQUAD_USE_SYMVER_GNU_FALSE=
12666fi
12667
12668 if test "x$quadmath_use_symver" = xsun; then
12669  LIBQUAD_USE_SYMVER_SUN_TRUE=
12670  LIBQUAD_USE_SYMVER_SUN_FALSE='#'
12671else
12672  LIBQUAD_USE_SYMVER_SUN_TRUE='#'
12673  LIBQUAD_USE_SYMVER_SUN_FALSE=
12674fi
12675
12676
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5
12678$as_echo_n "checking whether __float128 is supported... " >&6; }
12679if ${libquad_cv_have_float128+:} false; then :
12680  $as_echo_n "(cached) " >&6
12681else
12682  if test x$gcc_no_link = xyes; then
12683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684/* end confdefs.h.  */
12685
12686    #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12687    typedef _Complex float __attribute__((mode(TC))) __complex128;
12688    #else
12689    typedef _Complex float __attribute__((mode(KC))) __complex128;
12690    #endif
12691
12692    __float128 foo (__float128 x)
12693    {
12694
12695     __complex128 z1, z2;
12696
12697     z1 = x;
12698     z2 = x / 7.Q;
12699     z2 /= z1;
12700
12701     return (__float128) z2;
12702    }
12703
12704    __float128 bar (__float128 x)
12705    {
12706      return x * __builtin_huge_valq ();
12707    }
12708
12709int
12710main ()
12711{
12712
12713    foo (1.2Q);
12714    bar (1.2Q);
12715
12716  ;
12717  return 0;
12718}
12719_ACEOF
12720if ac_fn_c_try_compile "$LINENO"; then :
12721
12722    libquad_cv_have_float128=yes
12723
12724else
12725
12726    libquad_cv_have_float128=no
12727
12728fi
12729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730else
12731  if test x$gcc_no_link = xyes; then
12732  as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12733fi
12734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735/* end confdefs.h.  */
12736
12737    #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__)
12738    typedef _Complex float __attribute__((mode(TC))) __complex128;
12739    #else
12740    typedef _Complex float __attribute__((mode(KC))) __complex128;
12741    #endif
12742
12743    __float128 foo (__float128 x)
12744    {
12745
12746     __complex128 z1, z2;
12747
12748     z1 = x;
12749     z2 = x / 7.Q;
12750     z2 /= z1;
12751
12752     return (__float128) z2;
12753    }
12754
12755    __float128 bar (__float128 x)
12756    {
12757      return x * __builtin_huge_valq ();
12758    }
12759
12760int
12761main ()
12762{
12763
12764    foo (1.2Q);
12765    bar (1.2Q);
12766
12767  ;
12768  return 0;
12769}
12770_ACEOF
12771if ac_fn_c_try_link "$LINENO"; then :
12772
12773    libquad_cv_have_float128=yes
12774
12775else
12776
12777    libquad_cv_have_float128=no
12778
12779fi
12780rm -f core conftest.err conftest.$ac_objext \
12781    conftest$ac_exeext conftest.$ac_ext
12782fi
12783fi
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5
12785$as_echo "$libquad_cv_have_float128" >&6; }
12786 if test "x$libquad_cv_have_float128" = xyes; then
12787  BUILD_LIBQUADMATH_TRUE=
12788  BUILD_LIBQUADMATH_FALSE='#'
12789else
12790  BUILD_LIBQUADMATH_TRUE='#'
12791  BUILD_LIBQUADMATH_FALSE=
12792fi
12793
12794
12795# Check for printf hook support.
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5
12797$as_echo_n "checking whether printf hooks are supported... " >&6; }
12798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799/* end confdefs.h.  */
12800
12801#include <printf.h>
12802#include <stdarg.h>
12803#include <stdlib.h>
12804extern void flt128_va (void *, va_list *);
12805extern int flt128_ais (const struct printf_info *, size_t, int *, int *);
12806extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *);
12807
12808int
12809main ()
12810{
12811
12812int pa_flt128 = register_printf_type (flt128_va);
12813int mod_Q = register_printf_modifier (L"Q");
12814int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais);
12815struct printf_info info = { .user = -1 };
12816
12817  ;
12818  return 0;
12819}
12820_ACEOF
12821if ac_fn_c_try_compile "$LINENO"; then :
12822  quadmath_printf_hooks=yes
12823else
12824  quadmath_printf_hooks=no
12825fi
12826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5
12828$as_echo "$quadmath_printf_hooks" >&6; }
12829if test x$quadmath_printf_hooks = xyes; then
12830
12831$as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h
12832
12833fi
12834
12835# Check for whether locale support for quadmath_snprintf or Q printf hooks
12836# should be provided.
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5
12838$as_echo_n "checking whether nl_langinfo should be used... " >&6; }
12839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840/* end confdefs.h.  */
12841#include <langinfo.h>
12842int
12843main ()
12844{
12845
12846const char *s;
12847s = nl_langinfo (DECIMAL_POINT);
12848s = nl_langinfo (MON_DECIMAL_POINT);
12849s = nl_langinfo (GROUPING);
12850s = nl_langinfo (MON_GROUPING);
12851s = nl_langinfo (THOUSANDS_SEP);
12852s = nl_langinfo (MON_THOUSANDS_SEP);
12853(void) s;
12854
12855  ;
12856  return 0;
12857}
12858_ACEOF
12859if ac_fn_c_try_compile "$LINENO"; then :
12860  quadmath_use_nl_langinfo=yes
12861else
12862  quadmath_use_nl_langinfo=no
12863fi
12864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5
12866$as_echo "$quadmath_use_nl_langinfo" >&6; }
12867if test x$quadmath_use_nl_langinfo = xyes; then
12868
12869$as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h
12870
12871fi
12872
12873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5
12874$as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; }
12875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876/* end confdefs.h.  */
12877#include <langinfo.h>
12878int
12879main ()
12880{
12881
12882const char *s;
12883s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC);
12884s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC);
12885s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC);
12886s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC);
12887(void) s;
12888
12889  ;
12890  return 0;
12891}
12892_ACEOF
12893if ac_fn_c_try_compile "$LINENO"; then :
12894  quadmath_use_nl_langinfo_wc=yes
12895else
12896  quadmath_use_nl_langinfo_wc=no
12897fi
12898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5
12900$as_echo "$quadmath_use_nl_langinfo_wc" >&6; }
12901if test x$quadmath_use_nl_langinfo_wc = xyes; then
12902
12903$as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h
12904
12905fi
12906
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5
12908$as_echo_n "checking whether localeconv should be used... " >&6; }
12909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910/* end confdefs.h.  */
12911#include <locale.h>
12912int
12913main ()
12914{
12915
12916const struct lconv *l = localeconv ();
12917const char *s;
12918s = l->decimal_point;
12919s = l->mon_decimal_point;
12920s = l->grouping;
12921s = l->mon_grouping;
12922s = l->thousands_sep;
12923s = l->mon_thousands_sep;
12924(void) s;
12925
12926  ;
12927  return 0;
12928}
12929_ACEOF
12930if ac_fn_c_try_compile "$LINENO"; then :
12931  quadmath_use_localeconv=yes
12932else
12933  quadmath_use_localeconv=no
12934fi
12935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5
12937$as_echo "$quadmath_use_localeconv" >&6; }
12938if test x$quadmath_use_localeconv = xyes; then
12939
12940$as_echo "#define USE_LOCALECONV 1" >>confdefs.h
12941
12942fi
12943
12944# Check for whether i18n number rewriting support for quadmath_snprintf
12945# or Q printf hooks should be provided.
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5
12947$as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; }
12948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949/* end confdefs.h.  */
12950#include <langinfo.h>
12951#include <limits.h>
12952#include <string.h>
12953#include <wchar.h>
12954#include <wctype.h>
12955int
12956main ()
12957{
12958
12959const char *s;
12960char decimal[MB_LEN_MAX];
12961wctrans_t map = wctrans ("to_outpunct");
12962wint_t wdecimal = towctrans (L'.', map);
12963mbstate_t state;
12964memset (&state, '\0', sizeof (state));
12965wcrtomb (decimal, wdecimal, &state);
12966s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
12967s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC);
12968s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX);
12969(void) s;
12970
12971  ;
12972  return 0;
12973}
12974_ACEOF
12975if ac_fn_c_try_compile "$LINENO"; then :
12976  quadmath_use_i18n_number_h=yes
12977else
12978  quadmath_use_i18n_number_h=no
12979fi
12980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5
12982$as_echo "$quadmath_use_i18n_number_h" >&6; }
12983if test x$quadmath_use_i18n_number_h = xyes; then
12984
12985$as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h
12986
12987fi
12988
12989# Add CET specific flags if CET is enabled
12990 # Check whether --enable-cet was given.
12991if test "${enable_cet+set}" = set; then :
12992  enableval=$enable_cet;
12993      case "$enableval" in
12994       yes|no|auto) ;;
12995       *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12996                          esac
12997
12998else
12999  enable_cet=no
13000fi
13001
13002
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
13004$as_echo_n "checking for CET support... " >&6; }
13005
13006case "$host" in
13007  i[34567]86-*-linux* | x86_64-*-linux*)
13008    case "$enable_cet" in
13009      auto)
13010	# Check if target supports multi-byte NOPs
13011	# and if assembler supports CET insn.
13012	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013/* end confdefs.h.  */
13014
13015int
13016main ()
13017{
13018
13019#if !defined(__SSE2__)
13020#error target does not support multi-byte NOPs
13021#else
13022asm ("setssbsy");
13023#endif
13024
13025  ;
13026  return 0;
13027}
13028_ACEOF
13029if ac_fn_c_try_compile "$LINENO"; then :
13030  enable_cet=yes
13031else
13032  enable_cet=no
13033fi
13034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035	;;
13036      yes)
13037	# Check if assembler supports CET.
13038	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039/* end confdefs.h.  */
13040
13041int
13042main ()
13043{
13044asm ("setssbsy");
13045  ;
13046  return 0;
13047}
13048_ACEOF
13049if ac_fn_c_try_compile "$LINENO"; then :
13050
13051else
13052  as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
13053fi
13054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055	;;
13056    esac
13057    ;;
13058  *)
13059    enable_cet=no
13060    ;;
13061esac
13062if test x$enable_cet = xyes; then
13063  CET_FLAGS="-fcf-protection -mshstk"
13064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13065$as_echo "yes" >&6; }
13066else
13067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068$as_echo "no" >&6; }
13069fi
13070
13071XCFLAGS="$XCFLAGS $CET_FLAGS"
13072
13073
13074cat >confcache <<\_ACEOF
13075# This file is a shell script that caches the results of configure
13076# tests run on this system so they can be shared between configure
13077# scripts and configure runs, see configure's option --config-cache.
13078# It is not useful on other systems.  If it contains results you don't
13079# want to keep, you may remove or edit it.
13080#
13081# config.status only pays attention to the cache file if you give it
13082# the --recheck option to rerun configure.
13083#
13084# `ac_cv_env_foo' variables (set or unset) will be overridden when
13085# loading this file, other *unset* `ac_cv_foo' will be assigned the
13086# following values.
13087
13088_ACEOF
13089
13090# The following way of writing the cache mishandles newlines in values,
13091# but we know of no workaround that is simple, portable, and efficient.
13092# So, we kill variables containing newlines.
13093# Ultrix sh set writes to stderr and can't be redirected directly,
13094# and sets the high bit in the cache file unless we assign to the vars.
13095(
13096  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13097    eval ac_val=\$$ac_var
13098    case $ac_val in #(
13099    *${as_nl}*)
13100      case $ac_var in #(
13101      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13102$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13103      esac
13104      case $ac_var in #(
13105      _ | IFS | as_nl) ;; #(
13106      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13107      *) { eval $ac_var=; unset $ac_var;} ;;
13108      esac ;;
13109    esac
13110  done
13111
13112  (set) 2>&1 |
13113    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13114    *${as_nl}ac_space=\ *)
13115      # `set' does not quote correctly, so add quotes: double-quote
13116      # substitution turns \\\\ into \\, and sed turns \\ into \.
13117      sed -n \
13118	"s/'/'\\\\''/g;
13119	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13120      ;; #(
13121    *)
13122      # `set' quotes correctly as required by POSIX, so do not add quotes.
13123      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13124      ;;
13125    esac |
13126    sort
13127) |
13128  sed '
13129     /^ac_cv_env_/b end
13130     t clear
13131     :clear
13132     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13133     t end
13134     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13135     :end' >>confcache
13136if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13137  if test -w "$cache_file"; then
13138    if test "x$cache_file" != "x/dev/null"; then
13139      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13140$as_echo "$as_me: updating cache $cache_file" >&6;}
13141      if test ! -f "$cache_file" || test -h "$cache_file"; then
13142	cat confcache >"$cache_file"
13143      else
13144        case $cache_file in #(
13145        */* | ?:*)
13146	  mv -f confcache "$cache_file"$$ &&
13147	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13148        *)
13149	  mv -f confcache "$cache_file" ;;
13150	esac
13151      fi
13152    fi
13153  else
13154    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13155$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13156  fi
13157fi
13158rm -f confcache
13159
13160if test ${multilib} = yes; then
13161  multilib_arg="--enable-multilib"
13162else
13163  multilib_arg=
13164fi
13165
13166
13167# We would like our source tree to be readonly. However when releases or
13168# pre-releases are generated, the flex/bison generated files as well as the
13169# various formats of manuals need to be included along with the rest of the
13170# sources.  Therefore we have --enable-generated-files-in-srcdir to do
13171# just that.
13172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
13173$as_echo_n "checking generated-files-in-srcdir... " >&6; }
13174# Check whether --enable-generated-files-in-srcdir was given.
13175if test "${enable_generated_files_in_srcdir+set}" = set; then :
13176  enableval=$enable_generated_files_in_srcdir; case "$enableval" in
13177 yes) enable_generated_files_in_srcdir=yes ;;
13178 no)  enable_generated_files_in_srcdir=no ;;
13179 *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13180 esac
13181else
13182  enable_generated_files_in_srcdir=no
13183fi
13184
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
13186$as_echo "$enable_generated_files_in_srcdir" >&6; }
13187 if test "$enable_generated_files_in_srcdir" = yes; then
13188  GENINSRC_TRUE=
13189  GENINSRC_FALSE='#'
13190else
13191  GENINSRC_TRUE='#'
13192  GENINSRC_FALSE=
13193fi
13194
13195
13196# Determine what GCC version number to use in filesystem paths.
13197
13198  get_gcc_base_ver="cat"
13199
13200# Check whether --with-gcc-major-version-only was given.
13201if test "${with_gcc_major_version_only+set}" = set; then :
13202  withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13203        get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13204      fi
13205
13206fi
13207
13208
13209
13210
13211ac_config_files="$ac_config_files Makefile"
13212
13213cat >confcache <<\_ACEOF
13214# This file is a shell script that caches the results of configure
13215# tests run on this system so they can be shared between configure
13216# scripts and configure runs, see configure's option --config-cache.
13217# It is not useful on other systems.  If it contains results you don't
13218# want to keep, you may remove or edit it.
13219#
13220# config.status only pays attention to the cache file if you give it
13221# the --recheck option to rerun configure.
13222#
13223# `ac_cv_env_foo' variables (set or unset) will be overridden when
13224# loading this file, other *unset* `ac_cv_foo' will be assigned the
13225# following values.
13226
13227_ACEOF
13228
13229# The following way of writing the cache mishandles newlines in values,
13230# but we know of no workaround that is simple, portable, and efficient.
13231# So, we kill variables containing newlines.
13232# Ultrix sh set writes to stderr and can't be redirected directly,
13233# and sets the high bit in the cache file unless we assign to the vars.
13234(
13235  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13236    eval ac_val=\$$ac_var
13237    case $ac_val in #(
13238    *${as_nl}*)
13239      case $ac_var in #(
13240      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13241$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13242      esac
13243      case $ac_var in #(
13244      _ | IFS | as_nl) ;; #(
13245      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13246      *) { eval $ac_var=; unset $ac_var;} ;;
13247      esac ;;
13248    esac
13249  done
13250
13251  (set) 2>&1 |
13252    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13253    *${as_nl}ac_space=\ *)
13254      # `set' does not quote correctly, so add quotes: double-quote
13255      # substitution turns \\\\ into \\, and sed turns \\ into \.
13256      sed -n \
13257	"s/'/'\\\\''/g;
13258	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13259      ;; #(
13260    *)
13261      # `set' quotes correctly as required by POSIX, so do not add quotes.
13262      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13263      ;;
13264    esac |
13265    sort
13266) |
13267  sed '
13268     /^ac_cv_env_/b end
13269     t clear
13270     :clear
13271     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13272     t end
13273     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13274     :end' >>confcache
13275if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13276  if test -w "$cache_file"; then
13277    if test "x$cache_file" != "x/dev/null"; then
13278      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13279$as_echo "$as_me: updating cache $cache_file" >&6;}
13280      if test ! -f "$cache_file" || test -h "$cache_file"; then
13281	cat confcache >"$cache_file"
13282      else
13283        case $cache_file in #(
13284        */* | ?:*)
13285	  mv -f confcache "$cache_file"$$ &&
13286	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13287        *)
13288	  mv -f confcache "$cache_file" ;;
13289	esac
13290      fi
13291    fi
13292  else
13293    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13294$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13295  fi
13296fi
13297rm -f confcache
13298
13299test "x$prefix" = xNONE && prefix=$ac_default_prefix
13300# Let make expand exec_prefix.
13301test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13302
13303DEFS=-DHAVE_CONFIG_H
13304
13305ac_libobjs=
13306ac_ltlibobjs=
13307U=
13308for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13309  # 1. Remove the extension, and $U if already installed.
13310  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13311  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13312  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13313  #    will be set to the directory where LIBOBJS objects are built.
13314  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13315  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13316done
13317LIBOBJS=$ac_libobjs
13318
13319LTLIBOBJS=$ac_ltlibobjs
13320
13321
13322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13323$as_echo_n "checking that generated files are newer than configure... " >&6; }
13324   if test -n "$am_sleep_pid"; then
13325     # Hide warnings about reused PIDs.
13326     wait $am_sleep_pid 2>/dev/null
13327   fi
13328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13329$as_echo "done" >&6; }
13330 if test -n "$EXEEXT"; then
13331  am__EXEEXT_TRUE=
13332  am__EXEEXT_FALSE='#'
13333else
13334  am__EXEEXT_TRUE='#'
13335  am__EXEEXT_FALSE=
13336fi
13337
13338if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13339  as_fn_error $? "conditional \"AMDEP\" was never defined.
13340Usually this means the macro was only invoked conditionally." "$LINENO" 5
13341fi
13342if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13343  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13344Usually this means the macro was only invoked conditionally." "$LINENO" 5
13345fi
13346if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
13347  as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
13348Usually this means the macro was only invoked conditionally." "$LINENO" 5
13349fi
13350if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13351  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13352Usually this means the macro was only invoked conditionally." "$LINENO" 5
13353fi
13354if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13355  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13356Usually this means the macro was only invoked conditionally." "$LINENO" 5
13357fi
13358if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then
13359  as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER\" was never defined.
13360Usually this means the macro was only invoked conditionally." "$LINENO" 5
13361fi
13362if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then
13363  as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined.
13364Usually this means the macro was only invoked conditionally." "$LINENO" 5
13365fi
13366if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then
13367  as_fn_error $? "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined.
13368Usually this means the macro was only invoked conditionally." "$LINENO" 5
13369fi
13370if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then
13371  as_fn_error $? "conditional \"BUILD_LIBQUADMATH\" was never defined.
13372Usually this means the macro was only invoked conditionally." "$LINENO" 5
13373fi
13374if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13375  as_fn_error $? "conditional \"GENINSRC\" was never defined.
13376Usually this means the macro was only invoked conditionally." "$LINENO" 5
13377fi
13378
13379: "${CONFIG_STATUS=./config.status}"
13380ac_write_fail=0
13381ac_clean_files_save=$ac_clean_files
13382ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13384$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13385as_write_fail=0
13386cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13387#! $SHELL
13388# Generated by $as_me.
13389# Run this file to recreate the current configuration.
13390# Compiler output produced by configure, useful for debugging
13391# configure, is in config.log if it exists.
13392
13393debug=false
13394ac_cs_recheck=false
13395ac_cs_silent=false
13396
13397SHELL=\${CONFIG_SHELL-$SHELL}
13398export SHELL
13399_ASEOF
13400cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13401## -------------------- ##
13402## M4sh Initialization. ##
13403## -------------------- ##
13404
13405# Be more Bourne compatible
13406DUALCASE=1; export DUALCASE # for MKS sh
13407if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13408  emulate sh
13409  NULLCMD=:
13410  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13411  # is contrary to our usage.  Disable this feature.
13412  alias -g '${1+"$@"}'='"$@"'
13413  setopt NO_GLOB_SUBST
13414else
13415  case `(set -o) 2>/dev/null` in #(
13416  *posix*) :
13417    set -o posix ;; #(
13418  *) :
13419     ;;
13420esac
13421fi
13422
13423
13424as_nl='
13425'
13426export as_nl
13427# Printing a long string crashes Solaris 7 /usr/bin/printf.
13428as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13429as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13430as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13431# Prefer a ksh shell builtin over an external printf program on Solaris,
13432# but without wasting forks for bash or zsh.
13433if test -z "$BASH_VERSION$ZSH_VERSION" \
13434    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13435  as_echo='print -r --'
13436  as_echo_n='print -rn --'
13437elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13438  as_echo='printf %s\n'
13439  as_echo_n='printf %s'
13440else
13441  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13442    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13443    as_echo_n='/usr/ucb/echo -n'
13444  else
13445    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13446    as_echo_n_body='eval
13447      arg=$1;
13448      case $arg in #(
13449      *"$as_nl"*)
13450	expr "X$arg" : "X\\(.*\\)$as_nl";
13451	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13452      esac;
13453      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13454    '
13455    export as_echo_n_body
13456    as_echo_n='sh -c $as_echo_n_body as_echo'
13457  fi
13458  export as_echo_body
13459  as_echo='sh -c $as_echo_body as_echo'
13460fi
13461
13462# The user is always right.
13463if test "${PATH_SEPARATOR+set}" != set; then
13464  PATH_SEPARATOR=:
13465  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13466    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13467      PATH_SEPARATOR=';'
13468  }
13469fi
13470
13471
13472# IFS
13473# We need space, tab and new line, in precisely that order.  Quoting is
13474# there to prevent editors from complaining about space-tab.
13475# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13476# splitting by setting IFS to empty value.)
13477IFS=" ""	$as_nl"
13478
13479# Find who we are.  Look in the path if we contain no directory separator.
13480as_myself=
13481case $0 in #((
13482  *[\\/]* ) as_myself=$0 ;;
13483  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484for as_dir in $PATH
13485do
13486  IFS=$as_save_IFS
13487  test -z "$as_dir" && as_dir=.
13488    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13489  done
13490IFS=$as_save_IFS
13491
13492     ;;
13493esac
13494# We did not find ourselves, most probably we were run as `sh COMMAND'
13495# in which case we are not to be found in the path.
13496if test "x$as_myself" = x; then
13497  as_myself=$0
13498fi
13499if test ! -f "$as_myself"; then
13500  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13501  exit 1
13502fi
13503
13504# Unset variables that we do not need and which cause bugs (e.g. in
13505# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13506# suppresses any "Segmentation fault" message there.  '((' could
13507# trigger a bug in pdksh 5.2.14.
13508for as_var in BASH_ENV ENV MAIL MAILPATH
13509do eval test x\${$as_var+set} = xset \
13510  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13511done
13512PS1='$ '
13513PS2='> '
13514PS4='+ '
13515
13516# NLS nuisances.
13517LC_ALL=C
13518export LC_ALL
13519LANGUAGE=C
13520export LANGUAGE
13521
13522# CDPATH.
13523(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13524
13525
13526# as_fn_error STATUS ERROR [LINENO LOG_FD]
13527# ----------------------------------------
13528# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13529# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13530# script with STATUS, using 1 if that was 0.
13531as_fn_error ()
13532{
13533  as_status=$1; test $as_status -eq 0 && as_status=1
13534  if test "$4"; then
13535    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13536    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13537  fi
13538  $as_echo "$as_me: error: $2" >&2
13539  as_fn_exit $as_status
13540} # as_fn_error
13541
13542
13543# as_fn_set_status STATUS
13544# -----------------------
13545# Set $? to STATUS, without forking.
13546as_fn_set_status ()
13547{
13548  return $1
13549} # as_fn_set_status
13550
13551# as_fn_exit STATUS
13552# -----------------
13553# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13554as_fn_exit ()
13555{
13556  set +e
13557  as_fn_set_status $1
13558  exit $1
13559} # as_fn_exit
13560
13561# as_fn_unset VAR
13562# ---------------
13563# Portably unset VAR.
13564as_fn_unset ()
13565{
13566  { eval $1=; unset $1;}
13567}
13568as_unset=as_fn_unset
13569# as_fn_append VAR VALUE
13570# ----------------------
13571# Append the text in VALUE to the end of the definition contained in VAR. Take
13572# advantage of any shell optimizations that allow amortized linear growth over
13573# repeated appends, instead of the typical quadratic growth present in naive
13574# implementations.
13575if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13576  eval 'as_fn_append ()
13577  {
13578    eval $1+=\$2
13579  }'
13580else
13581  as_fn_append ()
13582  {
13583    eval $1=\$$1\$2
13584  }
13585fi # as_fn_append
13586
13587# as_fn_arith ARG...
13588# ------------------
13589# Perform arithmetic evaluation on the ARGs, and store the result in the
13590# global $as_val. Take advantage of shells that can avoid forks. The arguments
13591# must be portable across $(()) and expr.
13592if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13593  eval 'as_fn_arith ()
13594  {
13595    as_val=$(( $* ))
13596  }'
13597else
13598  as_fn_arith ()
13599  {
13600    as_val=`expr "$@" || test $? -eq 1`
13601  }
13602fi # as_fn_arith
13603
13604
13605if expr a : '\(a\)' >/dev/null 2>&1 &&
13606   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13607  as_expr=expr
13608else
13609  as_expr=false
13610fi
13611
13612if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13613  as_basename=basename
13614else
13615  as_basename=false
13616fi
13617
13618if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13619  as_dirname=dirname
13620else
13621  as_dirname=false
13622fi
13623
13624as_me=`$as_basename -- "$0" ||
13625$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13626	 X"$0" : 'X\(//\)$' \| \
13627	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13628$as_echo X/"$0" |
13629    sed '/^.*\/\([^/][^/]*\)\/*$/{
13630	    s//\1/
13631	    q
13632	  }
13633	  /^X\/\(\/\/\)$/{
13634	    s//\1/
13635	    q
13636	  }
13637	  /^X\/\(\/\).*/{
13638	    s//\1/
13639	    q
13640	  }
13641	  s/.*/./; q'`
13642
13643# Avoid depending upon Character Ranges.
13644as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13645as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13646as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13647as_cr_digits='0123456789'
13648as_cr_alnum=$as_cr_Letters$as_cr_digits
13649
13650ECHO_C= ECHO_N= ECHO_T=
13651case `echo -n x` in #(((((
13652-n*)
13653  case `echo 'xy\c'` in
13654  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13655  xy)  ECHO_C='\c';;
13656  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13657       ECHO_T='	';;
13658  esac;;
13659*)
13660  ECHO_N='-n';;
13661esac
13662
13663rm -f conf$$ conf$$.exe conf$$.file
13664if test -d conf$$.dir; then
13665  rm -f conf$$.dir/conf$$.file
13666else
13667  rm -f conf$$.dir
13668  mkdir conf$$.dir 2>/dev/null
13669fi
13670if (echo >conf$$.file) 2>/dev/null; then
13671  if ln -s conf$$.file conf$$ 2>/dev/null; then
13672    as_ln_s='ln -s'
13673    # ... but there are two gotchas:
13674    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13675    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13676    # In both cases, we have to default to `cp -pR'.
13677    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13678      as_ln_s='cp -pR'
13679  elif ln conf$$.file conf$$ 2>/dev/null; then
13680    as_ln_s=ln
13681  else
13682    as_ln_s='cp -pR'
13683  fi
13684else
13685  as_ln_s='cp -pR'
13686fi
13687rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13688rmdir conf$$.dir 2>/dev/null
13689
13690
13691# as_fn_mkdir_p
13692# -------------
13693# Create "$as_dir" as a directory, including parents if necessary.
13694as_fn_mkdir_p ()
13695{
13696
13697  case $as_dir in #(
13698  -*) as_dir=./$as_dir;;
13699  esac
13700  test -d "$as_dir" || eval $as_mkdir_p || {
13701    as_dirs=
13702    while :; do
13703      case $as_dir in #(
13704      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13705      *) as_qdir=$as_dir;;
13706      esac
13707      as_dirs="'$as_qdir' $as_dirs"
13708      as_dir=`$as_dirname -- "$as_dir" ||
13709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13710	 X"$as_dir" : 'X\(//\)[^/]' \| \
13711	 X"$as_dir" : 'X\(//\)$' \| \
13712	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13713$as_echo X"$as_dir" |
13714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13715	    s//\1/
13716	    q
13717	  }
13718	  /^X\(\/\/\)[^/].*/{
13719	    s//\1/
13720	    q
13721	  }
13722	  /^X\(\/\/\)$/{
13723	    s//\1/
13724	    q
13725	  }
13726	  /^X\(\/\).*/{
13727	    s//\1/
13728	    q
13729	  }
13730	  s/.*/./; q'`
13731      test -d "$as_dir" && break
13732    done
13733    test -z "$as_dirs" || eval "mkdir $as_dirs"
13734  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13735
13736
13737} # as_fn_mkdir_p
13738if mkdir -p . 2>/dev/null; then
13739  as_mkdir_p='mkdir -p "$as_dir"'
13740else
13741  test -d ./-p && rmdir ./-p
13742  as_mkdir_p=false
13743fi
13744
13745
13746# as_fn_executable_p FILE
13747# -----------------------
13748# Test if FILE is an executable regular file.
13749as_fn_executable_p ()
13750{
13751  test -f "$1" && test -x "$1"
13752} # as_fn_executable_p
13753as_test_x='test -x'
13754as_executable_p=as_fn_executable_p
13755
13756# Sed expression to map a string onto a valid CPP name.
13757as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13758
13759# Sed expression to map a string onto a valid variable name.
13760as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13761
13762
13763exec 6>&1
13764## ----------------------------------- ##
13765## Main body of $CONFIG_STATUS script. ##
13766## ----------------------------------- ##
13767_ASEOF
13768test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13769
13770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13771# Save the log message, to keep $0 and so on meaningful, and to
13772# report actual input values of CONFIG_FILES etc. instead of their
13773# values after options handling.
13774ac_log="
13775This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was
13776generated by GNU Autoconf 2.69.  Invocation command line was
13777
13778  CONFIG_FILES    = $CONFIG_FILES
13779  CONFIG_HEADERS  = $CONFIG_HEADERS
13780  CONFIG_LINKS    = $CONFIG_LINKS
13781  CONFIG_COMMANDS = $CONFIG_COMMANDS
13782  $ $0 $@
13783
13784on `(hostname || uname -n) 2>/dev/null | sed 1q`
13785"
13786
13787_ACEOF
13788
13789case $ac_config_files in *"
13790"*) set x $ac_config_files; shift; ac_config_files=$*;;
13791esac
13792
13793case $ac_config_headers in *"
13794"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13795esac
13796
13797
13798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13799# Files that config.status was made for.
13800config_files="$ac_config_files"
13801config_headers="$ac_config_headers"
13802config_commands="$ac_config_commands"
13803
13804_ACEOF
13805
13806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13807ac_cs_usage="\
13808\`$as_me' instantiates files and other configuration actions
13809from templates according to the current configuration.  Unless the files
13810and actions are specified as TAGs, all are instantiated by default.
13811
13812Usage: $0 [OPTION]... [TAG]...
13813
13814  -h, --help       print this help, then exit
13815  -V, --version    print version number and configuration settings, then exit
13816      --config     print configuration, then exit
13817  -q, --quiet, --silent
13818                   do not print progress messages
13819  -d, --debug      don't remove temporary files
13820      --recheck    update $as_me by reconfiguring in the same conditions
13821      --file=FILE[:TEMPLATE]
13822                   instantiate the configuration file FILE
13823      --header=FILE[:TEMPLATE]
13824                   instantiate the configuration header FILE
13825
13826Configuration files:
13827$config_files
13828
13829Configuration headers:
13830$config_headers
13831
13832Configuration commands:
13833$config_commands
13834
13835Report bugs to the package provider."
13836
13837_ACEOF
13838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13839ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13840ac_cs_version="\\
13841GCC Quad-precision Math Library config.status 0.1
13842configured by $0, generated by GNU Autoconf 2.69,
13843  with options \\"\$ac_cs_config\\"
13844
13845Copyright (C) 2012 Free Software Foundation, Inc.
13846This config.status script is free software; the Free Software Foundation
13847gives unlimited permission to copy, distribute and modify it."
13848
13849ac_pwd='$ac_pwd'
13850srcdir='$srcdir'
13851INSTALL='$INSTALL'
13852MKDIR_P='$MKDIR_P'
13853AWK='$AWK'
13854test -n "\$AWK" || AWK=awk
13855_ACEOF
13856
13857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13858# The default lists apply if the user does not specify any file.
13859ac_need_defaults=:
13860while test $# != 0
13861do
13862  case $1 in
13863  --*=?*)
13864    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13865    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13866    ac_shift=:
13867    ;;
13868  --*=)
13869    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13870    ac_optarg=
13871    ac_shift=:
13872    ;;
13873  *)
13874    ac_option=$1
13875    ac_optarg=$2
13876    ac_shift=shift
13877    ;;
13878  esac
13879
13880  case $ac_option in
13881  # Handling of the options.
13882  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13883    ac_cs_recheck=: ;;
13884  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13885    $as_echo "$ac_cs_version"; exit ;;
13886  --config | --confi | --conf | --con | --co | --c )
13887    $as_echo "$ac_cs_config"; exit ;;
13888  --debug | --debu | --deb | --de | --d | -d )
13889    debug=: ;;
13890  --file | --fil | --fi | --f )
13891    $ac_shift
13892    case $ac_optarg in
13893    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13894    '') as_fn_error $? "missing file argument" ;;
13895    esac
13896    as_fn_append CONFIG_FILES " '$ac_optarg'"
13897    ac_need_defaults=false;;
13898  --header | --heade | --head | --hea )
13899    $ac_shift
13900    case $ac_optarg in
13901    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13902    esac
13903    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13904    ac_need_defaults=false;;
13905  --he | --h)
13906    # Conflict between --help and --header
13907    as_fn_error $? "ambiguous option: \`$1'
13908Try \`$0 --help' for more information.";;
13909  --help | --hel | -h )
13910    $as_echo "$ac_cs_usage"; exit ;;
13911  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13912  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13913    ac_cs_silent=: ;;
13914
13915  # This is an error.
13916  -*) as_fn_error $? "unrecognized option: \`$1'
13917Try \`$0 --help' for more information." ;;
13918
13919  *) as_fn_append ac_config_targets " $1"
13920     ac_need_defaults=false ;;
13921
13922  esac
13923  shift
13924done
13925
13926ac_configure_extra_args=
13927
13928if $ac_cs_silent; then
13929  exec 6>/dev/null
13930  ac_configure_extra_args="$ac_configure_extra_args --silent"
13931fi
13932
13933_ACEOF
13934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13935if \$ac_cs_recheck; then
13936  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13937  shift
13938  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13939  CONFIG_SHELL='$SHELL'
13940  export CONFIG_SHELL
13941  exec "\$@"
13942fi
13943
13944_ACEOF
13945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13946exec 5>>config.log
13947{
13948  echo
13949  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13950## Running $as_me. ##
13951_ASBOX
13952  $as_echo "$ac_log"
13953} >&5
13954
13955_ACEOF
13956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13957#
13958# INIT-COMMANDS
13959#
13960
13961srcdir="$srcdir"
13962host="$host"
13963target="$target"
13964with_multisubdir="$with_multisubdir"
13965with_multisrctop="$with_multisrctop"
13966with_target_subdir="$with_target_subdir"
13967ac_configure_args="${multilib_arg} ${ac_configure_args}"
13968multi_basedir="$multi_basedir"
13969CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13970CC="$CC"
13971CXX="$CXX"
13972GFORTRAN="$GFORTRAN"
13973GDC="$GDC"
13974AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13975
13976
13977# The HP-UX ksh and POSIX shell print the target directory to stdout
13978# if CDPATH is set.
13979(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13980
13981sed_quote_subst='$sed_quote_subst'
13982double_quote_subst='$double_quote_subst'
13983delay_variable_subst='$delay_variable_subst'
13984macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13985macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13986enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13987enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13988pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13989enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13990SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13991ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13992host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13993host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13994host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13995build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13996build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13997build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13998SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13999Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14000GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14001EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14002FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14003LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14004NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14005LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14006max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14007ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14008exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14009lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14010lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14011lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14012reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14013reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14014OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14015deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14016file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14017AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14018AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14019STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14020RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14021old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14022old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14023old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14024lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14025CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14026CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14027compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14028GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14029lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14030lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14031lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14032lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14033objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14034MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14035lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14036lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14037lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14038lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14039lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14040need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14041DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14042NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14043LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14044OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14045OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14046libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14047shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14048extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14049archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14050enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14051export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14052whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14053compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14054old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14055old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14056archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14057archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14058module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14059module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14060with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14061allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14062no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14063hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14064hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14065hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14066hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14067hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14068hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14069hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14070hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14071inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14072link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14073fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14074always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14075export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14076exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14077include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14078prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14079file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14080variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14081need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14082need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14083version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14084runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14085shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14086shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14087libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14088library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14089soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14090install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14091postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14092postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14093finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14094finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14095hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14096sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14097sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14098hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14099enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14100enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14101enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14102old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14103striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14104
14105LTCC='$LTCC'
14106LTCFLAGS='$LTCFLAGS'
14107compiler='$compiler_DEFAULT'
14108
14109# A function that is used when there is no print builtin or printf.
14110func_fallback_echo ()
14111{
14112  eval 'cat <<_LTECHO_EOF
14113\$1
14114_LTECHO_EOF'
14115}
14116
14117# Quote evaled strings.
14118for var in SHELL \
14119ECHO \
14120SED \
14121GREP \
14122EGREP \
14123FGREP \
14124LD \
14125NM \
14126LN_S \
14127lt_SP2NL \
14128lt_NL2SP \
14129reload_flag \
14130OBJDUMP \
14131deplibs_check_method \
14132file_magic_cmd \
14133AR \
14134AR_FLAGS \
14135STRIP \
14136RANLIB \
14137CC \
14138CFLAGS \
14139compiler \
14140lt_cv_sys_global_symbol_pipe \
14141lt_cv_sys_global_symbol_to_cdecl \
14142lt_cv_sys_global_symbol_to_c_name_address \
14143lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14144lt_prog_compiler_no_builtin_flag \
14145lt_prog_compiler_wl \
14146lt_prog_compiler_pic \
14147lt_prog_compiler_static \
14148lt_cv_prog_compiler_c_o \
14149need_locks \
14150DSYMUTIL \
14151NMEDIT \
14152LIPO \
14153OTOOL \
14154OTOOL64 \
14155shrext_cmds \
14156export_dynamic_flag_spec \
14157whole_archive_flag_spec \
14158compiler_needs_object \
14159with_gnu_ld \
14160allow_undefined_flag \
14161no_undefined_flag \
14162hardcode_libdir_flag_spec \
14163hardcode_libdir_flag_spec_ld \
14164hardcode_libdir_separator \
14165fix_srcfile_path \
14166exclude_expsyms \
14167include_expsyms \
14168file_list_spec \
14169variables_saved_for_relink \
14170libname_spec \
14171library_names_spec \
14172soname_spec \
14173install_override_mode \
14174finish_eval \
14175old_striplib \
14176striplib; do
14177    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14178    *[\\\\\\\`\\"\\\$]*)
14179      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14180      ;;
14181    *)
14182      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14183      ;;
14184    esac
14185done
14186
14187# Double-quote double-evaled strings.
14188for var in reload_cmds \
14189old_postinstall_cmds \
14190old_postuninstall_cmds \
14191old_archive_cmds \
14192extract_expsyms_cmds \
14193old_archive_from_new_cmds \
14194old_archive_from_expsyms_cmds \
14195archive_cmds \
14196archive_expsym_cmds \
14197module_cmds \
14198module_expsym_cmds \
14199export_symbols_cmds \
14200prelink_cmds \
14201postinstall_cmds \
14202postuninstall_cmds \
14203finish_cmds \
14204sys_lib_search_path_spec \
14205sys_lib_dlsearch_path_spec; do
14206    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14207    *[\\\\\\\`\\"\\\$]*)
14208      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14209      ;;
14210    *)
14211      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14212      ;;
14213    esac
14214done
14215
14216ac_aux_dir='$ac_aux_dir'
14217xsi_shell='$xsi_shell'
14218lt_shell_append='$lt_shell_append'
14219
14220# See if we are running on zsh, and set the options which allow our
14221# commands through without removal of \ escapes INIT.
14222if test -n "\${ZSH_VERSION+set}" ; then
14223   setopt NO_GLOB_SUBST
14224fi
14225
14226
14227    PACKAGE='$PACKAGE'
14228    VERSION='$VERSION'
14229    TIMESTAMP='$TIMESTAMP'
14230    RM='$RM'
14231    ofile='$ofile'
14232
14233
14234
14235
14236_ACEOF
14237
14238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14239
14240# Handling of arguments.
14241for ac_config_target in $ac_config_targets
14242do
14243  case $ac_config_target in
14244    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14245    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14246    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14247    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14248    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14249
14250  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14251  esac
14252done
14253
14254
14255# If the user did not use the arguments to specify the items to instantiate,
14256# then the envvar interface is used.  Set only those that are not.
14257# We use the long form for the default assignment because of an extremely
14258# bizarre bug on SunOS 4.1.3.
14259if $ac_need_defaults; then
14260  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14261  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14262  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14263fi
14264
14265# Have a temporary directory for convenience.  Make it in the build tree
14266# simply because there is no reason against having it here, and in addition,
14267# creating and moving files from /tmp can sometimes cause problems.
14268# Hook for its removal unless debugging.
14269# Note that there is a small window in which the directory will not be cleaned:
14270# after its creation but before its name has been assigned to `$tmp'.
14271$debug ||
14272{
14273  tmp= ac_tmp=
14274  trap 'exit_status=$?
14275  : "${ac_tmp:=$tmp}"
14276  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14277' 0
14278  trap 'as_fn_exit 1' 1 2 13 15
14279}
14280# Create a (secure) tmp directory for tmp files.
14281
14282{
14283  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14284  test -d "$tmp"
14285}  ||
14286{
14287  tmp=./conf$$-$RANDOM
14288  (umask 077 && mkdir "$tmp")
14289} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14290ac_tmp=$tmp
14291
14292# Set up the scripts for CONFIG_FILES section.
14293# No need to generate them if there are no CONFIG_FILES.
14294# This happens for instance with `./config.status config.h'.
14295if test -n "$CONFIG_FILES"; then
14296
14297
14298ac_cr=`echo X | tr X '\015'`
14299# On cygwin, bash can eat \r inside `` if the user requested igncr.
14300# But we know of no other shell where ac_cr would be empty at this
14301# point, so we can use a bashism as a fallback.
14302if test "x$ac_cr" = x; then
14303  eval ac_cr=\$\'\\r\'
14304fi
14305ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14306if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14307  ac_cs_awk_cr='\\r'
14308else
14309  ac_cs_awk_cr=$ac_cr
14310fi
14311
14312echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14313_ACEOF
14314
14315
14316{
14317  echo "cat >conf$$subs.awk <<_ACEOF" &&
14318  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14319  echo "_ACEOF"
14320} >conf$$subs.sh ||
14321  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14322ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14323ac_delim='%!_!# '
14324for ac_last_try in false false false false false :; do
14325  . ./conf$$subs.sh ||
14326    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14327
14328  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14329  if test $ac_delim_n = $ac_delim_num; then
14330    break
14331  elif $ac_last_try; then
14332    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14333  else
14334    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14335  fi
14336done
14337rm -f conf$$subs.sh
14338
14339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14340cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14341_ACEOF
14342sed -n '
14343h
14344s/^/S["/; s/!.*/"]=/
14345p
14346g
14347s/^[^!]*!//
14348:repl
14349t repl
14350s/'"$ac_delim"'$//
14351t delim
14352:nl
14353h
14354s/\(.\{148\}\)..*/\1/
14355t more1
14356s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14357p
14358n
14359b repl
14360:more1
14361s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14362p
14363g
14364s/.\{148\}//
14365t nl
14366:delim
14367h
14368s/\(.\{148\}\)..*/\1/
14369t more2
14370s/["\\]/\\&/g; s/^/"/; s/$/"/
14371p
14372b
14373:more2
14374s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14375p
14376g
14377s/.\{148\}//
14378t delim
14379' <conf$$subs.awk | sed '
14380/^[^""]/{
14381  N
14382  s/\n//
14383}
14384' >>$CONFIG_STATUS || ac_write_fail=1
14385rm -f conf$$subs.awk
14386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387_ACAWK
14388cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14389  for (key in S) S_is_set[key] = 1
14390  FS = ""
14391
14392}
14393{
14394  line = $ 0
14395  nfields = split(line, field, "@")
14396  substed = 0
14397  len = length(field[1])
14398  for (i = 2; i < nfields; i++) {
14399    key = field[i]
14400    keylen = length(key)
14401    if (S_is_set[key]) {
14402      value = S[key]
14403      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14404      len += length(value) + length(field[++i])
14405      substed = 1
14406    } else
14407      len += 1 + keylen
14408  }
14409
14410  print line
14411}
14412
14413_ACAWK
14414_ACEOF
14415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14416if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14417  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14418else
14419  cat
14420fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14421  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14422_ACEOF
14423
14424# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14425# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14426# trailing colons and then remove the whole line if VPATH becomes empty
14427# (actually we leave an empty line to preserve line numbers).
14428if test "x$srcdir" = x.; then
14429  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14430h
14431s///
14432s/^/:/
14433s/[	 ]*$/:/
14434s/:\$(srcdir):/:/g
14435s/:\${srcdir}:/:/g
14436s/:@srcdir@:/:/g
14437s/^:*//
14438s/:*$//
14439x
14440s/\(=[	 ]*\).*/\1/
14441G
14442s/\n//
14443s/^[^=]*=[	 ]*$//
14444}'
14445fi
14446
14447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14448fi # test -n "$CONFIG_FILES"
14449
14450# Set up the scripts for CONFIG_HEADERS section.
14451# No need to generate them if there are no CONFIG_HEADERS.
14452# This happens for instance with `./config.status Makefile'.
14453if test -n "$CONFIG_HEADERS"; then
14454cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14455BEGIN {
14456_ACEOF
14457
14458# Transform confdefs.h into an awk script `defines.awk', embedded as
14459# here-document in config.status, that substitutes the proper values into
14460# config.h.in to produce config.h.
14461
14462# Create a delimiter string that does not exist in confdefs.h, to ease
14463# handling of long lines.
14464ac_delim='%!_!# '
14465for ac_last_try in false false :; do
14466  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14467  if test -z "$ac_tt"; then
14468    break
14469  elif $ac_last_try; then
14470    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14471  else
14472    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14473  fi
14474done
14475
14476# For the awk script, D is an array of macro values keyed by name,
14477# likewise P contains macro parameters if any.  Preserve backslash
14478# newline sequences.
14479
14480ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14481sed -n '
14482s/.\{148\}/&'"$ac_delim"'/g
14483t rset
14484:rset
14485s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14486t def
14487d
14488:def
14489s/\\$//
14490t bsnl
14491s/["\\]/\\&/g
14492s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14493D["\1"]=" \3"/p
14494s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14495d
14496:bsnl
14497s/["\\]/\\&/g
14498s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14499D["\1"]=" \3\\\\\\n"\\/p
14500t cont
14501s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14502t cont
14503d
14504:cont
14505n
14506s/.\{148\}/&'"$ac_delim"'/g
14507t clear
14508:clear
14509s/\\$//
14510t bsnlc
14511s/["\\]/\\&/g; s/^/"/; s/$/"/p
14512d
14513:bsnlc
14514s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14515b cont
14516' <confdefs.h | sed '
14517s/'"$ac_delim"'/"\\\
14518"/g' >>$CONFIG_STATUS || ac_write_fail=1
14519
14520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14521  for (key in D) D_is_set[key] = 1
14522  FS = ""
14523}
14524/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14525  line = \$ 0
14526  split(line, arg, " ")
14527  if (arg[1] == "#") {
14528    defundef = arg[2]
14529    mac1 = arg[3]
14530  } else {
14531    defundef = substr(arg[1], 2)
14532    mac1 = arg[2]
14533  }
14534  split(mac1, mac2, "(") #)
14535  macro = mac2[1]
14536  prefix = substr(line, 1, index(line, defundef) - 1)
14537  if (D_is_set[macro]) {
14538    # Preserve the white space surrounding the "#".
14539    print prefix "define", macro P[macro] D[macro]
14540    next
14541  } else {
14542    # Replace #undef with comments.  This is necessary, for example,
14543    # in the case of _POSIX_SOURCE, which is predefined and required
14544    # on some systems where configure will not decide to define it.
14545    if (defundef == "undef") {
14546      print "/*", prefix defundef, macro, "*/"
14547      next
14548    }
14549  }
14550}
14551{ print }
14552_ACAWK
14553_ACEOF
14554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14555  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14556fi # test -n "$CONFIG_HEADERS"
14557
14558
14559eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14560shift
14561for ac_tag
14562do
14563  case $ac_tag in
14564  :[FHLC]) ac_mode=$ac_tag; continue;;
14565  esac
14566  case $ac_mode$ac_tag in
14567  :[FHL]*:*);;
14568  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14569  :[FH]-) ac_tag=-:-;;
14570  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14571  esac
14572  ac_save_IFS=$IFS
14573  IFS=:
14574  set x $ac_tag
14575  IFS=$ac_save_IFS
14576  shift
14577  ac_file=$1
14578  shift
14579
14580  case $ac_mode in
14581  :L) ac_source=$1;;
14582  :[FH])
14583    ac_file_inputs=
14584    for ac_f
14585    do
14586      case $ac_f in
14587      -) ac_f="$ac_tmp/stdin";;
14588      *) # Look for the file first in the build tree, then in the source tree
14589	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14590	 # because $ac_f cannot contain `:'.
14591	 test -f "$ac_f" ||
14592	   case $ac_f in
14593	   [\\/$]*) false;;
14594	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14595	   esac ||
14596	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14597      esac
14598      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14599      as_fn_append ac_file_inputs " '$ac_f'"
14600    done
14601
14602    # Let's still pretend it is `configure' which instantiates (i.e., don't
14603    # use $as_me), people would be surprised to read:
14604    #    /* config.h.  Generated by config.status.  */
14605    configure_input='Generated from '`
14606	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14607	`' by configure.'
14608    if test x"$ac_file" != x-; then
14609      configure_input="$ac_file.  $configure_input"
14610      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14611$as_echo "$as_me: creating $ac_file" >&6;}
14612    fi
14613    # Neutralize special characters interpreted by sed in replacement strings.
14614    case $configure_input in #(
14615    *\&* | *\|* | *\\* )
14616       ac_sed_conf_input=`$as_echo "$configure_input" |
14617       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14618    *) ac_sed_conf_input=$configure_input;;
14619    esac
14620
14621    case $ac_tag in
14622    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14623      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14624    esac
14625    ;;
14626  esac
14627
14628  ac_dir=`$as_dirname -- "$ac_file" ||
14629$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14630	 X"$ac_file" : 'X\(//\)[^/]' \| \
14631	 X"$ac_file" : 'X\(//\)$' \| \
14632	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14633$as_echo X"$ac_file" |
14634    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14635	    s//\1/
14636	    q
14637	  }
14638	  /^X\(\/\/\)[^/].*/{
14639	    s//\1/
14640	    q
14641	  }
14642	  /^X\(\/\/\)$/{
14643	    s//\1/
14644	    q
14645	  }
14646	  /^X\(\/\).*/{
14647	    s//\1/
14648	    q
14649	  }
14650	  s/.*/./; q'`
14651  as_dir="$ac_dir"; as_fn_mkdir_p
14652  ac_builddir=.
14653
14654case "$ac_dir" in
14655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14656*)
14657  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14658  # A ".." for each directory in $ac_dir_suffix.
14659  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14660  case $ac_top_builddir_sub in
14661  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14662  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14663  esac ;;
14664esac
14665ac_abs_top_builddir=$ac_pwd
14666ac_abs_builddir=$ac_pwd$ac_dir_suffix
14667# for backward compatibility:
14668ac_top_builddir=$ac_top_build_prefix
14669
14670case $srcdir in
14671  .)  # We are building in place.
14672    ac_srcdir=.
14673    ac_top_srcdir=$ac_top_builddir_sub
14674    ac_abs_top_srcdir=$ac_pwd ;;
14675  [\\/]* | ?:[\\/]* )  # Absolute name.
14676    ac_srcdir=$srcdir$ac_dir_suffix;
14677    ac_top_srcdir=$srcdir
14678    ac_abs_top_srcdir=$srcdir ;;
14679  *) # Relative name.
14680    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14681    ac_top_srcdir=$ac_top_build_prefix$srcdir
14682    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14683esac
14684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14685
14686
14687  case $ac_mode in
14688  :F)
14689  #
14690  # CONFIG_FILE
14691  #
14692
14693  case $INSTALL in
14694  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14695  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14696  esac
14697  ac_MKDIR_P=$MKDIR_P
14698  case $MKDIR_P in
14699  [\\/$]* | ?:[\\/]* ) ;;
14700  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14701  esac
14702_ACEOF
14703
14704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14705# If the template does not know about datarootdir, expand it.
14706# FIXME: This hack should be removed a few years after 2.60.
14707ac_datarootdir_hack=; ac_datarootdir_seen=
14708ac_sed_dataroot='
14709/datarootdir/ {
14710  p
14711  q
14712}
14713/@datadir@/p
14714/@docdir@/p
14715/@infodir@/p
14716/@localedir@/p
14717/@mandir@/p'
14718case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14719*datarootdir*) ac_datarootdir_seen=yes;;
14720*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14721  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14722$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14723_ACEOF
14724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14725  ac_datarootdir_hack='
14726  s&@datadir@&$datadir&g
14727  s&@docdir@&$docdir&g
14728  s&@infodir@&$infodir&g
14729  s&@localedir@&$localedir&g
14730  s&@mandir@&$mandir&g
14731  s&\\\${datarootdir}&$datarootdir&g' ;;
14732esac
14733_ACEOF
14734
14735# Neutralize VPATH when `$srcdir' = `.'.
14736# Shell code in configure.ac might set extrasub.
14737# FIXME: do we really want to maintain this feature?
14738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14739ac_sed_extra="$ac_vpsub
14740$extrasub
14741_ACEOF
14742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14743:t
14744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14745s|@configure_input@|$ac_sed_conf_input|;t t
14746s&@top_builddir@&$ac_top_builddir_sub&;t t
14747s&@top_build_prefix@&$ac_top_build_prefix&;t t
14748s&@srcdir@&$ac_srcdir&;t t
14749s&@abs_srcdir@&$ac_abs_srcdir&;t t
14750s&@top_srcdir@&$ac_top_srcdir&;t t
14751s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14752s&@builddir@&$ac_builddir&;t t
14753s&@abs_builddir@&$ac_abs_builddir&;t t
14754s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14755s&@INSTALL@&$ac_INSTALL&;t t
14756s&@MKDIR_P@&$ac_MKDIR_P&;t t
14757$ac_datarootdir_hack
14758"
14759eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14760  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14761
14762test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14763  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14764  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14765      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14766  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14767which seems to be undefined.  Please make sure it is defined" >&5
14768$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14769which seems to be undefined.  Please make sure it is defined" >&2;}
14770
14771  rm -f "$ac_tmp/stdin"
14772  case $ac_file in
14773  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14774  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14775  esac \
14776  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14777 ;;
14778  :H)
14779  #
14780  # CONFIG_HEADER
14781  #
14782  if test x"$ac_file" != x-; then
14783    {
14784      $as_echo "/* $configure_input  */" \
14785      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14786    } >"$ac_tmp/config.h" \
14787      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14788    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14789      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14790$as_echo "$as_me: $ac_file is unchanged" >&6;}
14791    else
14792      rm -f "$ac_file"
14793      mv "$ac_tmp/config.h" "$ac_file" \
14794	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14795    fi
14796  else
14797    $as_echo "/* $configure_input  */" \
14798      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14799      || as_fn_error $? "could not create -" "$LINENO" 5
14800  fi
14801# Compute "$ac_file"'s index in $config_headers.
14802_am_arg="$ac_file"
14803_am_stamp_count=1
14804for _am_header in $config_headers :; do
14805  case $_am_header in
14806    $_am_arg | $_am_arg:* )
14807      break ;;
14808    * )
14809      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14810  esac
14811done
14812echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14813$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14814	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14815	 X"$_am_arg" : 'X\(//\)$' \| \
14816	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14817$as_echo X"$_am_arg" |
14818    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14819	    s//\1/
14820	    q
14821	  }
14822	  /^X\(\/\/\)[^/].*/{
14823	    s//\1/
14824	    q
14825	  }
14826	  /^X\(\/\/\)$/{
14827	    s//\1/
14828	    q
14829	  }
14830	  /^X\(\/\).*/{
14831	    s//\1/
14832	    q
14833	  }
14834	  s/.*/./; q'`/stamp-h$_am_stamp_count
14835 ;;
14836
14837  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14838$as_echo "$as_me: executing $ac_file commands" >&6;}
14839 ;;
14840  esac
14841
14842
14843  case $ac_file$ac_mode in
14844    "default-1":C)
14845# Only add multilib support code if we just rebuilt the top-level
14846# Makefile.
14847case " $CONFIG_FILES " in
14848 *" Makefile "*)
14849   ac_file=Makefile . ${multi_basedir}/config-ml.in
14850   ;;
14851esac ;;
14852    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14853  # Older Autoconf quotes --file arguments for eval, but not when files
14854  # are listed without --file.  Let's play safe and only enable the eval
14855  # if we detect the quoting.
14856  case $CONFIG_FILES in
14857  *\'*) eval set x "$CONFIG_FILES" ;;
14858  *)   set x $CONFIG_FILES ;;
14859  esac
14860  shift
14861  for mf
14862  do
14863    # Strip MF so we end up with the name of the file.
14864    mf=`echo "$mf" | sed -e 's/:.*$//'`
14865    # Check whether this is an Automake generated Makefile or not.
14866    # We used to match only the files named 'Makefile.in', but
14867    # some people rename them; so instead we look at the file content.
14868    # Grep'ing the first line is not enough: some people post-process
14869    # each Makefile.in and add a new line on top of each file to say so.
14870    # Grep'ing the whole file is not good either: AIX grep has a line
14871    # limit of 2048, but all sed's we know have understand at least 4000.
14872    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14873      dirpart=`$as_dirname -- "$mf" ||
14874$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14875	 X"$mf" : 'X\(//\)[^/]' \| \
14876	 X"$mf" : 'X\(//\)$' \| \
14877	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14878$as_echo X"$mf" |
14879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14880	    s//\1/
14881	    q
14882	  }
14883	  /^X\(\/\/\)[^/].*/{
14884	    s//\1/
14885	    q
14886	  }
14887	  /^X\(\/\/\)$/{
14888	    s//\1/
14889	    q
14890	  }
14891	  /^X\(\/\).*/{
14892	    s//\1/
14893	    q
14894	  }
14895	  s/.*/./; q'`
14896    else
14897      continue
14898    fi
14899    # Extract the definition of DEPDIR, am__include, and am__quote
14900    # from the Makefile without running 'make'.
14901    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14902    test -z "$DEPDIR" && continue
14903    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14904    test -z "$am__include" && continue
14905    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14906    # Find all dependency output files, they are included files with
14907    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14908    # simplest approach to changing $(DEPDIR) to its actual value in the
14909    # expansion.
14910    for file in `sed -n "
14911      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14912	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14913      # Make sure the directory exists.
14914      test -f "$dirpart/$file" && continue
14915      fdir=`$as_dirname -- "$file" ||
14916$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14917	 X"$file" : 'X\(//\)[^/]' \| \
14918	 X"$file" : 'X\(//\)$' \| \
14919	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14920$as_echo X"$file" |
14921    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14922	    s//\1/
14923	    q
14924	  }
14925	  /^X\(\/\/\)[^/].*/{
14926	    s//\1/
14927	    q
14928	  }
14929	  /^X\(\/\/\)$/{
14930	    s//\1/
14931	    q
14932	  }
14933	  /^X\(\/\).*/{
14934	    s//\1/
14935	    q
14936	  }
14937	  s/.*/./; q'`
14938      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14939      # echo "creating $dirpart/$file"
14940      echo '# dummy' > "$dirpart/$file"
14941    done
14942  done
14943}
14944 ;;
14945    "libtool":C)
14946
14947    # See if we are running on zsh, and set the options which allow our
14948    # commands through without removal of \ escapes.
14949    if test -n "${ZSH_VERSION+set}" ; then
14950      setopt NO_GLOB_SUBST
14951    fi
14952
14953    cfgfile="${ofile}T"
14954    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14955    $RM "$cfgfile"
14956
14957    cat <<_LT_EOF >> "$cfgfile"
14958#! $SHELL
14959
14960# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14961# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14962# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14963# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14964#
14965#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14966#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14967#   Written by Gordon Matzigkeit, 1996
14968#
14969#   This file is part of GNU Libtool.
14970#
14971# GNU Libtool is free software; you can redistribute it and/or
14972# modify it under the terms of the GNU General Public License as
14973# published by the Free Software Foundation; either version 2 of
14974# the License, or (at your option) any later version.
14975#
14976# As a special exception to the GNU General Public License,
14977# if you distribute this file as part of a program or library that
14978# is built using GNU Libtool, you may include this file under the
14979# same distribution terms that you use for the rest of that program.
14980#
14981# GNU Libtool is distributed in the hope that it will be useful,
14982# but WITHOUT ANY WARRANTY; without even the implied warranty of
14983# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14984# GNU General Public License for more details.
14985#
14986# You should have received a copy of the GNU General Public License
14987# along with GNU Libtool; see the file COPYING.  If not, a copy
14988# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14989# obtained by writing to the Free Software Foundation, Inc.,
14990# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14991
14992
14993# The names of the tagged configurations supported by this script.
14994available_tags=""
14995
14996# ### BEGIN LIBTOOL CONFIG
14997
14998# Which release of libtool.m4 was used?
14999macro_version=$macro_version
15000macro_revision=$macro_revision
15001
15002# Whether or not to build shared libraries.
15003build_libtool_libs=$enable_shared
15004
15005# Whether or not to build static libraries.
15006build_old_libs=$enable_static
15007
15008# What type of objects to build.
15009pic_mode=$pic_mode
15010
15011# Whether or not to optimize for fast installation.
15012fast_install=$enable_fast_install
15013
15014# Shell to use when invoking shell scripts.
15015SHELL=$lt_SHELL
15016
15017# An echo program that protects backslashes.
15018ECHO=$lt_ECHO
15019
15020# The host system.
15021host_alias=$host_alias
15022host=$host
15023host_os=$host_os
15024
15025# The build system.
15026build_alias=$build_alias
15027build=$build
15028build_os=$build_os
15029
15030# A sed program that does not truncate output.
15031SED=$lt_SED
15032
15033# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15034Xsed="\$SED -e 1s/^X//"
15035
15036# A grep program that handles long lines.
15037GREP=$lt_GREP
15038
15039# An ERE matcher.
15040EGREP=$lt_EGREP
15041
15042# A literal string matcher.
15043FGREP=$lt_FGREP
15044
15045# A BSD- or MS-compatible name lister.
15046NM=$lt_NM
15047
15048# Whether we need soft or hard links.
15049LN_S=$lt_LN_S
15050
15051# What is the maximum length of a command?
15052max_cmd_len=$max_cmd_len
15053
15054# Object file suffix (normally "o").
15055objext=$ac_objext
15056
15057# Executable file suffix (normally "").
15058exeext=$exeext
15059
15060# whether the shell understands "unset".
15061lt_unset=$lt_unset
15062
15063# turn spaces into newlines.
15064SP2NL=$lt_lt_SP2NL
15065
15066# turn newlines into spaces.
15067NL2SP=$lt_lt_NL2SP
15068
15069# An object symbol dumper.
15070OBJDUMP=$lt_OBJDUMP
15071
15072# Method to check whether dependent libraries are shared objects.
15073deplibs_check_method=$lt_deplibs_check_method
15074
15075# Command to use when deplibs_check_method == "file_magic".
15076file_magic_cmd=$lt_file_magic_cmd
15077
15078# The archiver.
15079AR=$lt_AR
15080AR_FLAGS=$lt_AR_FLAGS
15081
15082# A symbol stripping program.
15083STRIP=$lt_STRIP
15084
15085# Commands used to install an old-style archive.
15086RANLIB=$lt_RANLIB
15087old_postinstall_cmds=$lt_old_postinstall_cmds
15088old_postuninstall_cmds=$lt_old_postuninstall_cmds
15089
15090# Whether to use a lock for old archive extraction.
15091lock_old_archive_extraction=$lock_old_archive_extraction
15092
15093# A C compiler.
15094LTCC=$lt_CC
15095
15096# LTCC compiler flags.
15097LTCFLAGS=$lt_CFLAGS
15098
15099# Take the output of nm and produce a listing of raw symbols and C names.
15100global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15101
15102# Transform the output of nm in a proper C declaration.
15103global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15104
15105# Transform the output of nm in a C name address pair.
15106global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15107
15108# Transform the output of nm in a C name address pair when lib prefix is needed.
15109global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15110
15111# The name of the directory that contains temporary libtool files.
15112objdir=$objdir
15113
15114# Used to examine libraries when file_magic_cmd begins with "file".
15115MAGIC_CMD=$MAGIC_CMD
15116
15117# Must we lock files when doing compilation?
15118need_locks=$lt_need_locks
15119
15120# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15121DSYMUTIL=$lt_DSYMUTIL
15122
15123# Tool to change global to local symbols on Mac OS X.
15124NMEDIT=$lt_NMEDIT
15125
15126# Tool to manipulate fat objects and archives on Mac OS X.
15127LIPO=$lt_LIPO
15128
15129# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15130OTOOL=$lt_OTOOL
15131
15132# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15133OTOOL64=$lt_OTOOL64
15134
15135# Old archive suffix (normally "a").
15136libext=$libext
15137
15138# Shared library suffix (normally ".so").
15139shrext_cmds=$lt_shrext_cmds
15140
15141# The commands to extract the exported symbol list from a shared archive.
15142extract_expsyms_cmds=$lt_extract_expsyms_cmds
15143
15144# Variables whose values should be saved in libtool wrapper scripts and
15145# restored at link time.
15146variables_saved_for_relink=$lt_variables_saved_for_relink
15147
15148# Do we need the "lib" prefix for modules?
15149need_lib_prefix=$need_lib_prefix
15150
15151# Do we need a version for libraries?
15152need_version=$need_version
15153
15154# Library versioning type.
15155version_type=$version_type
15156
15157# Shared library runtime path variable.
15158runpath_var=$runpath_var
15159
15160# Shared library path variable.
15161shlibpath_var=$shlibpath_var
15162
15163# Is shlibpath searched before the hard-coded library search path?
15164shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15165
15166# Format of library name prefix.
15167libname_spec=$lt_libname_spec
15168
15169# List of archive names.  First name is the real one, the rest are links.
15170# The last name is the one that the linker finds with -lNAME
15171library_names_spec=$lt_library_names_spec
15172
15173# The coded name of the library, if different from the real name.
15174soname_spec=$lt_soname_spec
15175
15176# Permission mode override for installation of shared libraries.
15177install_override_mode=$lt_install_override_mode
15178
15179# Command to use after installation of a shared archive.
15180postinstall_cmds=$lt_postinstall_cmds
15181
15182# Command to use after uninstallation of a shared archive.
15183postuninstall_cmds=$lt_postuninstall_cmds
15184
15185# Commands used to finish a libtool library installation in a directory.
15186finish_cmds=$lt_finish_cmds
15187
15188# As "finish_cmds", except a single script fragment to be evaled but
15189# not shown.
15190finish_eval=$lt_finish_eval
15191
15192# Whether we should hardcode library paths into libraries.
15193hardcode_into_libs=$hardcode_into_libs
15194
15195# Compile-time system search path for libraries.
15196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15197
15198# Run-time system search path for libraries.
15199sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15200
15201# Whether dlopen is supported.
15202dlopen_support=$enable_dlopen
15203
15204# Whether dlopen of programs is supported.
15205dlopen_self=$enable_dlopen_self
15206
15207# Whether dlopen of statically linked programs is supported.
15208dlopen_self_static=$enable_dlopen_self_static
15209
15210# Commands to strip libraries.
15211old_striplib=$lt_old_striplib
15212striplib=$lt_striplib
15213
15214
15215# The linker used to build libraries.
15216LD=$lt_LD
15217
15218# How to create reloadable object files.
15219reload_flag=$lt_reload_flag
15220reload_cmds=$lt_reload_cmds
15221
15222# Commands used to build an old-style archive.
15223old_archive_cmds=$lt_old_archive_cmds
15224
15225# A language specific compiler.
15226CC=$lt_compiler
15227
15228# Is the compiler the GNU compiler?
15229with_gcc=$GCC
15230
15231# Compiler flag to turn off builtin functions.
15232no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15233
15234# How to pass a linker flag through the compiler.
15235wl=$lt_lt_prog_compiler_wl
15236
15237# Additional compiler flags for building library objects.
15238pic_flag=$lt_lt_prog_compiler_pic
15239
15240# Compiler flag to prevent dynamic linking.
15241link_static_flag=$lt_lt_prog_compiler_static
15242
15243# Does compiler simultaneously support -c and -o options?
15244compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15245
15246# Whether or not to add -lc for building shared libraries.
15247build_libtool_need_lc=$archive_cmds_need_lc
15248
15249# Whether or not to disallow shared libs when runtime libs are static.
15250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15251
15252# Compiler flag to allow reflexive dlopens.
15253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15254
15255# Compiler flag to generate shared objects directly from archives.
15256whole_archive_flag_spec=$lt_whole_archive_flag_spec
15257
15258# Whether the compiler copes with passing no objects directly.
15259compiler_needs_object=$lt_compiler_needs_object
15260
15261# Create an old-style archive from a shared archive.
15262old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15263
15264# Create a temporary old-style archive to link instead of a shared archive.
15265old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15266
15267# Commands used to build a shared archive.
15268archive_cmds=$lt_archive_cmds
15269archive_expsym_cmds=$lt_archive_expsym_cmds
15270
15271# Commands used to build a loadable module if different from building
15272# a shared archive.
15273module_cmds=$lt_module_cmds
15274module_expsym_cmds=$lt_module_expsym_cmds
15275
15276# Whether we are building with GNU ld or not.
15277with_gnu_ld=$lt_with_gnu_ld
15278
15279# Flag that allows shared libraries with undefined symbols to be built.
15280allow_undefined_flag=$lt_allow_undefined_flag
15281
15282# Flag that enforces no undefined symbols.
15283no_undefined_flag=$lt_no_undefined_flag
15284
15285# Flag to hardcode \$libdir into a binary during linking.
15286# This must work even if \$libdir does not exist
15287hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15288
15289# If ld is used when linking, flag to hardcode \$libdir into a binary
15290# during linking.  This must work even if \$libdir does not exist.
15291hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15292
15293# Whether we need a single "-rpath" flag with a separated argument.
15294hardcode_libdir_separator=$lt_hardcode_libdir_separator
15295
15296# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15297# DIR into the resulting binary.
15298hardcode_direct=$hardcode_direct
15299
15300# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15301# DIR into the resulting binary and the resulting library dependency is
15302# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15303# library is relocated.
15304hardcode_direct_absolute=$hardcode_direct_absolute
15305
15306# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15307# into the resulting binary.
15308hardcode_minus_L=$hardcode_minus_L
15309
15310# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15311# into the resulting binary.
15312hardcode_shlibpath_var=$hardcode_shlibpath_var
15313
15314# Set to "yes" if building a shared library automatically hardcodes DIR
15315# into the library and all subsequent libraries and executables linked
15316# against it.
15317hardcode_automatic=$hardcode_automatic
15318
15319# Set to yes if linker adds runtime paths of dependent libraries
15320# to runtime path list.
15321inherit_rpath=$inherit_rpath
15322
15323# Whether libtool must link a program against all its dependency libraries.
15324link_all_deplibs=$link_all_deplibs
15325
15326# Fix the shell variable \$srcfile for the compiler.
15327fix_srcfile_path=$lt_fix_srcfile_path
15328
15329# Set to "yes" if exported symbols are required.
15330always_export_symbols=$always_export_symbols
15331
15332# The commands to list exported symbols.
15333export_symbols_cmds=$lt_export_symbols_cmds
15334
15335# Symbols that should not be listed in the preloaded symbols.
15336exclude_expsyms=$lt_exclude_expsyms
15337
15338# Symbols that must always be exported.
15339include_expsyms=$lt_include_expsyms
15340
15341# Commands necessary for linking programs (against libraries) with templates.
15342prelink_cmds=$lt_prelink_cmds
15343
15344# Specify filename containing input files.
15345file_list_spec=$lt_file_list_spec
15346
15347# How to hardcode a shared library path into an executable.
15348hardcode_action=$hardcode_action
15349
15350# ### END LIBTOOL CONFIG
15351
15352_LT_EOF
15353
15354  case $host_os in
15355  aix3*)
15356    cat <<\_LT_EOF >> "$cfgfile"
15357# AIX sometimes has problems with the GCC collect2 program.  For some
15358# reason, if we set the COLLECT_NAMES environment variable, the problems
15359# vanish in a puff of smoke.
15360if test "X${COLLECT_NAMES+set}" != Xset; then
15361  COLLECT_NAMES=
15362  export COLLECT_NAMES
15363fi
15364_LT_EOF
15365    ;;
15366  esac
15367
15368
15369ltmain="$ac_aux_dir/ltmain.sh"
15370
15371
15372  # We use sed instead of cat because bash on DJGPP gets confused if
15373  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15374  # text mode, it properly converts lines to CR/LF.  This bash problem
15375  # is reportedly fixed, but why not run on old versions too?
15376  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15377    || (rm -f "$cfgfile"; exit 1)
15378
15379  case $xsi_shell in
15380  yes)
15381    cat << \_LT_EOF >> "$cfgfile"
15382
15383# func_dirname file append nondir_replacement
15384# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15385# otherwise set result to NONDIR_REPLACEMENT.
15386func_dirname ()
15387{
15388  case ${1} in
15389    */*) func_dirname_result="${1%/*}${2}" ;;
15390    *  ) func_dirname_result="${3}" ;;
15391  esac
15392}
15393
15394# func_basename file
15395func_basename ()
15396{
15397  func_basename_result="${1##*/}"
15398}
15399
15400# func_dirname_and_basename file append nondir_replacement
15401# perform func_basename and func_dirname in a single function
15402# call:
15403#   dirname:  Compute the dirname of FILE.  If nonempty,
15404#             add APPEND to the result, otherwise set result
15405#             to NONDIR_REPLACEMENT.
15406#             value returned in "$func_dirname_result"
15407#   basename: Compute filename of FILE.
15408#             value retuned in "$func_basename_result"
15409# Implementation must be kept synchronized with func_dirname
15410# and func_basename. For efficiency, we do not delegate to
15411# those functions but instead duplicate the functionality here.
15412func_dirname_and_basename ()
15413{
15414  case ${1} in
15415    */*) func_dirname_result="${1%/*}${2}" ;;
15416    *  ) func_dirname_result="${3}" ;;
15417  esac
15418  func_basename_result="${1##*/}"
15419}
15420
15421# func_stripname prefix suffix name
15422# strip PREFIX and SUFFIX off of NAME.
15423# PREFIX and SUFFIX must not contain globbing or regex special
15424# characters, hashes, percent signs, but SUFFIX may contain a leading
15425# dot (in which case that matches only a dot).
15426func_stripname ()
15427{
15428  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15429  # positional parameters, so assign one to ordinary parameter first.
15430  func_stripname_result=${3}
15431  func_stripname_result=${func_stripname_result#"${1}"}
15432  func_stripname_result=${func_stripname_result%"${2}"}
15433}
15434
15435# func_opt_split
15436func_opt_split ()
15437{
15438  func_opt_split_opt=${1%%=*}
15439  func_opt_split_arg=${1#*=}
15440}
15441
15442# func_lo2o object
15443func_lo2o ()
15444{
15445  case ${1} in
15446    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15447    *)    func_lo2o_result=${1} ;;
15448  esac
15449}
15450
15451# func_xform libobj-or-source
15452func_xform ()
15453{
15454  func_xform_result=${1%.*}.lo
15455}
15456
15457# func_arith arithmetic-term...
15458func_arith ()
15459{
15460  func_arith_result=$(( $* ))
15461}
15462
15463# func_len string
15464# STRING may not start with a hyphen.
15465func_len ()
15466{
15467  func_len_result=${#1}
15468}
15469
15470_LT_EOF
15471    ;;
15472  *) # Bourne compatible functions.
15473    cat << \_LT_EOF >> "$cfgfile"
15474
15475# func_dirname file append nondir_replacement
15476# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15477# otherwise set result to NONDIR_REPLACEMENT.
15478func_dirname ()
15479{
15480  # Extract subdirectory from the argument.
15481  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15482  if test "X$func_dirname_result" = "X${1}"; then
15483    func_dirname_result="${3}"
15484  else
15485    func_dirname_result="$func_dirname_result${2}"
15486  fi
15487}
15488
15489# func_basename file
15490func_basename ()
15491{
15492  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15493}
15494
15495
15496# func_stripname prefix suffix name
15497# strip PREFIX and SUFFIX off of NAME.
15498# PREFIX and SUFFIX must not contain globbing or regex special
15499# characters, hashes, percent signs, but SUFFIX may contain a leading
15500# dot (in which case that matches only a dot).
15501# func_strip_suffix prefix name
15502func_stripname ()
15503{
15504  case ${2} in
15505    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15506    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15507  esac
15508}
15509
15510# sed scripts:
15511my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15512my_sed_long_arg='1s/^-[^=]*=//'
15513
15514# func_opt_split
15515func_opt_split ()
15516{
15517  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15518  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15519}
15520
15521# func_lo2o object
15522func_lo2o ()
15523{
15524  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15525}
15526
15527# func_xform libobj-or-source
15528func_xform ()
15529{
15530  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15531}
15532
15533# func_arith arithmetic-term...
15534func_arith ()
15535{
15536  func_arith_result=`expr "$@"`
15537}
15538
15539# func_len string
15540# STRING may not start with a hyphen.
15541func_len ()
15542{
15543  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15544}
15545
15546_LT_EOF
15547esac
15548
15549case $lt_shell_append in
15550  yes)
15551    cat << \_LT_EOF >> "$cfgfile"
15552
15553# func_append var value
15554# Append VALUE to the end of shell variable VAR.
15555func_append ()
15556{
15557  eval "$1+=\$2"
15558}
15559_LT_EOF
15560    ;;
15561  *)
15562    cat << \_LT_EOF >> "$cfgfile"
15563
15564# func_append var value
15565# Append VALUE to the end of shell variable VAR.
15566func_append ()
15567{
15568  eval "$1=\$$1\$2"
15569}
15570
15571_LT_EOF
15572    ;;
15573  esac
15574
15575
15576  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15577    || (rm -f "$cfgfile"; exit 1)
15578
15579  mv -f "$cfgfile" "$ofile" ||
15580    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15581  chmod +x "$ofile"
15582
15583 ;;
15584
15585  esac
15586done # for ac_tag
15587
15588
15589as_fn_exit 0
15590_ACEOF
15591ac_clean_files=$ac_clean_files_save
15592
15593test $ac_write_fail = 0 ||
15594  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15595
15596
15597# configure is writing to config.log, and then calls config.status.
15598# config.status does its own redirection, appending to config.log.
15599# Unfortunately, on DOS this fails, as config.log is still kept open
15600# by configure, so config.status won't be able to write to it; its
15601# output is simply discarded.  So we exec the FD to /dev/null,
15602# effectively closing config.log, so it can be properly (re)opened and
15603# appended to by config.status.  When coming back to configure, we
15604# need to make the FD available again.
15605if test "$no_create" != yes; then
15606  ac_cs_success=:
15607  ac_config_status_args=
15608  test "$silent" = yes &&
15609    ac_config_status_args="$ac_config_status_args --quiet"
15610  exec 5>/dev/null
15611  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15612  exec 5>>config.log
15613  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15614  # would make configure fail if this is the last instruction.
15615  $ac_cs_success || as_fn_exit 1
15616fi
15617if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15618  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15619$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15620fi
15621
15622