xref: /netbsd-src/external/lgpl3/mpfr/dist/configure (revision ec6772edaf0cdcb5f52a48f4aca5e33a8fb8ecfd)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for MPFR 4.2.1.
4#
5#
6# Copyright 1999-2023 Free Software Foundation, Inc.
7# Contributed by the AriC and Caramba projects, INRIA.
8#
9# This file is part of the GNU MPFR Library.
10#
11# The GNU MPFR Library is free software; you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License as published
13# by the Free Software Foundation; either version 3 of the License, or (at
14# your option) any later version.
15#
16# The GNU MPFR Library is distributed in the hope that it will be useful, but
17# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
19# License for more details.
20#
21# You should have received a copy of the GNU Lesser General Public License
22# along with the GNU MPFR Library; see the file COPYING.LESSER.  If not, see
23# https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
24# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
25#
26#
27#
28# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
29# Inc.
30#
31#
32# This configure script is free software; the Free Software Foundation
33# gives unlimited permission to copy, distribute and modify it.
34## -------------------- ##
35## M4sh Initialization. ##
36## -------------------- ##
37
38# Be more Bourne compatible
39DUALCASE=1; export DUALCASE # for MKS sh
40as_nop=:
41if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
42then :
43  emulate sh
44  NULLCMD=:
45  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46  # is contrary to our usage.  Disable this feature.
47  alias -g '${1+"$@"}'='"$@"'
48  setopt NO_GLOB_SUBST
49else $as_nop
50  case `(set -o) 2>/dev/null` in #(
51  *posix*) :
52    set -o posix ;; #(
53  *) :
54     ;;
55esac
56fi
57
58
59
60# Reset variables that may have inherited troublesome values from
61# the environment.
62
63# IFS needs to be set, to space, tab, and newline, in precisely that order.
64# (If _AS_PATH_WALK were called with IFS unset, it would have the
65# side effect of setting IFS to empty, thus disabling word splitting.)
66# Quoting is to prevent editors from complaining about space-tab.
67as_nl='
68'
69export as_nl
70IFS=" ""	$as_nl"
71
72PS1='$ '
73PS2='> '
74PS4='+ '
75
76# Ensure predictable behavior from utilities with locale-dependent output.
77LC_ALL=C
78export LC_ALL
79LANGUAGE=C
80export LANGUAGE
81
82# We cannot yet rely on "unset" to work, but we need these variables
83# to be unset--not just set to an empty or harmless value--now, to
84# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
85# also avoids known problems related to "unset" and subshell syntax
86# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
87for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
88do eval test \${$as_var+y} \
89  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
90done
91
92# Ensure that fds 0, 1, and 2 are open.
93if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
94if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
95if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
96
97# The user is always right.
98if ${PATH_SEPARATOR+false} :; then
99  PATH_SEPARATOR=:
100  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
101    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
102      PATH_SEPARATOR=';'
103  }
104fi
105
106
107# Find who we are.  Look in the path if we contain no directory separator.
108as_myself=
109case $0 in #((
110  *[\\/]* ) as_myself=$0 ;;
111  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  case $as_dir in #(((
116    '') as_dir=./ ;;
117    */) ;;
118    *) as_dir=$as_dir/ ;;
119  esac
120    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
121  done
122IFS=$as_save_IFS
123
124     ;;
125esac
126# We did not find ourselves, most probably we were run as `sh COMMAND'
127# in which case we are not to be found in the path.
128if test "x$as_myself" = x; then
129  as_myself=$0
130fi
131if test ! -f "$as_myself"; then
132  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133  exit 1
134fi
135
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
158exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="as_nop=:
164if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
165then :
166  emulate sh
167  NULLCMD=:
168  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169  # is contrary to our usage.  Disable this feature.
170  alias -g '\${1+\"\$@\"}'='\"\$@\"'
171  setopt NO_GLOB_SUBST
172else \$as_nop
173  case \`(set -o) 2>/dev/null\` in #(
174  *posix*) :
175    set -o posix ;; #(
176  *) :
177     ;;
178esac
179fi
180"
181  as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" )
193then :
194
195else \$as_nop
196  exitcode=1; echo positional parameters were not saved.
197fi
198test x\$exitcode = x0 || exit 1
199blah=\$(echo \$(echo blah))
200test x\"\$blah\" = xblah || exit 1
201test -x / || exit 1"
202  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
203  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
204  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
205  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
206test \$(( 1 + 1 )) = 2 || exit 1
207
208  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
209    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
210    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
211    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
212    PATH=/empty FPATH=/empty; export PATH FPATH
213    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
214      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
215  if (eval "$as_required") 2>/dev/null
216then :
217  as_have_required=yes
218else $as_nop
219  as_have_required=no
220fi
221  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
222then :
223
224else $as_nop
225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226as_found=false
227for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228do
229  IFS=$as_save_IFS
230  case $as_dir in #(((
231    '') as_dir=./ ;;
232    */) ;;
233    *) as_dir=$as_dir/ ;;
234  esac
235  as_found=:
236  case $as_dir in #(
237	 /*)
238	   for as_base in sh bash ksh sh5; do
239	     # Try only shells that exist, to save several forks.
240	     as_shell=$as_dir$as_base
241	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$as_shell as_have_required=yes
245		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
246then :
247  break 2
248fi
249fi
250	   done;;
251       esac
252  as_found=false
253done
254IFS=$as_save_IFS
255if $as_found
256then :
257
258else $as_nop
259  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
260	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
261then :
262  CONFIG_SHELL=$SHELL as_have_required=yes
263fi
264fi
265
266
267      if test "x$CONFIG_SHELL" != x
268then :
269  export CONFIG_SHELL
270             # We cannot yet assume a decent shell, so we have to provide a
271# neutralization value for shells without unset; and this also
272# works around shells that cannot unset nonexistent variables.
273# Preserve -v and -x to the replacement shell.
274BASH_ENV=/dev/null
275ENV=/dev/null
276(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
277case $- in # ((((
278  *v*x* | *x*v* ) as_opts=-vx ;;
279  *v* ) as_opts=-v ;;
280  *x* ) as_opts=-x ;;
281  * ) as_opts= ;;
282esac
283exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
284# Admittedly, this is quite paranoid, since all the known shells bail
285# out after a failed `exec'.
286printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
287exit 255
288fi
289
290    if test x$as_have_required = xno
291then :
292  printf "%s\n" "$0: This script requires a shell more modern than all"
293  printf "%s\n" "$0: the shells that I found on your system."
294  if test ${ZSH_VERSION+y} ; then
295    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
296    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
297  else
298    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
299$0: including any error possibly output before this
300$0: message. Then install a modern shell, or manually run
301$0: the script under such a shell if you do have one."
302  fi
303  exit 1
304fi
305fi
306fi
307SHELL=${CONFIG_SHELL-/bin/sh}
308export SHELL
309# Unset more variables known to interfere with behavior of common tools.
310CLICOLOR_FORCE= GREP_OPTIONS=
311unset CLICOLOR_FORCE GREP_OPTIONS
312
313## --------------------- ##
314## M4sh Shell Functions. ##
315## --------------------- ##
316# as_fn_unset VAR
317# ---------------
318# Portably unset VAR.
319as_fn_unset ()
320{
321  { eval $1=; unset $1;}
322}
323as_unset=as_fn_unset
324
325
326# as_fn_set_status STATUS
327# -----------------------
328# Set $? to STATUS, without forking.
329as_fn_set_status ()
330{
331  return $1
332} # as_fn_set_status
333
334# as_fn_exit STATUS
335# -----------------
336# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
337as_fn_exit ()
338{
339  set +e
340  as_fn_set_status $1
341  exit $1
342} # as_fn_exit
343# as_fn_nop
344# ---------
345# Do nothing but, unlike ":", preserve the value of $?.
346as_fn_nop ()
347{
348  return $?
349}
350as_nop=as_fn_nop
351
352# as_fn_mkdir_p
353# -------------
354# Create "$as_dir" as a directory, including parents if necessary.
355as_fn_mkdir_p ()
356{
357
358  case $as_dir in #(
359  -*) as_dir=./$as_dir;;
360  esac
361  test -d "$as_dir" || eval $as_mkdir_p || {
362    as_dirs=
363    while :; do
364      case $as_dir in #(
365      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
366      *) as_qdir=$as_dir;;
367      esac
368      as_dirs="'$as_qdir' $as_dirs"
369      as_dir=`$as_dirname -- "$as_dir" ||
370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
371	 X"$as_dir" : 'X\(//\)[^/]' \| \
372	 X"$as_dir" : 'X\(//\)$' \| \
373	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
374printf "%s\n" X"$as_dir" |
375    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
376	    s//\1/
377	    q
378	  }
379	  /^X\(\/\/\)[^/].*/{
380	    s//\1/
381	    q
382	  }
383	  /^X\(\/\/\)$/{
384	    s//\1/
385	    q
386	  }
387	  /^X\(\/\).*/{
388	    s//\1/
389	    q
390	  }
391	  s/.*/./; q'`
392      test -d "$as_dir" && break
393    done
394    test -z "$as_dirs" || eval "mkdir $as_dirs"
395  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
396
397
398} # as_fn_mkdir_p
399
400# as_fn_executable_p FILE
401# -----------------------
402# Test if FILE is an executable regular file.
403as_fn_executable_p ()
404{
405  test -f "$1" && test -x "$1"
406} # as_fn_executable_p
407# as_fn_append VAR VALUE
408# ----------------------
409# Append the text in VALUE to the end of the definition contained in VAR. Take
410# advantage of any shell optimizations that allow amortized linear growth over
411# repeated appends, instead of the typical quadratic growth present in naive
412# implementations.
413if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
414then :
415  eval 'as_fn_append ()
416  {
417    eval $1+=\$2
418  }'
419else $as_nop
420  as_fn_append ()
421  {
422    eval $1=\$$1\$2
423  }
424fi # as_fn_append
425
426# as_fn_arith ARG...
427# ------------------
428# Perform arithmetic evaluation on the ARGs, and store the result in the
429# global $as_val. Take advantage of shells that can avoid forks. The arguments
430# must be portable across $(()) and expr.
431if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
432then :
433  eval 'as_fn_arith ()
434  {
435    as_val=$(( $* ))
436  }'
437else $as_nop
438  as_fn_arith ()
439  {
440    as_val=`expr "$@" || test $? -eq 1`
441  }
442fi # as_fn_arith
443
444# as_fn_nop
445# ---------
446# Do nothing but, unlike ":", preserve the value of $?.
447as_fn_nop ()
448{
449  return $?
450}
451as_nop=as_fn_nop
452
453# as_fn_error STATUS ERROR [LINENO LOG_FD]
454# ----------------------------------------
455# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
456# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
457# script with STATUS, using 1 if that was 0.
458as_fn_error ()
459{
460  as_status=$1; test $as_status -eq 0 && as_status=1
461  if test "$4"; then
462    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
463    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
464  fi
465  printf "%s\n" "$as_me: error: $2" >&2
466  as_fn_exit $as_status
467} # as_fn_error
468
469if expr a : '\(a\)' >/dev/null 2>&1 &&
470   test "X`expr 00001 : '.*\(...\)'`" = X001; then
471  as_expr=expr
472else
473  as_expr=false
474fi
475
476if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
477  as_basename=basename
478else
479  as_basename=false
480fi
481
482if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
483  as_dirname=dirname
484else
485  as_dirname=false
486fi
487
488as_me=`$as_basename -- "$0" ||
489$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
490	 X"$0" : 'X\(//\)$' \| \
491	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
492printf "%s\n" X/"$0" |
493    sed '/^.*\/\([^/][^/]*\)\/*$/{
494	    s//\1/
495	    q
496	  }
497	  /^X\/\(\/\/\)$/{
498	    s//\1/
499	    q
500	  }
501	  /^X\/\(\/\).*/{
502	    s//\1/
503	    q
504	  }
505	  s/.*/./; q'`
506
507# Avoid depending upon Character Ranges.
508as_cr_letters='abcdefghijklmnopqrstuvwxyz'
509as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
510as_cr_Letters=$as_cr_letters$as_cr_LETTERS
511as_cr_digits='0123456789'
512as_cr_alnum=$as_cr_Letters$as_cr_digits
513
514
515  as_lineno_1=$LINENO as_lineno_1a=$LINENO
516  as_lineno_2=$LINENO as_lineno_2a=$LINENO
517  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
518  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
519  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
520  sed -n '
521    p
522    /[$]LINENO/=
523  ' <$as_myself |
524    sed '
525      s/[$]LINENO.*/&-/
526      t lineno
527      b
528      :lineno
529      N
530      :loop
531      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
532      t loop
533      s/-\n.*//
534    ' >$as_me.lineno &&
535  chmod +x "$as_me.lineno" ||
536    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
537
538  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
539  # already done that, so ensure we don't try to do so again and fall
540  # in an infinite loop.  This has already happened in practice.
541  _as_can_reexec=no; export _as_can_reexec
542  # Don't try to exec as it changes $[0], causing all sort of problems
543  # (the dirname of $[0] is not the place where we might find the
544  # original and so on.  Autoconf is especially sensitive to this).
545  . "./$as_me.lineno"
546  # Exit status is that of the last command.
547  exit
548}
549
550
551# Determine whether it's possible to make 'echo' print without a newline.
552# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
553# for compatibility with existing Makefiles.
554ECHO_C= ECHO_N= ECHO_T=
555case `echo -n x` in #(((((
556-n*)
557  case `echo 'xy\c'` in
558  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
559  xy)  ECHO_C='\c';;
560  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
561       ECHO_T='	';;
562  esac;;
563*)
564  ECHO_N='-n';;
565esac
566
567# For backward compatibility with old third-party macros, we provide
568# the shell variables $as_echo and $as_echo_n.  New code should use
569# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
570as_echo='printf %s\n'
571as_echo_n='printf %s'
572
573
574rm -f conf$$ conf$$.exe conf$$.file
575if test -d conf$$.dir; then
576  rm -f conf$$.dir/conf$$.file
577else
578  rm -f conf$$.dir
579  mkdir conf$$.dir 2>/dev/null
580fi
581if (echo >conf$$.file) 2>/dev/null; then
582  if ln -s conf$$.file conf$$ 2>/dev/null; then
583    as_ln_s='ln -s'
584    # ... but there are two gotchas:
585    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
586    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
587    # In both cases, we have to default to `cp -pR'.
588    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
589      as_ln_s='cp -pR'
590  elif ln conf$$.file conf$$ 2>/dev/null; then
591    as_ln_s=ln
592  else
593    as_ln_s='cp -pR'
594  fi
595else
596  as_ln_s='cp -pR'
597fi
598rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
599rmdir conf$$.dir 2>/dev/null
600
601if mkdir -p . 2>/dev/null; then
602  as_mkdir_p='mkdir -p "$as_dir"'
603else
604  test -d ./-p && rmdir ./-p
605  as_mkdir_p=false
606fi
607
608as_test_x='test -x'
609as_executable_p=as_fn_executable_p
610
611# Sed expression to map a string onto a valid CPP name.
612as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
613
614# Sed expression to map a string onto a valid variable name.
615as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
616
617SHELL=${CONFIG_SHELL-/bin/sh}
618
619
620test -n "$DJDIR" || exec 7<&0 </dev/null
621exec 6>&1
622
623# Name of the host.
624# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
625# so uname gets run too.
626ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
627
628#
629# Initializations.
630#
631ac_default_prefix=/usr/local
632ac_clean_files=
633ac_config_libobj_dir=.
634LIBOBJS=
635cross_compiling=no
636subdirs=
637MFLAGS=
638MAKEFLAGS=
639
640# Identity of this package.
641PACKAGE_NAME='MPFR'
642PACKAGE_TARNAME='mpfr'
643PACKAGE_VERSION='4.2.1'
644PACKAGE_STRING='MPFR 4.2.1'
645PACKAGE_BUGREPORT=''
646PACKAGE_URL=''
647
648# Factoring default headers for most tests.
649ac_includes_default="\
650#include <stddef.h>
651#ifdef HAVE_STDIO_H
652# include <stdio.h>
653#endif
654#ifdef HAVE_STDLIB_H
655# include <stdlib.h>
656#endif
657#ifdef HAVE_STRING_H
658# include <string.h>
659#endif
660#ifdef HAVE_INTTYPES_H
661# include <inttypes.h>
662#endif
663#ifdef HAVE_STDINT_H
664# include <stdint.h>
665#endif
666#ifdef HAVE_STRINGS_H
667# include <strings.h>
668#endif
669#ifdef HAVE_SYS_TYPES_H
670# include <sys/types.h>
671#endif
672#ifdef HAVE_SYS_STAT_H
673# include <sys/stat.h>
674#endif
675#ifdef HAVE_UNISTD_H
676# include <unistd.h>
677#endif"
678
679ac_header_c_list=
680ac_subst_vars='am__EXEEXT_FALSE
681am__EXEEXT_TRUE
682LTLIBOBJS
683LIBOBJS
684DATAFILES
685LIBMPFR_LDFLAGS
686MPFR_LDFLAGS
687ALLOCA
688PTHREAD_CFLAGS
689PTHREAD_LIBS
690PTHREAD_CXX
691PTHREAD_CC
692ax_pthread_config
693MPFR_LIBQUADMATH
694MPFR_LIBM
695TUNE_LIBS
696LT_SYS_LIBRARY_PATH
697OTOOL64
698OTOOL
699LIPO
700NMEDIT
701DSYMUTIL
702MANIFEST_TOOL
703RANLIB
704FILECMD
705LN_S
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711LIBTOOL
712OBJDUMP
713DLLTOOL
714AS
715ac_ct_AR
716AR
717CPP
718am__fastdepCC_FALSE
719am__fastdepCC_TRUE
720CCDEPMODE
721am__nodep
722AMDEPBACKSLASH
723AMDEP_FALSE
724AMDEP_TRUE
725am__include
726DEPDIR
727OBJEXT
728EXEEXT
729ac_ct_CC
730CPPFLAGS
731LDFLAGS
732CFLAGS
733CC
734MINI_GMP_FALSE
735MINI_GMP_TRUE
736mini_gmp_path
737SED
738EGREP
739GREP
740MAINT
741MAINTAINER_MODE_FALSE
742MAINTAINER_MODE_TRUE
743AM_BACKSLASH
744AM_DEFAULT_VERBOSITY
745AM_DEFAULT_V
746AM_V
747CSCOPE
748ETAGS
749CTAGS
750am__untar
751am__tar
752AMTAR
753am__leading_dot
754SET_MAKE
755AWK
756mkdir_p
757MKDIR_P
758INSTALL_STRIP_PROGRAM
759STRIP
760install_sh
761MAKEINFO
762AUTOHEADER
763AUTOMAKE
764AUTOCONF
765ACLOCAL
766VERSION
767PACKAGE
768CYGPATH_W
769am__isrc
770INSTALL_DATA
771INSTALL_SCRIPT
772INSTALL_PROGRAM
773host_os
774host_vendor
775host_cpu
776host
777build_os
778build_vendor
779build_cpu
780build
781target_alias
782host_alias
783build_alias
784LIBS
785ECHO_T
786ECHO_N
787ECHO_C
788DEFS
789mandir
790localedir
791libdir
792psdir
793pdfdir
794dvidir
795htmldir
796infodir
797docdir
798oldincludedir
799includedir
800runstatedir
801localstatedir
802sharedstatedir
803sysconfdir
804datadir
805datarootdir
806libexecdir
807sbindir
808bindir
809program_transform_name
810prefix
811exec_prefix
812PACKAGE_URL
813PACKAGE_BUGREPORT
814PACKAGE_STRING
815PACKAGE_VERSION
816PACKAGE_TARNAME
817PACKAGE_NAME
818PATH_SEPARATOR
819SHELL
820am__quote'
821ac_subst_files=''
822ac_user_opts='
823enable_option_checking
824enable_silent_rules
825enable_maintainer_mode
826with_gmp_include
827with_gmp_lib
828with_gmp
829with_gmp_build
830with_mini_gmp
831with_mulhigh_size
832enable_gmp_internals
833enable_assert
834enable_logging
835enable_thread_safe
836enable_shared_cache
837enable_warnings
838enable_tests_timeout
839enable_tune_for_coverage
840enable_decimal_float
841enable_float128
842enable_debug_prediction
843enable_lto
844enable_formally_proven_code
845enable_dependency_tracking
846enable_shared
847enable_static
848with_pic
849enable_fast_install
850with_aix_soname
851with_gnu_ld
852with_sysroot
853enable_libtool_lock
854'
855      ac_precious_vars='build_alias
856host_alias
857target_alias
858CC
859CFLAGS
860LDFLAGS
861LIBS
862CPPFLAGS
863CPP
864LT_SYS_LIBRARY_PATH'
865
866
867# Initialize some variables set by options.
868ac_init_help=
869ac_init_version=false
870ac_unrecognized_opts=
871ac_unrecognized_sep=
872# The variables have the same names as the options, with
873# dashes changed to underlines.
874cache_file=/dev/null
875exec_prefix=NONE
876no_create=
877no_recursion=
878prefix=NONE
879program_prefix=NONE
880program_suffix=NONE
881program_transform_name=s,x,x,
882silent=
883site=
884srcdir=
885verbose=
886x_includes=NONE
887x_libraries=NONE
888
889# Installation directory options.
890# These are left unexpanded so users can "make install exec_prefix=/foo"
891# and all the variables that are supposed to be based on exec_prefix
892# by default will actually change.
893# Use braces instead of parens because sh, perl, etc. also accept them.
894# (The list follows the same order as the GNU Coding Standards.)
895bindir='${exec_prefix}/bin'
896sbindir='${exec_prefix}/sbin'
897libexecdir='${exec_prefix}/libexec'
898datarootdir='${prefix}/share'
899datadir='${datarootdir}'
900sysconfdir='${prefix}/etc'
901sharedstatedir='${prefix}/com'
902localstatedir='${prefix}/var'
903runstatedir='${localstatedir}/run'
904includedir='${prefix}/include'
905oldincludedir='/usr/include'
906docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907infodir='${datarootdir}/info'
908htmldir='${docdir}'
909dvidir='${docdir}'
910pdfdir='${docdir}'
911psdir='${docdir}'
912libdir='${exec_prefix}/lib'
913localedir='${datarootdir}/locale'
914mandir='${datarootdir}/man'
915
916ac_prev=
917ac_dashdash=
918for ac_option
919do
920  # If the previous option needs an argument, assign it.
921  if test -n "$ac_prev"; then
922    eval $ac_prev=\$ac_option
923    ac_prev=
924    continue
925  fi
926
927  case $ac_option in
928  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929  *=)   ac_optarg= ;;
930  *)    ac_optarg=yes ;;
931  esac
932
933  case $ac_dashdash$ac_option in
934  --)
935    ac_dashdash=yes ;;
936
937  -bindir | --bindir | --bindi | --bind | --bin | --bi)
938    ac_prev=bindir ;;
939  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940    bindir=$ac_optarg ;;
941
942  -build | --build | --buil | --bui | --bu)
943    ac_prev=build_alias ;;
944  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945    build_alias=$ac_optarg ;;
946
947  -cache-file | --cache-file | --cache-fil | --cache-fi \
948  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949    ac_prev=cache_file ;;
950  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952    cache_file=$ac_optarg ;;
953
954  --config-cache | -C)
955    cache_file=config.cache ;;
956
957  -datadir | --datadir | --datadi | --datad)
958    ac_prev=datadir ;;
959  -datadir=* | --datadir=* | --datadi=* | --datad=*)
960    datadir=$ac_optarg ;;
961
962  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963  | --dataroo | --dataro | --datar)
964    ac_prev=datarootdir ;;
965  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967    datarootdir=$ac_optarg ;;
968
969  -disable-* | --disable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: \`$ac_useropt'"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=no ;;
984
985  -docdir | --docdir | --docdi | --doc | --do)
986    ac_prev=docdir ;;
987  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988    docdir=$ac_optarg ;;
989
990  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991    ac_prev=dvidir ;;
992  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993    dvidir=$ac_optarg ;;
994
995  -enable-* | --enable-*)
996    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1000    ac_useropt_orig=$ac_useropt
1001    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1002    case $ac_user_opts in
1003      *"
1004"enable_$ac_useropt"
1005"*) ;;
1006      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007	 ac_unrecognized_sep=', ';;
1008    esac
1009    eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013  | --exec | --exe | --ex)
1014    ac_prev=exec_prefix ;;
1015  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017  | --exec=* | --exe=* | --ex=*)
1018    exec_prefix=$ac_optarg ;;
1019
1020  -gas | --gas | --ga | --g)
1021    # Obsolete; use --with-gas.
1022    with_gas=yes ;;
1023
1024  -help | --help | --hel | --he | -h)
1025    ac_init_help=long ;;
1026  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027    ac_init_help=recursive ;;
1028  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029    ac_init_help=short ;;
1030
1031  -host | --host | --hos | --ho)
1032    ac_prev=host_alias ;;
1033  -host=* | --host=* | --hos=* | --ho=*)
1034    host_alias=$ac_optarg ;;
1035
1036  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037    ac_prev=htmldir ;;
1038  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039  | --ht=*)
1040    htmldir=$ac_optarg ;;
1041
1042  -includedir | --includedir | --includedi | --included | --include \
1043  | --includ | --inclu | --incl | --inc)
1044    ac_prev=includedir ;;
1045  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046  | --includ=* | --inclu=* | --incl=* | --inc=*)
1047    includedir=$ac_optarg ;;
1048
1049  -infodir | --infodir | --infodi | --infod | --info | --inf)
1050    ac_prev=infodir ;;
1051  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052    infodir=$ac_optarg ;;
1053
1054  -libdir | --libdir | --libdi | --libd)
1055    ac_prev=libdir ;;
1056  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057    libdir=$ac_optarg ;;
1058
1059  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060  | --libexe | --libex | --libe)
1061    ac_prev=libexecdir ;;
1062  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063  | --libexe=* | --libex=* | --libe=*)
1064    libexecdir=$ac_optarg ;;
1065
1066  -localedir | --localedir | --localedi | --localed | --locale)
1067    ac_prev=localedir ;;
1068  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069    localedir=$ac_optarg ;;
1070
1071  -localstatedir | --localstatedir | --localstatedi | --localstated \
1072  | --localstate | --localstat | --localsta | --localst | --locals)
1073    ac_prev=localstatedir ;;
1074  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076    localstatedir=$ac_optarg ;;
1077
1078  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079    ac_prev=mandir ;;
1080  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081    mandir=$ac_optarg ;;
1082
1083  -nfp | --nfp | --nf)
1084    # Obsolete; use --without-fp.
1085    with_fp=no ;;
1086
1087  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088  | --no-cr | --no-c | -n)
1089    no_create=yes ;;
1090
1091  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093    no_recursion=yes ;;
1094
1095  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097  | --oldin | --oldi | --old | --ol | --o)
1098    ac_prev=oldincludedir ;;
1099  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102    oldincludedir=$ac_optarg ;;
1103
1104  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105    ac_prev=prefix ;;
1106  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107    prefix=$ac_optarg ;;
1108
1109  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110  | --program-pre | --program-pr | --program-p)
1111    ac_prev=program_prefix ;;
1112  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114    program_prefix=$ac_optarg ;;
1115
1116  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117  | --program-suf | --program-su | --program-s)
1118    ac_prev=program_suffix ;;
1119  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121    program_suffix=$ac_optarg ;;
1122
1123  -program-transform-name | --program-transform-name \
1124  | --program-transform-nam | --program-transform-na \
1125  | --program-transform-n | --program-transform- \
1126  | --program-transform | --program-transfor \
1127  | --program-transfo | --program-transf \
1128  | --program-trans | --program-tran \
1129  | --progr-tra | --program-tr | --program-t)
1130    ac_prev=program_transform_name ;;
1131  -program-transform-name=* | --program-transform-name=* \
1132  | --program-transform-nam=* | --program-transform-na=* \
1133  | --program-transform-n=* | --program-transform-=* \
1134  | --program-transform=* | --program-transfor=* \
1135  | --program-transfo=* | --program-transf=* \
1136  | --program-trans=* | --program-tran=* \
1137  | --progr-tra=* | --program-tr=* | --program-t=*)
1138    program_transform_name=$ac_optarg ;;
1139
1140  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141    ac_prev=pdfdir ;;
1142  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143    pdfdir=$ac_optarg ;;
1144
1145  -psdir | --psdir | --psdi | --psd | --ps)
1146    ac_prev=psdir ;;
1147  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148    psdir=$ac_optarg ;;
1149
1150  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151  | -silent | --silent | --silen | --sile | --sil)
1152    silent=yes ;;
1153
1154  -runstatedir | --runstatedir | --runstatedi | --runstated \
1155  | --runstate | --runstat | --runsta | --runst | --runs \
1156  | --run | --ru | --r)
1157    ac_prev=runstatedir ;;
1158  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1159  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1160  | --run=* | --ru=* | --r=*)
1161    runstatedir=$ac_optarg ;;
1162
1163  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164    ac_prev=sbindir ;;
1165  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166  | --sbi=* | --sb=*)
1167    sbindir=$ac_optarg ;;
1168
1169  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171  | --sharedst | --shareds | --shared | --share | --shar \
1172  | --sha | --sh)
1173    ac_prev=sharedstatedir ;;
1174  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177  | --sha=* | --sh=*)
1178    sharedstatedir=$ac_optarg ;;
1179
1180  -site | --site | --sit)
1181    ac_prev=site ;;
1182  -site=* | --site=* | --sit=*)
1183    site=$ac_optarg ;;
1184
1185  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186    ac_prev=srcdir ;;
1187  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188    srcdir=$ac_optarg ;;
1189
1190  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191  | --syscon | --sysco | --sysc | --sys | --sy)
1192    ac_prev=sysconfdir ;;
1193  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195    sysconfdir=$ac_optarg ;;
1196
1197  -target | --target | --targe | --targ | --tar | --ta | --t)
1198    ac_prev=target_alias ;;
1199  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200    target_alias=$ac_optarg ;;
1201
1202  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203    verbose=yes ;;
1204
1205  -version | --version | --versio | --versi | --vers | -V)
1206    ac_init_version=: ;;
1207
1208  -with-* | --with-*)
1209    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210    # Reject names that are not valid shell variable names.
1211    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212      as_fn_error $? "invalid package name: \`$ac_useropt'"
1213    ac_useropt_orig=$ac_useropt
1214    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215    case $ac_user_opts in
1216      *"
1217"with_$ac_useropt"
1218"*) ;;
1219      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220	 ac_unrecognized_sep=', ';;
1221    esac
1222    eval with_$ac_useropt=\$ac_optarg ;;
1223
1224  -without-* | --without-*)
1225    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226    # Reject names that are not valid shell variable names.
1227    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228      as_fn_error $? "invalid package name: \`$ac_useropt'"
1229    ac_useropt_orig=$ac_useropt
1230    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1231    case $ac_user_opts in
1232      *"
1233"with_$ac_useropt"
1234"*) ;;
1235      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236	 ac_unrecognized_sep=', ';;
1237    esac
1238    eval with_$ac_useropt=no ;;
1239
1240  --x)
1241    # Obsolete; use --with-x.
1242    with_x=yes ;;
1243
1244  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245  | --x-incl | --x-inc | --x-in | --x-i)
1246    ac_prev=x_includes ;;
1247  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249    x_includes=$ac_optarg ;;
1250
1251  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253    ac_prev=x_libraries ;;
1254  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256    x_libraries=$ac_optarg ;;
1257
1258  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259Try \`$0 --help' for more information"
1260    ;;
1261
1262  *=*)
1263    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264    # Reject names that are not valid shell variable names.
1265    case $ac_envvar in #(
1266      '' | [0-9]* | *[!_$as_cr_alnum]* )
1267      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268    esac
1269    eval $ac_envvar=\$ac_optarg
1270    export $ac_envvar ;;
1271
1272  *)
1273    # FIXME: should be removed in autoconf 3.0.
1274    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1275    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1277    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278    ;;
1279
1280  esac
1281done
1282
1283if test -n "$ac_prev"; then
1284  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285  as_fn_error $? "missing argument to $ac_option"
1286fi
1287
1288if test -n "$ac_unrecognized_opts"; then
1289  case $enable_option_checking in
1290    no) ;;
1291    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293  esac
1294fi
1295
1296# Check all directory arguments for consistency.
1297for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298		datadir sysconfdir sharedstatedir localstatedir includedir \
1299		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300		libdir localedir mandir runstatedir
1301do
1302  eval ac_val=\$$ac_var
1303  # Remove trailing slashes.
1304  case $ac_val in
1305    */ )
1306      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307      eval $ac_var=\$ac_val;;
1308  esac
1309  # Be sure to have absolute directory names.
1310  case $ac_val in
1311    [\\/$]* | ?:[\\/]* )  continue;;
1312    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313  esac
1314  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315done
1316
1317# There might be people who depend on the old broken behavior: `$host'
1318# used to hold the argument of --host etc.
1319# FIXME: To remove some day.
1320build=$build_alias
1321host=$host_alias
1322target=$target_alias
1323
1324# FIXME: To remove some day.
1325if test "x$host_alias" != x; then
1326  if test "x$build_alias" = x; then
1327    cross_compiling=maybe
1328  elif test "x$build_alias" != "x$host_alias"; then
1329    cross_compiling=yes
1330  fi
1331fi
1332
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336test "$silent" = yes && exec 6>/dev/null
1337
1338
1339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342  as_fn_error $? "working directory cannot be determined"
1343test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344  as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347# Find the source files, if location was not specified.
1348if test -z "$srcdir"; then
1349  ac_srcdir_defaulted=yes
1350  # Try the directory containing this script, then the parent directory.
1351  ac_confdir=`$as_dirname -- "$as_myself" ||
1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353	 X"$as_myself" : 'X\(//\)[^/]' \| \
1354	 X"$as_myself" : 'X\(//\)$' \| \
1355	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356printf "%s\n" X"$as_myself" |
1357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358	    s//\1/
1359	    q
1360	  }
1361	  /^X\(\/\/\)[^/].*/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\/\)$/{
1366	    s//\1/
1367	    q
1368	  }
1369	  /^X\(\/\).*/{
1370	    s//\1/
1371	    q
1372	  }
1373	  s/.*/./; q'`
1374  srcdir=$ac_confdir
1375  if test ! -r "$srcdir/$ac_unique_file"; then
1376    srcdir=..
1377  fi
1378else
1379  ac_srcdir_defaulted=no
1380fi
1381if test ! -r "$srcdir/$ac_unique_file"; then
1382  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384fi
1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386ac_abs_confdir=`(
1387	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388	pwd)`
1389# When building in place, set srcdir=.
1390if test "$ac_abs_confdir" = "$ac_pwd"; then
1391  srcdir=.
1392fi
1393# Remove unnecessary trailing slashes from srcdir.
1394# Double slashes in file names in object file debugging info
1395# mess up M-x gdb in Emacs.
1396case $srcdir in
1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398esac
1399for ac_var in $ac_precious_vars; do
1400  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401  eval ac_env_${ac_var}_value=\$${ac_var}
1402  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404done
1405
1406#
1407# Report the --help message.
1408#
1409if test "$ac_init_help" = "long"; then
1410  # Omit some internal or obsolete options to make the list less imposing.
1411  # This message is too long to be a string in the A/UX 3.1 sh.
1412  cat <<_ACEOF
1413\`configure' configures MPFR 4.2.1 to adapt to many kinds of systems.
1414
1415Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420Defaults for the options are specified in brackets.
1421
1422Configuration:
1423  -h, --help              display this help and exit
1424      --help=short        display options specific to this package
1425      --help=recursive    display the short help of all the included packages
1426  -V, --version           display version information and exit
1427  -q, --quiet, --silent   do not print \`checking ...' messages
1428      --cache-file=FILE   cache test results in FILE [disabled]
1429  -C, --config-cache      alias for \`--cache-file=config.cache'
1430  -n, --no-create         do not create output files
1431      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433Installation directories:
1434  --prefix=PREFIX         install architecture-independent files in PREFIX
1435                          [$ac_default_prefix]
1436  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                          [PREFIX]
1438
1439By default, \`make install' will install all the files in
1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442for instance \`--prefix=\$HOME'.
1443
1444For better control, use the options below.
1445
1446Fine tuning of the installation directories:
1447  --bindir=DIR            user executables [EPREFIX/bin]
1448  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449  --libexecdir=DIR        program executables [EPREFIX/libexec]
1450  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1454  --libdir=DIR            object code libraries [EPREFIX/lib]
1455  --includedir=DIR        C header files [PREFIX/include]
1456  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1457  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1458  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1459  --infodir=DIR           info documentation [DATAROOTDIR/info]
1460  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1461  --mandir=DIR            man documentation [DATAROOTDIR/man]
1462  --docdir=DIR            documentation root [DATAROOTDIR/doc/mpfr]
1463  --htmldir=DIR           html documentation [DOCDIR]
1464  --dvidir=DIR            dvi documentation [DOCDIR]
1465  --pdfdir=DIR            pdf documentation [DOCDIR]
1466  --psdir=DIR             ps documentation [DOCDIR]
1467_ACEOF
1468
1469  cat <<\_ACEOF
1470
1471Program names:
1472  --program-prefix=PREFIX            prepend PREFIX to installed program names
1473  --program-suffix=SUFFIX            append SUFFIX to installed program names
1474  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1475
1476System types:
1477  --build=BUILD     configure for building on BUILD [guessed]
1478  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1479_ACEOF
1480fi
1481
1482if test -n "$ac_init_help"; then
1483  case $ac_init_help in
1484     short | recursive ) echo "Configuration of MPFR 4.2.1:";;
1485   esac
1486  cat <<\_ACEOF
1487
1488Optional Features:
1489  --disable-option-checking  ignore unrecognized --enable/--with options
1490  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1491  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1492  --enable-silent-rules   less verbose build output (undo: "make V=1")
1493  --disable-silent-rules  verbose build output (undo: "make V=0")
1494  --disable-maintainer-mode
1495                          disable make rules and dependencies not useful (and
1496                          sometimes confusing) to the casual installer
1497  --enable-gmp-internals  enable use of GMP undocumented functions [default=no]
1498  --enable-assert         enable ASSERT checking [default=no]
1499  --enable-logging        enable MPFR logging (needs nested functions
1500                          and the 'cleanup' attribute) [default=no]
1501  --disable-thread-safe   explicitly disable TLS support
1502  --enable-thread-safe    build MPFR as thread safe, i.e. with TLS support
1503                          (the system must support it) [default=autodetect]
1504  --enable-shared-cache   enable use of caches shared by all threads,
1505                          for all MPFR constants.  It usually makes MPFR
1506                          dependent on PTHREAD [default=no]
1507  --enable-warnings       allow MPFR to output warnings to stderr [default=no]
1508  --enable-tests-timeout=NUM
1509                          [for developers] enable timeout for test programs
1510                          (NUM seconds, <= 9999) [default=no]; if this is
1511                          enabled, the environment variable $MPFR_TESTS_TIMEOUT
1512                          overrides NUM (0: no timeout)
1513  --enable-tune-for-coverage
1514                          [for developers] tune MPFR for coverage tests
1515  --disable-decimal-float explicitly disable decimal floats support
1516  --enable-decimal-float  build conversion functions from/to decimal floats
1517                          (see INSTALL file for details) [default=auto]
1518  --disable-float128      explicitly disable binary128 support
1519  --enable-float128       build conversion functions from/to binary128
1520                          (_Float128 or __float128) [default=autodetect]
1521  --enable-debug-prediction
1522                          [for developers] enable debug of branch prediction
1523                          (for x86 and x86-64 with GCC, static libs)
1524  --enable-lto            build MPFR with link-time-optimization
1525                          (experimental) [default: no]
1526  --enable-formally-proven-code
1527                          use formally proven code when available
1528                          (needs a C99 compiler) [default=no]
1529  --enable-dependency-tracking
1530                          do not reject slow dependency extractors
1531  --disable-dependency-tracking
1532                          speeds up one-time build
1533  --enable-shared[=PKGS]  build shared libraries [default=yes]
1534  --enable-static[=PKGS]  build static libraries [default=yes]
1535  --enable-fast-install[=PKGS]
1536                          optimize for fast installation [default=yes]
1537  --disable-libtool-lock  avoid locking (might break parallel builds)
1538
1539Optional Packages:
1540  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1541  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1542  --with-gmp-include=DIR  GMP include directory
1543  --with-gmp-lib=DIR      GMP lib directory
1544  --with-gmp=DIR          GMP install directory
1545  --with-gmp-build=DIR    GMP build directory (please read INSTALL file)
1546  --with-mini-gmp=DIR     use mini-gmp (sources in DIR) instead of GMP
1547                          (experimental, please read doc/mini-gmp file)
1548  --with-mulhigh-size=NUM internal threshold table for mulhigh
1549  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1550                          both]
1551  --with-aix-soname=aix|svr4|both
1552                          shared library versioning (aka "SONAME") variant to
1553                          provide on AIX, [default=aix].
1554  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1555  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1556                          compiler's sysroot if not specified).
1557
1558Some influential environment variables:
1559  CC          C compiler command
1560  CFLAGS      C compiler flags
1561  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562              nonstandard directory <lib dir>
1563  LIBS        libraries to pass to the linker, e.g. -l<library>
1564  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565              you have headers in a nonstandard directory <include dir>
1566  CPP         C preprocessor
1567  LT_SYS_LIBRARY_PATH
1568              User-defined run-time library search path.
1569
1570Use these variables to override the choices made by `configure' or to help
1571it to find libraries and programs with nonstandard names/locations.
1572
1573Report bugs to the package provider.
1574_ACEOF
1575ac_status=$?
1576fi
1577
1578if test "$ac_init_help" = "recursive"; then
1579  # If there are subdirs, report their specific --help.
1580  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581    test -d "$ac_dir" ||
1582      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583      continue
1584    ac_builddir=.
1585
1586case "$ac_dir" in
1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588*)
1589  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1590  # A ".." for each directory in $ac_dir_suffix.
1591  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592  case $ac_top_builddir_sub in
1593  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595  esac ;;
1596esac
1597ac_abs_top_builddir=$ac_pwd
1598ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599# for backward compatibility:
1600ac_top_builddir=$ac_top_build_prefix
1601
1602case $srcdir in
1603  .)  # We are building in place.
1604    ac_srcdir=.
1605    ac_top_srcdir=$ac_top_builddir_sub
1606    ac_abs_top_srcdir=$ac_pwd ;;
1607  [\\/]* | ?:[\\/]* )  # Absolute name.
1608    ac_srcdir=$srcdir$ac_dir_suffix;
1609    ac_top_srcdir=$srcdir
1610    ac_abs_top_srcdir=$srcdir ;;
1611  *) # Relative name.
1612    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613    ac_top_srcdir=$ac_top_build_prefix$srcdir
1614    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615esac
1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618    cd "$ac_dir" || { ac_status=$?; continue; }
1619    # Check for configure.gnu first; this name is used for a wrapper for
1620    # Metaconfig's "Configure" on case-insensitive file systems.
1621    if test -f "$ac_srcdir/configure.gnu"; then
1622      echo &&
1623      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624    elif test -f "$ac_srcdir/configure"; then
1625      echo &&
1626      $SHELL "$ac_srcdir/configure" --help=recursive
1627    else
1628      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629    fi || ac_status=$?
1630    cd "$ac_pwd" || { ac_status=$?; break; }
1631  done
1632fi
1633
1634test -n "$ac_init_help" && exit $ac_status
1635if $ac_init_version; then
1636  cat <<\_ACEOF
1637MPFR configure 4.2.1
1638generated by GNU Autoconf 2.71
1639
1640Copyright (C) 2021 Free Software Foundation, Inc.
1641This configure script is free software; the Free Software Foundation
1642gives unlimited permission to copy, distribute and modify it.
1643
1644
1645Copyright 1999-2023 Free Software Foundation, Inc.
1646Contributed by the AriC and Caramba projects, INRIA.
1647
1648This file is part of the GNU MPFR Library.
1649
1650The GNU MPFR Library is free software; you can redistribute it and/or modify
1651it under the terms of the GNU Lesser General Public License as published
1652by the Free Software Foundation; either version 3 of the License, or (at
1653your option) any later version.
1654
1655The GNU MPFR Library is distributed in the hope that it will be useful, but
1656WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1657or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
1658License for more details.
1659
1660You should have received a copy of the GNU Lesser General Public License
1661along with the GNU MPFR Library; see the file COPYING.LESSER.  If not, see
1662https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
166351 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
1664
1665_ACEOF
1666  exit
1667fi
1668
1669## ------------------------ ##
1670## Autoconf initialization. ##
1671## ------------------------ ##
1672
1673# ac_fn_c_try_compile LINENO
1674# --------------------------
1675# Try to compile conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_compile ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  rm -f conftest.$ac_objext conftest.beam
1680  if { { ac_try="$ac_compile"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686printf "%s\n" "$ac_try_echo"; } >&5
1687  (eval "$ac_compile") 2>conftest.err
1688  ac_status=$?
1689  if test -s conftest.err; then
1690    grep -v '^ *+' conftest.err >conftest.er1
1691    cat conftest.er1 >&5
1692    mv -f conftest.er1 conftest.err
1693  fi
1694  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695  test $ac_status = 0; } && {
1696	 test -z "$ac_c_werror_flag" ||
1697	 test ! -s conftest.err
1698       } && test -s conftest.$ac_objext
1699then :
1700  ac_retval=0
1701else $as_nop
1702  printf "%s\n" "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705	ac_retval=1
1706fi
1707  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708  as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_compile
1711
1712# ac_fn_c_try_cpp LINENO
1713# ----------------------
1714# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_c_try_cpp ()
1716{
1717  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718  if { { ac_try="$ac_cpp conftest.$ac_ext"
1719case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724printf "%s\n" "$ac_try_echo"; } >&5
1725  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726  ac_status=$?
1727  if test -s conftest.err; then
1728    grep -v '^ *+' conftest.err >conftest.er1
1729    cat conftest.er1 >&5
1730    mv -f conftest.er1 conftest.err
1731  fi
1732  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733  test $ac_status = 0; } > conftest.i && {
1734	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1735	 test ! -s conftest.err
1736       }
1737then :
1738  ac_retval=0
1739else $as_nop
1740  printf "%s\n" "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743    ac_retval=1
1744fi
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_cpp
1749
1750# ac_fn_c_try_link LINENO
1751# -----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_link ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1757  if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760  *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763printf "%s\n" "$ac_try_echo"; } >&5
1764  (eval "$ac_link") 2>conftest.err
1765  ac_status=$?
1766  if test -s conftest.err; then
1767    grep -v '^ *+' conftest.err >conftest.er1
1768    cat conftest.er1 >&5
1769    mv -f conftest.er1 conftest.err
1770  fi
1771  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772  test $ac_status = 0; } && {
1773	 test -z "$ac_c_werror_flag" ||
1774	 test ! -s conftest.err
1775       } && test -s conftest$ac_exeext && {
1776	 test "$cross_compiling" = yes ||
1777	 test -x conftest$ac_exeext
1778       }
1779then :
1780  ac_retval=0
1781else $as_nop
1782  printf "%s\n" "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785	ac_retval=1
1786fi
1787  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789  # interfere with the next link command; also delete a directory that is
1790  # left behind by Apple's compiler.  We do this before executing the actions.
1791  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793  as_fn_set_status $ac_retval
1794
1795} # ac_fn_c_try_link
1796
1797# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798# -------------------------------------------------------
1799# Tests whether HEADER exists and can be compiled using the include files in
1800# INCLUDES, setting the cache variable VAR accordingly.
1801ac_fn_c_check_header_compile ()
1802{
1803  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805printf %s "checking for $2... " >&6; }
1806if eval test \${$3+y}
1807then :
1808  printf %s "(cached) " >&6
1809else $as_nop
1810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813#include <$2>
1814_ACEOF
1815if ac_fn_c_try_compile "$LINENO"
1816then :
1817  eval "$3=yes"
1818else $as_nop
1819  eval "$3=no"
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825printf "%s\n" "$ac_res" >&6; }
1826  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828} # ac_fn_c_check_header_compile
1829
1830# ac_fn_c_check_func LINENO FUNC VAR
1831# ----------------------------------
1832# Tests whether FUNC exists, setting the cache variable VAR accordingly
1833ac_fn_c_check_func ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837printf %s "checking for $2... " >&6; }
1838if eval test \${$3+y}
1839then :
1840  printf %s "(cached) " >&6
1841else $as_nop
1842  cat 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
1851#include <limits.h>
1852#undef $2
1853
1854/* Override any GCC internal prototype to avoid an error.
1855   Use char because int might match the return type of a GCC
1856   builtin and then its argument prototype would still apply.  */
1857#ifdef __cplusplus
1858extern "C"
1859#endif
1860char $2 ();
1861/* The GNU C library defines this for functions which it implements
1862    to always fail with ENOSYS.  Some functions are actually named
1863    something starting with __ and the normal name is an alias.  */
1864#if defined __stub_$2 || defined __stub___$2
1865choke me
1866#endif
1867
1868int
1869main (void)
1870{
1871return $2 ();
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_link "$LINENO"
1877then :
1878  eval "$3=yes"
1879else $as_nop
1880  eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext conftest.beam \
1883    conftest$ac_exeext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887printf "%s\n" "$ac_res" >&6; }
1888  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890} # ac_fn_c_check_func
1891
1892# ac_fn_c_try_run LINENO
1893# ----------------------
1894# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1895# executables *can* be run.
1896ac_fn_c_try_run ()
1897{
1898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899  if { { ac_try="$ac_link"
1900case "(($ac_try" in
1901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902  *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905printf "%s\n" "$ac_try_echo"; } >&5
1906  (eval "$ac_link") 2>&5
1907  ac_status=$?
1908  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1910  { { case "(($ac_try" in
1911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912  *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915printf "%s\n" "$ac_try_echo"; } >&5
1916  (eval "$ac_try") 2>&5
1917  ac_status=$?
1918  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919  test $ac_status = 0; }; }
1920then :
1921  ac_retval=0
1922else $as_nop
1923  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1924       printf "%s\n" "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927       ac_retval=$ac_status
1928fi
1929  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931  as_fn_set_status $ac_retval
1932
1933} # ac_fn_c_try_run
1934
1935# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1936# ----------------------------------------------------
1937# Tries to find if the field MEMBER exists in type AGGR, after including
1938# INCLUDES, setting cache variable VAR accordingly.
1939ac_fn_c_check_member ()
1940{
1941  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1943printf %s "checking for $2.$3... " >&6; }
1944if eval test \${$4+y}
1945then :
1946  printf %s "(cached) " >&6
1947else $as_nop
1948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h.  */
1950$5
1951int
1952main (void)
1953{
1954static $2 ac_aggr;
1955if (ac_aggr.$3)
1956return 0;
1957  ;
1958  return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"
1962then :
1963  eval "$4=yes"
1964else $as_nop
1965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966/* end confdefs.h.  */
1967$5
1968int
1969main (void)
1970{
1971static $2 ac_aggr;
1972if (sizeof ac_aggr.$3)
1973return 0;
1974  ;
1975  return 0;
1976}
1977_ACEOF
1978if ac_fn_c_try_compile "$LINENO"
1979then :
1980  eval "$4=yes"
1981else $as_nop
1982  eval "$4=no"
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1985fi
1986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1987fi
1988eval ac_res=\$$4
1989	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990printf "%s\n" "$ac_res" >&6; }
1991  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993} # ac_fn_c_check_member
1994
1995# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996# -------------------------------------------
1997# Tests whether TYPE exists after having included INCLUDES, setting cache
1998# variable VAR accordingly.
1999ac_fn_c_check_type ()
2000{
2001  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003printf %s "checking for $2... " >&6; }
2004if eval test \${$3+y}
2005then :
2006  printf %s "(cached) " >&6
2007else $as_nop
2008  eval "$3=no"
2009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010/* end confdefs.h.  */
2011$4
2012int
2013main (void)
2014{
2015if (sizeof ($2))
2016	 return 0;
2017  ;
2018  return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_compile "$LINENO"
2022then :
2023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h.  */
2025$4
2026int
2027main (void)
2028{
2029if (sizeof (($2)))
2030	    return 0;
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"
2036then :
2037
2038else $as_nop
2039  eval "$3=yes"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2044fi
2045eval ac_res=\$$3
2046	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047printf "%s\n" "$ac_res" >&6; }
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050} # ac_fn_c_check_type
2051
2052# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053# --------------------------------------------
2054# Tries to find the compile-time value of EXPR in a program that includes
2055# INCLUDES, setting VAR accordingly. Returns whether the value could be
2056# computed
2057ac_fn_c_compute_int ()
2058{
2059  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060  if test "$cross_compiling" = yes; then
2061    # Depending upon the size, compute the lo and hi bounds.
2062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h.  */
2064$4
2065int
2066main (void)
2067{
2068static int test_array [1 - 2 * !(($2) >= 0)];
2069test_array [0] = 0;
2070return test_array [0];
2071
2072  ;
2073  return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"
2077then :
2078  ac_lo=0 ac_mid=0
2079  while :; do
2080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081/* end confdefs.h.  */
2082$4
2083int
2084main (void)
2085{
2086static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087test_array [0] = 0;
2088return test_array [0];
2089
2090  ;
2091  return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"
2095then :
2096  ac_hi=$ac_mid; break
2097else $as_nop
2098  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099			if test $ac_lo -le $ac_mid; then
2100			  ac_lo= ac_hi=
2101			  break
2102			fi
2103			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2106  done
2107else $as_nop
2108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h.  */
2110$4
2111int
2112main (void)
2113{
2114static int test_array [1 - 2 * !(($2) < 0)];
2115test_array [0] = 0;
2116return test_array [0];
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_compile "$LINENO"
2123then :
2124  ac_hi=-1 ac_mid=-1
2125  while :; do
2126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h.  */
2128$4
2129int
2130main (void)
2131{
2132static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2133test_array [0] = 0;
2134return test_array [0];
2135
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"
2141then :
2142  ac_lo=$ac_mid; break
2143else $as_nop
2144  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145			if test $ac_mid -le $ac_hi; then
2146			  ac_lo= ac_hi=
2147			  break
2148			fi
2149			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2150fi
2151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2152  done
2153else $as_nop
2154  ac_lo= ac_hi=
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2157fi
2158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2159# Binary search between lo and hi bounds.
2160while test "x$ac_lo" != "x$ac_hi"; do
2161  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163/* end confdefs.h.  */
2164$4
2165int
2166main (void)
2167{
2168static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169test_array [0] = 0;
2170return test_array [0];
2171
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"
2177then :
2178  ac_hi=$ac_mid
2179else $as_nop
2180  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2183done
2184case $ac_lo in #((
2185?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186'') ac_retval=1 ;;
2187esac
2188  else
2189    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190/* end confdefs.h.  */
2191$4
2192static long int longval (void) { return $2; }
2193static unsigned long int ulongval (void) { return $2; }
2194#include <stdio.h>
2195#include <stdlib.h>
2196int
2197main (void)
2198{
2199
2200  FILE *f = fopen ("conftest.val", "w");
2201  if (! f)
2202    return 1;
2203  if (($2) < 0)
2204    {
2205      long int i = longval ();
2206      if (i != ($2))
2207	return 1;
2208      fprintf (f, "%ld", i);
2209    }
2210  else
2211    {
2212      unsigned long int i = ulongval ();
2213      if (i != ($2))
2214	return 1;
2215      fprintf (f, "%lu", i);
2216    }
2217  /* Do not output a trailing newline, as this causes \r\n confusion
2218     on some platforms.  */
2219  return ferror (f) || fclose (f) != 0;
2220
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_run "$LINENO"
2226then :
2227  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2228else $as_nop
2229  ac_retval=1
2230fi
2231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232  conftest.$ac_objext conftest.beam conftest.$ac_ext
2233rm -f conftest.val
2234
2235  fi
2236  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237  as_fn_set_status $ac_retval
2238
2239} # ac_fn_c_compute_int
2240ac_configure_args_raw=
2241for ac_arg
2242do
2243  case $ac_arg in
2244  *\'*)
2245    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2246  esac
2247  as_fn_append ac_configure_args_raw " '$ac_arg'"
2248done
2249
2250case $ac_configure_args_raw in
2251  *$as_nl*)
2252    ac_safe_unquote= ;;
2253  *)
2254    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2255    ac_unsafe_a="$ac_unsafe_z#~"
2256    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2257    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2258esac
2259
2260cat >config.log <<_ACEOF
2261This file contains any messages produced by compilers while
2262running configure, to aid debugging if configure makes a mistake.
2263
2264It was created by MPFR $as_me 4.2.1, which was
2265generated by GNU Autoconf 2.71.  Invocation command line was
2266
2267  $ $0$ac_configure_args_raw
2268
2269_ACEOF
2270exec 5>>config.log
2271{
2272cat <<_ASUNAME
2273## --------- ##
2274## Platform. ##
2275## --------- ##
2276
2277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2278uname -m = `(uname -m) 2>/dev/null || echo unknown`
2279uname -r = `(uname -r) 2>/dev/null || echo unknown`
2280uname -s = `(uname -s) 2>/dev/null || echo unknown`
2281uname -v = `(uname -v) 2>/dev/null || echo unknown`
2282
2283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2284/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2285
2286/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2287/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2289/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2290/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2291/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2292/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2293
2294_ASUNAME
2295
2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297for as_dir in $PATH
2298do
2299  IFS=$as_save_IFS
2300  case $as_dir in #(((
2301    '') as_dir=./ ;;
2302    */) ;;
2303    *) as_dir=$as_dir/ ;;
2304  esac
2305    printf "%s\n" "PATH: $as_dir"
2306  done
2307IFS=$as_save_IFS
2308
2309} >&5
2310
2311cat >&5 <<_ACEOF
2312
2313
2314## ----------- ##
2315## Core tests. ##
2316## ----------- ##
2317
2318_ACEOF
2319
2320
2321# Keep a trace of the command line.
2322# Strip out --no-create and --no-recursion so they do not pile up.
2323# Strip out --silent because we don't want to record it for future runs.
2324# Also quote any args containing shell meta-characters.
2325# Make two passes to allow for proper duplicate-argument suppression.
2326ac_configure_args=
2327ac_configure_args0=
2328ac_configure_args1=
2329ac_must_keep_next=false
2330for ac_pass in 1 2
2331do
2332  for ac_arg
2333  do
2334    case $ac_arg in
2335    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2336    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2337    | -silent | --silent | --silen | --sile | --sil)
2338      continue ;;
2339    *\'*)
2340      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2341    esac
2342    case $ac_pass in
2343    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2344    2)
2345      as_fn_append ac_configure_args1 " '$ac_arg'"
2346      if test $ac_must_keep_next = true; then
2347	ac_must_keep_next=false # Got value, back to normal.
2348      else
2349	case $ac_arg in
2350	  *=* | --config-cache | -C | -disable-* | --disable-* \
2351	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2352	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2353	  | -with-* | --with-* | -without-* | --without-* | --x)
2354	    case "$ac_configure_args0 " in
2355	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2356	    esac
2357	    ;;
2358	  -* ) ac_must_keep_next=true ;;
2359	esac
2360      fi
2361      as_fn_append ac_configure_args " '$ac_arg'"
2362      ;;
2363    esac
2364  done
2365done
2366{ ac_configure_args0=; unset ac_configure_args0;}
2367{ ac_configure_args1=; unset ac_configure_args1;}
2368
2369# When interrupted or exit'd, cleanup temporary files, and complete
2370# config.log.  We remove comments because anyway the quotes in there
2371# would cause problems or look ugly.
2372# WARNING: Use '\'' to represent an apostrophe within the trap.
2373# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2374trap 'exit_status=$?
2375  # Sanitize IFS.
2376  IFS=" ""	$as_nl"
2377  # Save into config.log some information that might help in debugging.
2378  {
2379    echo
2380
2381    printf "%s\n" "## ---------------- ##
2382## Cache variables. ##
2383## ---------------- ##"
2384    echo
2385    # The following way of writing the cache mishandles newlines in values,
2386(
2387  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2388    eval ac_val=\$$ac_var
2389    case $ac_val in #(
2390    *${as_nl}*)
2391      case $ac_var in #(
2392      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2393printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2394      esac
2395      case $ac_var in #(
2396      _ | IFS | as_nl) ;; #(
2397      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2398      *) { eval $ac_var=; unset $ac_var;} ;;
2399      esac ;;
2400    esac
2401  done
2402  (set) 2>&1 |
2403    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2404    *${as_nl}ac_space=\ *)
2405      sed -n \
2406	"s/'\''/'\''\\\\'\'''\''/g;
2407	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2408      ;; #(
2409    *)
2410      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411      ;;
2412    esac |
2413    sort
2414)
2415    echo
2416
2417    printf "%s\n" "## ----------------- ##
2418## Output variables. ##
2419## ----------------- ##"
2420    echo
2421    for ac_var in $ac_subst_vars
2422    do
2423      eval ac_val=\$$ac_var
2424      case $ac_val in
2425      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426      esac
2427      printf "%s\n" "$ac_var='\''$ac_val'\''"
2428    done | sort
2429    echo
2430
2431    if test -n "$ac_subst_files"; then
2432      printf "%s\n" "## ------------------- ##
2433## File substitutions. ##
2434## ------------------- ##"
2435      echo
2436      for ac_var in $ac_subst_files
2437      do
2438	eval ac_val=\$$ac_var
2439	case $ac_val in
2440	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441	esac
2442	printf "%s\n" "$ac_var='\''$ac_val'\''"
2443      done | sort
2444      echo
2445    fi
2446
2447    if test -s confdefs.h; then
2448      printf "%s\n" "## ----------- ##
2449## confdefs.h. ##
2450## ----------- ##"
2451      echo
2452      cat confdefs.h
2453      echo
2454    fi
2455    test "$ac_signal" != 0 &&
2456      printf "%s\n" "$as_me: caught signal $ac_signal"
2457    printf "%s\n" "$as_me: exit $exit_status"
2458  } >&5
2459  rm -f core *.core core.conftest.* &&
2460    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2461    exit $exit_status
2462' 0
2463for ac_signal in 1 2 13 15; do
2464  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2465done
2466ac_signal=0
2467
2468# confdefs.h avoids OS command line length limits that DEFS can exceed.
2469rm -f -r conftest* confdefs.h
2470
2471printf "%s\n" "/* confdefs.h */" > confdefs.h
2472
2473# Predefined preprocessor variables.
2474
2475printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2476
2477printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2478
2479printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2480
2481printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2482
2483printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2484
2485printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2486
2487
2488# Let the site file select an alternate cache file if it wants to.
2489# Prefer an explicitly selected file to automatically selected ones.
2490if test -n "$CONFIG_SITE"; then
2491  ac_site_files="$CONFIG_SITE"
2492elif test "x$prefix" != xNONE; then
2493  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2494else
2495  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2496fi
2497
2498for ac_site_file in $ac_site_files
2499do
2500  case $ac_site_file in #(
2501  */*) :
2502     ;; #(
2503  *) :
2504    ac_site_file=./$ac_site_file ;;
2505esac
2506  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2507    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2508printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2509    sed 's/^/| /' "$ac_site_file" >&5
2510    . "$ac_site_file" \
2511      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2512printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2513as_fn_error $? "failed to load site script $ac_site_file
2514See \`config.log' for more details" "$LINENO" 5; }
2515  fi
2516done
2517
2518if test -r "$cache_file"; then
2519  # Some versions of bash will fail to source /dev/null (special files
2520  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2521  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2522    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2523printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2524    case $cache_file in
2525      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2526      *)                      . "./$cache_file";;
2527    esac
2528  fi
2529else
2530  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2531printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2532  >$cache_file
2533fi
2534
2535# Test code for whether the C compiler supports C89 (global declarations)
2536ac_c_conftest_c89_globals='
2537/* Does the compiler advertise C89 conformance?
2538   Do not test the value of __STDC__, because some compilers set it to 0
2539   while being otherwise adequately conformant. */
2540#if !defined __STDC__
2541# error "Compiler does not advertise C89 conformance"
2542#endif
2543
2544#include <stddef.h>
2545#include <stdarg.h>
2546struct stat;
2547/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2548struct buf { int x; };
2549struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2550static char *e (char **p, int i)
2551{
2552  return p[i];
2553}
2554static char *f (char * (*g) (char **, int), char **p, ...)
2555{
2556  char *s;
2557  va_list v;
2558  va_start (v,p);
2559  s = g (p, va_arg (v,int));
2560  va_end (v);
2561  return s;
2562}
2563
2564/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2565   function prototypes and stuff, but not \xHH hex character constants.
2566   These do not provoke an error unfortunately, instead are silently treated
2567   as an "x".  The following induces an error, until -std is added to get
2568   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2569   array size at least.  It is necessary to write \x00 == 0 to get something
2570   that is true only with -std.  */
2571int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2572
2573/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2574   inside strings and character constants.  */
2575#define FOO(x) '\''x'\''
2576int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2577
2578int test (int i, double x);
2579struct s1 {int (*f) (int a);};
2580struct s2 {int (*f) (double a);};
2581int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2582               int, int);'
2583
2584# Test code for whether the C compiler supports C89 (body of main).
2585ac_c_conftest_c89_main='
2586ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2587'
2588
2589# Test code for whether the C compiler supports C99 (global declarations)
2590ac_c_conftest_c99_globals='
2591// Does the compiler advertise C99 conformance?
2592#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2593# error "Compiler does not advertise C99 conformance"
2594#endif
2595
2596#include <stdbool.h>
2597extern int puts (const char *);
2598extern int printf (const char *, ...);
2599extern int dprintf (int, const char *, ...);
2600extern void *malloc (size_t);
2601extern void free (void *);
2602
2603// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2604// dprintf is used instead of fprintf to avoid needing to declare
2605// FILE and stderr.
2606#define debug(...) dprintf (2, __VA_ARGS__)
2607#define showlist(...) puts (#__VA_ARGS__)
2608#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2609static void
2610test_varargs_macros (void)
2611{
2612  int x = 1234;
2613  int y = 5678;
2614  debug ("Flag");
2615  debug ("X = %d\n", x);
2616  showlist (The first, second, and third items.);
2617  report (x>y, "x is %d but y is %d", x, y);
2618}
2619
2620// Check long long types.
2621#define BIG64 18446744073709551615ull
2622#define BIG32 4294967295ul
2623#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2624#if !BIG_OK
2625  #error "your preprocessor is broken"
2626#endif
2627#if BIG_OK
2628#else
2629  #error "your preprocessor is broken"
2630#endif
2631static long long int bignum = -9223372036854775807LL;
2632static unsigned long long int ubignum = BIG64;
2633
2634struct incomplete_array
2635{
2636  int datasize;
2637  double data[];
2638};
2639
2640struct named_init {
2641  int number;
2642  const wchar_t *name;
2643  double average;
2644};
2645
2646typedef const char *ccp;
2647
2648static inline int
2649test_restrict (ccp restrict text)
2650{
2651  // See if C++-style comments work.
2652  // Iterate through items via the restricted pointer.
2653  // Also check for declarations in for loops.
2654  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2655    continue;
2656  return 0;
2657}
2658
2659// Check varargs and va_copy.
2660static bool
2661test_varargs (const char *format, ...)
2662{
2663  va_list args;
2664  va_start (args, format);
2665  va_list args_copy;
2666  va_copy (args_copy, args);
2667
2668  const char *str = "";
2669  int number = 0;
2670  float fnumber = 0;
2671
2672  while (*format)
2673    {
2674      switch (*format++)
2675	{
2676	case '\''s'\'': // string
2677	  str = va_arg (args_copy, const char *);
2678	  break;
2679	case '\''d'\'': // int
2680	  number = va_arg (args_copy, int);
2681	  break;
2682	case '\''f'\'': // float
2683	  fnumber = va_arg (args_copy, double);
2684	  break;
2685	default:
2686	  break;
2687	}
2688    }
2689  va_end (args_copy);
2690  va_end (args);
2691
2692  return *str && number && fnumber;
2693}
2694'
2695
2696# Test code for whether the C compiler supports C99 (body of main).
2697ac_c_conftest_c99_main='
2698  // Check bool.
2699  _Bool success = false;
2700  success |= (argc != 0);
2701
2702  // Check restrict.
2703  if (test_restrict ("String literal") == 0)
2704    success = true;
2705  char *restrict newvar = "Another string";
2706
2707  // Check varargs.
2708  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2709  test_varargs_macros ();
2710
2711  // Check flexible array members.
2712  struct incomplete_array *ia =
2713    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2714  ia->datasize = 10;
2715  for (int i = 0; i < ia->datasize; ++i)
2716    ia->data[i] = i * 1.234;
2717
2718  // Check named initializers.
2719  struct named_init ni = {
2720    .number = 34,
2721    .name = L"Test wide string",
2722    .average = 543.34343,
2723  };
2724
2725  ni.number = 58;
2726
2727  int dynamic_array[ni.number];
2728  dynamic_array[0] = argv[0][0];
2729  dynamic_array[ni.number - 1] = 543;
2730
2731  // work around unused variable warnings
2732  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2733	 || dynamic_array[ni.number - 1] != 543);
2734'
2735
2736# Test code for whether the C compiler supports C11 (global declarations)
2737ac_c_conftest_c11_globals='
2738// Does the compiler advertise C11 conformance?
2739#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2740# error "Compiler does not advertise C11 conformance"
2741#endif
2742
2743// Check _Alignas.
2744char _Alignas (double) aligned_as_double;
2745char _Alignas (0) no_special_alignment;
2746extern char aligned_as_int;
2747char _Alignas (0) _Alignas (int) aligned_as_int;
2748
2749// Check _Alignof.
2750enum
2751{
2752  int_alignment = _Alignof (int),
2753  int_array_alignment = _Alignof (int[100]),
2754  char_alignment = _Alignof (char)
2755};
2756_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2757
2758// Check _Noreturn.
2759int _Noreturn does_not_return (void) { for (;;) continue; }
2760
2761// Check _Static_assert.
2762struct test_static_assert
2763{
2764  int x;
2765  _Static_assert (sizeof (int) <= sizeof (long int),
2766                  "_Static_assert does not work in struct");
2767  long int y;
2768};
2769
2770// Check UTF-8 literals.
2771#define u8 syntax error!
2772char const utf8_literal[] = u8"happens to be ASCII" "another string";
2773
2774// Check duplicate typedefs.
2775typedef long *long_ptr;
2776typedef long int *long_ptr;
2777typedef long_ptr long_ptr;
2778
2779// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2780struct anonymous
2781{
2782  union {
2783    struct { int i; int j; };
2784    struct { int k; long int l; } w;
2785  };
2786  int m;
2787} v1;
2788'
2789
2790# Test code for whether the C compiler supports C11 (body of main).
2791ac_c_conftest_c11_main='
2792  _Static_assert ((offsetof (struct anonymous, i)
2793		   == offsetof (struct anonymous, w.k)),
2794		  "Anonymous union alignment botch");
2795  v1.i = 2;
2796  v1.w.k = 5;
2797  ok |= v1.i != 5;
2798'
2799
2800# Test code for whether the C compiler supports C11 (complete).
2801ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2802${ac_c_conftest_c99_globals}
2803${ac_c_conftest_c11_globals}
2804
2805int
2806main (int argc, char **argv)
2807{
2808  int ok = 0;
2809  ${ac_c_conftest_c89_main}
2810  ${ac_c_conftest_c99_main}
2811  ${ac_c_conftest_c11_main}
2812  return ok;
2813}
2814"
2815
2816# Test code for whether the C compiler supports C99 (complete).
2817ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2818${ac_c_conftest_c99_globals}
2819
2820int
2821main (int argc, char **argv)
2822{
2823  int ok = 0;
2824  ${ac_c_conftest_c89_main}
2825  ${ac_c_conftest_c99_main}
2826  return ok;
2827}
2828"
2829
2830# Test code for whether the C compiler supports C89 (complete).
2831ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2832
2833int
2834main (int argc, char **argv)
2835{
2836  int ok = 0;
2837  ${ac_c_conftest_c89_main}
2838  return ok;
2839}
2840"
2841
2842as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2843as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2844as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2845as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2846as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2847as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2848as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2849as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2850as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2851
2852# Auxiliary files required by this configure script.
2853ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
2854
2855# Locations in which to look for auxiliary files.
2856ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2857
2858# Search for a directory containing all of the required auxiliary files,
2859# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2860# If we don't find one directory that contains all the files we need,
2861# we report the set of missing files from the *first* directory in
2862# $ac_aux_dir_candidates and give up.
2863ac_missing_aux_files=""
2864ac_first_candidate=:
2865printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867as_found=false
2868for as_dir in $ac_aux_dir_candidates
2869do
2870  IFS=$as_save_IFS
2871  case $as_dir in #(((
2872    '') as_dir=./ ;;
2873    */) ;;
2874    *) as_dir=$as_dir/ ;;
2875  esac
2876  as_found=:
2877
2878  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2879  ac_aux_dir_found=yes
2880  ac_install_sh=
2881  for ac_aux in $ac_aux_files
2882  do
2883    # As a special case, if "install-sh" is required, that requirement
2884    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2885    # and $ac_install_sh is set appropriately for whichever one is found.
2886    if test x"$ac_aux" = x"install-sh"
2887    then
2888      if test -f "${as_dir}install-sh"; then
2889        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2890        ac_install_sh="${as_dir}install-sh -c"
2891      elif test -f "${as_dir}install.sh"; then
2892        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2893        ac_install_sh="${as_dir}install.sh -c"
2894      elif test -f "${as_dir}shtool"; then
2895        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2896        ac_install_sh="${as_dir}shtool install -c"
2897      else
2898        ac_aux_dir_found=no
2899        if $ac_first_candidate; then
2900          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2901        else
2902          break
2903        fi
2904      fi
2905    else
2906      if test -f "${as_dir}${ac_aux}"; then
2907        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2908      else
2909        ac_aux_dir_found=no
2910        if $ac_first_candidate; then
2911          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2912        else
2913          break
2914        fi
2915      fi
2916    fi
2917  done
2918  if test "$ac_aux_dir_found" = yes; then
2919    ac_aux_dir="$as_dir"
2920    break
2921  fi
2922  ac_first_candidate=false
2923
2924  as_found=false
2925done
2926IFS=$as_save_IFS
2927if $as_found
2928then :
2929
2930else $as_nop
2931  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2932fi
2933
2934
2935# These three variables are undocumented and unsupported,
2936# and are intended to be withdrawn in a future Autoconf release.
2937# They can cause serious problems if a builder's source tree is in a directory
2938# whose full name contains unusual characters.
2939if test -f "${ac_aux_dir}config.guess"; then
2940  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2941fi
2942if test -f "${ac_aux_dir}config.sub"; then
2943  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2944fi
2945if test -f "$ac_aux_dir/configure"; then
2946  ac_configure="$SHELL ${ac_aux_dir}configure"
2947fi
2948
2949# Check that the precious variables saved in the cache have kept the same
2950# value.
2951ac_cache_corrupted=false
2952for ac_var in $ac_precious_vars; do
2953  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2954  eval ac_new_set=\$ac_env_${ac_var}_set
2955  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2956  eval ac_new_val=\$ac_env_${ac_var}_value
2957  case $ac_old_set,$ac_new_set in
2958    set,)
2959      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2960printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2961      ac_cache_corrupted=: ;;
2962    ,set)
2963      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2964printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2965      ac_cache_corrupted=: ;;
2966    ,);;
2967    *)
2968      if test "x$ac_old_val" != "x$ac_new_val"; then
2969	# differences in whitespace do not lead to failure.
2970	ac_old_val_w=`echo x $ac_old_val`
2971	ac_new_val_w=`echo x $ac_new_val`
2972	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2973	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2974printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2975	  ac_cache_corrupted=:
2976	else
2977	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2978printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2979	  eval $ac_var=\$ac_old_val
2980	fi
2981	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2982printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2984printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2985      fi;;
2986  esac
2987  # Pass precious variables to config.status.
2988  if test "$ac_new_set" = set; then
2989    case $ac_new_val in
2990    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2991    *) ac_arg=$ac_var=$ac_new_val ;;
2992    esac
2993    case " $ac_configure_args " in
2994      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2995      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2996    esac
2997  fi
2998done
2999if $ac_cache_corrupted; then
3000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3001printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3003printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3004  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3005	    and start over" "$LINENO" 5
3006fi
3007## -------------------- ##
3008## Main body of script. ##
3009## -------------------- ##
3010
3011ac_ext=c
3012ac_cpp='$CPP $CPPFLAGS'
3013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016
3017
3018
3019
3020
3021
3022  # Make sure we can run config.sub.
3023$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3024  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3025
3026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3027printf %s "checking build system type... " >&6; }
3028if test ${ac_cv_build+y}
3029then :
3030  printf %s "(cached) " >&6
3031else $as_nop
3032  ac_build_alias=$build_alias
3033test "x$ac_build_alias" = x &&
3034  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3035test "x$ac_build_alias" = x &&
3036  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3037ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3038  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3039
3040fi
3041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3042printf "%s\n" "$ac_cv_build" >&6; }
3043case $ac_cv_build in
3044*-*-*) ;;
3045*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3046esac
3047build=$ac_cv_build
3048ac_save_IFS=$IFS; IFS='-'
3049set x $ac_cv_build
3050shift
3051build_cpu=$1
3052build_vendor=$2
3053shift; shift
3054# Remember, the first character of IFS is used to create $*,
3055# except with old shells:
3056build_os=$*
3057IFS=$ac_save_IFS
3058case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3059
3060
3061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3062printf %s "checking host system type... " >&6; }
3063if test ${ac_cv_host+y}
3064then :
3065  printf %s "(cached) " >&6
3066else $as_nop
3067  if test "x$host_alias" = x; then
3068  ac_cv_host=$ac_cv_build
3069else
3070  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3071    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3072fi
3073
3074fi
3075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3076printf "%s\n" "$ac_cv_host" >&6; }
3077case $ac_cv_host in
3078*-*-*) ;;
3079*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3080esac
3081host=$ac_cv_host
3082ac_save_IFS=$IFS; IFS='-'
3083set x $ac_cv_host
3084shift
3085host_cpu=$1
3086host_vendor=$2
3087shift; shift
3088# Remember, the first character of IFS is used to create $*,
3089# except with old shells:
3090host_os=$*
3091IFS=$ac_save_IFS
3092case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3093
3094
3095
3096am__api_version='1.16'
3097
3098
3099  # Find a good install program.  We prefer a C program (faster),
3100# so one script is as good as another.  But avoid the broken or
3101# incompatible versions:
3102# SysV /etc/install, /usr/sbin/install
3103# SunOS /usr/etc/install
3104# IRIX /sbin/install
3105# AIX /bin/install
3106# AmigaOS /C/install, which installs bootblocks on floppy discs
3107# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3108# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3109# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3110# OS/2's system install, which has a completely different semantic
3111# ./install, which can be erroneously created by make from ./install.sh.
3112# Reject install programs that cannot install multiple files.
3113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3114printf %s "checking for a BSD-compatible install... " >&6; }
3115if test -z "$INSTALL"; then
3116if test ${ac_cv_path_install+y}
3117then :
3118  printf %s "(cached) " >&6
3119else $as_nop
3120  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  case $as_dir in #(((
3125    '') as_dir=./ ;;
3126    */) ;;
3127    *) as_dir=$as_dir/ ;;
3128  esac
3129    # Account for fact that we put trailing slashes in our PATH walk.
3130case $as_dir in #((
3131  ./ | /[cC]/* | \
3132  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3133  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3134  /usr/ucb/* ) ;;
3135  *)
3136    # OSF1 and SCO ODT 3.0 have their own names for install.
3137    # Don't use installbsd from OSF since it installs stuff as root
3138    # by default.
3139    for ac_prog in ginstall scoinst install; do
3140      for ac_exec_ext in '' $ac_executable_extensions; do
3141	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3142	  if test $ac_prog = install &&
3143	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3144	    # AIX install.  It has an incompatible calling convention.
3145	    :
3146	  elif test $ac_prog = install &&
3147	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148	    # program-specific install script used by HP pwplus--don't use.
3149	    :
3150	  else
3151	    rm -rf conftest.one conftest.two conftest.dir
3152	    echo one > conftest.one
3153	    echo two > conftest.two
3154	    mkdir conftest.dir
3155	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3156	      test -s conftest.one && test -s conftest.two &&
3157	      test -s conftest.dir/conftest.one &&
3158	      test -s conftest.dir/conftest.two
3159	    then
3160	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3161	      break 3
3162	    fi
3163	  fi
3164	fi
3165      done
3166    done
3167    ;;
3168esac
3169
3170  done
3171IFS=$as_save_IFS
3172
3173rm -rf conftest.one conftest.two conftest.dir
3174
3175fi
3176  if test ${ac_cv_path_install+y}; then
3177    INSTALL=$ac_cv_path_install
3178  else
3179    # As a last resort, use the slow shell script.  Don't cache a
3180    # value for INSTALL within a source directory, because that will
3181    # break other packages using the cache if that directory is
3182    # removed, or if the value is a relative name.
3183    INSTALL=$ac_install_sh
3184  fi
3185fi
3186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3187printf "%s\n" "$INSTALL" >&6; }
3188
3189# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3190# It thinks the first close brace ends the variable substitution.
3191test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3192
3193test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3194
3195test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3196
3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3198printf %s "checking whether build environment is sane... " >&6; }
3199# Reject unsafe characters in $srcdir or the absolute working directory
3200# name.  Accept space and tab only in the latter.
3201am_lf='
3202'
3203case `pwd` in
3204  *[\\\"\#\$\&\'\`$am_lf]*)
3205    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3206esac
3207case $srcdir in
3208  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3209    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3210esac
3211
3212# Do 'set' in a subshell so we don't clobber the current shell's
3213# arguments.  Must try -L first in case configure is actually a
3214# symlink; some systems play weird games with the mod time of symlinks
3215# (eg FreeBSD returns the mod time of the symlink's containing
3216# directory).
3217if (
3218   am_has_slept=no
3219   for am_try in 1 2; do
3220     echo "timestamp, slept: $am_has_slept" > conftest.file
3221     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3222     if test "$*" = "X"; then
3223	# -L didn't work.
3224	set X `ls -t "$srcdir/configure" conftest.file`
3225     fi
3226     if test "$*" != "X $srcdir/configure conftest.file" \
3227	&& test "$*" != "X conftest.file $srcdir/configure"; then
3228
3229	# If neither matched, then we have a broken ls.  This can happen
3230	# if, for instance, CONFIG_SHELL is bash and it inherits a
3231	# broken ls alias from the environment.  This has actually
3232	# happened.  Such a system could not be considered "sane".
3233	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3234  alias in your environment" "$LINENO" 5
3235     fi
3236     if test "$2" = conftest.file || test $am_try -eq 2; then
3237       break
3238     fi
3239     # Just in case.
3240     sleep 1
3241     am_has_slept=yes
3242   done
3243   test "$2" = conftest.file
3244   )
3245then
3246   # Ok.
3247   :
3248else
3249   as_fn_error $? "newly created file is older than distributed files!
3250Check your system clock" "$LINENO" 5
3251fi
3252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253printf "%s\n" "yes" >&6; }
3254# If we didn't sleep, we still need to ensure time stamps of config.status and
3255# generated files are strictly newer.
3256am_sleep_pid=
3257if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3258  ( sleep 1 ) &
3259  am_sleep_pid=$!
3260fi
3261
3262rm -f conftest.file
3263
3264test "$program_prefix" != NONE &&
3265  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3266# Use a double $ so make ignores it.
3267test "$program_suffix" != NONE &&
3268  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3269# Double any \ or $.
3270# By default was `s,x,x', remove it if useless.
3271ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3272program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3273
3274
3275# Expand $ac_aux_dir to an absolute path.
3276am_aux_dir=`cd "$ac_aux_dir" && pwd`
3277
3278
3279  if test x"${MISSING+set}" != xset; then
3280  MISSING="\${SHELL} '$am_aux_dir/missing'"
3281fi
3282# Use eval to expand $SHELL
3283if eval "$MISSING --is-lightweight"; then
3284  am_missing_run="$MISSING "
3285else
3286  am_missing_run=
3287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3288printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3289fi
3290
3291if test x"${install_sh+set}" != xset; then
3292  case $am_aux_dir in
3293  *\ * | *\	*)
3294    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3295  *)
3296    install_sh="\${SHELL} $am_aux_dir/install-sh"
3297  esac
3298fi
3299
3300# Installed binaries are usually stripped using 'strip' when the user
3301# run "make install-strip".  However 'strip' might not be the right
3302# tool to use in cross-compilation environments, therefore Automake
3303# will honor the 'STRIP' environment variable to overrule this program.
3304if test "$cross_compiling" != no; then
3305  if test -n "$ac_tool_prefix"; then
3306  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3307set dummy ${ac_tool_prefix}strip; ac_word=$2
3308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309printf %s "checking for $ac_word... " >&6; }
3310if test ${ac_cv_prog_STRIP+y}
3311then :
3312  printf %s "(cached) " >&6
3313else $as_nop
3314  if test -n "$STRIP"; then
3315  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3316else
3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318for as_dir in $PATH
3319do
3320  IFS=$as_save_IFS
3321  case $as_dir in #(((
3322    '') as_dir=./ ;;
3323    */) ;;
3324    *) as_dir=$as_dir/ ;;
3325  esac
3326    for ac_exec_ext in '' $ac_executable_extensions; do
3327  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3328    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3329    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333  done
3334IFS=$as_save_IFS
3335
3336fi
3337fi
3338STRIP=$ac_cv_prog_STRIP
3339if test -n "$STRIP"; then
3340  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3341printf "%s\n" "$STRIP" >&6; }
3342else
3343  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344printf "%s\n" "no" >&6; }
3345fi
3346
3347
3348fi
3349if test -z "$ac_cv_prog_STRIP"; then
3350  ac_ct_STRIP=$STRIP
3351  # Extract the first word of "strip", so it can be a program name with args.
3352set dummy strip; ac_word=$2
3353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354printf %s "checking for $ac_word... " >&6; }
3355if test ${ac_cv_prog_ac_ct_STRIP+y}
3356then :
3357  printf %s "(cached) " >&6
3358else $as_nop
3359  if test -n "$ac_ct_STRIP"; then
3360  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3361else
3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363for as_dir in $PATH
3364do
3365  IFS=$as_save_IFS
3366  case $as_dir in #(((
3367    '') as_dir=./ ;;
3368    */) ;;
3369    *) as_dir=$as_dir/ ;;
3370  esac
3371    for ac_exec_ext in '' $ac_executable_extensions; do
3372  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3373    ac_cv_prog_ac_ct_STRIP="strip"
3374    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3375    break 2
3376  fi
3377done
3378  done
3379IFS=$as_save_IFS
3380
3381fi
3382fi
3383ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3384if test -n "$ac_ct_STRIP"; then
3385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3386printf "%s\n" "$ac_ct_STRIP" >&6; }
3387else
3388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389printf "%s\n" "no" >&6; }
3390fi
3391
3392  if test "x$ac_ct_STRIP" = x; then
3393    STRIP=":"
3394  else
3395    case $cross_compiling:$ac_tool_warned in
3396yes:)
3397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3398printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3399ac_tool_warned=yes ;;
3400esac
3401    STRIP=$ac_ct_STRIP
3402  fi
3403else
3404  STRIP="$ac_cv_prog_STRIP"
3405fi
3406
3407fi
3408INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3409
3410
3411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3412printf %s "checking for a race-free mkdir -p... " >&6; }
3413if test -z "$MKDIR_P"; then
3414  if test ${ac_cv_path_mkdir+y}
3415then :
3416  printf %s "(cached) " >&6
3417else $as_nop
3418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3420do
3421  IFS=$as_save_IFS
3422  case $as_dir in #(((
3423    '') as_dir=./ ;;
3424    */) ;;
3425    *) as_dir=$as_dir/ ;;
3426  esac
3427    for ac_prog in mkdir gmkdir; do
3428	 for ac_exec_ext in '' $ac_executable_extensions; do
3429	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3430	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3431	     'mkdir ('*'coreutils) '* | \
3432	     'BusyBox '* | \
3433	     'mkdir (fileutils) '4.1*)
3434	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3435	       break 3;;
3436	   esac
3437	 done
3438       done
3439  done
3440IFS=$as_save_IFS
3441
3442fi
3443
3444  test -d ./--version && rmdir ./--version
3445  if test ${ac_cv_path_mkdir+y}; then
3446    MKDIR_P="$ac_cv_path_mkdir -p"
3447  else
3448    # As a last resort, use the slow shell script.  Don't cache a
3449    # value for MKDIR_P within a source directory, because that will
3450    # break other packages using the cache if that directory is
3451    # removed, or if the value is a relative name.
3452    MKDIR_P="$ac_install_sh -d"
3453  fi
3454fi
3455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3456printf "%s\n" "$MKDIR_P" >&6; }
3457
3458for ac_prog in gawk mawk nawk awk
3459do
3460  # Extract the first word of "$ac_prog", so it can be a program name with args.
3461set dummy $ac_prog; ac_word=$2
3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463printf %s "checking for $ac_word... " >&6; }
3464if test ${ac_cv_prog_AWK+y}
3465then :
3466  printf %s "(cached) " >&6
3467else $as_nop
3468  if test -n "$AWK"; then
3469  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474  IFS=$as_save_IFS
3475  case $as_dir in #(((
3476    '') as_dir=./ ;;
3477    */) ;;
3478    *) as_dir=$as_dir/ ;;
3479  esac
3480    for ac_exec_ext in '' $ac_executable_extensions; do
3481  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3482    ac_cv_prog_AWK="$ac_prog"
3483    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3484    break 2
3485  fi
3486done
3487  done
3488IFS=$as_save_IFS
3489
3490fi
3491fi
3492AWK=$ac_cv_prog_AWK
3493if test -n "$AWK"; then
3494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3495printf "%s\n" "$AWK" >&6; }
3496else
3497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498printf "%s\n" "no" >&6; }
3499fi
3500
3501
3502  test -n "$AWK" && break
3503done
3504
3505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3506printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3507set x ${MAKE-make}
3508ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3509if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3510then :
3511  printf %s "(cached) " >&6
3512else $as_nop
3513  cat >conftest.make <<\_ACEOF
3514SHELL = /bin/sh
3515all:
3516	@echo '@@@%%%=$(MAKE)=@@@%%%'
3517_ACEOF
3518# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3519case `${MAKE-make} -f conftest.make 2>/dev/null` in
3520  *@@@%%%=?*=@@@%%%*)
3521    eval ac_cv_prog_make_${ac_make}_set=yes;;
3522  *)
3523    eval ac_cv_prog_make_${ac_make}_set=no;;
3524esac
3525rm -f conftest.make
3526fi
3527if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3529printf "%s\n" "yes" >&6; }
3530  SET_MAKE=
3531else
3532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533printf "%s\n" "no" >&6; }
3534  SET_MAKE="MAKE=${MAKE-make}"
3535fi
3536
3537rm -rf .tst 2>/dev/null
3538mkdir .tst 2>/dev/null
3539if test -d .tst; then
3540  am__leading_dot=.
3541else
3542  am__leading_dot=_
3543fi
3544rmdir .tst 2>/dev/null
3545
3546# Check whether --enable-silent-rules was given.
3547if test ${enable_silent_rules+y}
3548then :
3549  enableval=$enable_silent_rules;
3550fi
3551
3552case $enable_silent_rules in # (((
3553  yes) AM_DEFAULT_VERBOSITY=0;;
3554   no) AM_DEFAULT_VERBOSITY=1;;
3555    *) AM_DEFAULT_VERBOSITY=1;;
3556esac
3557am_make=${MAKE-make}
3558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3559printf %s "checking whether $am_make supports nested variables... " >&6; }
3560if test ${am_cv_make_support_nested_variables+y}
3561then :
3562  printf %s "(cached) " >&6
3563else $as_nop
3564  if printf "%s\n" 'TRUE=$(BAR$(V))
3565BAR0=false
3566BAR1=true
3567V=1
3568am__doit:
3569	@$(TRUE)
3570.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3571  am_cv_make_support_nested_variables=yes
3572else
3573  am_cv_make_support_nested_variables=no
3574fi
3575fi
3576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3577printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3578if test $am_cv_make_support_nested_variables = yes; then
3579    AM_V='$(V)'
3580  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3581else
3582  AM_V=$AM_DEFAULT_VERBOSITY
3583  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3584fi
3585AM_BACKSLASH='\'
3586
3587if test "`cd $srcdir && pwd`" != "`pwd`"; then
3588  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3589  # is not polluted with repeated "-I."
3590  am__isrc=' -I$(srcdir)'
3591  # test to see if srcdir already configured
3592  if test -f $srcdir/config.status; then
3593    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3594  fi
3595fi
3596
3597# test whether we have cygpath
3598if test -z "$CYGPATH_W"; then
3599  if (cygpath --version) >/dev/null 2>/dev/null; then
3600    CYGPATH_W='cygpath -w'
3601  else
3602    CYGPATH_W=echo
3603  fi
3604fi
3605
3606
3607# Define the identity of the package.
3608 PACKAGE='mpfr'
3609 VERSION='4.2.1'
3610
3611
3612# Some tools Automake needs.
3613
3614ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3615
3616
3617AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3618
3619
3620AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3621
3622
3623AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3624
3625
3626MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3627
3628# For better backward compatibility.  To be removed once Automake 1.9.x
3629# dies out for good.  For more background, see:
3630# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3631# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3632mkdir_p='$(MKDIR_P)'
3633
3634# We need awk for the "check" target (and possibly the TAP driver).  The
3635# system "awk" is bad on some platforms.
3636# Always define AMTAR for backward compatibility.  Yes, it's still used
3637# in the wild :-(  We should find a proper way to deprecate it ...
3638AMTAR='$${TAR-tar}'
3639
3640
3641# We'll loop over all known methods to create a tar archive until one works.
3642_am_tools='gnutar  pax cpio none'
3643
3644am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3645
3646
3647
3648
3649
3650# Variables for tags utilities; see am/tags.am
3651if test -z "$CTAGS"; then
3652  CTAGS=ctags
3653fi
3654
3655if test -z "$ETAGS"; then
3656  ETAGS=etags
3657fi
3658
3659if test -z "$CSCOPE"; then
3660  CSCOPE=cscope
3661fi
3662
3663
3664
3665# POSIX will say in a future version that running "rm -f" with no argument
3666# is OK; and we want to be able to make that assumption in our Makefile
3667# recipes.  So use an aggressive probe to check that the usage we want is
3668# actually supported "in the wild" to an acceptable degree.
3669# See automake bug#10828.
3670# To make any issue more visible, cause the running configure to be aborted
3671# by default if the 'rm' program in use doesn't match our expectations; the
3672# user can still override this though.
3673if rm -f && rm -fr && rm -rf; then : OK; else
3674  cat >&2 <<'END'
3675Oops!
3676
3677Your 'rm' program seems unable to run without file operands specified
3678on the command line, even when the '-f' option is present.  This is contrary
3679to the behaviour of most rm programs out there, and not conforming with
3680the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3681
3682Please tell bug-automake@gnu.org about your system, including the value
3683of your $PATH and any error possibly output before this message.  This
3684can help us improve future automake versions.
3685
3686END
3687  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3688    echo 'Configuration will proceed anyway, since you have set the' >&2
3689    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3690    echo >&2
3691  else
3692    cat >&2 <<'END'
3693Aborting the configuration process, to ensure you take notice of the issue.
3694
3695You can download and install GNU coreutils to get an 'rm' implementation
3696that behaves properly: <https://www.gnu.org/software/coreutils/>.
3697
3698If you want to complete the configuration process using your problematic
3699'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3700to "yes", and re-run configure.
3701
3702END
3703    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3704  fi
3705fi
3706
3707
3708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3709printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3710    # Check whether --enable-maintainer-mode was given.
3711if test ${enable_maintainer_mode+y}
3712then :
3713  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3714else $as_nop
3715  USE_MAINTAINER_MODE=yes
3716fi
3717
3718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3719printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3720   if test $USE_MAINTAINER_MODE = yes; then
3721  MAINTAINER_MODE_TRUE=
3722  MAINTAINER_MODE_FALSE='#'
3723else
3724  MAINTAINER_MODE_TRUE='#'
3725  MAINTAINER_MODE_FALSE=
3726fi
3727
3728  MAINT=$MAINTAINER_MODE_TRUE
3729
3730
3731
3732
3733
3734
3735test_CFLAGS=${CFLAGS+set}
3736
3737if test -n "$CFLAGS" || test -n "$CC" ; then
3738 user_redefine_cc=yes
3739fi
3740
3741
3742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3743printf %s "checking for grep that handles long lines and -e... " >&6; }
3744if test ${ac_cv_path_GREP+y}
3745then :
3746  printf %s "(cached) " >&6
3747else $as_nop
3748  if test -z "$GREP"; then
3749  ac_path_GREP_found=false
3750  # Loop through the user's path and test for each of PROGNAME-LIST
3751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753do
3754  IFS=$as_save_IFS
3755  case $as_dir in #(((
3756    '') as_dir=./ ;;
3757    */) ;;
3758    *) as_dir=$as_dir/ ;;
3759  esac
3760    for ac_prog in grep ggrep
3761   do
3762    for ac_exec_ext in '' $ac_executable_extensions; do
3763      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3764      as_fn_executable_p "$ac_path_GREP" || continue
3765# Check for GNU ac_path_GREP and select it if it is found.
3766  # Check for GNU $ac_path_GREP
3767case `"$ac_path_GREP" --version 2>&1` in
3768*GNU*)
3769  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3770*)
3771  ac_count=0
3772  printf %s 0123456789 >"conftest.in"
3773  while :
3774  do
3775    cat "conftest.in" "conftest.in" >"conftest.tmp"
3776    mv "conftest.tmp" "conftest.in"
3777    cp "conftest.in" "conftest.nl"
3778    printf "%s\n" 'GREP' >> "conftest.nl"
3779    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3780    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3781    as_fn_arith $ac_count + 1 && ac_count=$as_val
3782    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3783      # Best one so far, save it but keep looking for a better one
3784      ac_cv_path_GREP="$ac_path_GREP"
3785      ac_path_GREP_max=$ac_count
3786    fi
3787    # 10*(2^10) chars as input seems more than enough
3788    test $ac_count -gt 10 && break
3789  done
3790  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3791esac
3792
3793      $ac_path_GREP_found && break 3
3794    done
3795  done
3796  done
3797IFS=$as_save_IFS
3798  if test -z "$ac_cv_path_GREP"; then
3799    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3800  fi
3801else
3802  ac_cv_path_GREP=$GREP
3803fi
3804
3805fi
3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3807printf "%s\n" "$ac_cv_path_GREP" >&6; }
3808 GREP="$ac_cv_path_GREP"
3809
3810
3811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3812printf %s "checking for egrep... " >&6; }
3813if test ${ac_cv_path_EGREP+y}
3814then :
3815  printf %s "(cached) " >&6
3816else $as_nop
3817  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3818   then ac_cv_path_EGREP="$GREP -E"
3819   else
3820     if test -z "$EGREP"; then
3821  ac_path_EGREP_found=false
3822  # Loop through the user's path and test for each of PROGNAME-LIST
3823  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3825do
3826  IFS=$as_save_IFS
3827  case $as_dir in #(((
3828    '') as_dir=./ ;;
3829    */) ;;
3830    *) as_dir=$as_dir/ ;;
3831  esac
3832    for ac_prog in egrep
3833   do
3834    for ac_exec_ext in '' $ac_executable_extensions; do
3835      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3836      as_fn_executable_p "$ac_path_EGREP" || continue
3837# Check for GNU ac_path_EGREP and select it if it is found.
3838  # Check for GNU $ac_path_EGREP
3839case `"$ac_path_EGREP" --version 2>&1` in
3840*GNU*)
3841  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3842*)
3843  ac_count=0
3844  printf %s 0123456789 >"conftest.in"
3845  while :
3846  do
3847    cat "conftest.in" "conftest.in" >"conftest.tmp"
3848    mv "conftest.tmp" "conftest.in"
3849    cp "conftest.in" "conftest.nl"
3850    printf "%s\n" 'EGREP' >> "conftest.nl"
3851    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3852    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3853    as_fn_arith $ac_count + 1 && ac_count=$as_val
3854    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3855      # Best one so far, save it but keep looking for a better one
3856      ac_cv_path_EGREP="$ac_path_EGREP"
3857      ac_path_EGREP_max=$ac_count
3858    fi
3859    # 10*(2^10) chars as input seems more than enough
3860    test $ac_count -gt 10 && break
3861  done
3862  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3863esac
3864
3865      $ac_path_EGREP_found && break 3
3866    done
3867  done
3868  done
3869IFS=$as_save_IFS
3870  if test -z "$ac_cv_path_EGREP"; then
3871    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3872  fi
3873else
3874  ac_cv_path_EGREP=$EGREP
3875fi
3876
3877   fi
3878fi
3879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3880printf "%s\n" "$ac_cv_path_EGREP" >&6; }
3881 EGREP="$ac_cv_path_EGREP"
3882
3883
3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3885printf %s "checking for a sed that does not truncate output... " >&6; }
3886if test ${ac_cv_path_SED+y}
3887then :
3888  printf %s "(cached) " >&6
3889else $as_nop
3890            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3891     for ac_i in 1 2 3 4 5 6 7; do
3892       ac_script="$ac_script$as_nl$ac_script"
3893     done
3894     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3895     { ac_script=; unset ac_script;}
3896     if test -z "$SED"; then
3897  ac_path_SED_found=false
3898  # Loop through the user's path and test for each of PROGNAME-LIST
3899  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902  IFS=$as_save_IFS
3903  case $as_dir in #(((
3904    '') as_dir=./ ;;
3905    */) ;;
3906    *) as_dir=$as_dir/ ;;
3907  esac
3908    for ac_prog in sed gsed
3909   do
3910    for ac_exec_ext in '' $ac_executable_extensions; do
3911      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
3912      as_fn_executable_p "$ac_path_SED" || continue
3913# Check for GNU ac_path_SED and select it if it is found.
3914  # Check for GNU $ac_path_SED
3915case `"$ac_path_SED" --version 2>&1` in
3916*GNU*)
3917  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3918*)
3919  ac_count=0
3920  printf %s 0123456789 >"conftest.in"
3921  while :
3922  do
3923    cat "conftest.in" "conftest.in" >"conftest.tmp"
3924    mv "conftest.tmp" "conftest.in"
3925    cp "conftest.in" "conftest.nl"
3926    printf "%s\n" '' >> "conftest.nl"
3927    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929    as_fn_arith $ac_count + 1 && ac_count=$as_val
3930    if test $ac_count -gt ${ac_path_SED_max-0}; then
3931      # Best one so far, save it but keep looking for a better one
3932      ac_cv_path_SED="$ac_path_SED"
3933      ac_path_SED_max=$ac_count
3934    fi
3935    # 10*(2^10) chars as input seems more than enough
3936    test $ac_count -gt 10 && break
3937  done
3938  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939esac
3940
3941      $ac_path_SED_found && break 3
3942    done
3943  done
3944  done
3945IFS=$as_save_IFS
3946  if test -z "$ac_cv_path_SED"; then
3947    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3948  fi
3949else
3950  ac_cv_path_SED=$SED
3951fi
3952
3953fi
3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3955printf "%s\n" "$ac_cv_path_SED" >&6; }
3956 SED="$ac_cv_path_SED"
3957  rm -f conftest.sed
3958
3959
3960
3961unset gmp_lib_path GMP_CFLAGS GMP_CC
3962
3963unset dev_version
3964if $EGREP -q -e '-dev$' $srcdir/VERSION; then
3965  dev_version=1
3966fi
3967
3968
3969
3970# Check whether --with-gmp_include was given.
3971if test ${with_gmp_include+y}
3972then :
3973  withval=$with_gmp_include;
3974  if test -d "$withval" ; then
3975                        local_tmp=`realpath "$withval" 2>/dev/null`
3976    if test "$local_tmp" != "" ; then
3977       if test -d "$local_tmp" ; then
3978           withval="$local_tmp"
3979       else
3980           withval="$withval"
3981       fi
3982    else
3983                                          case "$withval" in
3984         [\\/]* | ?:[\\/]* ) withval="$withval" ;;
3985         *) withval="$PWD"/"$withval" ;;
3986       esac
3987    fi
3988        if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3989        as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3990    fi
3991 else
3992    as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3993 fi
3994
3995   CPPFLAGS="$CPPFLAGS -I$withval"
3996fi
3997
3998
3999
4000# Check whether --with-gmp_lib was given.
4001if test ${with_gmp_lib+y}
4002then :
4003  withval=$with_gmp_lib;
4004
4005  if test -d "$withval" ; then
4006                        local_tmp=`realpath "$withval" 2>/dev/null`
4007    if test "$local_tmp" != "" ; then
4008       if test -d "$local_tmp" ; then
4009           withval="$local_tmp"
4010       else
4011           withval="$withval"
4012       fi
4013    else
4014                                          case "$withval" in
4015         [\\/]* | ?:[\\/]* ) withval="$withval" ;;
4016         *) withval="$PWD"/"$withval" ;;
4017       esac
4018    fi
4019        if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
4020        as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
4021    fi
4022 else
4023    as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
4024 fi
4025
4026   LDFLAGS="$LDFLAGS -L$withval"
4027   gmp_lib_path="$withval"
4028
4029fi
4030
4031
4032
4033# Check whether --with-gmp was given.
4034if test ${with_gmp+y}
4035then :
4036  withval=$with_gmp;
4037
4038  if test -d "$withval" ; then
4039                        local_tmp=`realpath "$withval" 2>/dev/null`
4040    if test "$local_tmp" != "" ; then
4041       if test -d "$local_tmp" ; then
4042           withval="$local_tmp"
4043       else
4044           withval="$withval"
4045       fi
4046    else
4047                                          case "$withval" in
4048         [\\/]* | ?:[\\/]* ) withval="$withval" ;;
4049         *) withval="$PWD"/"$withval" ;;
4050       esac
4051    fi
4052        if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
4053        as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
4054    fi
4055 else
4056    as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
4057 fi
4058
4059   if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then
4060      CPPFLAGS="$CPPFLAGS -I$withval/include"
4061      LDFLAGS="$LDFLAGS -L$withval/lib"
4062      gmp_lib_path="$withval/lib"
4063   else
4064      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4066as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
4067See \`config.log' for more details" "$LINENO" 5; }
4068   fi
4069
4070fi
4071
4072
4073
4074# Check whether --with-gmp_build was given.
4075if test ${with_gmp_build+y}
4076then :
4077  withval=$with_gmp_build;
4078
4079  if test -d "$withval" ; then
4080                        local_tmp=`realpath "$withval" 2>/dev/null`
4081    if test "$local_tmp" != "" ; then
4082       if test -d "$local_tmp" ; then
4083           withval="$local_tmp"
4084       else
4085           withval="$withval"
4086       fi
4087    else
4088                                          case "$withval" in
4089         [\\/]* | ?:[\\/]* ) withval="$withval" ;;
4090         *) withval="$PWD"/"$withval" ;;
4091       esac
4092    fi
4093        if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
4094        as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
4095    fi
4096 else
4097    as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
4098 fi
4099
4100   if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then
4101      CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
4102      LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune"
4103      gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
4104      if test -r $withval/Makefile ; then
4105         GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile`
4106         GMP_CC=`$SED -n 's/^CC = //p' $withval/Makefile`
4107         GMP_SOURCE=`$SED -n 's/^srcdir = *//p' $withval/Makefile`
4108         case "$GMP_SOURCE" in
4109           .)  GMP_SOURCE="" ;;
4110           /*) ;;
4111           ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;;
4112         esac
4113         if test -d "$GMP_SOURCE" ; then
4114            CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune"
4115         fi
4116      fi
4117      use_gmp_build=yes
4118   else
4119      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4121as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously.
4122See \`config.log' for more details" "$LINENO" 5; }
4123   fi
4124
4125fi
4126
4127
4128
4129# Check whether --with-mini_gmp was given.
4130if test ${with_mini_gmp+y}
4131then :
4132  withval=$with_mini_gmp;
4133
4134  if test -d "$withval" ; then
4135                        local_tmp=`realpath "$withval" 2>/dev/null`
4136    if test "$local_tmp" != "" ; then
4137       if test -d "$local_tmp" ; then
4138           withval="$local_tmp"
4139       else
4140           withval="$withval"
4141       fi
4142    else
4143                                          case "$withval" in
4144         [\\/]* | ?:[\\/]* ) withval="$withval" ;;
4145         *) withval="$PWD"/"$withval" ;;
4146       esac
4147    fi
4148        if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
4149        as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
4150    fi
4151 else
4152    as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
4153 fi
4154
4155   if test -z "$gmp_lib_path" && test -z "$with_gmp_include" && \
4156      test -z "$use_gmp_build"; then
4157     if test -f "$withval/mini-gmp.c" && test -f "$withval/mini-gmp.h"; then
4158
4159printf "%s\n" "#define MPFR_USE_MINI_GMP 1" >>confdefs.h
4160
4161       mini_gmp_path="$withval"
4162
4163     else
4164       { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4165printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4166as_fn_error $? "mini-gmp.{c,h} not found in $withval
4167See \`config.log' for more details" "$LINENO" 5; }
4168     fi
4169   else
4170     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4171printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4172as_fn_error $? "Do not use --with-mini-gmp and other --with-gmp options simultaneously.
4173See \`config.log' for more details" "$LINENO" 5; }
4174   fi
4175
4176fi
4177
4178
4179
4180# Check whether --with-mulhigh_size was given.
4181if test ${with_mulhigh_size+y}
4182then :
4183  withval=$with_mulhigh_size;
4184printf "%s\n" "#define MPFR_MULHIGH_SIZE $withval" >>confdefs.h
4185
4186fi
4187
4188
4189# Check whether --enable-gmp-internals was given.
4190if test ${enable_gmp_internals+y}
4191then :
4192  enableval=$enable_gmp_internals;  case $enableval in
4193      yes)
4194printf "%s\n" "#define WANT_GMP_INTERNALS 1" >>confdefs.h
4195 ;;
4196      no)  ;;
4197      *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;;
4198     esac
4199fi
4200
4201
4202# Check whether --enable-assert was given.
4203if test ${enable_assert+y}
4204then :
4205  enableval=$enable_assert;  case $enableval in
4206      yes)
4207printf "%s\n" "#define MPFR_WANT_ASSERT 1" >>confdefs.h
4208 ;;
4209      none)
4210printf "%s\n" "#define MPFR_WANT_ASSERT -1" >>confdefs.h
4211 ;;
4212      no)  ;;
4213      full)
4214printf "%s\n" "#define MPFR_WANT_ASSERT 2" >>confdefs.h
4215 ;;
4216      *) as_fn_error $? "bad value for --enable-assert: yes, no, none or full" "$LINENO" 5 ;;
4217     esac
4218fi
4219
4220
4221# Check whether --enable-logging was given.
4222if test ${enable_logging+y}
4223then :
4224  enableval=$enable_logging;  case $enableval in
4225      yes)
4226printf "%s\n" "#define MPFR_USE_LOGGING 1" >>confdefs.h
4227 ;;
4228      no)  ;;
4229      *)   as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;;
4230     esac
4231fi
4232
4233
4234# Check whether --enable-thread-safe was given.
4235if test ${enable_thread_safe+y}
4236then :
4237  enableval=$enable_thread_safe;  case $enableval in
4238      yes) ;;
4239      no)  ;;
4240      *)   as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;;
4241     esac
4242fi
4243
4244
4245# Check whether --enable-shared-cache was given.
4246if test ${enable_shared_cache+y}
4247then :
4248  enableval=$enable_shared_cache;  case $enableval in
4249      yes)
4250
4251printf "%s\n" "#define MPFR_WANT_SHARED_CACHE 1" >>confdefs.h
4252 ;;
4253      no)  ;;
4254      *) as_fn_error $? "bad value for --enable-shared-cache: yes or no" "$LINENO" 5 ;;
4255     esac
4256fi
4257
4258
4259# Check whether --enable-warnings was given.
4260if test ${enable_warnings+y}
4261then :
4262  enableval=$enable_warnings;  case $enableval in
4263      yes)
4264printf "%s\n" "#define MPFR_USE_WARNINGS 1" >>confdefs.h
4265 ;;
4266      no)  ;;
4267      *)   as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;;
4268     esac
4269fi
4270
4271
4272# Check whether --enable-tests-timeout was given.
4273if test ${enable_tests_timeout+y}
4274then :
4275  enableval=$enable_tests_timeout;  case $enableval in
4276      no)   ;;
4277      yes)  ;;
4278      [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
4279
4280printf "%s\n" "#define MPFR_TESTS_TIMEOUT $enableval" >>confdefs.h
4281 ;;
4282      *)    as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;;
4283     esac
4284fi
4285
4286
4287# Check whether --enable-tune-for-coverage was given.
4288if test ${enable_tune_for_coverage+y}
4289then :
4290  enableval=$enable_tune_for_coverage;  case $enableval in
4291      no)   ;;
4292      yes)
4293printf "%s\n" "#define MPFR_TUNE_COVERAGE 1" >>confdefs.h
4294 ;;
4295      *)    as_fn_error $? "bad value for --enable-tune-for-coverage" "$LINENO" 5 ;;
4296     esac
4297fi
4298
4299
4300# Check whether --enable-decimal-float was given.
4301if test ${enable_decimal_float+y}
4302then :
4303  enableval=$enable_decimal_float;  case $enableval in
4304      yes|no|auto|bid|dpd|generic) ;;
4305      *) as_fn_error $? "bad value for --enable-decimal-float" "$LINENO" 5 ;;
4306     esac
4307fi
4308
4309
4310# Check whether --enable-float128 was given.
4311if test ${enable_float128+y}
4312then :
4313  enableval=$enable_float128;  case $enableval in
4314      yes) ;;
4315      no)  ;;
4316      *)   as_fn_error $? "bad value for --enable-float128: yes or no" "$LINENO" 5 ;;
4317     esac
4318fi
4319
4320
4321# Check whether --enable-debug-prediction was given.
4322if test ${enable_debug_prediction+y}
4323then :
4324  enableval=$enable_debug_prediction;  case $enableval in
4325      yes)  if test "$enable_shared" != no; then
4326              as_fn_error $? "--enable-debug-prediction can only work in static mode (--disable-shared)" "$LINENO" 5
4327            fi
4328
4329printf "%s\n" "#define MPFR_DEBUG_PREDICTION 1" >>confdefs.h
4330 ;;
4331      no)   ;;
4332      *)    as_fn_error $? "bad value for --enable-debug-prediction: yes or no" "$LINENO" 5 ;;
4333     esac
4334fi
4335
4336
4337# Check whether --enable-lto was given.
4338if test ${enable_lto+y}
4339then :
4340  enableval=$enable_lto;  case $enableval in
4341      yes)  if test "$enable_shared" != "no"; then
4342              as_fn_error $? "--enable-lto can only work in static mode (--disable-shared)" "$LINENO" 5
4343            fi
4344            enable_lto=yes
4345            ;;
4346      no)   ;;
4347      *)    as_fn_error $? "bad value for --enable-lto: yes or no" "$LINENO" 5 ;;
4348     esac
4349fi
4350
4351
4352# Check whether --enable-formally-proven-code was given.
4353if test ${enable_formally_proven_code+y}
4354then :
4355  enableval=$enable_formally_proven_code;  case $enableval in
4356      yes)
4357printf "%s\n" "#define MPFR_WANT_PROVEN_CODE 1" >>confdefs.h
4358 ;;
4359      no)  ;;
4360      *) as_fn_error $? "bad value for --enable-formally-proven-code: yes or no" "$LINENO" 5 ;;
4361     esac
4362fi
4363
4364
4365 if test -n "$mini_gmp_path"; then
4366  MINI_GMP_TRUE=
4367  MINI_GMP_FALSE='#'
4368else
4369  MINI_GMP_TRUE='#'
4370  MINI_GMP_FALSE=
4371fi
4372
4373
4374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether configure options are compatible" >&5
4375printf %s "checking whether configure options are compatible... " >&6; }
4376if test "$enable_logging" = yes; then
4377  if test "$enable_thread_safe" = yes; then
4378    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379printf "%s\n" "no" >&6; }
4380    as_fn_error $? "enable either logging or thread-safe, not both" "$LINENO" 5
4381  fi
4382  if test "$enable_shared_cache" = yes; then
4383    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384printf "%s\n" "no" >&6; }
4385    as_fn_error $? "shared cache does not work with logging support" "$LINENO" 5
4386  fi
4387  enable_thread_safe=no
4388fi
4389if test "$enable_shared_cache" = yes; then
4390  if test "$enable_thread_safe" = no; then
4391    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392printf "%s\n" "no" >&6; }
4393    as_fn_error $? "shared cache needs thread-safe support" "$LINENO" 5
4394  fi
4395  enable_thread_safe=yes
4396fi
4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4398printf "%s\n" "yes" >&6; }
4399
4400
4401
4402
4403
4404
4405if test -z "$user_redefine_cc" && \
4406   test "$cross_compiling" != yes && \
4407   test "${with_mini_gmp+set}" != set ; then
4408
4409if test -z "$GMP_CC$GMP_CFLAGS" ; then
4410   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
4411printf %s "checking for CC and CFLAGS in gmp.h... " >&6; }
4412   GMP_CC=__GMP_CC
4413   GMP_CFLAGS=__GMP_CFLAGS
4414   # /lib/cpp under Solaris doesn't support some environment variables
4415   # used by GCC, such as C_INCLUDE_PATH. If the user has set up such
4416   # environment variables, he probably wants to use them. So, let us
4417   # prefer cpp and gcc to /lib/cpp. However, note that this won't
4418   # work if GCC has been installed with versioned names only (e.g.
4419   # with cpp-5 and gcc-5).
4420   for cpp in "cpp -P" "cpp" "gcc -P -E" "gcc -E" "/lib/cpp -P" "/lib/cpp" "cc -P -E" "cc -E" "c99 -P -E" "c99 -E" "clang -E" "cl -E" "icl -E"
4421   do
4422     # Get CC
4423     echo "#include \"gmp.h\"" > conftest.c
4424     echo "MPFR_OPTION __GMP_CC" >> conftest.c
4425     $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt
4426     test $? -ne 0 && continue
4427     GMP_CC=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
4428     # Get CFLAGS
4429     echo "#include \"gmp.h\"" >  conftest.c
4430     echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
4431     $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt
4432     test $? -ne 0 && continue
4433     GMP_CFLAGS=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/[ "]-pedantic[ "]/ /g;s/MPFR_OPTION //g;s/ *" *//g'`
4434     break
4435   done
4436   rm -f conftest*
4437   if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then
4438      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4439printf "%s\n" "failed" >&6; }
4440      GMP_CFLAGS=
4441      GMP_CC=
4442   else
4443      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
4444printf "%s\n" "CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
4445   fi
4446fi
4447
4448if test -n "$GMP_CC$GMP_CFLAGS" ; then
4449   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
4450printf %s "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
4451   echo "int main (void) { return 0; }" > conftest.c
4452   if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
4453     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4454printf "%s\n" "yes" >&6; }
4455     CFLAGS=$GMP_CFLAGS
4456     CC=$GMP_CC
4457   else
4458     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459printf "%s\n" "no" >&6; }
4460   fi
4461   rm -f conftest*
4462fi
4463
4464fi
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476ac_ext=c
4477ac_cpp='$CPP $CPPFLAGS'
4478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481if test -n "$ac_tool_prefix"; then
4482  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4483set dummy ${ac_tool_prefix}gcc; ac_word=$2
4484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485printf %s "checking for $ac_word... " >&6; }
4486if test ${ac_cv_prog_CC+y}
4487then :
4488  printf %s "(cached) " >&6
4489else $as_nop
4490  if test -n "$CC"; then
4491  ac_cv_prog_CC="$CC" # Let the user override the test.
4492else
4493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494for as_dir in $PATH
4495do
4496  IFS=$as_save_IFS
4497  case $as_dir in #(((
4498    '') as_dir=./ ;;
4499    */) ;;
4500    *) as_dir=$as_dir/ ;;
4501  esac
4502    for ac_exec_ext in '' $ac_executable_extensions; do
4503  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4504    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4505    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4506    break 2
4507  fi
4508done
4509  done
4510IFS=$as_save_IFS
4511
4512fi
4513fi
4514CC=$ac_cv_prog_CC
4515if test -n "$CC"; then
4516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4517printf "%s\n" "$CC" >&6; }
4518else
4519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520printf "%s\n" "no" >&6; }
4521fi
4522
4523
4524fi
4525if test -z "$ac_cv_prog_CC"; then
4526  ac_ct_CC=$CC
4527  # Extract the first word of "gcc", so it can be a program name with args.
4528set dummy gcc; ac_word=$2
4529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530printf %s "checking for $ac_word... " >&6; }
4531if test ${ac_cv_prog_ac_ct_CC+y}
4532then :
4533  printf %s "(cached) " >&6
4534else $as_nop
4535  if test -n "$ac_ct_CC"; then
4536  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4537else
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541  IFS=$as_save_IFS
4542  case $as_dir in #(((
4543    '') as_dir=./ ;;
4544    */) ;;
4545    *) as_dir=$as_dir/ ;;
4546  esac
4547    for ac_exec_ext in '' $ac_executable_extensions; do
4548  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4549    ac_cv_prog_ac_ct_CC="gcc"
4550    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4551    break 2
4552  fi
4553done
4554  done
4555IFS=$as_save_IFS
4556
4557fi
4558fi
4559ac_ct_CC=$ac_cv_prog_ac_ct_CC
4560if test -n "$ac_ct_CC"; then
4561  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4562printf "%s\n" "$ac_ct_CC" >&6; }
4563else
4564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565printf "%s\n" "no" >&6; }
4566fi
4567
4568  if test "x$ac_ct_CC" = x; then
4569    CC=""
4570  else
4571    case $cross_compiling:$ac_tool_warned in
4572yes:)
4573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4574printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4575ac_tool_warned=yes ;;
4576esac
4577    CC=$ac_ct_CC
4578  fi
4579else
4580  CC="$ac_cv_prog_CC"
4581fi
4582
4583if test -z "$CC"; then
4584          if test -n "$ac_tool_prefix"; then
4585    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4586set dummy ${ac_tool_prefix}cc; ac_word=$2
4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588printf %s "checking for $ac_word... " >&6; }
4589if test ${ac_cv_prog_CC+y}
4590then :
4591  printf %s "(cached) " >&6
4592else $as_nop
4593  if test -n "$CC"; then
4594  ac_cv_prog_CC="$CC" # Let the user override the test.
4595else
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599  IFS=$as_save_IFS
4600  case $as_dir in #(((
4601    '') as_dir=./ ;;
4602    */) ;;
4603    *) as_dir=$as_dir/ ;;
4604  esac
4605    for ac_exec_ext in '' $ac_executable_extensions; do
4606  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4607    ac_cv_prog_CC="${ac_tool_prefix}cc"
4608    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4609    break 2
4610  fi
4611done
4612  done
4613IFS=$as_save_IFS
4614
4615fi
4616fi
4617CC=$ac_cv_prog_CC
4618if test -n "$CC"; then
4619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620printf "%s\n" "$CC" >&6; }
4621else
4622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623printf "%s\n" "no" >&6; }
4624fi
4625
4626
4627  fi
4628fi
4629if test -z "$CC"; then
4630  # Extract the first word of "cc", so it can be a program name with args.
4631set dummy cc; ac_word=$2
4632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633printf %s "checking for $ac_word... " >&6; }
4634if test ${ac_cv_prog_CC+y}
4635then :
4636  printf %s "(cached) " >&6
4637else $as_nop
4638  if test -n "$CC"; then
4639  ac_cv_prog_CC="$CC" # Let the user override the test.
4640else
4641  ac_prog_rejected=no
4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645  IFS=$as_save_IFS
4646  case $as_dir in #(((
4647    '') as_dir=./ ;;
4648    */) ;;
4649    *) as_dir=$as_dir/ ;;
4650  esac
4651    for ac_exec_ext in '' $ac_executable_extensions; do
4652  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4653    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4654       ac_prog_rejected=yes
4655       continue
4656     fi
4657    ac_cv_prog_CC="cc"
4658    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4659    break 2
4660  fi
4661done
4662  done
4663IFS=$as_save_IFS
4664
4665if test $ac_prog_rejected = yes; then
4666  # We found a bogon in the path, so make sure we never use it.
4667  set dummy $ac_cv_prog_CC
4668  shift
4669  if test $# != 0; then
4670    # We chose a different compiler from the bogus one.
4671    # However, it has the same basename, so the bogon will be chosen
4672    # first if we set CC to just the basename; use the full file name.
4673    shift
4674    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4675  fi
4676fi
4677fi
4678fi
4679CC=$ac_cv_prog_CC
4680if test -n "$CC"; then
4681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4682printf "%s\n" "$CC" >&6; }
4683else
4684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685printf "%s\n" "no" >&6; }
4686fi
4687
4688
4689fi
4690if test -z "$CC"; then
4691  if test -n "$ac_tool_prefix"; then
4692  for ac_prog in cl.exe
4693  do
4694    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4695set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697printf %s "checking for $ac_word... " >&6; }
4698if test ${ac_cv_prog_CC+y}
4699then :
4700  printf %s "(cached) " >&6
4701else $as_nop
4702  if test -n "$CC"; then
4703  ac_cv_prog_CC="$CC" # Let the user override the test.
4704else
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708  IFS=$as_save_IFS
4709  case $as_dir in #(((
4710    '') as_dir=./ ;;
4711    */) ;;
4712    *) as_dir=$as_dir/ ;;
4713  esac
4714    for ac_exec_ext in '' $ac_executable_extensions; do
4715  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4716    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4717    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4718    break 2
4719  fi
4720done
4721  done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726CC=$ac_cv_prog_CC
4727if test -n "$CC"; then
4728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4729printf "%s\n" "$CC" >&6; }
4730else
4731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732printf "%s\n" "no" >&6; }
4733fi
4734
4735
4736    test -n "$CC" && break
4737  done
4738fi
4739if test -z "$CC"; then
4740  ac_ct_CC=$CC
4741  for ac_prog in cl.exe
4742do
4743  # Extract the first word of "$ac_prog", so it can be a program name with args.
4744set dummy $ac_prog; ac_word=$2
4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746printf %s "checking for $ac_word... " >&6; }
4747if test ${ac_cv_prog_ac_ct_CC+y}
4748then :
4749  printf %s "(cached) " >&6
4750else $as_nop
4751  if test -n "$ac_ct_CC"; then
4752  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4753else
4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in $PATH
4756do
4757  IFS=$as_save_IFS
4758  case $as_dir in #(((
4759    '') as_dir=./ ;;
4760    */) ;;
4761    *) as_dir=$as_dir/ ;;
4762  esac
4763    for ac_exec_ext in '' $ac_executable_extensions; do
4764  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4765    ac_cv_prog_ac_ct_CC="$ac_prog"
4766    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4767    break 2
4768  fi
4769done
4770  done
4771IFS=$as_save_IFS
4772
4773fi
4774fi
4775ac_ct_CC=$ac_cv_prog_ac_ct_CC
4776if test -n "$ac_ct_CC"; then
4777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4778printf "%s\n" "$ac_ct_CC" >&6; }
4779else
4780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781printf "%s\n" "no" >&6; }
4782fi
4783
4784
4785  test -n "$ac_ct_CC" && break
4786done
4787
4788  if test "x$ac_ct_CC" = x; then
4789    CC=""
4790  else
4791    case $cross_compiling:$ac_tool_warned in
4792yes:)
4793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4795ac_tool_warned=yes ;;
4796esac
4797    CC=$ac_ct_CC
4798  fi
4799fi
4800
4801fi
4802if test -z "$CC"; then
4803  if test -n "$ac_tool_prefix"; then
4804  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4805set dummy ${ac_tool_prefix}clang; ac_word=$2
4806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807printf %s "checking for $ac_word... " >&6; }
4808if test ${ac_cv_prog_CC+y}
4809then :
4810  printf %s "(cached) " >&6
4811else $as_nop
4812  if test -n "$CC"; then
4813  ac_cv_prog_CC="$CC" # Let the user override the test.
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818  IFS=$as_save_IFS
4819  case $as_dir in #(((
4820    '') as_dir=./ ;;
4821    */) ;;
4822    *) as_dir=$as_dir/ ;;
4823  esac
4824    for ac_exec_ext in '' $ac_executable_extensions; do
4825  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4826    ac_cv_prog_CC="${ac_tool_prefix}clang"
4827    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4828    break 2
4829  fi
4830done
4831  done
4832IFS=$as_save_IFS
4833
4834fi
4835fi
4836CC=$ac_cv_prog_CC
4837if test -n "$CC"; then
4838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839printf "%s\n" "$CC" >&6; }
4840else
4841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842printf "%s\n" "no" >&6; }
4843fi
4844
4845
4846fi
4847if test -z "$ac_cv_prog_CC"; then
4848  ac_ct_CC=$CC
4849  # Extract the first word of "clang", so it can be a program name with args.
4850set dummy clang; ac_word=$2
4851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852printf %s "checking for $ac_word... " >&6; }
4853if test ${ac_cv_prog_ac_ct_CC+y}
4854then :
4855  printf %s "(cached) " >&6
4856else $as_nop
4857  if test -n "$ac_ct_CC"; then
4858  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863  IFS=$as_save_IFS
4864  case $as_dir in #(((
4865    '') as_dir=./ ;;
4866    */) ;;
4867    *) as_dir=$as_dir/ ;;
4868  esac
4869    for ac_exec_ext in '' $ac_executable_extensions; do
4870  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4871    ac_cv_prog_ac_ct_CC="clang"
4872    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4873    break 2
4874  fi
4875done
4876  done
4877IFS=$as_save_IFS
4878
4879fi
4880fi
4881ac_ct_CC=$ac_cv_prog_ac_ct_CC
4882if test -n "$ac_ct_CC"; then
4883  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4884printf "%s\n" "$ac_ct_CC" >&6; }
4885else
4886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887printf "%s\n" "no" >&6; }
4888fi
4889
4890  if test "x$ac_ct_CC" = x; then
4891    CC=""
4892  else
4893    case $cross_compiling:$ac_tool_warned in
4894yes:)
4895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897ac_tool_warned=yes ;;
4898esac
4899    CC=$ac_ct_CC
4900  fi
4901else
4902  CC="$ac_cv_prog_CC"
4903fi
4904
4905fi
4906
4907
4908test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4909printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4910as_fn_error $? "no acceptable C compiler found in \$PATH
4911See \`config.log' for more details" "$LINENO" 5; }
4912
4913# Provide some information about the compiler.
4914printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4915set X $ac_compile
4916ac_compiler=$2
4917for ac_option in --version -v -V -qversion -version; do
4918  { { ac_try="$ac_compiler $ac_option >&5"
4919case "(($ac_try" in
4920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921  *) ac_try_echo=$ac_try;;
4922esac
4923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4924printf "%s\n" "$ac_try_echo"; } >&5
4925  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4926  ac_status=$?
4927  if test -s conftest.err; then
4928    sed '10a\
4929... rest of stderr output deleted ...
4930         10q' conftest.err >conftest.er1
4931    cat conftest.er1 >&5
4932  fi
4933  rm -f conftest.er1 conftest.err
4934  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4935  test $ac_status = 0; }
4936done
4937
4938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940
4941int
4942main (void)
4943{
4944
4945  ;
4946  return 0;
4947}
4948_ACEOF
4949ac_clean_files_save=$ac_clean_files
4950ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4951# Try to create an executable without -o first, disregard a.out.
4952# It will help us diagnose broken compilers, and finding out an intuition
4953# of exeext.
4954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4955printf %s "checking whether the C compiler works... " >&6; }
4956ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4957
4958# The possible output files:
4959ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4960
4961ac_rmfiles=
4962for ac_file in $ac_files
4963do
4964  case $ac_file in
4965    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4966    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4967  esac
4968done
4969rm -f $ac_rmfiles
4970
4971if { { ac_try="$ac_link_default"
4972case "(($ac_try" in
4973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974  *) ac_try_echo=$ac_try;;
4975esac
4976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4977printf "%s\n" "$ac_try_echo"; } >&5
4978  (eval "$ac_link_default") 2>&5
4979  ac_status=$?
4980  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4981  test $ac_status = 0; }
4982then :
4983  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4984# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4985# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4986# so that the user can short-circuit this test for compilers unknown to
4987# Autoconf.
4988for ac_file in $ac_files ''
4989do
4990  test -f "$ac_file" || continue
4991  case $ac_file in
4992    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4993	;;
4994    [ab].out )
4995	# We found the default executable, but exeext='' is most
4996	# certainly right.
4997	break;;
4998    *.* )
4999	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5000	then :; else
5001	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5002	fi
5003	# We set ac_cv_exeext here because the later test for it is not
5004	# safe: cross compilers may not add the suffix if given an `-o'
5005	# argument, so we may need to know it at that point already.
5006	# Even if this section looks crufty: it has the advantage of
5007	# actually working.
5008	break;;
5009    * )
5010	break;;
5011  esac
5012done
5013test "$ac_cv_exeext" = no && ac_cv_exeext=
5014
5015else $as_nop
5016  ac_file=''
5017fi
5018if test -z "$ac_file"
5019then :
5020  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021printf "%s\n" "no" >&6; }
5022printf "%s\n" "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5026printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5027as_fn_error 77 "C compiler cannot create executables
5028See \`config.log' for more details" "$LINENO" 5; }
5029else $as_nop
5030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5031printf "%s\n" "yes" >&6; }
5032fi
5033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5034printf %s "checking for C compiler default output file name... " >&6; }
5035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5036printf "%s\n" "$ac_file" >&6; }
5037ac_exeext=$ac_cv_exeext
5038
5039rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5040ac_clean_files=$ac_clean_files_save
5041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5042printf %s "checking for suffix of executables... " >&6; }
5043if { { ac_try="$ac_link"
5044case "(($ac_try" in
5045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5046  *) ac_try_echo=$ac_try;;
5047esac
5048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5049printf "%s\n" "$ac_try_echo"; } >&5
5050  (eval "$ac_link") 2>&5
5051  ac_status=$?
5052  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5053  test $ac_status = 0; }
5054then :
5055  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5056# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5057# work properly (i.e., refer to `conftest.exe'), while it won't with
5058# `rm'.
5059for ac_file in conftest.exe conftest conftest.*; do
5060  test -f "$ac_file" || continue
5061  case $ac_file in
5062    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5063    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5064	  break;;
5065    * ) break;;
5066  esac
5067done
5068else $as_nop
5069  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5070printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5071as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5072See \`config.log' for more details" "$LINENO" 5; }
5073fi
5074rm -f conftest conftest$ac_cv_exeext
5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5076printf "%s\n" "$ac_cv_exeext" >&6; }
5077
5078rm -f conftest.$ac_ext
5079EXEEXT=$ac_cv_exeext
5080ac_exeext=$EXEEXT
5081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083#include <stdio.h>
5084int
5085main (void)
5086{
5087FILE *f = fopen ("conftest.out", "w");
5088 return ferror (f) || fclose (f) != 0;
5089
5090  ;
5091  return 0;
5092}
5093_ACEOF
5094ac_clean_files="$ac_clean_files conftest.out"
5095# Check that the compiler produces executables we can run.  If not, either
5096# the compiler is broken, or we cross compile.
5097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5098printf %s "checking whether we are cross compiling... " >&6; }
5099if test "$cross_compiling" != yes; then
5100  { { ac_try="$ac_link"
5101case "(($ac_try" in
5102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103  *) ac_try_echo=$ac_try;;
5104esac
5105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5106printf "%s\n" "$ac_try_echo"; } >&5
5107  (eval "$ac_link") 2>&5
5108  ac_status=$?
5109  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5110  test $ac_status = 0; }
5111  if { ac_try='./conftest$ac_cv_exeext'
5112  { { case "(($ac_try" in
5113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114  *) ac_try_echo=$ac_try;;
5115esac
5116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117printf "%s\n" "$ac_try_echo"; } >&5
5118  (eval "$ac_try") 2>&5
5119  ac_status=$?
5120  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121  test $ac_status = 0; }; }; then
5122    cross_compiling=no
5123  else
5124    if test "$cross_compiling" = maybe; then
5125	cross_compiling=yes
5126    else
5127	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5128printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5129as_fn_error 77 "cannot run C compiled programs.
5130If you meant to cross compile, use \`--host'.
5131See \`config.log' for more details" "$LINENO" 5; }
5132    fi
5133  fi
5134fi
5135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5136printf "%s\n" "$cross_compiling" >&6; }
5137
5138rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5139ac_clean_files=$ac_clean_files_save
5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5141printf %s "checking for suffix of object files... " >&6; }
5142if test ${ac_cv_objext+y}
5143then :
5144  printf %s "(cached) " >&6
5145else $as_nop
5146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h.  */
5148
5149int
5150main (void)
5151{
5152
5153  ;
5154  return 0;
5155}
5156_ACEOF
5157rm -f conftest.o conftest.obj
5158if { { ac_try="$ac_compile"
5159case "(($ac_try" in
5160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161  *) ac_try_echo=$ac_try;;
5162esac
5163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5164printf "%s\n" "$ac_try_echo"; } >&5
5165  (eval "$ac_compile") 2>&5
5166  ac_status=$?
5167  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168  test $ac_status = 0; }
5169then :
5170  for ac_file in conftest.o conftest.obj conftest.*; do
5171  test -f "$ac_file" || continue;
5172  case $ac_file in
5173    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5174    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5175       break;;
5176  esac
5177done
5178else $as_nop
5179  printf "%s\n" "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5183printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5184as_fn_error $? "cannot compute suffix of object files: cannot compile
5185See \`config.log' for more details" "$LINENO" 5; }
5186fi
5187rm -f conftest.$ac_cv_objext conftest.$ac_ext
5188fi
5189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5190printf "%s\n" "$ac_cv_objext" >&6; }
5191OBJEXT=$ac_cv_objext
5192ac_objext=$OBJEXT
5193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5194printf %s "checking whether the compiler supports GNU C... " >&6; }
5195if test ${ac_cv_c_compiler_gnu+y}
5196then :
5197  printf %s "(cached) " >&6
5198else $as_nop
5199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201
5202int
5203main (void)
5204{
5205#ifndef __GNUC__
5206       choke me
5207#endif
5208
5209  ;
5210  return 0;
5211}
5212_ACEOF
5213if ac_fn_c_try_compile "$LINENO"
5214then :
5215  ac_compiler_gnu=yes
5216else $as_nop
5217  ac_compiler_gnu=no
5218fi
5219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5220ac_cv_c_compiler_gnu=$ac_compiler_gnu
5221
5222fi
5223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5224printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5225ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226
5227if test $ac_compiler_gnu = yes; then
5228  GCC=yes
5229else
5230  GCC=
5231fi
5232ac_test_CFLAGS=${CFLAGS+y}
5233ac_save_CFLAGS=$CFLAGS
5234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5235printf %s "checking whether $CC accepts -g... " >&6; }
5236if test ${ac_cv_prog_cc_g+y}
5237then :
5238  printf %s "(cached) " >&6
5239else $as_nop
5240  ac_save_c_werror_flag=$ac_c_werror_flag
5241   ac_c_werror_flag=yes
5242   ac_cv_prog_cc_g=no
5243   CFLAGS="-g"
5244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245/* end confdefs.h.  */
5246
5247int
5248main (void)
5249{
5250
5251  ;
5252  return 0;
5253}
5254_ACEOF
5255if ac_fn_c_try_compile "$LINENO"
5256then :
5257  ac_cv_prog_cc_g=yes
5258else $as_nop
5259  CFLAGS=""
5260      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261/* end confdefs.h.  */
5262
5263int
5264main (void)
5265{
5266
5267  ;
5268  return 0;
5269}
5270_ACEOF
5271if ac_fn_c_try_compile "$LINENO"
5272then :
5273
5274else $as_nop
5275  ac_c_werror_flag=$ac_save_c_werror_flag
5276	 CFLAGS="-g"
5277	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278/* end confdefs.h.  */
5279
5280int
5281main (void)
5282{
5283
5284  ;
5285  return 0;
5286}
5287_ACEOF
5288if ac_fn_c_try_compile "$LINENO"
5289then :
5290  ac_cv_prog_cc_g=yes
5291fi
5292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5293fi
5294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5295fi
5296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5297   ac_c_werror_flag=$ac_save_c_werror_flag
5298fi
5299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5300printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5301if test $ac_test_CFLAGS; then
5302  CFLAGS=$ac_save_CFLAGS
5303elif test $ac_cv_prog_cc_g = yes; then
5304  if test "$GCC" = yes; then
5305    CFLAGS="-g -O2"
5306  else
5307    CFLAGS="-g"
5308  fi
5309else
5310  if test "$GCC" = yes; then
5311    CFLAGS="-O2"
5312  else
5313    CFLAGS=
5314  fi
5315fi
5316ac_prog_cc_stdc=no
5317if test x$ac_prog_cc_stdc = xno
5318then :
5319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5320printf %s "checking for $CC option to enable C11 features... " >&6; }
5321if test ${ac_cv_prog_cc_c11+y}
5322then :
5323  printf %s "(cached) " >&6
5324else $as_nop
5325  ac_cv_prog_cc_c11=no
5326ac_save_CC=$CC
5327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329$ac_c_conftest_c11_program
5330_ACEOF
5331for ac_arg in '' -std=gnu11
5332do
5333  CC="$ac_save_CC $ac_arg"
5334  if ac_fn_c_try_compile "$LINENO"
5335then :
5336  ac_cv_prog_cc_c11=$ac_arg
5337fi
5338rm -f core conftest.err conftest.$ac_objext conftest.beam
5339  test "x$ac_cv_prog_cc_c11" != "xno" && break
5340done
5341rm -f conftest.$ac_ext
5342CC=$ac_save_CC
5343fi
5344
5345if test "x$ac_cv_prog_cc_c11" = xno
5346then :
5347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5348printf "%s\n" "unsupported" >&6; }
5349else $as_nop
5350  if test "x$ac_cv_prog_cc_c11" = x
5351then :
5352  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5353printf "%s\n" "none needed" >&6; }
5354else $as_nop
5355  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5356printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5357     CC="$CC $ac_cv_prog_cc_c11"
5358fi
5359  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5360  ac_prog_cc_stdc=c11
5361fi
5362fi
5363if test x$ac_prog_cc_stdc = xno
5364then :
5365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5366printf %s "checking for $CC option to enable C99 features... " >&6; }
5367if test ${ac_cv_prog_cc_c99+y}
5368then :
5369  printf %s "(cached) " >&6
5370else $as_nop
5371  ac_cv_prog_cc_c99=no
5372ac_save_CC=$CC
5373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374/* end confdefs.h.  */
5375$ac_c_conftest_c99_program
5376_ACEOF
5377for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5378do
5379  CC="$ac_save_CC $ac_arg"
5380  if ac_fn_c_try_compile "$LINENO"
5381then :
5382  ac_cv_prog_cc_c99=$ac_arg
5383fi
5384rm -f core conftest.err conftest.$ac_objext conftest.beam
5385  test "x$ac_cv_prog_cc_c99" != "xno" && break
5386done
5387rm -f conftest.$ac_ext
5388CC=$ac_save_CC
5389fi
5390
5391if test "x$ac_cv_prog_cc_c99" = xno
5392then :
5393  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5394printf "%s\n" "unsupported" >&6; }
5395else $as_nop
5396  if test "x$ac_cv_prog_cc_c99" = x
5397then :
5398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5399printf "%s\n" "none needed" >&6; }
5400else $as_nop
5401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5402printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5403     CC="$CC $ac_cv_prog_cc_c99"
5404fi
5405  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5406  ac_prog_cc_stdc=c99
5407fi
5408fi
5409if test x$ac_prog_cc_stdc = xno
5410then :
5411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5412printf %s "checking for $CC option to enable C89 features... " >&6; }
5413if test ${ac_cv_prog_cc_c89+y}
5414then :
5415  printf %s "(cached) " >&6
5416else $as_nop
5417  ac_cv_prog_cc_c89=no
5418ac_save_CC=$CC
5419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420/* end confdefs.h.  */
5421$ac_c_conftest_c89_program
5422_ACEOF
5423for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5424do
5425  CC="$ac_save_CC $ac_arg"
5426  if ac_fn_c_try_compile "$LINENO"
5427then :
5428  ac_cv_prog_cc_c89=$ac_arg
5429fi
5430rm -f core conftest.err conftest.$ac_objext conftest.beam
5431  test "x$ac_cv_prog_cc_c89" != "xno" && break
5432done
5433rm -f conftest.$ac_ext
5434CC=$ac_save_CC
5435fi
5436
5437if test "x$ac_cv_prog_cc_c89" = xno
5438then :
5439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5440printf "%s\n" "unsupported" >&6; }
5441else $as_nop
5442  if test "x$ac_cv_prog_cc_c89" = x
5443then :
5444  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5445printf "%s\n" "none needed" >&6; }
5446else $as_nop
5447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5448printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5449     CC="$CC $ac_cv_prog_cc_c89"
5450fi
5451  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5452  ac_prog_cc_stdc=c89
5453fi
5454fi
5455
5456ac_ext=c
5457ac_cpp='$CPP $CPPFLAGS'
5458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461
5462
5463  ac_ext=c
5464ac_cpp='$CPP $CPPFLAGS'
5465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5469printf %s "checking whether $CC understands -c and -o together... " >&6; }
5470if test ${am_cv_prog_cc_c_o+y}
5471then :
5472  printf %s "(cached) " >&6
5473else $as_nop
5474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475/* end confdefs.h.  */
5476
5477int
5478main (void)
5479{
5480
5481  ;
5482  return 0;
5483}
5484_ACEOF
5485  # Make sure it works both with $CC and with simple cc.
5486  # Following AC_PROG_CC_C_O, we do the test twice because some
5487  # compilers refuse to overwrite an existing .o file with -o,
5488  # though they will create one.
5489  am_cv_prog_cc_c_o=yes
5490  for am_i in 1 2; do
5491    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5492   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5493   ac_status=$?
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } \
5496         && test -f conftest2.$ac_objext; then
5497      : OK
5498    else
5499      am_cv_prog_cc_c_o=no
5500      break
5501    fi
5502  done
5503  rm -f core conftest*
5504  unset am_i
5505fi
5506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5507printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5508if test "$am_cv_prog_cc_c_o" != yes; then
5509   # Losing compiler, so override with the script.
5510   # FIXME: It is wrong to rewrite CC.
5511   # But if we don't then we get into trouble of one sort or another.
5512   # A longer-term fix would be to have automake use am__CC in this case,
5513   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5514   CC="$am_aux_dir/compile $CC"
5515fi
5516ac_ext=c
5517ac_cpp='$CPP $CPPFLAGS'
5518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5520ac_compiler_gnu=$ac_cv_c_compiler_gnu
5521
5522DEPDIR="${am__leading_dot}deps"
5523
5524ac_config_commands="$ac_config_commands depfiles"
5525
5526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5527printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5528cat > confinc.mk << 'END'
5529am__doit:
5530	@echo this is the am__doit target >confinc.out
5531.PHONY: am__doit
5532END
5533am__include="#"
5534am__quote=
5535# BSD make does it like this.
5536echo '.include "confinc.mk" # ignored' > confmf.BSD
5537# Other make implementations (GNU, Solaris 10, AIX) do it like this.
5538echo 'include confinc.mk # ignored' > confmf.GNU
5539_am_result=no
5540for s in GNU BSD; do
5541  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5542   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }
5546  case $?:`cat confinc.out 2>/dev/null` in #(
5547  '0:this is the am__doit target') :
5548    case $s in #(
5549  BSD) :
5550    am__include='.include' am__quote='"' ;; #(
5551  *) :
5552    am__include='include' am__quote='' ;;
5553esac ;; #(
5554  *) :
5555     ;;
5556esac
5557  if test "$am__include" != "#"; then
5558    _am_result="yes ($s style)"
5559    break
5560  fi
5561done
5562rm -f confinc.* confmf.*
5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5564printf "%s\n" "${_am_result}" >&6; }
5565
5566# Check whether --enable-dependency-tracking was given.
5567if test ${enable_dependency_tracking+y}
5568then :
5569  enableval=$enable_dependency_tracking;
5570fi
5571
5572if test "x$enable_dependency_tracking" != xno; then
5573  am_depcomp="$ac_aux_dir/depcomp"
5574  AMDEPBACKSLASH='\'
5575  am__nodep='_no'
5576fi
5577 if test "x$enable_dependency_tracking" != xno; then
5578  AMDEP_TRUE=
5579  AMDEP_FALSE='#'
5580else
5581  AMDEP_TRUE='#'
5582  AMDEP_FALSE=
5583fi
5584
5585
5586
5587depcc="$CC"   am_compiler_list=
5588
5589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5590printf %s "checking dependency style of $depcc... " >&6; }
5591if test ${am_cv_CC_dependencies_compiler_type+y}
5592then :
5593  printf %s "(cached) " >&6
5594else $as_nop
5595  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5596  # We make a subdir and do the tests there.  Otherwise we can end up
5597  # making bogus files that we don't know about and never remove.  For
5598  # instance it was reported that on HP-UX the gcc test will end up
5599  # making a dummy file named 'D' -- because '-MD' means "put the output
5600  # in D".
5601  rm -rf conftest.dir
5602  mkdir conftest.dir
5603  # Copy depcomp to subdir because otherwise we won't find it if we're
5604  # using a relative directory.
5605  cp "$am_depcomp" conftest.dir
5606  cd conftest.dir
5607  # We will build objects and dependencies in a subdirectory because
5608  # it helps to detect inapplicable dependency modes.  For instance
5609  # both Tru64's cc and ICC support -MD to output dependencies as a
5610  # side effect of compilation, but ICC will put the dependencies in
5611  # the current directory while Tru64 will put them in the object
5612  # directory.
5613  mkdir sub
5614
5615  am_cv_CC_dependencies_compiler_type=none
5616  if test "$am_compiler_list" = ""; then
5617     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5618  fi
5619  am__universal=false
5620  case " $depcc " in #(
5621     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5622     esac
5623
5624  for depmode in $am_compiler_list; do
5625    # Setup a source with many dependencies, because some compilers
5626    # like to wrap large dependency lists on column 80 (with \), and
5627    # we should not choose a depcomp mode which is confused by this.
5628    #
5629    # We need to recreate these files for each test, as the compiler may
5630    # overwrite some of them when testing with obscure command lines.
5631    # This happens at least with the AIX C compiler.
5632    : > sub/conftest.c
5633    for i in 1 2 3 4 5 6; do
5634      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5635      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5636      # Solaris 10 /bin/sh.
5637      echo '/* dummy */' > sub/conftst$i.h
5638    done
5639    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5640
5641    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5642    # mode.  It turns out that the SunPro C++ compiler does not properly
5643    # handle '-M -o', and we need to detect this.  Also, some Intel
5644    # versions had trouble with output in subdirs.
5645    am__obj=sub/conftest.${OBJEXT-o}
5646    am__minus_obj="-o $am__obj"
5647    case $depmode in
5648    gcc)
5649      # This depmode causes a compiler race in universal mode.
5650      test "$am__universal" = false || continue
5651      ;;
5652    nosideeffect)
5653      # After this tag, mechanisms are not by side-effect, so they'll
5654      # only be used when explicitly requested.
5655      if test "x$enable_dependency_tracking" = xyes; then
5656	continue
5657      else
5658	break
5659      fi
5660      ;;
5661    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5662      # This compiler won't grok '-c -o', but also, the minuso test has
5663      # not run yet.  These depmodes are late enough in the game, and
5664      # so weak that their functioning should not be impacted.
5665      am__obj=conftest.${OBJEXT-o}
5666      am__minus_obj=
5667      ;;
5668    none) break ;;
5669    esac
5670    if depmode=$depmode \
5671       source=sub/conftest.c object=$am__obj \
5672       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5673       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5674         >/dev/null 2>conftest.err &&
5675       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5676       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5677       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5678       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5679      # icc doesn't choke on unknown options, it will just issue warnings
5680      # or remarks (even with -Werror).  So we grep stderr for any message
5681      # that says an option was ignored or not supported.
5682      # When given -MP, icc 7.0 and 7.1 complain thusly:
5683      #   icc: Command line warning: ignoring option '-M'; no argument required
5684      # The diagnosis changed in icc 8.0:
5685      #   icc: Command line remark: option '-MP' not supported
5686      if (grep 'ignoring option' conftest.err ||
5687          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5688        am_cv_CC_dependencies_compiler_type=$depmode
5689        break
5690      fi
5691    fi
5692  done
5693
5694  cd ..
5695  rm -rf conftest.dir
5696else
5697  am_cv_CC_dependencies_compiler_type=none
5698fi
5699
5700fi
5701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5702printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5703CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5704
5705 if
5706  test "x$enable_dependency_tracking" != xno \
5707  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5708  am__fastdepCC_TRUE=
5709  am__fastdepCC_FALSE='#'
5710else
5711  am__fastdepCC_TRUE='#'
5712  am__fastdepCC_FALSE=
5713fi
5714
5715
5716ac_ext=c
5717ac_cpp='$CPP $CPPFLAGS'
5718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5722printf %s "checking how to run the C preprocessor... " >&6; }
5723# On Suns, sometimes $CPP names a directory.
5724if test -n "$CPP" && test -d "$CPP"; then
5725  CPP=
5726fi
5727if test -z "$CPP"; then
5728  if test ${ac_cv_prog_CPP+y}
5729then :
5730  printf %s "(cached) " >&6
5731else $as_nop
5732      # Double quotes because $CC needs to be expanded
5733    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5734    do
5735      ac_preproc_ok=false
5736for ac_c_preproc_warn_flag in '' yes
5737do
5738  # Use a header file that comes with gcc, so configuring glibc
5739  # with a fresh cross-compiler works.
5740  # On the NeXT, cc -E runs the code through the compiler's parser,
5741  # not just through cpp. "Syntax error" is here to catch this case.
5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744#include <limits.h>
5745		     Syntax error
5746_ACEOF
5747if ac_fn_c_try_cpp "$LINENO"
5748then :
5749
5750else $as_nop
5751  # Broken: fails on valid input.
5752continue
5753fi
5754rm -f conftest.err conftest.i conftest.$ac_ext
5755
5756  # OK, works on sane cases.  Now check whether nonexistent headers
5757  # can be detected and how.
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760#include <ac_nonexistent.h>
5761_ACEOF
5762if ac_fn_c_try_cpp "$LINENO"
5763then :
5764  # Broken: success on invalid input.
5765continue
5766else $as_nop
5767  # Passes both tests.
5768ac_preproc_ok=:
5769break
5770fi
5771rm -f conftest.err conftest.i conftest.$ac_ext
5772
5773done
5774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5775rm -f conftest.i conftest.err conftest.$ac_ext
5776if $ac_preproc_ok
5777then :
5778  break
5779fi
5780
5781    done
5782    ac_cv_prog_CPP=$CPP
5783
5784fi
5785  CPP=$ac_cv_prog_CPP
5786else
5787  ac_cv_prog_CPP=$CPP
5788fi
5789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5790printf "%s\n" "$CPP" >&6; }
5791ac_preproc_ok=false
5792for ac_c_preproc_warn_flag in '' yes
5793do
5794  # Use a header file that comes with gcc, so configuring glibc
5795  # with a fresh cross-compiler works.
5796  # On the NeXT, cc -E runs the code through the compiler's parser,
5797  # not just through cpp. "Syntax error" is here to catch this case.
5798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h.  */
5800#include <limits.h>
5801		     Syntax error
5802_ACEOF
5803if ac_fn_c_try_cpp "$LINENO"
5804then :
5805
5806else $as_nop
5807  # Broken: fails on valid input.
5808continue
5809fi
5810rm -f conftest.err conftest.i conftest.$ac_ext
5811
5812  # OK, works on sane cases.  Now check whether nonexistent headers
5813  # can be detected and how.
5814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815/* end confdefs.h.  */
5816#include <ac_nonexistent.h>
5817_ACEOF
5818if ac_fn_c_try_cpp "$LINENO"
5819then :
5820  # Broken: success on invalid input.
5821continue
5822else $as_nop
5823  # Passes both tests.
5824ac_preproc_ok=:
5825break
5826fi
5827rm -f conftest.err conftest.i conftest.$ac_ext
5828
5829done
5830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5831rm -f conftest.i conftest.err conftest.$ac_ext
5832if $ac_preproc_ok
5833then :
5834
5835else $as_nop
5836  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5838as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5839See \`config.log' for more details" "$LINENO" 5; }
5840fi
5841
5842ac_ext=c
5843ac_cpp='$CPP $CPPFLAGS'
5844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5846ac_compiler_gnu=$ac_cv_c_compiler_gnu
5847
5848ac_ext=c
5849ac_cpp='$CPP $CPPFLAGS'
5850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853
5854
5855
5856
5857  if test -n "$ac_tool_prefix"; then
5858  for ac_prog in ar lib "link -lib"
5859  do
5860    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5861set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863printf %s "checking for $ac_word... " >&6; }
5864if test ${ac_cv_prog_AR+y}
5865then :
5866  printf %s "(cached) " >&6
5867else $as_nop
5868  if test -n "$AR"; then
5869  ac_cv_prog_AR="$AR" # Let the user override the test.
5870else
5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872for as_dir in $PATH
5873do
5874  IFS=$as_save_IFS
5875  case $as_dir in #(((
5876    '') as_dir=./ ;;
5877    */) ;;
5878    *) as_dir=$as_dir/ ;;
5879  esac
5880    for ac_exec_ext in '' $ac_executable_extensions; do
5881  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5882    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5883    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5884    break 2
5885  fi
5886done
5887  done
5888IFS=$as_save_IFS
5889
5890fi
5891fi
5892AR=$ac_cv_prog_AR
5893if test -n "$AR"; then
5894  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5895printf "%s\n" "$AR" >&6; }
5896else
5897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898printf "%s\n" "no" >&6; }
5899fi
5900
5901
5902    test -n "$AR" && break
5903  done
5904fi
5905if test -z "$AR"; then
5906  ac_ct_AR=$AR
5907  for ac_prog in ar lib "link -lib"
5908do
5909  # Extract the first word of "$ac_prog", so it can be a program name with args.
5910set dummy $ac_prog; ac_word=$2
5911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912printf %s "checking for $ac_word... " >&6; }
5913if test ${ac_cv_prog_ac_ct_AR+y}
5914then :
5915  printf %s "(cached) " >&6
5916else $as_nop
5917  if test -n "$ac_ct_AR"; then
5918  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5919else
5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH
5922do
5923  IFS=$as_save_IFS
5924  case $as_dir in #(((
5925    '') as_dir=./ ;;
5926    */) ;;
5927    *) as_dir=$as_dir/ ;;
5928  esac
5929    for ac_exec_ext in '' $ac_executable_extensions; do
5930  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5931    ac_cv_prog_ac_ct_AR="$ac_prog"
5932    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5933    break 2
5934  fi
5935done
5936  done
5937IFS=$as_save_IFS
5938
5939fi
5940fi
5941ac_ct_AR=$ac_cv_prog_ac_ct_AR
5942if test -n "$ac_ct_AR"; then
5943  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5944printf "%s\n" "$ac_ct_AR" >&6; }
5945else
5946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947printf "%s\n" "no" >&6; }
5948fi
5949
5950
5951  test -n "$ac_ct_AR" && break
5952done
5953
5954  if test "x$ac_ct_AR" = x; then
5955    AR="false"
5956  else
5957    case $cross_compiling:$ac_tool_warned in
5958yes:)
5959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5961ac_tool_warned=yes ;;
5962esac
5963    AR=$ac_ct_AR
5964  fi
5965fi
5966
5967: ${AR=ar}
5968
5969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5970printf %s "checking the archiver ($AR) interface... " >&6; }
5971if test ${am_cv_ar_interface+y}
5972then :
5973  printf %s "(cached) " >&6
5974else $as_nop
5975  ac_ext=c
5976ac_cpp='$CPP $CPPFLAGS'
5977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980
5981   am_cv_ar_interface=ar
5982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984int some_variable = 0;
5985_ACEOF
5986if ac_fn_c_try_compile "$LINENO"
5987then :
5988  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5989      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5990  (eval $am_ar_try) 2>&5
5991  ac_status=$?
5992  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993  test $ac_status = 0; }
5994      if test "$ac_status" -eq 0; then
5995        am_cv_ar_interface=ar
5996      else
5997        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5998        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5999  (eval $am_ar_try) 2>&5
6000  ac_status=$?
6001  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002  test $ac_status = 0; }
6003        if test "$ac_status" -eq 0; then
6004          am_cv_ar_interface=lib
6005        else
6006          am_cv_ar_interface=unknown
6007        fi
6008      fi
6009      rm -f conftest.lib libconftest.a
6010
6011fi
6012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6013   ac_ext=c
6014ac_cpp='$CPP $CPPFLAGS'
6015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018
6019fi
6020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6021printf "%s\n" "$am_cv_ar_interface" >&6; }
6022
6023case $am_cv_ar_interface in
6024ar)
6025  ;;
6026lib)
6027  # Microsoft lib, so override with the ar-lib wrapper script.
6028  # FIXME: It is wrong to rewrite AR.
6029  # But if we don't then we get into trouble of one sort or another.
6030  # A longer-term fix would be to have automake use am__AR in this case,
6031  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6032  # similar.
6033  AR="$am_aux_dir/ar-lib $AR"
6034  ;;
6035unknown)
6036  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6037  ;;
6038esac
6039
6040
6041case `pwd` in
6042  *\ * | *\	*)
6043    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6044printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6045esac
6046
6047
6048
6049macro_version='2.4.7'
6050macro_revision='2.4.7'
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065ltmain=$ac_aux_dir/ltmain.sh
6066
6067# Backslashify metacharacters that are still active within
6068# double-quoted strings.
6069sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6070
6071# Same as above, but do not quote variable references.
6072double_quote_subst='s/\(["`\\]\)/\\\1/g'
6073
6074# Sed substitution to delay expansion of an escaped shell variable in a
6075# double_quote_subst'ed string.
6076delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6077
6078# Sed substitution to delay expansion of an escaped single quote.
6079delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6080
6081# Sed substitution to avoid accidental globbing in evaled expressions
6082no_glob_subst='s/\*/\\\*/g'
6083
6084ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6085ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6086ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6087
6088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6089printf %s "checking how to print strings... " >&6; }
6090# Test print first, because it will be a builtin if present.
6091if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6092   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6093  ECHO='print -r --'
6094elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6095  ECHO='printf %s\n'
6096else
6097  # Use this function as a fallback that always works.
6098  func_fallback_echo ()
6099  {
6100    eval 'cat <<_LTECHO_EOF
6101$1
6102_LTECHO_EOF'
6103  }
6104  ECHO='func_fallback_echo'
6105fi
6106
6107# func_echo_all arg...
6108# Invoke $ECHO with all args, space-separated.
6109func_echo_all ()
6110{
6111    $ECHO ""
6112}
6113
6114case $ECHO in
6115  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6116printf "%s\n" "printf" >&6; } ;;
6117  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6118printf "%s\n" "print -r" >&6; } ;;
6119  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6120printf "%s\n" "cat" >&6; } ;;
6121esac
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6137printf %s "checking for a sed that does not truncate output... " >&6; }
6138if test ${ac_cv_path_SED+y}
6139then :
6140  printf %s "(cached) " >&6
6141else $as_nop
6142            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6143     for ac_i in 1 2 3 4 5 6 7; do
6144       ac_script="$ac_script$as_nl$ac_script"
6145     done
6146     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6147     { ac_script=; unset ac_script;}
6148     if test -z "$SED"; then
6149  ac_path_SED_found=false
6150  # Loop through the user's path and test for each of PROGNAME-LIST
6151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154  IFS=$as_save_IFS
6155  case $as_dir in #(((
6156    '') as_dir=./ ;;
6157    */) ;;
6158    *) as_dir=$as_dir/ ;;
6159  esac
6160    for ac_prog in sed gsed
6161   do
6162    for ac_exec_ext in '' $ac_executable_extensions; do
6163      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6164      as_fn_executable_p "$ac_path_SED" || continue
6165# Check for GNU ac_path_SED and select it if it is found.
6166  # Check for GNU $ac_path_SED
6167case `"$ac_path_SED" --version 2>&1` in
6168*GNU*)
6169  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6170*)
6171  ac_count=0
6172  printf %s 0123456789 >"conftest.in"
6173  while :
6174  do
6175    cat "conftest.in" "conftest.in" >"conftest.tmp"
6176    mv "conftest.tmp" "conftest.in"
6177    cp "conftest.in" "conftest.nl"
6178    printf "%s\n" '' >> "conftest.nl"
6179    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6180    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6181    as_fn_arith $ac_count + 1 && ac_count=$as_val
6182    if test $ac_count -gt ${ac_path_SED_max-0}; then
6183      # Best one so far, save it but keep looking for a better one
6184      ac_cv_path_SED="$ac_path_SED"
6185      ac_path_SED_max=$ac_count
6186    fi
6187    # 10*(2^10) chars as input seems more than enough
6188    test $ac_count -gt 10 && break
6189  done
6190  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6191esac
6192
6193      $ac_path_SED_found && break 3
6194    done
6195  done
6196  done
6197IFS=$as_save_IFS
6198  if test -z "$ac_cv_path_SED"; then
6199    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6200  fi
6201else
6202  ac_cv_path_SED=$SED
6203fi
6204
6205fi
6206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6207printf "%s\n" "$ac_cv_path_SED" >&6; }
6208 SED="$ac_cv_path_SED"
6209  rm -f conftest.sed
6210
6211test -z "$SED" && SED=sed
6212Xsed="$SED -e 1s/^X//"
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6225printf %s "checking for fgrep... " >&6; }
6226if test ${ac_cv_path_FGREP+y}
6227then :
6228  printf %s "(cached) " >&6
6229else $as_nop
6230  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6231   then ac_cv_path_FGREP="$GREP -F"
6232   else
6233     if test -z "$FGREP"; then
6234  ac_path_FGREP_found=false
6235  # Loop through the user's path and test for each of PROGNAME-LIST
6236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6238do
6239  IFS=$as_save_IFS
6240  case $as_dir in #(((
6241    '') as_dir=./ ;;
6242    */) ;;
6243    *) as_dir=$as_dir/ ;;
6244  esac
6245    for ac_prog in fgrep
6246   do
6247    for ac_exec_ext in '' $ac_executable_extensions; do
6248      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6249      as_fn_executable_p "$ac_path_FGREP" || continue
6250# Check for GNU ac_path_FGREP and select it if it is found.
6251  # Check for GNU $ac_path_FGREP
6252case `"$ac_path_FGREP" --version 2>&1` in
6253*GNU*)
6254  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6255*)
6256  ac_count=0
6257  printf %s 0123456789 >"conftest.in"
6258  while :
6259  do
6260    cat "conftest.in" "conftest.in" >"conftest.tmp"
6261    mv "conftest.tmp" "conftest.in"
6262    cp "conftest.in" "conftest.nl"
6263    printf "%s\n" 'FGREP' >> "conftest.nl"
6264    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6265    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6266    as_fn_arith $ac_count + 1 && ac_count=$as_val
6267    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6268      # Best one so far, save it but keep looking for a better one
6269      ac_cv_path_FGREP="$ac_path_FGREP"
6270      ac_path_FGREP_max=$ac_count
6271    fi
6272    # 10*(2^10) chars as input seems more than enough
6273    test $ac_count -gt 10 && break
6274  done
6275  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6276esac
6277
6278      $ac_path_FGREP_found && break 3
6279    done
6280  done
6281  done
6282IFS=$as_save_IFS
6283  if test -z "$ac_cv_path_FGREP"; then
6284    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6285  fi
6286else
6287  ac_cv_path_FGREP=$FGREP
6288fi
6289
6290   fi
6291fi
6292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6293printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6294 FGREP="$ac_cv_path_FGREP"
6295
6296
6297test -z "$GREP" && GREP=grep
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317# Check whether --with-gnu-ld was given.
6318if test ${with_gnu_ld+y}
6319then :
6320  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6321else $as_nop
6322  with_gnu_ld=no
6323fi
6324
6325ac_prog=ld
6326if test yes = "$GCC"; then
6327  # Check if gcc -print-prog-name=ld gives a path.
6328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6329printf %s "checking for ld used by $CC... " >&6; }
6330  case $host in
6331  *-*-mingw*)
6332    # gcc leaves a trailing carriage return, which upsets mingw
6333    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6334  *)
6335    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6336  esac
6337  case $ac_prog in
6338    # Accept absolute paths.
6339    [\\/]* | ?:[\\/]*)
6340      re_direlt='/[^/][^/]*/\.\./'
6341      # Canonicalize the pathname of ld
6342      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6343      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6344	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6345      done
6346      test -z "$LD" && LD=$ac_prog
6347      ;;
6348  "")
6349    # If it fails, then pretend we aren't using GCC.
6350    ac_prog=ld
6351    ;;
6352  *)
6353    # If it is relative, then search for the first ld in PATH.
6354    with_gnu_ld=unknown
6355    ;;
6356  esac
6357elif test yes = "$with_gnu_ld"; then
6358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6359printf %s "checking for GNU ld... " >&6; }
6360else
6361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6362printf %s "checking for non-GNU ld... " >&6; }
6363fi
6364if test ${lt_cv_path_LD+y}
6365then :
6366  printf %s "(cached) " >&6
6367else $as_nop
6368  if test -z "$LD"; then
6369  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6370  for ac_dir in $PATH; do
6371    IFS=$lt_save_ifs
6372    test -z "$ac_dir" && ac_dir=.
6373    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6374      lt_cv_path_LD=$ac_dir/$ac_prog
6375      # Check to see if the program is GNU ld.  I'd rather use --version,
6376      # but apparently some variants of GNU ld only accept -v.
6377      # Break only if it was the GNU/non-GNU ld that we prefer.
6378      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6379      *GNU* | *'with BFD'*)
6380	test no != "$with_gnu_ld" && break
6381	;;
6382      *)
6383	test yes != "$with_gnu_ld" && break
6384	;;
6385      esac
6386    fi
6387  done
6388  IFS=$lt_save_ifs
6389else
6390  lt_cv_path_LD=$LD # Let the user override the test with a path.
6391fi
6392fi
6393
6394LD=$lt_cv_path_LD
6395if test -n "$LD"; then
6396  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6397printf "%s\n" "$LD" >&6; }
6398else
6399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400printf "%s\n" "no" >&6; }
6401fi
6402test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6404printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6405if test ${lt_cv_prog_gnu_ld+y}
6406then :
6407  printf %s "(cached) " >&6
6408else $as_nop
6409  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6410case `$LD -v 2>&1 </dev/null` in
6411*GNU* | *'with BFD'*)
6412  lt_cv_prog_gnu_ld=yes
6413  ;;
6414*)
6415  lt_cv_prog_gnu_ld=no
6416  ;;
6417esac
6418fi
6419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6420printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6421with_gnu_ld=$lt_cv_prog_gnu_ld
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6432printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6433if test ${lt_cv_path_NM+y}
6434then :
6435  printf %s "(cached) " >&6
6436else $as_nop
6437  if test -n "$NM"; then
6438  # Let the user override the test.
6439  lt_cv_path_NM=$NM
6440else
6441  lt_nm_to_check=${ac_tool_prefix}nm
6442  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6443    lt_nm_to_check="$lt_nm_to_check nm"
6444  fi
6445  for lt_tmp_nm in $lt_nm_to_check; do
6446    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6447    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6448      IFS=$lt_save_ifs
6449      test -z "$ac_dir" && ac_dir=.
6450      tmp_nm=$ac_dir/$lt_tmp_nm
6451      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6452	# Check to see if the nm accepts a BSD-compat flag.
6453	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6454	#   nm: unknown option "B" ignored
6455	# Tru64's nm complains that /dev/null is an invalid object file
6456	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6457	case $build_os in
6458	mingw*) lt_bad_file=conftest.nm/nofile ;;
6459	*) lt_bad_file=/dev/null ;;
6460	esac
6461	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6462	*$lt_bad_file* | *'Invalid file or object type'*)
6463	  lt_cv_path_NM="$tmp_nm -B"
6464	  break 2
6465	  ;;
6466	*)
6467	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6468	  */dev/null*)
6469	    lt_cv_path_NM="$tmp_nm -p"
6470	    break 2
6471	    ;;
6472	  *)
6473	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6474	    continue # so that we can try to find one that supports BSD flags
6475	    ;;
6476	  esac
6477	  ;;
6478	esac
6479      fi
6480    done
6481    IFS=$lt_save_ifs
6482  done
6483  : ${lt_cv_path_NM=no}
6484fi
6485fi
6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6487printf "%s\n" "$lt_cv_path_NM" >&6; }
6488if test no != "$lt_cv_path_NM"; then
6489  NM=$lt_cv_path_NM
6490else
6491  # Didn't find any BSD compatible name lister, look for dumpbin.
6492  if test -n "$DUMPBIN"; then :
6493    # Let the user override the test.
6494  else
6495    if test -n "$ac_tool_prefix"; then
6496  for ac_prog in dumpbin "link -dump"
6497  do
6498    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6499set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501printf %s "checking for $ac_word... " >&6; }
6502if test ${ac_cv_prog_DUMPBIN+y}
6503then :
6504  printf %s "(cached) " >&6
6505else $as_nop
6506  if test -n "$DUMPBIN"; then
6507  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512  IFS=$as_save_IFS
6513  case $as_dir in #(((
6514    '') as_dir=./ ;;
6515    */) ;;
6516    *) as_dir=$as_dir/ ;;
6517  esac
6518    for ac_exec_ext in '' $ac_executable_extensions; do
6519  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6520    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6521    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6522    break 2
6523  fi
6524done
6525  done
6526IFS=$as_save_IFS
6527
6528fi
6529fi
6530DUMPBIN=$ac_cv_prog_DUMPBIN
6531if test -n "$DUMPBIN"; then
6532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6533printf "%s\n" "$DUMPBIN" >&6; }
6534else
6535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536printf "%s\n" "no" >&6; }
6537fi
6538
6539
6540    test -n "$DUMPBIN" && break
6541  done
6542fi
6543if test -z "$DUMPBIN"; then
6544  ac_ct_DUMPBIN=$DUMPBIN
6545  for ac_prog in dumpbin "link -dump"
6546do
6547  # Extract the first word of "$ac_prog", so it can be a program name with args.
6548set dummy $ac_prog; ac_word=$2
6549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550printf %s "checking for $ac_word... " >&6; }
6551if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6552then :
6553  printf %s "(cached) " >&6
6554else $as_nop
6555  if test -n "$ac_ct_DUMPBIN"; then
6556  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6557else
6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH
6560do
6561  IFS=$as_save_IFS
6562  case $as_dir in #(((
6563    '') as_dir=./ ;;
6564    */) ;;
6565    *) as_dir=$as_dir/ ;;
6566  esac
6567    for ac_exec_ext in '' $ac_executable_extensions; do
6568  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6569    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6570    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6571    break 2
6572  fi
6573done
6574  done
6575IFS=$as_save_IFS
6576
6577fi
6578fi
6579ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6580if test -n "$ac_ct_DUMPBIN"; then
6581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6582printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6583else
6584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585printf "%s\n" "no" >&6; }
6586fi
6587
6588
6589  test -n "$ac_ct_DUMPBIN" && break
6590done
6591
6592  if test "x$ac_ct_DUMPBIN" = x; then
6593    DUMPBIN=":"
6594  else
6595    case $cross_compiling:$ac_tool_warned in
6596yes:)
6597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599ac_tool_warned=yes ;;
6600esac
6601    DUMPBIN=$ac_ct_DUMPBIN
6602  fi
6603fi
6604
6605    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6606    *COFF*)
6607      DUMPBIN="$DUMPBIN -symbols -headers"
6608      ;;
6609    *)
6610      DUMPBIN=:
6611      ;;
6612    esac
6613  fi
6614
6615  if test : != "$DUMPBIN"; then
6616    NM=$DUMPBIN
6617  fi
6618fi
6619test -z "$NM" && NM=nm
6620
6621
6622
6623
6624
6625
6626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6627printf %s "checking the name lister ($NM) interface... " >&6; }
6628if test ${lt_cv_nm_interface+y}
6629then :
6630  printf %s "(cached) " >&6
6631else $as_nop
6632  lt_cv_nm_interface="BSD nm"
6633  echo "int some_variable = 0;" > conftest.$ac_ext
6634  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6635  (eval "$ac_compile" 2>conftest.err)
6636  cat conftest.err >&5
6637  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6638  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6639  cat conftest.err >&5
6640  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6641  cat conftest.out >&5
6642  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6643    lt_cv_nm_interface="MS dumpbin"
6644  fi
6645  rm -f conftest*
6646fi
6647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6648printf "%s\n" "$lt_cv_nm_interface" >&6; }
6649
6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6651printf %s "checking whether ln -s works... " >&6; }
6652LN_S=$as_ln_s
6653if test "$LN_S" = "ln -s"; then
6654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6655printf "%s\n" "yes" >&6; }
6656else
6657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6658printf "%s\n" "no, using $LN_S" >&6; }
6659fi
6660
6661# find the maximum length of command line arguments
6662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6663printf %s "checking the maximum length of command line arguments... " >&6; }
6664if test ${lt_cv_sys_max_cmd_len+y}
6665then :
6666  printf %s "(cached) " >&6
6667else $as_nop
6668    i=0
6669  teststring=ABCD
6670
6671  case $build_os in
6672  msdosdjgpp*)
6673    # On DJGPP, this test can blow up pretty badly due to problems in libc
6674    # (any single argument exceeding 2000 bytes causes a buffer overrun
6675    # during glob expansion).  Even if it were fixed, the result of this
6676    # check would be larger than it should be.
6677    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6678    ;;
6679
6680  gnu*)
6681    # Under GNU Hurd, this test is not required because there is
6682    # no limit to the length of command line arguments.
6683    # Libtool will interpret -1 as no limit whatsoever
6684    lt_cv_sys_max_cmd_len=-1;
6685    ;;
6686
6687  cygwin* | mingw* | cegcc*)
6688    # On Win9x/ME, this test blows up -- it succeeds, but takes
6689    # about 5 minutes as the teststring grows exponentially.
6690    # Worse, since 9x/ME are not pre-emptively multitasking,
6691    # you end up with a "frozen" computer, even though with patience
6692    # the test eventually succeeds (with a max line length of 256k).
6693    # Instead, let's just punt: use the minimum linelength reported by
6694    # all of the supported platforms: 8192 (on NT/2K/XP).
6695    lt_cv_sys_max_cmd_len=8192;
6696    ;;
6697
6698  mint*)
6699    # On MiNT this can take a long time and run out of memory.
6700    lt_cv_sys_max_cmd_len=8192;
6701    ;;
6702
6703  amigaos*)
6704    # On AmigaOS with pdksh, this test takes hours, literally.
6705    # So we just punt and use a minimum line length of 8192.
6706    lt_cv_sys_max_cmd_len=8192;
6707    ;;
6708
6709  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6710    # This has been around since 386BSD, at least.  Likely further.
6711    if test -x /sbin/sysctl; then
6712      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6713    elif test -x /usr/sbin/sysctl; then
6714      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6715    else
6716      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6717    fi
6718    # And add a safety zone
6719    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6720    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6721    ;;
6722
6723  interix*)
6724    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6725    lt_cv_sys_max_cmd_len=196608
6726    ;;
6727
6728  os2*)
6729    # The test takes a long time on OS/2.
6730    lt_cv_sys_max_cmd_len=8192
6731    ;;
6732
6733  osf*)
6734    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6735    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6736    # nice to cause kernel panics so lets avoid the loop below.
6737    # First set a reasonable default.
6738    lt_cv_sys_max_cmd_len=16384
6739    #
6740    if test -x /sbin/sysconfig; then
6741      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6742        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6743      esac
6744    fi
6745    ;;
6746  sco3.2v5*)
6747    lt_cv_sys_max_cmd_len=102400
6748    ;;
6749  sysv5* | sco5v6* | sysv4.2uw2*)
6750    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6751    if test -n "$kargmax"; then
6752      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6753    else
6754      lt_cv_sys_max_cmd_len=32768
6755    fi
6756    ;;
6757  *)
6758    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6759    if test -n "$lt_cv_sys_max_cmd_len" && \
6760       test undefined != "$lt_cv_sys_max_cmd_len"; then
6761      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6762      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6763    else
6764      # Make teststring a little bigger before we do anything with it.
6765      # a 1K string should be a reasonable start.
6766      for i in 1 2 3 4 5 6 7 8; do
6767        teststring=$teststring$teststring
6768      done
6769      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6770      # If test is not a shell built-in, we'll probably end up computing a
6771      # maximum length that is only half of the actual maximum length, but
6772      # we can't tell.
6773      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6774	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6775	      test 17 != "$i" # 1/2 MB should be enough
6776      do
6777        i=`expr $i + 1`
6778        teststring=$teststring$teststring
6779      done
6780      # Only check the string length outside the loop.
6781      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6782      teststring=
6783      # Add a significant safety factor because C++ compilers can tack on
6784      # massive amounts of additional arguments before passing them to the
6785      # linker.  It appears as though 1/2 is a usable value.
6786      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6787    fi
6788    ;;
6789  esac
6790
6791fi
6792
6793if test -n "$lt_cv_sys_max_cmd_len"; then
6794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6795printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6796else
6797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6798printf "%s\n" "none" >&6; }
6799fi
6800max_cmd_len=$lt_cv_sys_max_cmd_len
6801
6802
6803
6804
6805
6806
6807: ${CP="cp -f"}
6808: ${MV="mv -f"}
6809: ${RM="rm -f"}
6810
6811if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6812  lt_unset=unset
6813else
6814  lt_unset=false
6815fi
6816
6817
6818
6819
6820
6821# test EBCDIC or ASCII
6822case `echo X|tr X '\101'` in
6823 A) # ASCII based system
6824    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6825  lt_SP2NL='tr \040 \012'
6826  lt_NL2SP='tr \015\012 \040\040'
6827  ;;
6828 *) # EBCDIC based system
6829  lt_SP2NL='tr \100 \n'
6830  lt_NL2SP='tr \r\n \100\100'
6831  ;;
6832esac
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6843printf %s "checking how to convert $build file names to $host format... " >&6; }
6844if test ${lt_cv_to_host_file_cmd+y}
6845then :
6846  printf %s "(cached) " >&6
6847else $as_nop
6848  case $host in
6849  *-*-mingw* )
6850    case $build in
6851      *-*-mingw* ) # actually msys
6852        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6853        ;;
6854      *-*-cygwin* )
6855        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6856        ;;
6857      * ) # otherwise, assume *nix
6858        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6859        ;;
6860    esac
6861    ;;
6862  *-*-cygwin* )
6863    case $build in
6864      *-*-mingw* ) # actually msys
6865        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6866        ;;
6867      *-*-cygwin* )
6868        lt_cv_to_host_file_cmd=func_convert_file_noop
6869        ;;
6870      * ) # otherwise, assume *nix
6871        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6872        ;;
6873    esac
6874    ;;
6875  * ) # unhandled hosts (and "normal" native builds)
6876    lt_cv_to_host_file_cmd=func_convert_file_noop
6877    ;;
6878esac
6879
6880fi
6881
6882to_host_file_cmd=$lt_cv_to_host_file_cmd
6883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6884printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6885
6886
6887
6888
6889
6890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6891printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6892if test ${lt_cv_to_tool_file_cmd+y}
6893then :
6894  printf %s "(cached) " >&6
6895else $as_nop
6896  #assume ordinary cross tools, or native build.
6897lt_cv_to_tool_file_cmd=func_convert_file_noop
6898case $host in
6899  *-*-mingw* )
6900    case $build in
6901      *-*-mingw* ) # actually msys
6902        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6903        ;;
6904    esac
6905    ;;
6906esac
6907
6908fi
6909
6910to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6912printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6913
6914
6915
6916
6917
6918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6919printf %s "checking for $LD option to reload object files... " >&6; }
6920if test ${lt_cv_ld_reload_flag+y}
6921then :
6922  printf %s "(cached) " >&6
6923else $as_nop
6924  lt_cv_ld_reload_flag='-r'
6925fi
6926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6927printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6928reload_flag=$lt_cv_ld_reload_flag
6929case $reload_flag in
6930"" | " "*) ;;
6931*) reload_flag=" $reload_flag" ;;
6932esac
6933reload_cmds='$LD$reload_flag -o $output$reload_objs'
6934case $host_os in
6935  cygwin* | mingw* | pw32* | cegcc*)
6936    if test yes != "$GCC"; then
6937      reload_cmds=false
6938    fi
6939    ;;
6940  darwin*)
6941    if test yes = "$GCC"; then
6942      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6943    else
6944      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6945    fi
6946    ;;
6947esac
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957if test -n "$ac_tool_prefix"; then
6958  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6959set dummy ${ac_tool_prefix}file; ac_word=$2
6960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961printf %s "checking for $ac_word... " >&6; }
6962if test ${ac_cv_prog_FILECMD+y}
6963then :
6964  printf %s "(cached) " >&6
6965else $as_nop
6966  if test -n "$FILECMD"; then
6967  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6968else
6969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972  IFS=$as_save_IFS
6973  case $as_dir in #(((
6974    '') as_dir=./ ;;
6975    */) ;;
6976    *) as_dir=$as_dir/ ;;
6977  esac
6978    for ac_exec_ext in '' $ac_executable_extensions; do
6979  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6980    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6981    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6982    break 2
6983  fi
6984done
6985  done
6986IFS=$as_save_IFS
6987
6988fi
6989fi
6990FILECMD=$ac_cv_prog_FILECMD
6991if test -n "$FILECMD"; then
6992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6993printf "%s\n" "$FILECMD" >&6; }
6994else
6995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996printf "%s\n" "no" >&6; }
6997fi
6998
6999
7000fi
7001if test -z "$ac_cv_prog_FILECMD"; then
7002  ac_ct_FILECMD=$FILECMD
7003  # Extract the first word of "file", so it can be a program name with args.
7004set dummy file; ac_word=$2
7005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006printf %s "checking for $ac_word... " >&6; }
7007if test ${ac_cv_prog_ac_ct_FILECMD+y}
7008then :
7009  printf %s "(cached) " >&6
7010else $as_nop
7011  if test -n "$ac_ct_FILECMD"; then
7012  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7013else
7014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017  IFS=$as_save_IFS
7018  case $as_dir in #(((
7019    '') as_dir=./ ;;
7020    */) ;;
7021    *) as_dir=$as_dir/ ;;
7022  esac
7023    for ac_exec_ext in '' $ac_executable_extensions; do
7024  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7025    ac_cv_prog_ac_ct_FILECMD="file"
7026    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7027    break 2
7028  fi
7029done
7030  done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7036if test -n "$ac_ct_FILECMD"; then
7037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7038printf "%s\n" "$ac_ct_FILECMD" >&6; }
7039else
7040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041printf "%s\n" "no" >&6; }
7042fi
7043
7044  if test "x$ac_ct_FILECMD" = x; then
7045    FILECMD=":"
7046  else
7047    case $cross_compiling:$ac_tool_warned in
7048yes:)
7049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051ac_tool_warned=yes ;;
7052esac
7053    FILECMD=$ac_ct_FILECMD
7054  fi
7055else
7056  FILECMD="$ac_cv_prog_FILECMD"
7057fi
7058
7059
7060
7061
7062
7063
7064
7065if test -n "$ac_tool_prefix"; then
7066  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7067set dummy ${ac_tool_prefix}objdump; ac_word=$2
7068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069printf %s "checking for $ac_word... " >&6; }
7070if test ${ac_cv_prog_OBJDUMP+y}
7071then :
7072  printf %s "(cached) " >&6
7073else $as_nop
7074  if test -n "$OBJDUMP"; then
7075  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7076else
7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080  IFS=$as_save_IFS
7081  case $as_dir in #(((
7082    '') as_dir=./ ;;
7083    */) ;;
7084    *) as_dir=$as_dir/ ;;
7085  esac
7086    for ac_exec_ext in '' $ac_executable_extensions; do
7087  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7088    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7089    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7090    break 2
7091  fi
7092done
7093  done
7094IFS=$as_save_IFS
7095
7096fi
7097fi
7098OBJDUMP=$ac_cv_prog_OBJDUMP
7099if test -n "$OBJDUMP"; then
7100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7101printf "%s\n" "$OBJDUMP" >&6; }
7102else
7103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104printf "%s\n" "no" >&6; }
7105fi
7106
7107
7108fi
7109if test -z "$ac_cv_prog_OBJDUMP"; then
7110  ac_ct_OBJDUMP=$OBJDUMP
7111  # Extract the first word of "objdump", so it can be a program name with args.
7112set dummy objdump; ac_word=$2
7113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114printf %s "checking for $ac_word... " >&6; }
7115if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7116then :
7117  printf %s "(cached) " >&6
7118else $as_nop
7119  if test -n "$ac_ct_OBJDUMP"; then
7120  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125  IFS=$as_save_IFS
7126  case $as_dir in #(((
7127    '') as_dir=./ ;;
7128    */) ;;
7129    *) as_dir=$as_dir/ ;;
7130  esac
7131    for ac_exec_ext in '' $ac_executable_extensions; do
7132  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7133    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7134    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7135    break 2
7136  fi
7137done
7138  done
7139IFS=$as_save_IFS
7140
7141fi
7142fi
7143ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7144if test -n "$ac_ct_OBJDUMP"; then
7145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7146printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7147else
7148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149printf "%s\n" "no" >&6; }
7150fi
7151
7152  if test "x$ac_ct_OBJDUMP" = x; then
7153    OBJDUMP="false"
7154  else
7155    case $cross_compiling:$ac_tool_warned in
7156yes:)
7157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159ac_tool_warned=yes ;;
7160esac
7161    OBJDUMP=$ac_ct_OBJDUMP
7162  fi
7163else
7164  OBJDUMP="$ac_cv_prog_OBJDUMP"
7165fi
7166
7167test -z "$OBJDUMP" && OBJDUMP=objdump
7168
7169
7170
7171
7172
7173
7174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7175printf %s "checking how to recognize dependent libraries... " >&6; }
7176if test ${lt_cv_deplibs_check_method+y}
7177then :
7178  printf %s "(cached) " >&6
7179else $as_nop
7180  lt_cv_file_magic_cmd='$MAGIC_CMD'
7181lt_cv_file_magic_test_file=
7182lt_cv_deplibs_check_method='unknown'
7183# Need to set the preceding variable on all platforms that support
7184# interlibrary dependencies.
7185# 'none' -- dependencies not supported.
7186# 'unknown' -- same as none, but documents that we really don't know.
7187# 'pass_all' -- all dependencies passed with no checks.
7188# 'test_compile' -- check by making test program.
7189# 'file_magic [[regex]]' -- check by looking for files in library path
7190# that responds to the $file_magic_cmd with a given extended regex.
7191# If you have 'file' or equivalent on your system and you're not sure
7192# whether 'pass_all' will *always* work, you probably want this one.
7193
7194case $host_os in
7195aix[4-9]*)
7196  lt_cv_deplibs_check_method=pass_all
7197  ;;
7198
7199beos*)
7200  lt_cv_deplibs_check_method=pass_all
7201  ;;
7202
7203bsdi[45]*)
7204  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7205  lt_cv_file_magic_cmd='$FILECMD -L'
7206  lt_cv_file_magic_test_file=/shlib/libc.so
7207  ;;
7208
7209cygwin*)
7210  # func_win32_libid is a shell function defined in ltmain.sh
7211  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7212  lt_cv_file_magic_cmd='func_win32_libid'
7213  ;;
7214
7215mingw* | pw32*)
7216  # Base MSYS/MinGW do not provide the 'file' command needed by
7217  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7218  # unless we find 'file', for example because we are cross-compiling.
7219  if ( file / ) >/dev/null 2>&1; then
7220    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7221    lt_cv_file_magic_cmd='func_win32_libid'
7222  else
7223    # Keep this pattern in sync with the one in func_win32_libid.
7224    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7225    lt_cv_file_magic_cmd='$OBJDUMP -f'
7226  fi
7227  ;;
7228
7229cegcc*)
7230  # use the weaker test based on 'objdump'. See mingw*.
7231  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7232  lt_cv_file_magic_cmd='$OBJDUMP -f'
7233  ;;
7234
7235darwin* | rhapsody*)
7236  lt_cv_deplibs_check_method=pass_all
7237  ;;
7238
7239freebsd* | dragonfly* | midnightbsd*)
7240  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7241    case $host_cpu in
7242    i*86 )
7243      # Not sure whether the presence of OpenBSD here was a mistake.
7244      # Let's accept both of them until this is cleared up.
7245      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7246      lt_cv_file_magic_cmd=$FILECMD
7247      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7248      ;;
7249    esac
7250  else
7251    lt_cv_deplibs_check_method=pass_all
7252  fi
7253  ;;
7254
7255haiku*)
7256  lt_cv_deplibs_check_method=pass_all
7257  ;;
7258
7259hpux10.20* | hpux11*)
7260  lt_cv_file_magic_cmd=$FILECMD
7261  case $host_cpu in
7262  ia64*)
7263    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7264    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7265    ;;
7266  hppa*64*)
7267    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]'
7268    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7269    ;;
7270  *)
7271    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7272    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7273    ;;
7274  esac
7275  ;;
7276
7277interix[3-9]*)
7278  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7279  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7280  ;;
7281
7282irix5* | irix6* | nonstopux*)
7283  case $LD in
7284  *-32|*"-32 ") libmagic=32-bit;;
7285  *-n32|*"-n32 ") libmagic=N32;;
7286  *-64|*"-64 ") libmagic=64-bit;;
7287  *) libmagic=never-match;;
7288  esac
7289  lt_cv_deplibs_check_method=pass_all
7290  ;;
7291
7292# This must be glibc/ELF.
7293linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7294  lt_cv_deplibs_check_method=pass_all
7295  ;;
7296
7297netbsd* | netbsdelf*-gnu)
7298  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7299    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7300  else
7301    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7302  fi
7303  ;;
7304
7305newos6*)
7306  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7307  lt_cv_file_magic_cmd=$FILECMD
7308  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7309  ;;
7310
7311*nto* | *qnx*)
7312  lt_cv_deplibs_check_method=pass_all
7313  ;;
7314
7315openbsd* | bitrig*)
7316  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7318  else
7319    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7320  fi
7321  ;;
7322
7323osf3* | osf4* | osf5*)
7324  lt_cv_deplibs_check_method=pass_all
7325  ;;
7326
7327rdos*)
7328  lt_cv_deplibs_check_method=pass_all
7329  ;;
7330
7331solaris*)
7332  lt_cv_deplibs_check_method=pass_all
7333  ;;
7334
7335sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7336  lt_cv_deplibs_check_method=pass_all
7337  ;;
7338
7339sysv4 | sysv4.3*)
7340  case $host_vendor in
7341  motorola)
7342    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]'
7343    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7344    ;;
7345  ncr)
7346    lt_cv_deplibs_check_method=pass_all
7347    ;;
7348  sequent)
7349    lt_cv_file_magic_cmd='/bin/file'
7350    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7351    ;;
7352  sni)
7353    lt_cv_file_magic_cmd='/bin/file'
7354    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7355    lt_cv_file_magic_test_file=/lib/libc.so
7356    ;;
7357  siemens)
7358    lt_cv_deplibs_check_method=pass_all
7359    ;;
7360  pc)
7361    lt_cv_deplibs_check_method=pass_all
7362    ;;
7363  esac
7364  ;;
7365
7366tpf*)
7367  lt_cv_deplibs_check_method=pass_all
7368  ;;
7369os2*)
7370  lt_cv_deplibs_check_method=pass_all
7371  ;;
7372esac
7373
7374fi
7375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7376printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7377
7378file_magic_glob=
7379want_nocaseglob=no
7380if test "$build" = "$host"; then
7381  case $host_os in
7382  mingw* | pw32*)
7383    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7384      want_nocaseglob=yes
7385    else
7386      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7387    fi
7388    ;;
7389  esac
7390fi
7391
7392file_magic_cmd=$lt_cv_file_magic_cmd
7393deplibs_check_method=$lt_cv_deplibs_check_method
7394test -z "$deplibs_check_method" && deplibs_check_method=unknown
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417if test -n "$ac_tool_prefix"; then
7418  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7419set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421printf %s "checking for $ac_word... " >&6; }
7422if test ${ac_cv_prog_DLLTOOL+y}
7423then :
7424  printf %s "(cached) " >&6
7425else $as_nop
7426  if test -n "$DLLTOOL"; then
7427  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7428else
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432  IFS=$as_save_IFS
7433  case $as_dir in #(((
7434    '') as_dir=./ ;;
7435    */) ;;
7436    *) as_dir=$as_dir/ ;;
7437  esac
7438    for ac_exec_ext in '' $ac_executable_extensions; do
7439  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7440    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7441    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7442    break 2
7443  fi
7444done
7445  done
7446IFS=$as_save_IFS
7447
7448fi
7449fi
7450DLLTOOL=$ac_cv_prog_DLLTOOL
7451if test -n "$DLLTOOL"; then
7452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7453printf "%s\n" "$DLLTOOL" >&6; }
7454else
7455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456printf "%s\n" "no" >&6; }
7457fi
7458
7459
7460fi
7461if test -z "$ac_cv_prog_DLLTOOL"; then
7462  ac_ct_DLLTOOL=$DLLTOOL
7463  # Extract the first word of "dlltool", so it can be a program name with args.
7464set dummy dlltool; ac_word=$2
7465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466printf %s "checking for $ac_word... " >&6; }
7467if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7468then :
7469  printf %s "(cached) " >&6
7470else $as_nop
7471  if test -n "$ac_ct_DLLTOOL"; then
7472  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7473else
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477  IFS=$as_save_IFS
7478  case $as_dir in #(((
7479    '') as_dir=./ ;;
7480    */) ;;
7481    *) as_dir=$as_dir/ ;;
7482  esac
7483    for ac_exec_ext in '' $ac_executable_extensions; do
7484  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7485    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7486    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7487    break 2
7488  fi
7489done
7490  done
7491IFS=$as_save_IFS
7492
7493fi
7494fi
7495ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7496if test -n "$ac_ct_DLLTOOL"; then
7497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7498printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7499else
7500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501printf "%s\n" "no" >&6; }
7502fi
7503
7504  if test "x$ac_ct_DLLTOOL" = x; then
7505    DLLTOOL="false"
7506  else
7507    case $cross_compiling:$ac_tool_warned in
7508yes:)
7509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511ac_tool_warned=yes ;;
7512esac
7513    DLLTOOL=$ac_ct_DLLTOOL
7514  fi
7515else
7516  DLLTOOL="$ac_cv_prog_DLLTOOL"
7517fi
7518
7519test -z "$DLLTOOL" && DLLTOOL=dlltool
7520
7521
7522
7523
7524
7525
7526
7527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7528printf %s "checking how to associate runtime and link libraries... " >&6; }
7529if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7530then :
7531  printf %s "(cached) " >&6
7532else $as_nop
7533  lt_cv_sharedlib_from_linklib_cmd='unknown'
7534
7535case $host_os in
7536cygwin* | mingw* | pw32* | cegcc*)
7537  # two different shell functions defined in ltmain.sh;
7538  # decide which one to use based on capabilities of $DLLTOOL
7539  case `$DLLTOOL --help 2>&1` in
7540  *--identify-strict*)
7541    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7542    ;;
7543  *)
7544    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7545    ;;
7546  esac
7547  ;;
7548*)
7549  # fallback: assume linklib IS sharedlib
7550  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7551  ;;
7552esac
7553
7554fi
7555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7556printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7557sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7558test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7559
7560
7561
7562
7563
7564
7565
7566if test -n "$ac_tool_prefix"; then
7567  for ac_prog in ar
7568  do
7569    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7570set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572printf %s "checking for $ac_word... " >&6; }
7573if test ${ac_cv_prog_AR+y}
7574then :
7575  printf %s "(cached) " >&6
7576else $as_nop
7577  if test -n "$AR"; then
7578  ac_cv_prog_AR="$AR" # Let the user override the test.
7579else
7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583  IFS=$as_save_IFS
7584  case $as_dir in #(((
7585    '') as_dir=./ ;;
7586    */) ;;
7587    *) as_dir=$as_dir/ ;;
7588  esac
7589    for ac_exec_ext in '' $ac_executable_extensions; do
7590  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7591    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7592    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7593    break 2
7594  fi
7595done
7596  done
7597IFS=$as_save_IFS
7598
7599fi
7600fi
7601AR=$ac_cv_prog_AR
7602if test -n "$AR"; then
7603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7604printf "%s\n" "$AR" >&6; }
7605else
7606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607printf "%s\n" "no" >&6; }
7608fi
7609
7610
7611    test -n "$AR" && break
7612  done
7613fi
7614if test -z "$AR"; then
7615  ac_ct_AR=$AR
7616  for ac_prog in ar
7617do
7618  # Extract the first word of "$ac_prog", so it can be a program name with args.
7619set dummy $ac_prog; ac_word=$2
7620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621printf %s "checking for $ac_word... " >&6; }
7622if test ${ac_cv_prog_ac_ct_AR+y}
7623then :
7624  printf %s "(cached) " >&6
7625else $as_nop
7626  if test -n "$ac_ct_AR"; then
7627  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7628else
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632  IFS=$as_save_IFS
7633  case $as_dir in #(((
7634    '') as_dir=./ ;;
7635    */) ;;
7636    *) as_dir=$as_dir/ ;;
7637  esac
7638    for ac_exec_ext in '' $ac_executable_extensions; do
7639  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7640    ac_cv_prog_ac_ct_AR="$ac_prog"
7641    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7642    break 2
7643  fi
7644done
7645  done
7646IFS=$as_save_IFS
7647
7648fi
7649fi
7650ac_ct_AR=$ac_cv_prog_ac_ct_AR
7651if test -n "$ac_ct_AR"; then
7652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7653printf "%s\n" "$ac_ct_AR" >&6; }
7654else
7655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656printf "%s\n" "no" >&6; }
7657fi
7658
7659
7660  test -n "$ac_ct_AR" && break
7661done
7662
7663  if test "x$ac_ct_AR" = x; then
7664    AR="false"
7665  else
7666    case $cross_compiling:$ac_tool_warned in
7667yes:)
7668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670ac_tool_warned=yes ;;
7671esac
7672    AR=$ac_ct_AR
7673  fi
7674fi
7675
7676: ${AR=ar}
7677
7678
7679
7680
7681
7682
7683# Use ARFLAGS variable as AR's operation code to sync the variable naming with
7684# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7685# higher priority because thats what people were doing historically (setting
7686# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7687# variable obsoleted/removed.
7688
7689test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7690lt_ar_flags=$AR_FLAGS
7691
7692
7693
7694
7695
7696
7697# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7698# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7699
7700
7701
7702
7703
7704
7705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7706printf %s "checking for archiver @FILE support... " >&6; }
7707if test ${lt_cv_ar_at_file+y}
7708then :
7709  printf %s "(cached) " >&6
7710else $as_nop
7711  lt_cv_ar_at_file=no
7712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h.  */
7714
7715int
7716main (void)
7717{
7718
7719  ;
7720  return 0;
7721}
7722_ACEOF
7723if ac_fn_c_try_compile "$LINENO"
7724then :
7725  echo conftest.$ac_objext > conftest.lst
7726      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7727      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7728  (eval $lt_ar_try) 2>&5
7729  ac_status=$?
7730  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7731  test $ac_status = 0; }
7732      if test 0 -eq "$ac_status"; then
7733	# Ensure the archiver fails upon bogus file names.
7734	rm -f conftest.$ac_objext libconftest.a
7735	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7736  (eval $lt_ar_try) 2>&5
7737  ac_status=$?
7738  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739  test $ac_status = 0; }
7740	if test 0 -ne "$ac_status"; then
7741          lt_cv_ar_at_file=@
7742        fi
7743      fi
7744      rm -f conftest.* libconftest.a
7745
7746fi
7747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7748
7749fi
7750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7751printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7752
7753if test no = "$lt_cv_ar_at_file"; then
7754  archiver_list_spec=
7755else
7756  archiver_list_spec=$lt_cv_ar_at_file
7757fi
7758
7759
7760
7761
7762
7763
7764
7765if test -n "$ac_tool_prefix"; then
7766  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7767set dummy ${ac_tool_prefix}strip; ac_word=$2
7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769printf %s "checking for $ac_word... " >&6; }
7770if test ${ac_cv_prog_STRIP+y}
7771then :
7772  printf %s "(cached) " >&6
7773else $as_nop
7774  if test -n "$STRIP"; then
7775  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7776else
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780  IFS=$as_save_IFS
7781  case $as_dir in #(((
7782    '') as_dir=./ ;;
7783    */) ;;
7784    *) as_dir=$as_dir/ ;;
7785  esac
7786    for ac_exec_ext in '' $ac_executable_extensions; do
7787  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7788    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7789    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7790    break 2
7791  fi
7792done
7793  done
7794IFS=$as_save_IFS
7795
7796fi
7797fi
7798STRIP=$ac_cv_prog_STRIP
7799if test -n "$STRIP"; then
7800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7801printf "%s\n" "$STRIP" >&6; }
7802else
7803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804printf "%s\n" "no" >&6; }
7805fi
7806
7807
7808fi
7809if test -z "$ac_cv_prog_STRIP"; then
7810  ac_ct_STRIP=$STRIP
7811  # Extract the first word of "strip", so it can be a program name with args.
7812set dummy strip; ac_word=$2
7813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814printf %s "checking for $ac_word... " >&6; }
7815if test ${ac_cv_prog_ac_ct_STRIP+y}
7816then :
7817  printf %s "(cached) " >&6
7818else $as_nop
7819  if test -n "$ac_ct_STRIP"; then
7820  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7821else
7822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823for as_dir in $PATH
7824do
7825  IFS=$as_save_IFS
7826  case $as_dir in #(((
7827    '') as_dir=./ ;;
7828    */) ;;
7829    *) as_dir=$as_dir/ ;;
7830  esac
7831    for ac_exec_ext in '' $ac_executable_extensions; do
7832  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7833    ac_cv_prog_ac_ct_STRIP="strip"
7834    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7835    break 2
7836  fi
7837done
7838  done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7844if test -n "$ac_ct_STRIP"; then
7845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7846printf "%s\n" "$ac_ct_STRIP" >&6; }
7847else
7848  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849printf "%s\n" "no" >&6; }
7850fi
7851
7852  if test "x$ac_ct_STRIP" = x; then
7853    STRIP=":"
7854  else
7855    case $cross_compiling:$ac_tool_warned in
7856yes:)
7857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859ac_tool_warned=yes ;;
7860esac
7861    STRIP=$ac_ct_STRIP
7862  fi
7863else
7864  STRIP="$ac_cv_prog_STRIP"
7865fi
7866
7867test -z "$STRIP" && STRIP=:
7868
7869
7870
7871
7872
7873
7874if test -n "$ac_tool_prefix"; then
7875  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7876set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878printf %s "checking for $ac_word... " >&6; }
7879if test ${ac_cv_prog_RANLIB+y}
7880then :
7881  printf %s "(cached) " >&6
7882else $as_nop
7883  if test -n "$RANLIB"; then
7884  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7885else
7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887for as_dir in $PATH
7888do
7889  IFS=$as_save_IFS
7890  case $as_dir in #(((
7891    '') as_dir=./ ;;
7892    */) ;;
7893    *) as_dir=$as_dir/ ;;
7894  esac
7895    for ac_exec_ext in '' $ac_executable_extensions; do
7896  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7897    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7898    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7899    break 2
7900  fi
7901done
7902  done
7903IFS=$as_save_IFS
7904
7905fi
7906fi
7907RANLIB=$ac_cv_prog_RANLIB
7908if test -n "$RANLIB"; then
7909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7910printf "%s\n" "$RANLIB" >&6; }
7911else
7912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913printf "%s\n" "no" >&6; }
7914fi
7915
7916
7917fi
7918if test -z "$ac_cv_prog_RANLIB"; then
7919  ac_ct_RANLIB=$RANLIB
7920  # Extract the first word of "ranlib", so it can be a program name with args.
7921set dummy ranlib; ac_word=$2
7922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923printf %s "checking for $ac_word... " >&6; }
7924if test ${ac_cv_prog_ac_ct_RANLIB+y}
7925then :
7926  printf %s "(cached) " >&6
7927else $as_nop
7928  if test -n "$ac_ct_RANLIB"; then
7929  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7930else
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934  IFS=$as_save_IFS
7935  case $as_dir in #(((
7936    '') as_dir=./ ;;
7937    */) ;;
7938    *) as_dir=$as_dir/ ;;
7939  esac
7940    for ac_exec_ext in '' $ac_executable_extensions; do
7941  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7942    ac_cv_prog_ac_ct_RANLIB="ranlib"
7943    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7944    break 2
7945  fi
7946done
7947  done
7948IFS=$as_save_IFS
7949
7950fi
7951fi
7952ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7953if test -n "$ac_ct_RANLIB"; then
7954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7955printf "%s\n" "$ac_ct_RANLIB" >&6; }
7956else
7957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958printf "%s\n" "no" >&6; }
7959fi
7960
7961  if test "x$ac_ct_RANLIB" = x; then
7962    RANLIB=":"
7963  else
7964    case $cross_compiling:$ac_tool_warned in
7965yes:)
7966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7967printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7968ac_tool_warned=yes ;;
7969esac
7970    RANLIB=$ac_ct_RANLIB
7971  fi
7972else
7973  RANLIB="$ac_cv_prog_RANLIB"
7974fi
7975
7976test -z "$RANLIB" && RANLIB=:
7977
7978
7979
7980
7981
7982
7983# Determine commands to create old-style static archives.
7984old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7985old_postinstall_cmds='chmod 644 $oldlib'
7986old_postuninstall_cmds=
7987
7988if test -n "$RANLIB"; then
7989  case $host_os in
7990  bitrig* | openbsd*)
7991    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7992    ;;
7993  *)
7994    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7995    ;;
7996  esac
7997  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7998fi
7999
8000case $host_os in
8001  darwin*)
8002    lock_old_archive_extraction=yes ;;
8003  *)
8004    lock_old_archive_extraction=no ;;
8005esac
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045# If no C compiler was specified, use CC.
8046LTCC=${LTCC-"$CC"}
8047
8048# If no C compiler flags were specified, use CFLAGS.
8049LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8050
8051# Allow CC to be a program name with arguments.
8052compiler=$CC
8053
8054
8055# Check for command to grab the raw symbol name followed by C symbol from nm.
8056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8057printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8058if test ${lt_cv_sys_global_symbol_pipe+y}
8059then :
8060  printf %s "(cached) " >&6
8061else $as_nop
8062
8063# These are sane defaults that work on at least a few old systems.
8064# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8065
8066# Character class describing NM global symbol codes.
8067symcode='[BCDEGRST]'
8068
8069# Regexp to match symbols that can be accessed directly from C.
8070sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8071
8072# Define system-specific variables.
8073case $host_os in
8074aix*)
8075  symcode='[BCDT]'
8076  ;;
8077cygwin* | mingw* | pw32* | cegcc*)
8078  symcode='[ABCDGISTW]'
8079  ;;
8080hpux*)
8081  if test ia64 = "$host_cpu"; then
8082    symcode='[ABCDEGRST]'
8083  fi
8084  ;;
8085irix* | nonstopux*)
8086  symcode='[BCDEGRST]'
8087  ;;
8088osf*)
8089  symcode='[BCDEGQRST]'
8090  ;;
8091solaris*)
8092  symcode='[BDRT]'
8093  ;;
8094sco3.2v5*)
8095  symcode='[DT]'
8096  ;;
8097sysv4.2uw2*)
8098  symcode='[DT]'
8099  ;;
8100sysv5* | sco5v6* | unixware* | OpenUNIX*)
8101  symcode='[ABDT]'
8102  ;;
8103sysv4)
8104  symcode='[DFNSTU]'
8105  ;;
8106esac
8107
8108# If we're using GNU nm, then use its standard symbol codes.
8109case `$NM -V 2>&1` in
8110*GNU* | *'with BFD'*)
8111  symcode='[ABCDGIRSTW]' ;;
8112esac
8113
8114if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8115  # Gets list of data symbols to import.
8116  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8117  # Adjust the below global symbol transforms to fixup imported variables.
8118  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8119  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8120  lt_c_name_lib_hook="\
8121  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8122  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8123else
8124  # Disable hooks by default.
8125  lt_cv_sys_global_symbol_to_import=
8126  lt_cdecl_hook=
8127  lt_c_name_hook=
8128  lt_c_name_lib_hook=
8129fi
8130
8131# Transform an extracted symbol line into a proper C declaration.
8132# Some systems (esp. on ia64) link data and code symbols differently,
8133# so use this general approach.
8134lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8135$lt_cdecl_hook\
8136" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8137" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8138
8139# Transform an extracted symbol line into symbol name and symbol address
8140lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8141$lt_c_name_hook\
8142" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8143" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8144
8145# Transform an extracted symbol line into symbol name with lib prefix and
8146# symbol address.
8147lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8148$lt_c_name_lib_hook\
8149" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8150" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8151" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8152
8153# Handle CRLF in mingw tool chain
8154opt_cr=
8155case $build_os in
8156mingw*)
8157  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8158  ;;
8159esac
8160
8161# Try without a prefix underscore, then with it.
8162for ac_symprfx in "" "_"; do
8163
8164  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8165  symxfrm="\\1 $ac_symprfx\\2 \\2"
8166
8167  # Write the raw and C identifiers.
8168  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8169    # Fake it for dumpbin and say T for any non-static function,
8170    # D for any global variable and I for any imported variable.
8171    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8172    # which start with @ or ?.
8173    lt_cv_sys_global_symbol_pipe="$AWK '"\
8174"     {last_section=section; section=\$ 3};"\
8175"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8176"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8177"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8178"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8179"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8180"     \$ 0!~/External *\|/{next};"\
8181"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8182"     {if(hide[section]) next};"\
8183"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8184"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8185"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8186"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8187"     ' prfx=^$ac_symprfx"
8188  else
8189    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8190  fi
8191  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8192
8193  # Check to see that the pipe works correctly.
8194  pipe_works=no
8195
8196  rm -f conftest*
8197  cat > conftest.$ac_ext <<_LT_EOF
8198#ifdef __cplusplus
8199extern "C" {
8200#endif
8201char nm_test_var;
8202void nm_test_func(void);
8203void nm_test_func(void){}
8204#ifdef __cplusplus
8205}
8206#endif
8207int main(){nm_test_var='a';nm_test_func();return(0);}
8208_LT_EOF
8209
8210  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8211  (eval $ac_compile) 2>&5
8212  ac_status=$?
8213  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8214  test $ac_status = 0; }; then
8215    # Now try to grab the symbols.
8216    nlist=conftest.nm
8217    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8218    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8219      # Try sorting and uniquifying the output.
8220      if sort "$nlist" | uniq > "$nlist"T; then
8221	mv -f "$nlist"T "$nlist"
8222      else
8223	rm -f "$nlist"T
8224      fi
8225
8226      # Make sure that we snagged all the symbols we need.
8227      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8228	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8229	  cat <<_LT_EOF > conftest.$ac_ext
8230/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8231#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8232/* DATA imports from DLLs on WIN32 can't be const, because runtime
8233   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8234# define LT_DLSYM_CONST
8235#elif defined __osf__
8236/* This system does not cope well with relocations in const data.  */
8237# define LT_DLSYM_CONST
8238#else
8239# define LT_DLSYM_CONST const
8240#endif
8241
8242#ifdef __cplusplus
8243extern "C" {
8244#endif
8245
8246_LT_EOF
8247	  # Now generate the symbol file.
8248	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8249
8250	  cat <<_LT_EOF >> conftest.$ac_ext
8251
8252/* The mapping between symbol names and symbols.  */
8253LT_DLSYM_CONST struct {
8254  const char *name;
8255  void       *address;
8256}
8257lt__PROGRAM__LTX_preloaded_symbols[] =
8258{
8259  { "@PROGRAM@", (void *) 0 },
8260_LT_EOF
8261	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8262	  cat <<\_LT_EOF >> conftest.$ac_ext
8263  {0, (void *) 0}
8264};
8265
8266/* This works around a problem in FreeBSD linker */
8267#ifdef FREEBSD_WORKAROUND
8268static const void *lt_preloaded_setup() {
8269  return lt__PROGRAM__LTX_preloaded_symbols;
8270}
8271#endif
8272
8273#ifdef __cplusplus
8274}
8275#endif
8276_LT_EOF
8277	  # Now try linking the two files.
8278	  mv conftest.$ac_objext conftstm.$ac_objext
8279	  lt_globsym_save_LIBS=$LIBS
8280	  lt_globsym_save_CFLAGS=$CFLAGS
8281	  LIBS=conftstm.$ac_objext
8282	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8283	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8284  (eval $ac_link) 2>&5
8285  ac_status=$?
8286  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8287  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8288	    pipe_works=yes
8289	  fi
8290	  LIBS=$lt_globsym_save_LIBS
8291	  CFLAGS=$lt_globsym_save_CFLAGS
8292	else
8293	  echo "cannot find nm_test_func in $nlist" >&5
8294	fi
8295      else
8296	echo "cannot find nm_test_var in $nlist" >&5
8297      fi
8298    else
8299      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8300    fi
8301  else
8302    echo "$progname: failed program was:" >&5
8303    cat conftest.$ac_ext >&5
8304  fi
8305  rm -rf conftest* conftst*
8306
8307  # Do not use the global_symbol_pipe unless it works.
8308  if test yes = "$pipe_works"; then
8309    break
8310  else
8311    lt_cv_sys_global_symbol_pipe=
8312  fi
8313done
8314
8315fi
8316
8317if test -z "$lt_cv_sys_global_symbol_pipe"; then
8318  lt_cv_sys_global_symbol_to_cdecl=
8319fi
8320if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8321  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8322printf "%s\n" "failed" >&6; }
8323else
8324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8325printf "%s\n" "ok" >&6; }
8326fi
8327
8328# Response file support.
8329if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8330  nm_file_list_spec='@'
8331elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8332  nm_file_list_spec='@'
8333fi
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8372printf %s "checking for sysroot... " >&6; }
8373
8374# Check whether --with-sysroot was given.
8375if test ${with_sysroot+y}
8376then :
8377  withval=$with_sysroot;
8378else $as_nop
8379  with_sysroot=no
8380fi
8381
8382
8383lt_sysroot=
8384case $with_sysroot in #(
8385 yes)
8386   if test yes = "$GCC"; then
8387     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8388   fi
8389   ;; #(
8390 /*)
8391   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8392   ;; #(
8393 no|'')
8394   ;; #(
8395 *)
8396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8397printf "%s\n" "$with_sysroot" >&6; }
8398   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8399   ;;
8400esac
8401
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8403printf "%s\n" "${lt_sysroot:-no}" >&6; }
8404
8405
8406
8407
8408
8409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8410printf %s "checking for a working dd... " >&6; }
8411if test ${ac_cv_path_lt_DD+y}
8412then :
8413  printf %s "(cached) " >&6
8414else $as_nop
8415  printf 0123456789abcdef0123456789abcdef >conftest.i
8416cat conftest.i conftest.i >conftest2.i
8417: ${lt_DD:=$DD}
8418if test -z "$lt_DD"; then
8419  ac_path_lt_DD_found=false
8420  # Loop through the user's path and test for each of PROGNAME-LIST
8421  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422for as_dir in $PATH
8423do
8424  IFS=$as_save_IFS
8425  case $as_dir in #(((
8426    '') as_dir=./ ;;
8427    */) ;;
8428    *) as_dir=$as_dir/ ;;
8429  esac
8430    for ac_prog in dd
8431   do
8432    for ac_exec_ext in '' $ac_executable_extensions; do
8433      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8434      as_fn_executable_p "$ac_path_lt_DD" || continue
8435if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8436  cmp -s conftest.i conftest.out \
8437  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8438fi
8439      $ac_path_lt_DD_found && break 3
8440    done
8441  done
8442  done
8443IFS=$as_save_IFS
8444  if test -z "$ac_cv_path_lt_DD"; then
8445    :
8446  fi
8447else
8448  ac_cv_path_lt_DD=$lt_DD
8449fi
8450
8451rm -f conftest.i conftest2.i conftest.out
8452fi
8453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8454printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8455
8456
8457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8458printf %s "checking how to truncate binary pipes... " >&6; }
8459if test ${lt_cv_truncate_bin+y}
8460then :
8461  printf %s "(cached) " >&6
8462else $as_nop
8463  printf 0123456789abcdef0123456789abcdef >conftest.i
8464cat conftest.i conftest.i >conftest2.i
8465lt_cv_truncate_bin=
8466if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8467  cmp -s conftest.i conftest.out \
8468  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8469fi
8470rm -f conftest.i conftest2.i conftest.out
8471test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8472fi
8473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8474printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8475
8476
8477
8478
8479
8480
8481
8482# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8483func_cc_basename ()
8484{
8485    for cc_temp in $*""; do
8486      case $cc_temp in
8487        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8488        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8489        \-*) ;;
8490        *) break;;
8491      esac
8492    done
8493    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8494}
8495
8496# Check whether --enable-libtool-lock was given.
8497if test ${enable_libtool_lock+y}
8498then :
8499  enableval=$enable_libtool_lock;
8500fi
8501
8502test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8503
8504# Some flags need to be propagated to the compiler or linker for good
8505# libtool support.
8506case $host in
8507ia64-*-hpux*)
8508  # Find out what ABI is being produced by ac_compile, and set mode
8509  # options accordingly.
8510  echo 'int i;' > conftest.$ac_ext
8511  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8512  (eval $ac_compile) 2>&5
8513  ac_status=$?
8514  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8515  test $ac_status = 0; }; then
8516    case `$FILECMD conftest.$ac_objext` in
8517      *ELF-32*)
8518	HPUX_IA64_MODE=32
8519	;;
8520      *ELF-64*)
8521	HPUX_IA64_MODE=64
8522	;;
8523    esac
8524  fi
8525  rm -rf conftest*
8526  ;;
8527*-*-irix6*)
8528  # Find out what ABI is being produced by ac_compile, and set linker
8529  # options accordingly.
8530  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8531  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8532  (eval $ac_compile) 2>&5
8533  ac_status=$?
8534  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8535  test $ac_status = 0; }; then
8536    if test yes = "$lt_cv_prog_gnu_ld"; then
8537      case `$FILECMD conftest.$ac_objext` in
8538	*32-bit*)
8539	  LD="${LD-ld} -melf32bsmip"
8540	  ;;
8541	*N32*)
8542	  LD="${LD-ld} -melf32bmipn32"
8543	  ;;
8544	*64-bit*)
8545	  LD="${LD-ld} -melf64bmip"
8546	;;
8547      esac
8548    else
8549      case `$FILECMD conftest.$ac_objext` in
8550	*32-bit*)
8551	  LD="${LD-ld} -32"
8552	  ;;
8553	*N32*)
8554	  LD="${LD-ld} -n32"
8555	  ;;
8556	*64-bit*)
8557	  LD="${LD-ld} -64"
8558	  ;;
8559      esac
8560    fi
8561  fi
8562  rm -rf conftest*
8563  ;;
8564
8565mips64*-*linux*)
8566  # Find out what ABI is being produced by ac_compile, and set linker
8567  # options accordingly.
8568  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8569  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8570  (eval $ac_compile) 2>&5
8571  ac_status=$?
8572  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8573  test $ac_status = 0; }; then
8574    emul=elf
8575    case `$FILECMD conftest.$ac_objext` in
8576      *32-bit*)
8577	emul="${emul}32"
8578	;;
8579      *64-bit*)
8580	emul="${emul}64"
8581	;;
8582    esac
8583    case `$FILECMD conftest.$ac_objext` in
8584      *MSB*)
8585	emul="${emul}btsmip"
8586	;;
8587      *LSB*)
8588	emul="${emul}ltsmip"
8589	;;
8590    esac
8591    case `$FILECMD conftest.$ac_objext` in
8592      *N32*)
8593	emul="${emul}n32"
8594	;;
8595    esac
8596    LD="${LD-ld} -m $emul"
8597  fi
8598  rm -rf conftest*
8599  ;;
8600
8601x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8602s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8603  # Find out what ABI is being produced by ac_compile, and set linker
8604  # options accordingly.  Note that the listed cases only cover the
8605  # situations where additional linker options are needed (such as when
8606  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8607  # vice versa); the common cases where no linker options are needed do
8608  # not appear in the list.
8609  echo 'int i;' > conftest.$ac_ext
8610  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8611  (eval $ac_compile) 2>&5
8612  ac_status=$?
8613  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8614  test $ac_status = 0; }; then
8615    case `$FILECMD conftest.o` in
8616      *32-bit*)
8617	case $host in
8618	  x86_64-*kfreebsd*-gnu)
8619	    LD="${LD-ld} -m elf_i386_fbsd"
8620	    ;;
8621	  x86_64-*linux*)
8622	    case `$FILECMD conftest.o` in
8623	      *x86-64*)
8624		LD="${LD-ld} -m elf32_x86_64"
8625		;;
8626	      *)
8627		LD="${LD-ld} -m elf_i386"
8628		;;
8629	    esac
8630	    ;;
8631	  powerpc64le-*linux*)
8632	    LD="${LD-ld} -m elf32lppclinux"
8633	    ;;
8634	  powerpc64-*linux*)
8635	    LD="${LD-ld} -m elf32ppclinux"
8636	    ;;
8637	  s390x-*linux*)
8638	    LD="${LD-ld} -m elf_s390"
8639	    ;;
8640	  sparc64-*linux*)
8641	    LD="${LD-ld} -m elf32_sparc"
8642	    ;;
8643	esac
8644	;;
8645      *64-bit*)
8646	case $host in
8647	  x86_64-*kfreebsd*-gnu)
8648	    LD="${LD-ld} -m elf_x86_64_fbsd"
8649	    ;;
8650	  x86_64-*linux*)
8651	    LD="${LD-ld} -m elf_x86_64"
8652	    ;;
8653	  powerpcle-*linux*)
8654	    LD="${LD-ld} -m elf64lppc"
8655	    ;;
8656	  powerpc-*linux*)
8657	    LD="${LD-ld} -m elf64ppc"
8658	    ;;
8659	  s390*-*linux*|s390*-*tpf*)
8660	    LD="${LD-ld} -m elf64_s390"
8661	    ;;
8662	  sparc*-*linux*)
8663	    LD="${LD-ld} -m elf64_sparc"
8664	    ;;
8665	esac
8666	;;
8667    esac
8668  fi
8669  rm -rf conftest*
8670  ;;
8671
8672*-*-sco3.2v5*)
8673  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8674  SAVE_CFLAGS=$CFLAGS
8675  CFLAGS="$CFLAGS -belf"
8676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8677printf %s "checking whether the C compiler needs -belf... " >&6; }
8678if test ${lt_cv_cc_needs_belf+y}
8679then :
8680  printf %s "(cached) " >&6
8681else $as_nop
8682  ac_ext=c
8683ac_cpp='$CPP $CPPFLAGS'
8684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8686ac_compiler_gnu=$ac_cv_c_compiler_gnu
8687
8688     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690
8691int
8692main (void)
8693{
8694
8695  ;
8696  return 0;
8697}
8698_ACEOF
8699if ac_fn_c_try_link "$LINENO"
8700then :
8701  lt_cv_cc_needs_belf=yes
8702else $as_nop
8703  lt_cv_cc_needs_belf=no
8704fi
8705rm -f core conftest.err conftest.$ac_objext conftest.beam \
8706    conftest$ac_exeext conftest.$ac_ext
8707     ac_ext=c
8708ac_cpp='$CPP $CPPFLAGS'
8709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8711ac_compiler_gnu=$ac_cv_c_compiler_gnu
8712
8713fi
8714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8715printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8716  if test yes != "$lt_cv_cc_needs_belf"; then
8717    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8718    CFLAGS=$SAVE_CFLAGS
8719  fi
8720  ;;
8721*-*solaris*)
8722  # Find out what ABI is being produced by ac_compile, and set linker
8723  # options accordingly.
8724  echo 'int i;' > conftest.$ac_ext
8725  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8726  (eval $ac_compile) 2>&5
8727  ac_status=$?
8728  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8729  test $ac_status = 0; }; then
8730    case `$FILECMD conftest.o` in
8731    *64-bit*)
8732      case $lt_cv_prog_gnu_ld in
8733      yes*)
8734        case $host in
8735        i?86-*-solaris*|x86_64-*-solaris*)
8736          LD="${LD-ld} -m elf_x86_64"
8737          ;;
8738        sparc*-*-solaris*)
8739          LD="${LD-ld} -m elf64_sparc"
8740          ;;
8741        esac
8742        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8743        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8744          LD=${LD-ld}_sol2
8745        fi
8746        ;;
8747      *)
8748	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8749	  LD="${LD-ld} -64"
8750	fi
8751	;;
8752      esac
8753      ;;
8754    esac
8755  fi
8756  rm -rf conftest*
8757  ;;
8758esac
8759
8760need_locks=$enable_libtool_lock
8761
8762if test -n "$ac_tool_prefix"; then
8763  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8764set dummy ${ac_tool_prefix}mt; ac_word=$2
8765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766printf %s "checking for $ac_word... " >&6; }
8767if test ${ac_cv_prog_MANIFEST_TOOL+y}
8768then :
8769  printf %s "(cached) " >&6
8770else $as_nop
8771  if test -n "$MANIFEST_TOOL"; then
8772  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8773else
8774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775for as_dir in $PATH
8776do
8777  IFS=$as_save_IFS
8778  case $as_dir in #(((
8779    '') as_dir=./ ;;
8780    */) ;;
8781    *) as_dir=$as_dir/ ;;
8782  esac
8783    for ac_exec_ext in '' $ac_executable_extensions; do
8784  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8785    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8786    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8787    break 2
8788  fi
8789done
8790  done
8791IFS=$as_save_IFS
8792
8793fi
8794fi
8795MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8796if test -n "$MANIFEST_TOOL"; then
8797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8798printf "%s\n" "$MANIFEST_TOOL" >&6; }
8799else
8800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801printf "%s\n" "no" >&6; }
8802fi
8803
8804
8805fi
8806if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8807  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8808  # Extract the first word of "mt", so it can be a program name with args.
8809set dummy mt; ac_word=$2
8810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811printf %s "checking for $ac_word... " >&6; }
8812if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8813then :
8814  printf %s "(cached) " >&6
8815else $as_nop
8816  if test -n "$ac_ct_MANIFEST_TOOL"; then
8817  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8818else
8819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820for as_dir in $PATH
8821do
8822  IFS=$as_save_IFS
8823  case $as_dir in #(((
8824    '') as_dir=./ ;;
8825    */) ;;
8826    *) as_dir=$as_dir/ ;;
8827  esac
8828    for ac_exec_ext in '' $ac_executable_extensions; do
8829  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8830    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8831    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8832    break 2
8833  fi
8834done
8835  done
8836IFS=$as_save_IFS
8837
8838fi
8839fi
8840ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8841if test -n "$ac_ct_MANIFEST_TOOL"; then
8842  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8843printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8844else
8845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846printf "%s\n" "no" >&6; }
8847fi
8848
8849  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8850    MANIFEST_TOOL=":"
8851  else
8852    case $cross_compiling:$ac_tool_warned in
8853yes:)
8854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8855printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8856ac_tool_warned=yes ;;
8857esac
8858    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8859  fi
8860else
8861  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8862fi
8863
8864test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8866printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8867if test ${lt_cv_path_mainfest_tool+y}
8868then :
8869  printf %s "(cached) " >&6
8870else $as_nop
8871  lt_cv_path_mainfest_tool=no
8872  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8873  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8874  cat conftest.err >&5
8875  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8876    lt_cv_path_mainfest_tool=yes
8877  fi
8878  rm -f conftest*
8879fi
8880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8881printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8882if test yes != "$lt_cv_path_mainfest_tool"; then
8883  MANIFEST_TOOL=:
8884fi
8885
8886
8887
8888
8889
8890
8891  case $host_os in
8892    rhapsody* | darwin*)
8893    if test -n "$ac_tool_prefix"; then
8894  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8895set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897printf %s "checking for $ac_word... " >&6; }
8898if test ${ac_cv_prog_DSYMUTIL+y}
8899then :
8900  printf %s "(cached) " >&6
8901else $as_nop
8902  if test -n "$DSYMUTIL"; then
8903  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8904else
8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908  IFS=$as_save_IFS
8909  case $as_dir in #(((
8910    '') as_dir=./ ;;
8911    */) ;;
8912    *) as_dir=$as_dir/ ;;
8913  esac
8914    for ac_exec_ext in '' $ac_executable_extensions; do
8915  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8916    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8917    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8918    break 2
8919  fi
8920done
8921  done
8922IFS=$as_save_IFS
8923
8924fi
8925fi
8926DSYMUTIL=$ac_cv_prog_DSYMUTIL
8927if test -n "$DSYMUTIL"; then
8928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8929printf "%s\n" "$DSYMUTIL" >&6; }
8930else
8931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932printf "%s\n" "no" >&6; }
8933fi
8934
8935
8936fi
8937if test -z "$ac_cv_prog_DSYMUTIL"; then
8938  ac_ct_DSYMUTIL=$DSYMUTIL
8939  # Extract the first word of "dsymutil", so it can be a program name with args.
8940set dummy dsymutil; ac_word=$2
8941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942printf %s "checking for $ac_word... " >&6; }
8943if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8944then :
8945  printf %s "(cached) " >&6
8946else $as_nop
8947  if test -n "$ac_ct_DSYMUTIL"; then
8948  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8949else
8950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951for as_dir in $PATH
8952do
8953  IFS=$as_save_IFS
8954  case $as_dir in #(((
8955    '') as_dir=./ ;;
8956    */) ;;
8957    *) as_dir=$as_dir/ ;;
8958  esac
8959    for ac_exec_ext in '' $ac_executable_extensions; do
8960  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8961    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8962    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8963    break 2
8964  fi
8965done
8966  done
8967IFS=$as_save_IFS
8968
8969fi
8970fi
8971ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8972if test -n "$ac_ct_DSYMUTIL"; then
8973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8974printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8975else
8976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977printf "%s\n" "no" >&6; }
8978fi
8979
8980  if test "x$ac_ct_DSYMUTIL" = x; then
8981    DSYMUTIL=":"
8982  else
8983    case $cross_compiling:$ac_tool_warned in
8984yes:)
8985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8986printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8987ac_tool_warned=yes ;;
8988esac
8989    DSYMUTIL=$ac_ct_DSYMUTIL
8990  fi
8991else
8992  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8993fi
8994
8995    if test -n "$ac_tool_prefix"; then
8996  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8997set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999printf %s "checking for $ac_word... " >&6; }
9000if test ${ac_cv_prog_NMEDIT+y}
9001then :
9002  printf %s "(cached) " >&6
9003else $as_nop
9004  if test -n "$NMEDIT"; then
9005  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9006else
9007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008for as_dir in $PATH
9009do
9010  IFS=$as_save_IFS
9011  case $as_dir in #(((
9012    '') as_dir=./ ;;
9013    */) ;;
9014    *) as_dir=$as_dir/ ;;
9015  esac
9016    for ac_exec_ext in '' $ac_executable_extensions; do
9017  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9018    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9019    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9020    break 2
9021  fi
9022done
9023  done
9024IFS=$as_save_IFS
9025
9026fi
9027fi
9028NMEDIT=$ac_cv_prog_NMEDIT
9029if test -n "$NMEDIT"; then
9030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9031printf "%s\n" "$NMEDIT" >&6; }
9032else
9033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034printf "%s\n" "no" >&6; }
9035fi
9036
9037
9038fi
9039if test -z "$ac_cv_prog_NMEDIT"; then
9040  ac_ct_NMEDIT=$NMEDIT
9041  # Extract the first word of "nmedit", so it can be a program name with args.
9042set dummy nmedit; ac_word=$2
9043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044printf %s "checking for $ac_word... " >&6; }
9045if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9046then :
9047  printf %s "(cached) " >&6
9048else $as_nop
9049  if test -n "$ac_ct_NMEDIT"; then
9050  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9051else
9052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053for as_dir in $PATH
9054do
9055  IFS=$as_save_IFS
9056  case $as_dir in #(((
9057    '') as_dir=./ ;;
9058    */) ;;
9059    *) as_dir=$as_dir/ ;;
9060  esac
9061    for ac_exec_ext in '' $ac_executable_extensions; do
9062  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9063    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9064    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9065    break 2
9066  fi
9067done
9068  done
9069IFS=$as_save_IFS
9070
9071fi
9072fi
9073ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9074if test -n "$ac_ct_NMEDIT"; then
9075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9076printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9077else
9078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9079printf "%s\n" "no" >&6; }
9080fi
9081
9082  if test "x$ac_ct_NMEDIT" = x; then
9083    NMEDIT=":"
9084  else
9085    case $cross_compiling:$ac_tool_warned in
9086yes:)
9087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9088printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9089ac_tool_warned=yes ;;
9090esac
9091    NMEDIT=$ac_ct_NMEDIT
9092  fi
9093else
9094  NMEDIT="$ac_cv_prog_NMEDIT"
9095fi
9096
9097    if test -n "$ac_tool_prefix"; then
9098  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9099set dummy ${ac_tool_prefix}lipo; ac_word=$2
9100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9101printf %s "checking for $ac_word... " >&6; }
9102if test ${ac_cv_prog_LIPO+y}
9103then :
9104  printf %s "(cached) " >&6
9105else $as_nop
9106  if test -n "$LIPO"; then
9107  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9108else
9109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9110for as_dir in $PATH
9111do
9112  IFS=$as_save_IFS
9113  case $as_dir in #(((
9114    '') as_dir=./ ;;
9115    */) ;;
9116    *) as_dir=$as_dir/ ;;
9117  esac
9118    for ac_exec_ext in '' $ac_executable_extensions; do
9119  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9120    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9121    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9122    break 2
9123  fi
9124done
9125  done
9126IFS=$as_save_IFS
9127
9128fi
9129fi
9130LIPO=$ac_cv_prog_LIPO
9131if test -n "$LIPO"; then
9132  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9133printf "%s\n" "$LIPO" >&6; }
9134else
9135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136printf "%s\n" "no" >&6; }
9137fi
9138
9139
9140fi
9141if test -z "$ac_cv_prog_LIPO"; then
9142  ac_ct_LIPO=$LIPO
9143  # Extract the first word of "lipo", so it can be a program name with args.
9144set dummy lipo; ac_word=$2
9145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146printf %s "checking for $ac_word... " >&6; }
9147if test ${ac_cv_prog_ac_ct_LIPO+y}
9148then :
9149  printf %s "(cached) " >&6
9150else $as_nop
9151  if test -n "$ac_ct_LIPO"; then
9152  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9153else
9154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155for as_dir in $PATH
9156do
9157  IFS=$as_save_IFS
9158  case $as_dir in #(((
9159    '') as_dir=./ ;;
9160    */) ;;
9161    *) as_dir=$as_dir/ ;;
9162  esac
9163    for ac_exec_ext in '' $ac_executable_extensions; do
9164  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9165    ac_cv_prog_ac_ct_LIPO="lipo"
9166    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9167    break 2
9168  fi
9169done
9170  done
9171IFS=$as_save_IFS
9172
9173fi
9174fi
9175ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9176if test -n "$ac_ct_LIPO"; then
9177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9178printf "%s\n" "$ac_ct_LIPO" >&6; }
9179else
9180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181printf "%s\n" "no" >&6; }
9182fi
9183
9184  if test "x$ac_ct_LIPO" = x; then
9185    LIPO=":"
9186  else
9187    case $cross_compiling:$ac_tool_warned in
9188yes:)
9189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9190printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9191ac_tool_warned=yes ;;
9192esac
9193    LIPO=$ac_ct_LIPO
9194  fi
9195else
9196  LIPO="$ac_cv_prog_LIPO"
9197fi
9198
9199    if test -n "$ac_tool_prefix"; then
9200  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9201set dummy ${ac_tool_prefix}otool; ac_word=$2
9202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203printf %s "checking for $ac_word... " >&6; }
9204if test ${ac_cv_prog_OTOOL+y}
9205then :
9206  printf %s "(cached) " >&6
9207else $as_nop
9208  if test -n "$OTOOL"; then
9209  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9210else
9211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212for as_dir in $PATH
9213do
9214  IFS=$as_save_IFS
9215  case $as_dir in #(((
9216    '') as_dir=./ ;;
9217    */) ;;
9218    *) as_dir=$as_dir/ ;;
9219  esac
9220    for ac_exec_ext in '' $ac_executable_extensions; do
9221  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9222    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9223    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9224    break 2
9225  fi
9226done
9227  done
9228IFS=$as_save_IFS
9229
9230fi
9231fi
9232OTOOL=$ac_cv_prog_OTOOL
9233if test -n "$OTOOL"; then
9234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9235printf "%s\n" "$OTOOL" >&6; }
9236else
9237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238printf "%s\n" "no" >&6; }
9239fi
9240
9241
9242fi
9243if test -z "$ac_cv_prog_OTOOL"; then
9244  ac_ct_OTOOL=$OTOOL
9245  # Extract the first word of "otool", so it can be a program name with args.
9246set dummy otool; ac_word=$2
9247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248printf %s "checking for $ac_word... " >&6; }
9249if test ${ac_cv_prog_ac_ct_OTOOL+y}
9250then :
9251  printf %s "(cached) " >&6
9252else $as_nop
9253  if test -n "$ac_ct_OTOOL"; then
9254  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9255else
9256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259  IFS=$as_save_IFS
9260  case $as_dir in #(((
9261    '') as_dir=./ ;;
9262    */) ;;
9263    *) as_dir=$as_dir/ ;;
9264  esac
9265    for ac_exec_ext in '' $ac_executable_extensions; do
9266  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9267    ac_cv_prog_ac_ct_OTOOL="otool"
9268    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9269    break 2
9270  fi
9271done
9272  done
9273IFS=$as_save_IFS
9274
9275fi
9276fi
9277ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9278if test -n "$ac_ct_OTOOL"; then
9279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9280printf "%s\n" "$ac_ct_OTOOL" >&6; }
9281else
9282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283printf "%s\n" "no" >&6; }
9284fi
9285
9286  if test "x$ac_ct_OTOOL" = x; then
9287    OTOOL=":"
9288  else
9289    case $cross_compiling:$ac_tool_warned in
9290yes:)
9291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9292printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9293ac_tool_warned=yes ;;
9294esac
9295    OTOOL=$ac_ct_OTOOL
9296  fi
9297else
9298  OTOOL="$ac_cv_prog_OTOOL"
9299fi
9300
9301    if test -n "$ac_tool_prefix"; then
9302  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9303set dummy ${ac_tool_prefix}otool64; ac_word=$2
9304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305printf %s "checking for $ac_word... " >&6; }
9306if test ${ac_cv_prog_OTOOL64+y}
9307then :
9308  printf %s "(cached) " >&6
9309else $as_nop
9310  if test -n "$OTOOL64"; then
9311  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9312else
9313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314for as_dir in $PATH
9315do
9316  IFS=$as_save_IFS
9317  case $as_dir in #(((
9318    '') as_dir=./ ;;
9319    */) ;;
9320    *) as_dir=$as_dir/ ;;
9321  esac
9322    for ac_exec_ext in '' $ac_executable_extensions; do
9323  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9324    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9325    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9326    break 2
9327  fi
9328done
9329  done
9330IFS=$as_save_IFS
9331
9332fi
9333fi
9334OTOOL64=$ac_cv_prog_OTOOL64
9335if test -n "$OTOOL64"; then
9336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9337printf "%s\n" "$OTOOL64" >&6; }
9338else
9339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340printf "%s\n" "no" >&6; }
9341fi
9342
9343
9344fi
9345if test -z "$ac_cv_prog_OTOOL64"; then
9346  ac_ct_OTOOL64=$OTOOL64
9347  # Extract the first word of "otool64", so it can be a program name with args.
9348set dummy otool64; ac_word=$2
9349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9350printf %s "checking for $ac_word... " >&6; }
9351if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9352then :
9353  printf %s "(cached) " >&6
9354else $as_nop
9355  if test -n "$ac_ct_OTOOL64"; then
9356  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9357else
9358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359for as_dir in $PATH
9360do
9361  IFS=$as_save_IFS
9362  case $as_dir in #(((
9363    '') as_dir=./ ;;
9364    */) ;;
9365    *) as_dir=$as_dir/ ;;
9366  esac
9367    for ac_exec_ext in '' $ac_executable_extensions; do
9368  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9369    ac_cv_prog_ac_ct_OTOOL64="otool64"
9370    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9371    break 2
9372  fi
9373done
9374  done
9375IFS=$as_save_IFS
9376
9377fi
9378fi
9379ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9380if test -n "$ac_ct_OTOOL64"; then
9381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9382printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9383else
9384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385printf "%s\n" "no" >&6; }
9386fi
9387
9388  if test "x$ac_ct_OTOOL64" = x; then
9389    OTOOL64=":"
9390  else
9391    case $cross_compiling:$ac_tool_warned in
9392yes:)
9393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9394printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9395ac_tool_warned=yes ;;
9396esac
9397    OTOOL64=$ac_ct_OTOOL64
9398  fi
9399else
9400  OTOOL64="$ac_cv_prog_OTOOL64"
9401fi
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9430printf %s "checking for -single_module linker flag... " >&6; }
9431if test ${lt_cv_apple_cc_single_mod+y}
9432then :
9433  printf %s "(cached) " >&6
9434else $as_nop
9435  lt_cv_apple_cc_single_mod=no
9436      if test -z "$LT_MULTI_MODULE"; then
9437	# By default we will add the -single_module flag. You can override
9438	# by either setting the environment variable LT_MULTI_MODULE
9439	# non-empty at configure time, or by adding -multi_module to the
9440	# link flags.
9441	rm -rf libconftest.dylib*
9442	echo "int foo(void){return 1;}" > conftest.c
9443	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9444-dynamiclib -Wl,-single_module conftest.c" >&5
9445	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9446	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9447        _lt_result=$?
9448	# If there is a non-empty error log, and "single_module"
9449	# appears in it, assume the flag caused a linker warning
9450        if test -s conftest.err && $GREP single_module conftest.err; then
9451	  cat conftest.err >&5
9452	# Otherwise, if the output was created with a 0 exit code from
9453	# the compiler, it worked.
9454	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9455	  lt_cv_apple_cc_single_mod=yes
9456	else
9457	  cat conftest.err >&5
9458	fi
9459	rm -rf libconftest.dylib*
9460	rm -f conftest.*
9461      fi
9462fi
9463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9464printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9465
9466    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9467printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9468if test ${lt_cv_ld_exported_symbols_list+y}
9469then :
9470  printf %s "(cached) " >&6
9471else $as_nop
9472  lt_cv_ld_exported_symbols_list=no
9473      save_LDFLAGS=$LDFLAGS
9474      echo "_main" > conftest.sym
9475      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9476      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478
9479int
9480main (void)
9481{
9482
9483  ;
9484  return 0;
9485}
9486_ACEOF
9487if ac_fn_c_try_link "$LINENO"
9488then :
9489  lt_cv_ld_exported_symbols_list=yes
9490else $as_nop
9491  lt_cv_ld_exported_symbols_list=no
9492fi
9493rm -f core conftest.err conftest.$ac_objext conftest.beam \
9494    conftest$ac_exeext conftest.$ac_ext
9495	LDFLAGS=$save_LDFLAGS
9496
9497fi
9498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9499printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9500
9501    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9502printf %s "checking for -force_load linker flag... " >&6; }
9503if test ${lt_cv_ld_force_load+y}
9504then :
9505  printf %s "(cached) " >&6
9506else $as_nop
9507  lt_cv_ld_force_load=no
9508      cat > conftest.c << _LT_EOF
9509int forced_loaded() { return 2;}
9510_LT_EOF
9511      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9512      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9513      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9514      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9515      echo "$RANLIB libconftest.a" >&5
9516      $RANLIB libconftest.a 2>&5
9517      cat > conftest.c << _LT_EOF
9518int main() { return 0;}
9519_LT_EOF
9520      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9521      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9522      _lt_result=$?
9523      if test -s conftest.err && $GREP force_load conftest.err; then
9524	cat conftest.err >&5
9525      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9526	lt_cv_ld_force_load=yes
9527      else
9528	cat conftest.err >&5
9529      fi
9530        rm -f conftest.err libconftest.a conftest conftest.c
9531        rm -rf conftest.dSYM
9532
9533fi
9534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9535printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9536    case $host_os in
9537    rhapsody* | darwin1.[012])
9538      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9539    darwin1.*)
9540      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9541    darwin*)
9542      case $MACOSX_DEPLOYMENT_TARGET,$host in
9543        10.[012],*|,*powerpc*-darwin[5-8]*)
9544          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9545        *)
9546          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9547      esac
9548    ;;
9549  esac
9550    if test yes = "$lt_cv_apple_cc_single_mod"; then
9551      _lt_dar_single_mod='$single_module'
9552    fi
9553    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9554      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9555    else
9556      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9557    fi
9558    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9559      _lt_dsymutil='~$DSYMUTIL $lib || :'
9560    else
9561      _lt_dsymutil=
9562    fi
9563    ;;
9564  esac
9565
9566# func_munge_path_list VARIABLE PATH
9567# -----------------------------------
9568# VARIABLE is name of variable containing _space_ separated list of
9569# directories to be munged by the contents of PATH, which is string
9570# having a format:
9571# "DIR[:DIR]:"
9572#       string "DIR[ DIR]" will be prepended to VARIABLE
9573# ":DIR[:DIR]"
9574#       string "DIR[ DIR]" will be appended to VARIABLE
9575# "DIRP[:DIRP]::[DIRA:]DIRA"
9576#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9577#       "DIRA[ DIRA]" will be appended to VARIABLE
9578# "DIR[:DIR]"
9579#       VARIABLE will be replaced by "DIR[ DIR]"
9580func_munge_path_list ()
9581{
9582    case x$2 in
9583    x)
9584        ;;
9585    *:)
9586        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9587        ;;
9588    x:*)
9589        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9590        ;;
9591    *::*)
9592        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9593        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9594        ;;
9595    *)
9596        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9597        ;;
9598    esac
9599}
9600
9601ac_header= ac_cache=
9602for ac_item in $ac_header_c_list
9603do
9604  if test $ac_cache; then
9605    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9606    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9607      printf "%s\n" "#define $ac_item 1" >> confdefs.h
9608    fi
9609    ac_header= ac_cache=
9610  elif test $ac_header; then
9611    ac_cache=$ac_item
9612  else
9613    ac_header=$ac_item
9614  fi
9615done
9616
9617
9618
9619
9620
9621
9622
9623
9624if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9625then :
9626
9627printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9628
9629fi
9630ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9631"
9632if test "x$ac_cv_header_dlfcn_h" = xyes
9633then :
9634  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9635
9636fi
9637
9638
9639
9640
9641
9642# Set options
9643enable_win32_dll=yes
9644
9645case $host in
9646*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9647  if test -n "$ac_tool_prefix"; then
9648  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9649set dummy ${ac_tool_prefix}as; ac_word=$2
9650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9651printf %s "checking for $ac_word... " >&6; }
9652if test ${ac_cv_prog_AS+y}
9653then :
9654  printf %s "(cached) " >&6
9655else $as_nop
9656  if test -n "$AS"; then
9657  ac_cv_prog_AS="$AS" # Let the user override the test.
9658else
9659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660for as_dir in $PATH
9661do
9662  IFS=$as_save_IFS
9663  case $as_dir in #(((
9664    '') as_dir=./ ;;
9665    */) ;;
9666    *) as_dir=$as_dir/ ;;
9667  esac
9668    for ac_exec_ext in '' $ac_executable_extensions; do
9669  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9670    ac_cv_prog_AS="${ac_tool_prefix}as"
9671    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9672    break 2
9673  fi
9674done
9675  done
9676IFS=$as_save_IFS
9677
9678fi
9679fi
9680AS=$ac_cv_prog_AS
9681if test -n "$AS"; then
9682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9683printf "%s\n" "$AS" >&6; }
9684else
9685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9686printf "%s\n" "no" >&6; }
9687fi
9688
9689
9690fi
9691if test -z "$ac_cv_prog_AS"; then
9692  ac_ct_AS=$AS
9693  # Extract the first word of "as", so it can be a program name with args.
9694set dummy as; ac_word=$2
9695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9696printf %s "checking for $ac_word... " >&6; }
9697if test ${ac_cv_prog_ac_ct_AS+y}
9698then :
9699  printf %s "(cached) " >&6
9700else $as_nop
9701  if test -n "$ac_ct_AS"; then
9702  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9703else
9704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9705for as_dir in $PATH
9706do
9707  IFS=$as_save_IFS
9708  case $as_dir in #(((
9709    '') as_dir=./ ;;
9710    */) ;;
9711    *) as_dir=$as_dir/ ;;
9712  esac
9713    for ac_exec_ext in '' $ac_executable_extensions; do
9714  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9715    ac_cv_prog_ac_ct_AS="as"
9716    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9717    break 2
9718  fi
9719done
9720  done
9721IFS=$as_save_IFS
9722
9723fi
9724fi
9725ac_ct_AS=$ac_cv_prog_ac_ct_AS
9726if test -n "$ac_ct_AS"; then
9727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9728printf "%s\n" "$ac_ct_AS" >&6; }
9729else
9730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9731printf "%s\n" "no" >&6; }
9732fi
9733
9734  if test "x$ac_ct_AS" = x; then
9735    AS="false"
9736  else
9737    case $cross_compiling:$ac_tool_warned in
9738yes:)
9739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9740printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9741ac_tool_warned=yes ;;
9742esac
9743    AS=$ac_ct_AS
9744  fi
9745else
9746  AS="$ac_cv_prog_AS"
9747fi
9748
9749  if test -n "$ac_tool_prefix"; then
9750  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9751set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753printf %s "checking for $ac_word... " >&6; }
9754if test ${ac_cv_prog_DLLTOOL+y}
9755then :
9756  printf %s "(cached) " >&6
9757else $as_nop
9758  if test -n "$DLLTOOL"; then
9759  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9760else
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764  IFS=$as_save_IFS
9765  case $as_dir in #(((
9766    '') as_dir=./ ;;
9767    */) ;;
9768    *) as_dir=$as_dir/ ;;
9769  esac
9770    for ac_exec_ext in '' $ac_executable_extensions; do
9771  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9772    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9773    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9774    break 2
9775  fi
9776done
9777  done
9778IFS=$as_save_IFS
9779
9780fi
9781fi
9782DLLTOOL=$ac_cv_prog_DLLTOOL
9783if test -n "$DLLTOOL"; then
9784  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9785printf "%s\n" "$DLLTOOL" >&6; }
9786else
9787  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788printf "%s\n" "no" >&6; }
9789fi
9790
9791
9792fi
9793if test -z "$ac_cv_prog_DLLTOOL"; then
9794  ac_ct_DLLTOOL=$DLLTOOL
9795  # Extract the first word of "dlltool", so it can be a program name with args.
9796set dummy dlltool; ac_word=$2
9797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798printf %s "checking for $ac_word... " >&6; }
9799if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9800then :
9801  printf %s "(cached) " >&6
9802else $as_nop
9803  if test -n "$ac_ct_DLLTOOL"; then
9804  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9805else
9806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809  IFS=$as_save_IFS
9810  case $as_dir in #(((
9811    '') as_dir=./ ;;
9812    */) ;;
9813    *) as_dir=$as_dir/ ;;
9814  esac
9815    for ac_exec_ext in '' $ac_executable_extensions; do
9816  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9817    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9818    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9819    break 2
9820  fi
9821done
9822  done
9823IFS=$as_save_IFS
9824
9825fi
9826fi
9827ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9828if test -n "$ac_ct_DLLTOOL"; then
9829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9830printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9831else
9832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833printf "%s\n" "no" >&6; }
9834fi
9835
9836  if test "x$ac_ct_DLLTOOL" = x; then
9837    DLLTOOL="false"
9838  else
9839    case $cross_compiling:$ac_tool_warned in
9840yes:)
9841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9842printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9843ac_tool_warned=yes ;;
9844esac
9845    DLLTOOL=$ac_ct_DLLTOOL
9846  fi
9847else
9848  DLLTOOL="$ac_cv_prog_DLLTOOL"
9849fi
9850
9851  if test -n "$ac_tool_prefix"; then
9852  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9853set dummy ${ac_tool_prefix}objdump; ac_word=$2
9854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9855printf %s "checking for $ac_word... " >&6; }
9856if test ${ac_cv_prog_OBJDUMP+y}
9857then :
9858  printf %s "(cached) " >&6
9859else $as_nop
9860  if test -n "$OBJDUMP"; then
9861  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9862else
9863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864for as_dir in $PATH
9865do
9866  IFS=$as_save_IFS
9867  case $as_dir in #(((
9868    '') as_dir=./ ;;
9869    */) ;;
9870    *) as_dir=$as_dir/ ;;
9871  esac
9872    for ac_exec_ext in '' $ac_executable_extensions; do
9873  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9874    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9875    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9876    break 2
9877  fi
9878done
9879  done
9880IFS=$as_save_IFS
9881
9882fi
9883fi
9884OBJDUMP=$ac_cv_prog_OBJDUMP
9885if test -n "$OBJDUMP"; then
9886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9887printf "%s\n" "$OBJDUMP" >&6; }
9888else
9889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890printf "%s\n" "no" >&6; }
9891fi
9892
9893
9894fi
9895if test -z "$ac_cv_prog_OBJDUMP"; then
9896  ac_ct_OBJDUMP=$OBJDUMP
9897  # Extract the first word of "objdump", so it can be a program name with args.
9898set dummy objdump; ac_word=$2
9899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900printf %s "checking for $ac_word... " >&6; }
9901if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9902then :
9903  printf %s "(cached) " >&6
9904else $as_nop
9905  if test -n "$ac_ct_OBJDUMP"; then
9906  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9907else
9908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $PATH
9910do
9911  IFS=$as_save_IFS
9912  case $as_dir in #(((
9913    '') as_dir=./ ;;
9914    */) ;;
9915    *) as_dir=$as_dir/ ;;
9916  esac
9917    for ac_exec_ext in '' $ac_executable_extensions; do
9918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9919    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9920    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9921    break 2
9922  fi
9923done
9924  done
9925IFS=$as_save_IFS
9926
9927fi
9928fi
9929ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9930if test -n "$ac_ct_OBJDUMP"; then
9931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9932printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9933else
9934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935printf "%s\n" "no" >&6; }
9936fi
9937
9938  if test "x$ac_ct_OBJDUMP" = x; then
9939    OBJDUMP="false"
9940  else
9941    case $cross_compiling:$ac_tool_warned in
9942yes:)
9943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9944printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9945ac_tool_warned=yes ;;
9946esac
9947    OBJDUMP=$ac_ct_OBJDUMP
9948  fi
9949else
9950  OBJDUMP="$ac_cv_prog_OBJDUMP"
9951fi
9952
9953  ;;
9954esac
9955
9956test -z "$AS" && AS=as
9957
9958
9959
9960
9961
9962test -z "$DLLTOOL" && DLLTOOL=dlltool
9963
9964
9965
9966
9967
9968test -z "$OBJDUMP" && OBJDUMP=objdump
9969
9970
9971
9972
9973
9974
9975
9976        enable_dlopen=no
9977
9978
9979
9980            # Check whether --enable-shared was given.
9981if test ${enable_shared+y}
9982then :
9983  enableval=$enable_shared; p=${PACKAGE-default}
9984    case $enableval in
9985    yes) enable_shared=yes ;;
9986    no) enable_shared=no ;;
9987    *)
9988      enable_shared=no
9989      # Look at the argument we got.  We use all the common list separators.
9990      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9991      for pkg in $enableval; do
9992	IFS=$lt_save_ifs
9993	if test "X$pkg" = "X$p"; then
9994	  enable_shared=yes
9995	fi
9996      done
9997      IFS=$lt_save_ifs
9998      ;;
9999    esac
10000else $as_nop
10001  enable_shared=yes
10002fi
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012  # Check whether --enable-static was given.
10013if test ${enable_static+y}
10014then :
10015  enableval=$enable_static; p=${PACKAGE-default}
10016    case $enableval in
10017    yes) enable_static=yes ;;
10018    no) enable_static=no ;;
10019    *)
10020     enable_static=no
10021      # Look at the argument we got.  We use all the common list separators.
10022      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10023      for pkg in $enableval; do
10024	IFS=$lt_save_ifs
10025	if test "X$pkg" = "X$p"; then
10026	  enable_static=yes
10027	fi
10028      done
10029      IFS=$lt_save_ifs
10030      ;;
10031    esac
10032else $as_nop
10033  enable_static=yes
10034fi
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045# Check whether --with-pic was given.
10046if test ${with_pic+y}
10047then :
10048  withval=$with_pic; lt_p=${PACKAGE-default}
10049    case $withval in
10050    yes|no) pic_mode=$withval ;;
10051    *)
10052      pic_mode=default
10053      # Look at the argument we got.  We use all the common list separators.
10054      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10055      for lt_pkg in $withval; do
10056	IFS=$lt_save_ifs
10057	if test "X$lt_pkg" = "X$lt_p"; then
10058	  pic_mode=yes
10059	fi
10060      done
10061      IFS=$lt_save_ifs
10062      ;;
10063    esac
10064else $as_nop
10065  pic_mode=default
10066fi
10067
10068
10069
10070
10071
10072
10073
10074
10075  # Check whether --enable-fast-install was given.
10076if test ${enable_fast_install+y}
10077then :
10078  enableval=$enable_fast_install; p=${PACKAGE-default}
10079    case $enableval in
10080    yes) enable_fast_install=yes ;;
10081    no) enable_fast_install=no ;;
10082    *)
10083      enable_fast_install=no
10084      # Look at the argument we got.  We use all the common list separators.
10085      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10086      for pkg in $enableval; do
10087	IFS=$lt_save_ifs
10088	if test "X$pkg" = "X$p"; then
10089	  enable_fast_install=yes
10090	fi
10091      done
10092      IFS=$lt_save_ifs
10093      ;;
10094    esac
10095else $as_nop
10096  enable_fast_install=yes
10097fi
10098
10099
10100
10101
10102
10103
10104
10105
10106  shared_archive_member_spec=
10107case $host,$enable_shared in
10108power*-*-aix[5-9]*,yes)
10109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10110printf %s "checking which variant of shared library versioning to provide... " >&6; }
10111
10112# Check whether --with-aix-soname was given.
10113if test ${with_aix_soname+y}
10114then :
10115  withval=$with_aix_soname; case $withval in
10116    aix|svr4|both)
10117      ;;
10118    *)
10119      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10120      ;;
10121    esac
10122    lt_cv_with_aix_soname=$with_aix_soname
10123else $as_nop
10124  if test ${lt_cv_with_aix_soname+y}
10125then :
10126  printf %s "(cached) " >&6
10127else $as_nop
10128  lt_cv_with_aix_soname=aix
10129fi
10130
10131    with_aix_soname=$lt_cv_with_aix_soname
10132fi
10133
10134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10135printf "%s\n" "$with_aix_soname" >&6; }
10136  if test aix != "$with_aix_soname"; then
10137    # For the AIX way of multilib, we name the shared archive member
10138    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10139    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10140    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10141    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10142    if test 64 = "${OBJECT_MODE-32}"; then
10143      shared_archive_member_spec=shr_64
10144    else
10145      shared_archive_member_spec=shr
10146    fi
10147  fi
10148  ;;
10149*)
10150  with_aix_soname=aix
10151  ;;
10152esac
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163# This can be used to rebuild libtool when needed
10164LIBTOOL_DEPS=$ltmain
10165
10166# Always use our own libtool.
10167LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198test -z "$LN_S" && LN_S="ln -s"
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213if test -n "${ZSH_VERSION+set}"; then
10214   setopt NO_GLOB_SUBST
10215fi
10216
10217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10218printf %s "checking for objdir... " >&6; }
10219if test ${lt_cv_objdir+y}
10220then :
10221  printf %s "(cached) " >&6
10222else $as_nop
10223  rm -f .libs 2>/dev/null
10224mkdir .libs 2>/dev/null
10225if test -d .libs; then
10226  lt_cv_objdir=.libs
10227else
10228  # MS-DOS does not allow filenames that begin with a dot.
10229  lt_cv_objdir=_libs
10230fi
10231rmdir .libs 2>/dev/null
10232fi
10233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10234printf "%s\n" "$lt_cv_objdir" >&6; }
10235objdir=$lt_cv_objdir
10236
10237
10238
10239
10240
10241printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10242
10243
10244
10245
10246case $host_os in
10247aix3*)
10248  # AIX sometimes has problems with the GCC collect2 program.  For some
10249  # reason, if we set the COLLECT_NAMES environment variable, the problems
10250  # vanish in a puff of smoke.
10251  if test set != "${COLLECT_NAMES+set}"; then
10252    COLLECT_NAMES=
10253    export COLLECT_NAMES
10254  fi
10255  ;;
10256esac
10257
10258# Global variables:
10259ofile=libtool
10260can_build_shared=yes
10261
10262# All known linkers require a '.a' archive for static linking (except MSVC and
10263# ICC, which need '.lib').
10264libext=a
10265
10266with_gnu_ld=$lt_cv_prog_gnu_ld
10267
10268old_CC=$CC
10269old_CFLAGS=$CFLAGS
10270
10271# Set sane defaults for various variables
10272test -z "$CC" && CC=cc
10273test -z "$LTCC" && LTCC=$CC
10274test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10275test -z "$LD" && LD=ld
10276test -z "$ac_objext" && ac_objext=o
10277
10278func_cc_basename $compiler
10279cc_basename=$func_cc_basename_result
10280
10281
10282# Only perform the check for file, if the check method requires it
10283test -z "$MAGIC_CMD" && MAGIC_CMD=file
10284case $deplibs_check_method in
10285file_magic*)
10286  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10287    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10288printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10289if test ${lt_cv_path_MAGIC_CMD+y}
10290then :
10291  printf %s "(cached) " >&6
10292else $as_nop
10293  case $MAGIC_CMD in
10294[\\/*] |  ?:[\\/]*)
10295  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10296  ;;
10297*)
10298  lt_save_MAGIC_CMD=$MAGIC_CMD
10299  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10300  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10301  for ac_dir in $ac_dummy; do
10302    IFS=$lt_save_ifs
10303    test -z "$ac_dir" && ac_dir=.
10304    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10305      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10306      if test -n "$file_magic_test_file"; then
10307	case $deplibs_check_method in
10308	"file_magic "*)
10309	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10310	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10311	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10312	    $EGREP "$file_magic_regex" > /dev/null; then
10313	    :
10314	  else
10315	    cat <<_LT_EOF 1>&2
10316
10317*** Warning: the command libtool uses to detect shared libraries,
10318*** $file_magic_cmd, produces output that libtool cannot recognize.
10319*** The result is that libtool may fail to recognize shared libraries
10320*** as such.  This will affect the creation of libtool libraries that
10321*** depend on shared libraries, but programs linked with such libtool
10322*** libraries will work regardless of this problem.  Nevertheless, you
10323*** may want to report the problem to your system manager and/or to
10324*** bug-libtool@gnu.org
10325
10326_LT_EOF
10327	  fi ;;
10328	esac
10329      fi
10330      break
10331    fi
10332  done
10333  IFS=$lt_save_ifs
10334  MAGIC_CMD=$lt_save_MAGIC_CMD
10335  ;;
10336esac
10337fi
10338
10339MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10340if test -n "$MAGIC_CMD"; then
10341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10342printf "%s\n" "$MAGIC_CMD" >&6; }
10343else
10344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345printf "%s\n" "no" >&6; }
10346fi
10347
10348
10349
10350
10351
10352if test -z "$lt_cv_path_MAGIC_CMD"; then
10353  if test -n "$ac_tool_prefix"; then
10354    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10355printf %s "checking for file... " >&6; }
10356if test ${lt_cv_path_MAGIC_CMD+y}
10357then :
10358  printf %s "(cached) " >&6
10359else $as_nop
10360  case $MAGIC_CMD in
10361[\\/*] |  ?:[\\/]*)
10362  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10363  ;;
10364*)
10365  lt_save_MAGIC_CMD=$MAGIC_CMD
10366  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10367  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10368  for ac_dir in $ac_dummy; do
10369    IFS=$lt_save_ifs
10370    test -z "$ac_dir" && ac_dir=.
10371    if test -f "$ac_dir/file"; then
10372      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10373      if test -n "$file_magic_test_file"; then
10374	case $deplibs_check_method in
10375	"file_magic "*)
10376	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10377	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10378	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10379	    $EGREP "$file_magic_regex" > /dev/null; then
10380	    :
10381	  else
10382	    cat <<_LT_EOF 1>&2
10383
10384*** Warning: the command libtool uses to detect shared libraries,
10385*** $file_magic_cmd, produces output that libtool cannot recognize.
10386*** The result is that libtool may fail to recognize shared libraries
10387*** as such.  This will affect the creation of libtool libraries that
10388*** depend on shared libraries, but programs linked with such libtool
10389*** libraries will work regardless of this problem.  Nevertheless, you
10390*** may want to report the problem to your system manager and/or to
10391*** bug-libtool@gnu.org
10392
10393_LT_EOF
10394	  fi ;;
10395	esac
10396      fi
10397      break
10398    fi
10399  done
10400  IFS=$lt_save_ifs
10401  MAGIC_CMD=$lt_save_MAGIC_CMD
10402  ;;
10403esac
10404fi
10405
10406MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10407if test -n "$MAGIC_CMD"; then
10408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10409printf "%s\n" "$MAGIC_CMD" >&6; }
10410else
10411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412printf "%s\n" "no" >&6; }
10413fi
10414
10415
10416  else
10417    MAGIC_CMD=:
10418  fi
10419fi
10420
10421  fi
10422  ;;
10423esac
10424
10425# Use C for the default configuration in the libtool script
10426
10427lt_save_CC=$CC
10428ac_ext=c
10429ac_cpp='$CPP $CPPFLAGS'
10430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10432ac_compiler_gnu=$ac_cv_c_compiler_gnu
10433
10434
10435# Source file extension for C test sources.
10436ac_ext=c
10437
10438# Object file extension for compiled C test sources.
10439objext=o
10440objext=$objext
10441
10442# Code to be used in simple compile tests
10443lt_simple_compile_test_code="int some_variable = 0;"
10444
10445# Code to be used in simple link tests
10446lt_simple_link_test_code='int main(){return(0);}'
10447
10448
10449
10450
10451
10452
10453
10454# If no C compiler was specified, use CC.
10455LTCC=${LTCC-"$CC"}
10456
10457# If no C compiler flags were specified, use CFLAGS.
10458LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10459
10460# Allow CC to be a program name with arguments.
10461compiler=$CC
10462
10463# Save the default compiler, since it gets overwritten when the other
10464# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10465compiler_DEFAULT=$CC
10466
10467# save warnings/boilerplate of simple test code
10468ac_outfile=conftest.$ac_objext
10469echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10470eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10471_lt_compiler_boilerplate=`cat conftest.err`
10472$RM conftest*
10473
10474ac_outfile=conftest.$ac_objext
10475echo "$lt_simple_link_test_code" >conftest.$ac_ext
10476eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10477_lt_linker_boilerplate=`cat conftest.err`
10478$RM -r conftest*
10479
10480
10481## CAVEAT EMPTOR:
10482## There is no encapsulation within the following macros, do not change
10483## the running order or otherwise move them around unless you know exactly
10484## what you are doing...
10485if test -n "$compiler"; then
10486
10487lt_prog_compiler_no_builtin_flag=
10488
10489if test yes = "$GCC"; then
10490  case $cc_basename in
10491  nvcc*)
10492    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10493  *)
10494    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10495  esac
10496
10497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10498printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10499if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10500then :
10501  printf %s "(cached) " >&6
10502else $as_nop
10503  lt_cv_prog_compiler_rtti_exceptions=no
10504   ac_outfile=conftest.$ac_objext
10505   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10506   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10507   # Insert the option either (1) after the last *FLAGS variable, or
10508   # (2) before a word containing "conftest.", or (3) at the end.
10509   # Note that $ac_compile itself does not contain backslashes and begins
10510   # with a dollar sign (not a hyphen), so the echo should work correctly.
10511   # The option is referenced via a variable to avoid confusing sed.
10512   lt_compile=`echo "$ac_compile" | $SED \
10513   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10514   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10515   -e 's:$: $lt_compiler_flag:'`
10516   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10517   (eval "$lt_compile" 2>conftest.err)
10518   ac_status=$?
10519   cat conftest.err >&5
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   if (exit $ac_status) && test -s "$ac_outfile"; then
10522     # The compiler can only warn and ignore the option if not recognized
10523     # So say no if there are warnings other than the usual output.
10524     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10525     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10526     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10527       lt_cv_prog_compiler_rtti_exceptions=yes
10528     fi
10529   fi
10530   $RM conftest*
10531
10532fi
10533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10534printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10535
10536if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10537    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10538else
10539    :
10540fi
10541
10542fi
10543
10544
10545
10546
10547
10548
10549  lt_prog_compiler_wl=
10550lt_prog_compiler_pic=
10551lt_prog_compiler_static=
10552
10553
10554  if test yes = "$GCC"; then
10555    lt_prog_compiler_wl='-Wl,'
10556    lt_prog_compiler_static='-static'
10557
10558    case $host_os in
10559      aix*)
10560      # All AIX code is PIC.
10561      if test ia64 = "$host_cpu"; then
10562	# AIX 5 now supports IA64 processor
10563	lt_prog_compiler_static='-Bstatic'
10564      fi
10565      lt_prog_compiler_pic='-fPIC'
10566      ;;
10567
10568    amigaos*)
10569      case $host_cpu in
10570      powerpc)
10571            # see comment about AmigaOS4 .so support
10572            lt_prog_compiler_pic='-fPIC'
10573        ;;
10574      m68k)
10575            # FIXME: we need at least 68020 code to build shared libraries, but
10576            # adding the '-m68020' flag to GCC prevents building anything better,
10577            # like '-m68040'.
10578            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10579        ;;
10580      esac
10581      ;;
10582
10583    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10584      # PIC is the default for these OSes.
10585      ;;
10586
10587    mingw* | cygwin* | pw32* | os2* | cegcc*)
10588      # This hack is so that the source file can tell whether it is being
10589      # built for inclusion in a dll (and should export symbols for example).
10590      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10591      # (--disable-auto-import) libraries
10592      lt_prog_compiler_pic='-DDLL_EXPORT'
10593      case $host_os in
10594      os2*)
10595	lt_prog_compiler_static='$wl-static'
10596	;;
10597      esac
10598      ;;
10599
10600    darwin* | rhapsody*)
10601      # PIC is the default on this platform
10602      # Common symbols not allowed in MH_DYLIB files
10603      lt_prog_compiler_pic='-fno-common'
10604      ;;
10605
10606    haiku*)
10607      # PIC is the default for Haiku.
10608      # The "-static" flag exists, but is broken.
10609      lt_prog_compiler_static=
10610      ;;
10611
10612    hpux*)
10613      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10614      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10615      # sets the default TLS model and affects inlining.
10616      case $host_cpu in
10617      hppa*64*)
10618	# +Z the default
10619	;;
10620      *)
10621	lt_prog_compiler_pic='-fPIC'
10622	;;
10623      esac
10624      ;;
10625
10626    interix[3-9]*)
10627      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10628      # Instead, we relocate shared libraries at runtime.
10629      ;;
10630
10631    msdosdjgpp*)
10632      # Just because we use GCC doesn't mean we suddenly get shared libraries
10633      # on systems that don't support them.
10634      lt_prog_compiler_can_build_shared=no
10635      enable_shared=no
10636      ;;
10637
10638    *nto* | *qnx*)
10639      # QNX uses GNU C++, but need to define -shared option too, otherwise
10640      # it will coredump.
10641      lt_prog_compiler_pic='-fPIC -shared'
10642      ;;
10643
10644    sysv4*MP*)
10645      if test -d /usr/nec; then
10646	lt_prog_compiler_pic=-Kconform_pic
10647      fi
10648      ;;
10649
10650    *)
10651      lt_prog_compiler_pic='-fPIC'
10652      ;;
10653    esac
10654
10655    case $cc_basename in
10656    nvcc*) # Cuda Compiler Driver 2.2
10657      lt_prog_compiler_wl='-Xlinker '
10658      if test -n "$lt_prog_compiler_pic"; then
10659        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10660      fi
10661      ;;
10662    esac
10663  else
10664    # PORTME Check for flag to pass linker flags through the system compiler.
10665    case $host_os in
10666    aix*)
10667      lt_prog_compiler_wl='-Wl,'
10668      if test ia64 = "$host_cpu"; then
10669	# AIX 5 now supports IA64 processor
10670	lt_prog_compiler_static='-Bstatic'
10671      else
10672	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10673      fi
10674      ;;
10675
10676    darwin* | rhapsody*)
10677      # PIC is the default on this platform
10678      # Common symbols not allowed in MH_DYLIB files
10679      lt_prog_compiler_pic='-fno-common'
10680      case $cc_basename in
10681      nagfor*)
10682        # NAG Fortran compiler
10683        lt_prog_compiler_wl='-Wl,-Wl,,'
10684        lt_prog_compiler_pic='-PIC'
10685        lt_prog_compiler_static='-Bstatic'
10686        ;;
10687      esac
10688      ;;
10689
10690    mingw* | cygwin* | pw32* | os2* | cegcc*)
10691      # This hack is so that the source file can tell whether it is being
10692      # built for inclusion in a dll (and should export symbols for example).
10693      lt_prog_compiler_pic='-DDLL_EXPORT'
10694      case $host_os in
10695      os2*)
10696	lt_prog_compiler_static='$wl-static'
10697	;;
10698      esac
10699      ;;
10700
10701    hpux9* | hpux10* | hpux11*)
10702      lt_prog_compiler_wl='-Wl,'
10703      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10704      # not for PA HP-UX.
10705      case $host_cpu in
10706      hppa*64*|ia64*)
10707	# +Z the default
10708	;;
10709      *)
10710	lt_prog_compiler_pic='+Z'
10711	;;
10712      esac
10713      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10714      lt_prog_compiler_static='$wl-a ${wl}archive'
10715      ;;
10716
10717    irix5* | irix6* | nonstopux*)
10718      lt_prog_compiler_wl='-Wl,'
10719      # PIC (with -KPIC) is the default.
10720      lt_prog_compiler_static='-non_shared'
10721      ;;
10722
10723    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10724      case $cc_basename in
10725      # old Intel for x86_64, which still supported -KPIC.
10726      ecc*)
10727	lt_prog_compiler_wl='-Wl,'
10728	lt_prog_compiler_pic='-KPIC'
10729	lt_prog_compiler_static='-static'
10730        ;;
10731      # flang / f18. f95 an alias for gfortran or flang on Debian
10732      flang* | f18* | f95*)
10733	lt_prog_compiler_wl='-Wl,'
10734	lt_prog_compiler_pic='-fPIC'
10735	lt_prog_compiler_static='-static'
10736        ;;
10737      # icc used to be incompatible with GCC.
10738      # ICC 10 doesn't accept -KPIC any more.
10739      icc* | ifort*)
10740	lt_prog_compiler_wl='-Wl,'
10741	lt_prog_compiler_pic='-fPIC'
10742	lt_prog_compiler_static='-static'
10743        ;;
10744      # Lahey Fortran 8.1.
10745      lf95*)
10746	lt_prog_compiler_wl='-Wl,'
10747	lt_prog_compiler_pic='--shared'
10748	lt_prog_compiler_static='--static'
10749	;;
10750      nagfor*)
10751	# NAG Fortran compiler
10752	lt_prog_compiler_wl='-Wl,-Wl,,'
10753	lt_prog_compiler_pic='-PIC'
10754	lt_prog_compiler_static='-Bstatic'
10755	;;
10756      tcc*)
10757	# Fabrice Bellard et al's Tiny C Compiler
10758	lt_prog_compiler_wl='-Wl,'
10759	lt_prog_compiler_pic='-fPIC'
10760	lt_prog_compiler_static='-static'
10761	;;
10762      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10763        # Portland Group compilers (*not* the Pentium gcc compiler,
10764	# which looks to be a dead project)
10765	lt_prog_compiler_wl='-Wl,'
10766	lt_prog_compiler_pic='-fpic'
10767	lt_prog_compiler_static='-Bstatic'
10768        ;;
10769      ccc*)
10770        lt_prog_compiler_wl='-Wl,'
10771        # All Alpha code is PIC.
10772        lt_prog_compiler_static='-non_shared'
10773        ;;
10774      xl* | bgxl* | bgf* | mpixl*)
10775	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10776	lt_prog_compiler_wl='-Wl,'
10777	lt_prog_compiler_pic='-qpic'
10778	lt_prog_compiler_static='-qstaticlink'
10779	;;
10780      *)
10781	case `$CC -V 2>&1 | $SED 5q` in
10782	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10783	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10784	  lt_prog_compiler_pic='-KPIC'
10785	  lt_prog_compiler_static='-Bstatic'
10786	  lt_prog_compiler_wl=''
10787	  ;;
10788	*Sun\ F* | *Sun*Fortran*)
10789	  lt_prog_compiler_pic='-KPIC'
10790	  lt_prog_compiler_static='-Bstatic'
10791	  lt_prog_compiler_wl='-Qoption ld '
10792	  ;;
10793	*Sun\ C*)
10794	  # Sun C 5.9
10795	  lt_prog_compiler_pic='-KPIC'
10796	  lt_prog_compiler_static='-Bstatic'
10797	  lt_prog_compiler_wl='-Wl,'
10798	  ;;
10799        *Intel*\ [CF]*Compiler*)
10800	  lt_prog_compiler_wl='-Wl,'
10801	  lt_prog_compiler_pic='-fPIC'
10802	  lt_prog_compiler_static='-static'
10803	  ;;
10804	*Portland\ Group*)
10805	  lt_prog_compiler_wl='-Wl,'
10806	  lt_prog_compiler_pic='-fpic'
10807	  lt_prog_compiler_static='-Bstatic'
10808	  ;;
10809	esac
10810	;;
10811      esac
10812      ;;
10813
10814    newsos6)
10815      lt_prog_compiler_pic='-KPIC'
10816      lt_prog_compiler_static='-Bstatic'
10817      ;;
10818
10819    *nto* | *qnx*)
10820      # QNX uses GNU C++, but need to define -shared option too, otherwise
10821      # it will coredump.
10822      lt_prog_compiler_pic='-fPIC -shared'
10823      ;;
10824
10825    osf3* | osf4* | osf5*)
10826      lt_prog_compiler_wl='-Wl,'
10827      # All OSF/1 code is PIC.
10828      lt_prog_compiler_static='-non_shared'
10829      ;;
10830
10831    rdos*)
10832      lt_prog_compiler_static='-non_shared'
10833      ;;
10834
10835    solaris*)
10836      lt_prog_compiler_pic='-KPIC'
10837      lt_prog_compiler_static='-Bstatic'
10838      case $cc_basename in
10839      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10840	lt_prog_compiler_wl='-Qoption ld ';;
10841      *)
10842	lt_prog_compiler_wl='-Wl,';;
10843      esac
10844      ;;
10845
10846    sunos4*)
10847      lt_prog_compiler_wl='-Qoption ld '
10848      lt_prog_compiler_pic='-PIC'
10849      lt_prog_compiler_static='-Bstatic'
10850      ;;
10851
10852    sysv4 | sysv4.2uw2* | sysv4.3*)
10853      lt_prog_compiler_wl='-Wl,'
10854      lt_prog_compiler_pic='-KPIC'
10855      lt_prog_compiler_static='-Bstatic'
10856      ;;
10857
10858    sysv4*MP*)
10859      if test -d /usr/nec; then
10860	lt_prog_compiler_pic='-Kconform_pic'
10861	lt_prog_compiler_static='-Bstatic'
10862      fi
10863      ;;
10864
10865    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10866      lt_prog_compiler_wl='-Wl,'
10867      lt_prog_compiler_pic='-KPIC'
10868      lt_prog_compiler_static='-Bstatic'
10869      ;;
10870
10871    unicos*)
10872      lt_prog_compiler_wl='-Wl,'
10873      lt_prog_compiler_can_build_shared=no
10874      ;;
10875
10876    uts4*)
10877      lt_prog_compiler_pic='-pic'
10878      lt_prog_compiler_static='-Bstatic'
10879      ;;
10880
10881    *)
10882      lt_prog_compiler_can_build_shared=no
10883      ;;
10884    esac
10885  fi
10886
10887case $host_os in
10888  # For platforms that do not support PIC, -DPIC is meaningless:
10889  *djgpp*)
10890    lt_prog_compiler_pic=
10891    ;;
10892  *)
10893    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10894    ;;
10895esac
10896
10897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10898printf %s "checking for $compiler option to produce PIC... " >&6; }
10899if test ${lt_cv_prog_compiler_pic+y}
10900then :
10901  printf %s "(cached) " >&6
10902else $as_nop
10903  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10904fi
10905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10906printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10907lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10908
10909#
10910# Check to make sure the PIC flag actually works.
10911#
10912if test -n "$lt_prog_compiler_pic"; then
10913  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10914printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10915if test ${lt_cv_prog_compiler_pic_works+y}
10916then :
10917  printf %s "(cached) " >&6
10918else $as_nop
10919  lt_cv_prog_compiler_pic_works=no
10920   ac_outfile=conftest.$ac_objext
10921   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10922   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10923   # Insert the option either (1) after the last *FLAGS variable, or
10924   # (2) before a word containing "conftest.", or (3) at the end.
10925   # Note that $ac_compile itself does not contain backslashes and begins
10926   # with a dollar sign (not a hyphen), so the echo should work correctly.
10927   # The option is referenced via a variable to avoid confusing sed.
10928   lt_compile=`echo "$ac_compile" | $SED \
10929   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10930   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10931   -e 's:$: $lt_compiler_flag:'`
10932   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10933   (eval "$lt_compile" 2>conftest.err)
10934   ac_status=$?
10935   cat conftest.err >&5
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   if (exit $ac_status) && test -s "$ac_outfile"; then
10938     # The compiler can only warn and ignore the option if not recognized
10939     # So say no if there are warnings other than the usual output.
10940     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10941     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10942     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10943       lt_cv_prog_compiler_pic_works=yes
10944     fi
10945   fi
10946   $RM conftest*
10947
10948fi
10949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10950printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10951
10952if test yes = "$lt_cv_prog_compiler_pic_works"; then
10953    case $lt_prog_compiler_pic in
10954     "" | " "*) ;;
10955     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10956     esac
10957else
10958    lt_prog_compiler_pic=
10959     lt_prog_compiler_can_build_shared=no
10960fi
10961
10962fi
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974#
10975# Check to make sure the static flag actually works.
10976#
10977wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10979printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10980if test ${lt_cv_prog_compiler_static_works+y}
10981then :
10982  printf %s "(cached) " >&6
10983else $as_nop
10984  lt_cv_prog_compiler_static_works=no
10985   save_LDFLAGS=$LDFLAGS
10986   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10987   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10988   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10989     # The linker can only warn and ignore the option if not recognized
10990     # So say no if there are warnings
10991     if test -s conftest.err; then
10992       # Append any errors to the config.log.
10993       cat conftest.err 1>&5
10994       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10995       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10996       if diff conftest.exp conftest.er2 >/dev/null; then
10997         lt_cv_prog_compiler_static_works=yes
10998       fi
10999     else
11000       lt_cv_prog_compiler_static_works=yes
11001     fi
11002   fi
11003   $RM -r conftest*
11004   LDFLAGS=$save_LDFLAGS
11005
11006fi
11007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11008printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11009
11010if test yes = "$lt_cv_prog_compiler_static_works"; then
11011    :
11012else
11013    lt_prog_compiler_static=
11014fi
11015
11016
11017
11018
11019
11020
11021
11022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11023printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11024if test ${lt_cv_prog_compiler_c_o+y}
11025then :
11026  printf %s "(cached) " >&6
11027else $as_nop
11028  lt_cv_prog_compiler_c_o=no
11029   $RM -r conftest 2>/dev/null
11030   mkdir conftest
11031   cd conftest
11032   mkdir out
11033   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11034
11035   lt_compiler_flag="-o out/conftest2.$ac_objext"
11036   # Insert the option either (1) after the last *FLAGS variable, or
11037   # (2) before a word containing "conftest.", or (3) at the end.
11038   # Note that $ac_compile itself does not contain backslashes and begins
11039   # with a dollar sign (not a hyphen), so the echo should work correctly.
11040   lt_compile=`echo "$ac_compile" | $SED \
11041   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11042   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11043   -e 's:$: $lt_compiler_flag:'`
11044   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11045   (eval "$lt_compile" 2>out/conftest.err)
11046   ac_status=$?
11047   cat out/conftest.err >&5
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11050   then
11051     # The compiler can only warn and ignore the option if not recognized
11052     # So say no if there are warnings
11053     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11054     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11055     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11056       lt_cv_prog_compiler_c_o=yes
11057     fi
11058   fi
11059   chmod u+w . 2>&5
11060   $RM conftest*
11061   # SGI C++ compiler will create directory out/ii_files/ for
11062   # template instantiation
11063   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11064   $RM out/* && rmdir out
11065   cd ..
11066   $RM -r conftest
11067   $RM conftest*
11068
11069fi
11070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11071printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11072
11073
11074
11075
11076
11077
11078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11079printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11080if test ${lt_cv_prog_compiler_c_o+y}
11081then :
11082  printf %s "(cached) " >&6
11083else $as_nop
11084  lt_cv_prog_compiler_c_o=no
11085   $RM -r conftest 2>/dev/null
11086   mkdir conftest
11087   cd conftest
11088   mkdir out
11089   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11090
11091   lt_compiler_flag="-o out/conftest2.$ac_objext"
11092   # Insert the option either (1) after the last *FLAGS variable, or
11093   # (2) before a word containing "conftest.", or (3) at the end.
11094   # Note that $ac_compile itself does not contain backslashes and begins
11095   # with a dollar sign (not a hyphen), so the echo should work correctly.
11096   lt_compile=`echo "$ac_compile" | $SED \
11097   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11098   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11099   -e 's:$: $lt_compiler_flag:'`
11100   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11101   (eval "$lt_compile" 2>out/conftest.err)
11102   ac_status=$?
11103   cat out/conftest.err >&5
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11106   then
11107     # The compiler can only warn and ignore the option if not recognized
11108     # So say no if there are warnings
11109     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11110     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11111     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11112       lt_cv_prog_compiler_c_o=yes
11113     fi
11114   fi
11115   chmod u+w . 2>&5
11116   $RM conftest*
11117   # SGI C++ compiler will create directory out/ii_files/ for
11118   # template instantiation
11119   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11120   $RM out/* && rmdir out
11121   cd ..
11122   $RM -r conftest
11123   $RM conftest*
11124
11125fi
11126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11127printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11128
11129
11130
11131
11132hard_links=nottested
11133if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11134  # do not overwrite the value of need_locks provided by the user
11135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11136printf %s "checking if we can lock with hard links... " >&6; }
11137  hard_links=yes
11138  $RM conftest*
11139  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11140  touch conftest.a
11141  ln conftest.a conftest.b 2>&5 || hard_links=no
11142  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11144printf "%s\n" "$hard_links" >&6; }
11145  if test no = "$hard_links"; then
11146    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11147printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11148    need_locks=warn
11149  fi
11150else
11151  need_locks=no
11152fi
11153
11154
11155
11156
11157
11158
11159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11160printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11161
11162  runpath_var=
11163  allow_undefined_flag=
11164  always_export_symbols=no
11165  archive_cmds=
11166  archive_expsym_cmds=
11167  compiler_needs_object=no
11168  enable_shared_with_static_runtimes=no
11169  export_dynamic_flag_spec=
11170  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11171  hardcode_automatic=no
11172  hardcode_direct=no
11173  hardcode_direct_absolute=no
11174  hardcode_libdir_flag_spec=
11175  hardcode_libdir_separator=
11176  hardcode_minus_L=no
11177  hardcode_shlibpath_var=unsupported
11178  inherit_rpath=no
11179  link_all_deplibs=unknown
11180  module_cmds=
11181  module_expsym_cmds=
11182  old_archive_from_new_cmds=
11183  old_archive_from_expsyms_cmds=
11184  thread_safe_flag_spec=
11185  whole_archive_flag_spec=
11186  # include_expsyms should be a list of space-separated symbols to be *always*
11187  # included in the symbol list
11188  include_expsyms=
11189  # exclude_expsyms can be an extended regexp of symbols to exclude
11190  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11191  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11192  # as well as any symbol that contains 'd'.
11193  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11194  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11195  # platforms (ab)use it in PIC code, but their linkers get confused if
11196  # the symbol is explicitly referenced.  Since portable code cannot
11197  # rely on this symbol name, it's probably fine to never include it in
11198  # preloaded symbol tables.
11199  # Exclude shared library initialization/finalization symbols.
11200  extract_expsyms_cmds=
11201
11202  case $host_os in
11203  cygwin* | mingw* | pw32* | cegcc*)
11204    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11205    # When not using gcc, we currently assume that we are using
11206    # Microsoft Visual C++ or Intel C++ Compiler.
11207    if test yes != "$GCC"; then
11208      with_gnu_ld=no
11209    fi
11210    ;;
11211  interix*)
11212    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11213    with_gnu_ld=yes
11214    ;;
11215  openbsd* | bitrig*)
11216    with_gnu_ld=no
11217    ;;
11218  linux* | k*bsd*-gnu | gnu*)
11219    link_all_deplibs=no
11220    ;;
11221  esac
11222
11223  ld_shlibs=yes
11224
11225  # On some targets, GNU ld is compatible enough with the native linker
11226  # that we're better off using the native interface for both.
11227  lt_use_gnu_ld_interface=no
11228  if test yes = "$with_gnu_ld"; then
11229    case $host_os in
11230      aix*)
11231	# The AIX port of GNU ld has always aspired to compatibility
11232	# with the native linker.  However, as the warning in the GNU ld
11233	# block says, versions before 2.19.5* couldn't really create working
11234	# shared libraries, regardless of the interface used.
11235	case `$LD -v 2>&1` in
11236	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11237	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11238	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11239	  *)
11240	    lt_use_gnu_ld_interface=yes
11241	    ;;
11242	esac
11243	;;
11244      *)
11245	lt_use_gnu_ld_interface=yes
11246	;;
11247    esac
11248  fi
11249
11250  if test yes = "$lt_use_gnu_ld_interface"; then
11251    # If archive_cmds runs LD, not CC, wlarc should be empty
11252    wlarc='$wl'
11253
11254    # Set some defaults for GNU ld with shared library support. These
11255    # are reset later if shared libraries are not supported. Putting them
11256    # here allows them to be overridden if necessary.
11257    runpath_var=LD_RUN_PATH
11258    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11259    export_dynamic_flag_spec='$wl--export-dynamic'
11260    # ancient GNU ld didn't support --whole-archive et. al.
11261    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11262      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11263    else
11264      whole_archive_flag_spec=
11265    fi
11266    supports_anon_versioning=no
11267    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11268      *GNU\ gold*) supports_anon_versioning=yes ;;
11269      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11270      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11271      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11272      *\ 2.11.*) ;; # other 2.11 versions
11273      *) supports_anon_versioning=yes ;;
11274    esac
11275
11276    # See if GNU ld supports shared libraries.
11277    case $host_os in
11278    aix[3-9]*)
11279      # On AIX/PPC, the GNU linker is very broken
11280      if test ia64 != "$host_cpu"; then
11281	ld_shlibs=no
11282	cat <<_LT_EOF 1>&2
11283
11284*** Warning: the GNU linker, at least up to release 2.19, is reported
11285*** to be unable to reliably create shared libraries on AIX.
11286*** Therefore, libtool is disabling shared libraries support.  If you
11287*** really care for shared libraries, you may want to install binutils
11288*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11289*** You will then need to restart the configuration process.
11290
11291_LT_EOF
11292      fi
11293      ;;
11294
11295    amigaos*)
11296      case $host_cpu in
11297      powerpc)
11298            # see comment about AmigaOS4 .so support
11299            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11300            archive_expsym_cmds=''
11301        ;;
11302      m68k)
11303            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)'
11304            hardcode_libdir_flag_spec='-L$libdir'
11305            hardcode_minus_L=yes
11306        ;;
11307      esac
11308      ;;
11309
11310    beos*)
11311      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11312	allow_undefined_flag=unsupported
11313	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11314	# support --undefined.  This deserves some investigation.  FIXME
11315	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11316      else
11317	ld_shlibs=no
11318      fi
11319      ;;
11320
11321    cygwin* | mingw* | pw32* | cegcc*)
11322      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11323      # as there is no search path for DLLs.
11324      hardcode_libdir_flag_spec='-L$libdir'
11325      export_dynamic_flag_spec='$wl--export-all-symbols'
11326      allow_undefined_flag=unsupported
11327      always_export_symbols=no
11328      enable_shared_with_static_runtimes=yes
11329      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11330      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11331
11332      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11333        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11334	# If the export-symbols file already is a .def file, use it as
11335	# is; otherwise, prepend EXPORTS...
11336	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11337          cp $export_symbols $output_objdir/$soname.def;
11338        else
11339          echo EXPORTS > $output_objdir/$soname.def;
11340          cat $export_symbols >> $output_objdir/$soname.def;
11341        fi~
11342        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11343      else
11344	ld_shlibs=no
11345      fi
11346      ;;
11347
11348    haiku*)
11349      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11350      link_all_deplibs=yes
11351      ;;
11352
11353    os2*)
11354      hardcode_libdir_flag_spec='-L$libdir'
11355      hardcode_minus_L=yes
11356      allow_undefined_flag=unsupported
11357      shrext_cmds=.dll
11358      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11359	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11360	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11361	$ECHO EXPORTS >> $output_objdir/$libname.def~
11362	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11363	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11364	emximp -o $lib $output_objdir/$libname.def'
11365      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11366	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11367	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11368	$ECHO EXPORTS >> $output_objdir/$libname.def~
11369	prefix_cmds="$SED"~
11370	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11371	  prefix_cmds="$prefix_cmds -e 1d";
11372	fi~
11373	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11374	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11375	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11376	emximp -o $lib $output_objdir/$libname.def'
11377      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11378      enable_shared_with_static_runtimes=yes
11379      file_list_spec='@'
11380      ;;
11381
11382    interix[3-9]*)
11383      hardcode_direct=no
11384      hardcode_shlibpath_var=no
11385      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11386      export_dynamic_flag_spec='$wl-E'
11387      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11388      # Instead, shared libraries are loaded at an image base (0x10000000 by
11389      # default) and relocated if they conflict, which is a slow very memory
11390      # consuming and fragmenting process.  To avoid this, we pick a random,
11391      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11392      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11393      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11394      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'
11395      ;;
11396
11397    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11398      tmp_diet=no
11399      if test linux-dietlibc = "$host_os"; then
11400	case $cc_basename in
11401	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11402	esac
11403      fi
11404      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11405	 && test no = "$tmp_diet"
11406      then
11407	tmp_addflag=' $pic_flag'
11408	tmp_sharedflag='-shared'
11409	case $cc_basename,$host_cpu in
11410        pgcc*)				# Portland Group C compiler
11411	  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'
11412	  tmp_addflag=' $pic_flag'
11413	  ;;
11414	pgf77* | pgf90* | pgf95* | pgfortran*)
11415					# Portland Group f77 and f90 compilers
11416	  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'
11417	  tmp_addflag=' $pic_flag -Mnomain' ;;
11418	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11419	  tmp_addflag=' -i_dynamic' ;;
11420	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11421	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11422	ifc* | ifort*)			# Intel Fortran compiler
11423	  tmp_addflag=' -nofor_main' ;;
11424	lf95*)				# Lahey Fortran 8.1
11425	  whole_archive_flag_spec=
11426	  tmp_sharedflag='--shared' ;;
11427        nagfor*)                        # NAGFOR 5.3
11428          tmp_sharedflag='-Wl,-shared' ;;
11429	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11430	  tmp_sharedflag='-qmkshrobj'
11431	  tmp_addflag= ;;
11432	nvcc*)	# Cuda Compiler Driver 2.2
11433	  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'
11434	  compiler_needs_object=yes
11435	  ;;
11436	esac
11437	case `$CC -V 2>&1 | $SED 5q` in
11438	*Sun\ C*)			# Sun C 5.9
11439	  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'
11440	  compiler_needs_object=yes
11441	  tmp_sharedflag='-G' ;;
11442	*Sun\ F*)			# Sun Fortran 8.3
11443	  tmp_sharedflag='-G' ;;
11444	esac
11445	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11446
11447        if test yes = "$supports_anon_versioning"; then
11448          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11449            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11450            echo "local: *; };" >> $output_objdir/$libname.ver~
11451            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11452        fi
11453
11454	case $cc_basename in
11455	tcc*)
11456	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11457	  export_dynamic_flag_spec='-rdynamic'
11458	  ;;
11459	xlf* | bgf* | bgxlf* | mpixlf*)
11460	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11461	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11462	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11463	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11464	  if test yes = "$supports_anon_versioning"; then
11465	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11466              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11467              echo "local: *; };" >> $output_objdir/$libname.ver~
11468              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11469	  fi
11470	  ;;
11471	esac
11472      else
11473        ld_shlibs=no
11474      fi
11475      ;;
11476
11477    netbsd* | netbsdelf*-gnu)
11478      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11479	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11480	wlarc=
11481      else
11482	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11483	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11484      fi
11485      ;;
11486
11487    solaris*)
11488      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11489	ld_shlibs=no
11490	cat <<_LT_EOF 1>&2
11491
11492*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11493*** create shared libraries on Solaris systems.  Therefore, libtool
11494*** is disabling shared libraries support.  We urge you to upgrade GNU
11495*** binutils to release 2.9.1 or newer.  Another option is to modify
11496*** your PATH or compiler configuration so that the native linker is
11497*** used, and then restart.
11498
11499_LT_EOF
11500      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11501	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11502	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11503      else
11504	ld_shlibs=no
11505      fi
11506      ;;
11507
11508    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11509      case `$LD -v 2>&1` in
11510        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11511	ld_shlibs=no
11512	cat <<_LT_EOF 1>&2
11513
11514*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11515*** reliably create shared libraries on SCO systems.  Therefore, libtool
11516*** is disabling shared libraries support.  We urge you to upgrade GNU
11517*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11518*** your PATH or compiler configuration so that the native linker is
11519*** used, and then restart.
11520
11521_LT_EOF
11522	;;
11523	*)
11524	  # For security reasons, it is highly recommended that you always
11525	  # use absolute paths for naming shared libraries, and exclude the
11526	  # DT_RUNPATH tag from executables and libraries.  But doing so
11527	  # requires that you compile everything twice, which is a pain.
11528	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11529	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11530	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11531	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11532	  else
11533	    ld_shlibs=no
11534	  fi
11535	;;
11536      esac
11537      ;;
11538
11539    sunos4*)
11540      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11541      wlarc=
11542      hardcode_direct=yes
11543      hardcode_shlibpath_var=no
11544      ;;
11545
11546    *)
11547      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11548	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11549	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11550      else
11551	ld_shlibs=no
11552      fi
11553      ;;
11554    esac
11555
11556    if test no = "$ld_shlibs"; then
11557      runpath_var=
11558      hardcode_libdir_flag_spec=
11559      export_dynamic_flag_spec=
11560      whole_archive_flag_spec=
11561    fi
11562  else
11563    # PORTME fill in a description of your system's linker (not GNU ld)
11564    case $host_os in
11565    aix3*)
11566      allow_undefined_flag=unsupported
11567      always_export_symbols=yes
11568      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'
11569      # Note: this linker hardcodes the directories in LIBPATH if there
11570      # are no directories specified by -L.
11571      hardcode_minus_L=yes
11572      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11573	# Neither direct hardcoding nor static linking is supported with a
11574	# broken collect2.
11575	hardcode_direct=unsupported
11576      fi
11577      ;;
11578
11579    aix[4-9]*)
11580      if test ia64 = "$host_cpu"; then
11581	# On IA64, the linker does run time linking by default, so we don't
11582	# have to do anything special.
11583	aix_use_runtimelinking=no
11584	exp_sym_flag='-Bexport'
11585	no_entry_flag=
11586      else
11587	# If we're using GNU nm, then we don't want the "-C" option.
11588	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11589	# Without the "-l" option, or with the "-B" option, AIX nm treats
11590	# weak defined symbols like other global defined symbols, whereas
11591	# GNU nm marks them as "W".
11592	# While the 'weak' keyword is ignored in the Export File, we need
11593	# it in the Import File for the 'aix-soname' feature, so we have
11594	# to replace the "-B" option with "-P" for AIX nm.
11595	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11596	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11597	else
11598	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11599	fi
11600	aix_use_runtimelinking=no
11601
11602	# Test if we are trying to use run time linking or normal
11603	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11604	# have runtime linking enabled, and use it for executables.
11605	# For shared libraries, we enable/disable runtime linking
11606	# depending on the kind of the shared library created -
11607	# when "with_aix_soname,aix_use_runtimelinking" is:
11608	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11609	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11610	#            lib.a           static archive
11611	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11612	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11613	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11614	#            lib.a(lib.so.V) shared, rtl:no
11615	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11616	#            lib.a           static archive
11617	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11618	  for ld_flag in $LDFLAGS; do
11619	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11620	    aix_use_runtimelinking=yes
11621	    break
11622	  fi
11623	  done
11624	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11625	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11626	    # so we don't have lib.a shared libs to link our executables.
11627	    # We have to force runtime linking in this case.
11628	    aix_use_runtimelinking=yes
11629	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11630	  fi
11631	  ;;
11632	esac
11633
11634	exp_sym_flag='-bexport'
11635	no_entry_flag='-bnoentry'
11636      fi
11637
11638      # When large executables or shared objects are built, AIX ld can
11639      # have problems creating the table of contents.  If linking a library
11640      # or program results in "error TOC overflow" add -mminimal-toc to
11641      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11642      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11643
11644      archive_cmds=''
11645      hardcode_direct=yes
11646      hardcode_direct_absolute=yes
11647      hardcode_libdir_separator=':'
11648      link_all_deplibs=yes
11649      file_list_spec='$wl-f,'
11650      case $with_aix_soname,$aix_use_runtimelinking in
11651      aix,*) ;; # traditional, no import file
11652      svr4,* | *,yes) # use import file
11653	# The Import File defines what to hardcode.
11654	hardcode_direct=no
11655	hardcode_direct_absolute=no
11656	;;
11657      esac
11658
11659      if test yes = "$GCC"; then
11660	case $host_os in aix4.[012]|aix4.[012].*)
11661	# We only want to do this on AIX 4.2 and lower, the check
11662	# below for broken collect2 doesn't work under 4.3+
11663	  collect2name=`$CC -print-prog-name=collect2`
11664	  if test -f "$collect2name" &&
11665	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11666	  then
11667	  # We have reworked collect2
11668	  :
11669	  else
11670	  # We have old collect2
11671	  hardcode_direct=unsupported
11672	  # It fails to find uninstalled libraries when the uninstalled
11673	  # path is not listed in the libpath.  Setting hardcode_minus_L
11674	  # to unsupported forces relinking
11675	  hardcode_minus_L=yes
11676	  hardcode_libdir_flag_spec='-L$libdir'
11677	  hardcode_libdir_separator=
11678	  fi
11679	  ;;
11680	esac
11681	shared_flag='-shared'
11682	if test yes = "$aix_use_runtimelinking"; then
11683	  shared_flag="$shared_flag "'$wl-G'
11684	fi
11685	# Need to ensure runtime linking is disabled for the traditional
11686	# shared library, or the linker may eventually find shared libraries
11687	# /with/ Import File - we do not want to mix them.
11688	shared_flag_aix='-shared'
11689	shared_flag_svr4='-shared $wl-G'
11690      else
11691	# not using gcc
11692	if test ia64 = "$host_cpu"; then
11693	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11694	# chokes on -Wl,-G. The following line is correct:
11695	  shared_flag='-G'
11696	else
11697	  if test yes = "$aix_use_runtimelinking"; then
11698	    shared_flag='$wl-G'
11699	  else
11700	    shared_flag='$wl-bM:SRE'
11701	  fi
11702	  shared_flag_aix='$wl-bM:SRE'
11703	  shared_flag_svr4='$wl-G'
11704	fi
11705      fi
11706
11707      export_dynamic_flag_spec='$wl-bexpall'
11708      # It seems that -bexpall does not export symbols beginning with
11709      # underscore (_), so it is better to generate a list of symbols to export.
11710      always_export_symbols=yes
11711      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11712	# Warning - without using the other runtime loading flags (-brtl),
11713	# -berok will link without error, but may produce a broken library.
11714	allow_undefined_flag='-berok'
11715        # Determine the default libpath from the value encoded in an
11716        # empty executable.
11717        if test set = "${lt_cv_aix_libpath+set}"; then
11718  aix_libpath=$lt_cv_aix_libpath
11719else
11720  if test ${lt_cv_aix_libpath_+y}
11721then :
11722  printf %s "(cached) " >&6
11723else $as_nop
11724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725/* end confdefs.h.  */
11726
11727int
11728main (void)
11729{
11730
11731  ;
11732  return 0;
11733}
11734_ACEOF
11735if ac_fn_c_try_link "$LINENO"
11736then :
11737
11738  lt_aix_libpath_sed='
11739      /Import File Strings/,/^$/ {
11740	  /^0/ {
11741	      s/^0  *\([^ ]*\) *$/\1/
11742	      p
11743	  }
11744      }'
11745  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11746  # Check for a 64-bit object if we didn't find anything.
11747  if test -z "$lt_cv_aix_libpath_"; then
11748    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11749  fi
11750fi
11751rm -f core conftest.err conftest.$ac_objext conftest.beam \
11752    conftest$ac_exeext conftest.$ac_ext
11753  if test -z "$lt_cv_aix_libpath_"; then
11754    lt_cv_aix_libpath_=/usr/lib:/lib
11755  fi
11756
11757fi
11758
11759  aix_libpath=$lt_cv_aix_libpath_
11760fi
11761
11762        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11763        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11764      else
11765	if test ia64 = "$host_cpu"; then
11766	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11767	  allow_undefined_flag="-z nodefs"
11768	  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"
11769	else
11770	 # Determine the default libpath from the value encoded in an
11771	 # empty executable.
11772	 if test set = "${lt_cv_aix_libpath+set}"; then
11773  aix_libpath=$lt_cv_aix_libpath
11774else
11775  if test ${lt_cv_aix_libpath_+y}
11776then :
11777  printf %s "(cached) " >&6
11778else $as_nop
11779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780/* end confdefs.h.  */
11781
11782int
11783main (void)
11784{
11785
11786  ;
11787  return 0;
11788}
11789_ACEOF
11790if ac_fn_c_try_link "$LINENO"
11791then :
11792
11793  lt_aix_libpath_sed='
11794      /Import File Strings/,/^$/ {
11795	  /^0/ {
11796	      s/^0  *\([^ ]*\) *$/\1/
11797	      p
11798	  }
11799      }'
11800  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11801  # Check for a 64-bit object if we didn't find anything.
11802  if test -z "$lt_cv_aix_libpath_"; then
11803    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11804  fi
11805fi
11806rm -f core conftest.err conftest.$ac_objext conftest.beam \
11807    conftest$ac_exeext conftest.$ac_ext
11808  if test -z "$lt_cv_aix_libpath_"; then
11809    lt_cv_aix_libpath_=/usr/lib:/lib
11810  fi
11811
11812fi
11813
11814  aix_libpath=$lt_cv_aix_libpath_
11815fi
11816
11817	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11818	  # Warning - without using the other run time loading flags,
11819	  # -berok will link without error, but may produce a broken library.
11820	  no_undefined_flag=' $wl-bernotok'
11821	  allow_undefined_flag=' $wl-berok'
11822	  if test yes = "$with_gnu_ld"; then
11823	    # We only use this code for GNU lds that support --whole-archive.
11824	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11825	  else
11826	    # Exported symbols can be pulled into shared objects from archives
11827	    whole_archive_flag_spec='$convenience'
11828	  fi
11829	  archive_cmds_need_lc=yes
11830	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11831	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11832	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11833	  if test svr4 != "$with_aix_soname"; then
11834	    # This is similar to how AIX traditionally builds its shared libraries.
11835	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11836	  fi
11837	  if test aix != "$with_aix_soname"; then
11838	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11839	  else
11840	    # used by -dlpreopen to get the symbols
11841	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11842	  fi
11843	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11844	fi
11845      fi
11846      ;;
11847
11848    amigaos*)
11849      case $host_cpu in
11850      powerpc)
11851            # see comment about AmigaOS4 .so support
11852            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11853            archive_expsym_cmds=''
11854        ;;
11855      m68k)
11856            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)'
11857            hardcode_libdir_flag_spec='-L$libdir'
11858            hardcode_minus_L=yes
11859        ;;
11860      esac
11861      ;;
11862
11863    bsdi[45]*)
11864      export_dynamic_flag_spec=-rdynamic
11865      ;;
11866
11867    cygwin* | mingw* | pw32* | cegcc*)
11868      # When not using gcc, we currently assume that we are using
11869      # Microsoft Visual C++ or Intel C++ Compiler.
11870      # hardcode_libdir_flag_spec is actually meaningless, as there is
11871      # no search path for DLLs.
11872      case $cc_basename in
11873      cl* | icl*)
11874	# Native MSVC or ICC
11875	hardcode_libdir_flag_spec=' '
11876	allow_undefined_flag=unsupported
11877	always_export_symbols=yes
11878	file_list_spec='@'
11879	# Tell ltmain to make .lib files, not .a files.
11880	libext=lib
11881	# Tell ltmain to make .dll files, not .so files.
11882	shrext_cmds=.dll
11883	# FIXME: Setting linknames here is a bad hack.
11884	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11885	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11886            cp "$export_symbols" "$output_objdir/$soname.def";
11887            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11888          else
11889            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11890          fi~
11891          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11892          linknames='
11893	# The linker will not automatically build a static lib if we build a DLL.
11894	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11895	enable_shared_with_static_runtimes=yes
11896	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11897	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11898	# Don't use ranlib
11899	old_postinstall_cmds='chmod 644 $oldlib'
11900	postlink_cmds='lt_outputfile="@OUTPUT@"~
11901          lt_tool_outputfile="@TOOL_OUTPUT@"~
11902          case $lt_outputfile in
11903            *.exe|*.EXE) ;;
11904            *)
11905              lt_outputfile=$lt_outputfile.exe
11906              lt_tool_outputfile=$lt_tool_outputfile.exe
11907              ;;
11908          esac~
11909          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11910            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11911            $RM "$lt_outputfile.manifest";
11912          fi'
11913	;;
11914      *)
11915	# Assume MSVC and ICC wrapper
11916	hardcode_libdir_flag_spec=' '
11917	allow_undefined_flag=unsupported
11918	# Tell ltmain to make .lib files, not .a files.
11919	libext=lib
11920	# Tell ltmain to make .dll files, not .so files.
11921	shrext_cmds=.dll
11922	# FIXME: Setting linknames here is a bad hack.
11923	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11924	# The linker will automatically build a .lib file if we build a DLL.
11925	old_archive_from_new_cmds='true'
11926	# FIXME: Should let the user specify the lib program.
11927	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11928	enable_shared_with_static_runtimes=yes
11929	;;
11930      esac
11931      ;;
11932
11933    darwin* | rhapsody*)
11934
11935
11936  archive_cmds_need_lc=no
11937  hardcode_direct=no
11938  hardcode_automatic=yes
11939  hardcode_shlibpath_var=unsupported
11940  if test yes = "$lt_cv_ld_force_load"; then
11941    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\"`'
11942
11943  else
11944    whole_archive_flag_spec=''
11945  fi
11946  link_all_deplibs=yes
11947  allow_undefined_flag=$_lt_dar_allow_undefined
11948  case $cc_basename in
11949     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11950     *) _lt_dar_can_shared=$GCC ;;
11951  esac
11952  if test yes = "$_lt_dar_can_shared"; then
11953    output_verbose_link_cmd=func_echo_all
11954    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11955    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11956    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"
11957    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"
11958
11959  else
11960  ld_shlibs=no
11961  fi
11962
11963      ;;
11964
11965    dgux*)
11966      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11967      hardcode_libdir_flag_spec='-L$libdir'
11968      hardcode_shlibpath_var=no
11969      ;;
11970
11971    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11972    # support.  Future versions do this automatically, but an explicit c++rt0.o
11973    # does not break anything, and helps significantly (at the cost of a little
11974    # extra space).
11975    freebsd2.2*)
11976      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11977      hardcode_libdir_flag_spec='-R$libdir'
11978      hardcode_direct=yes
11979      hardcode_shlibpath_var=no
11980      ;;
11981
11982    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11983    freebsd2.*)
11984      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11985      hardcode_direct=yes
11986      hardcode_minus_L=yes
11987      hardcode_shlibpath_var=no
11988      ;;
11989
11990    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11991    freebsd* | dragonfly* | midnightbsd*)
11992      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11993      hardcode_libdir_flag_spec='-R$libdir'
11994      hardcode_direct=yes
11995      hardcode_shlibpath_var=no
11996      ;;
11997
11998    hpux9*)
11999      if test yes = "$GCC"; then
12000	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12001      else
12002	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12003      fi
12004      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12005      hardcode_libdir_separator=:
12006      hardcode_direct=yes
12007
12008      # hardcode_minus_L: Not really in the search PATH,
12009      # but as the default location of the library.
12010      hardcode_minus_L=yes
12011      export_dynamic_flag_spec='$wl-E'
12012      ;;
12013
12014    hpux10*)
12015      if test yes,no = "$GCC,$with_gnu_ld"; then
12016	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12017      else
12018	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12019      fi
12020      if test no = "$with_gnu_ld"; then
12021	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12022	hardcode_libdir_separator=:
12023	hardcode_direct=yes
12024	hardcode_direct_absolute=yes
12025	export_dynamic_flag_spec='$wl-E'
12026	# hardcode_minus_L: Not really in the search PATH,
12027	# but as the default location of the library.
12028	hardcode_minus_L=yes
12029      fi
12030      ;;
12031
12032    hpux11*)
12033      if test yes,no = "$GCC,$with_gnu_ld"; then
12034	case $host_cpu in
12035	hppa*64*)
12036	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12037	  ;;
12038	ia64*)
12039	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12040	  ;;
12041	*)
12042	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12043	  ;;
12044	esac
12045      else
12046	case $host_cpu in
12047	hppa*64*)
12048	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12049	  ;;
12050	ia64*)
12051	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12052	  ;;
12053	*)
12054
12055	  # Older versions of the 11.00 compiler do not understand -b yet
12056	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12057	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12058printf %s "checking if $CC understands -b... " >&6; }
12059if test ${lt_cv_prog_compiler__b+y}
12060then :
12061  printf %s "(cached) " >&6
12062else $as_nop
12063  lt_cv_prog_compiler__b=no
12064   save_LDFLAGS=$LDFLAGS
12065   LDFLAGS="$LDFLAGS -b"
12066   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12067   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12068     # The linker can only warn and ignore the option if not recognized
12069     # So say no if there are warnings
12070     if test -s conftest.err; then
12071       # Append any errors to the config.log.
12072       cat conftest.err 1>&5
12073       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12074       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12075       if diff conftest.exp conftest.er2 >/dev/null; then
12076         lt_cv_prog_compiler__b=yes
12077       fi
12078     else
12079       lt_cv_prog_compiler__b=yes
12080     fi
12081   fi
12082   $RM -r conftest*
12083   LDFLAGS=$save_LDFLAGS
12084
12085fi
12086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12087printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12088
12089if test yes = "$lt_cv_prog_compiler__b"; then
12090    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12091else
12092    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12093fi
12094
12095	  ;;
12096	esac
12097      fi
12098      if test no = "$with_gnu_ld"; then
12099	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12100	hardcode_libdir_separator=:
12101
12102	case $host_cpu in
12103	hppa*64*|ia64*)
12104	  hardcode_direct=no
12105	  hardcode_shlibpath_var=no
12106	  ;;
12107	*)
12108	  hardcode_direct=yes
12109	  hardcode_direct_absolute=yes
12110	  export_dynamic_flag_spec='$wl-E'
12111
12112	  # hardcode_minus_L: Not really in the search PATH,
12113	  # but as the default location of the library.
12114	  hardcode_minus_L=yes
12115	  ;;
12116	esac
12117      fi
12118      ;;
12119
12120    irix5* | irix6* | nonstopux*)
12121      if test yes = "$GCC"; then
12122	archive_cmds='$CC -shared $pic_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'
12123	# Try to use the -exported_symbol ld option, if it does not
12124	# work, assume that -exports_file does not work either and
12125	# implicitly export all symbols.
12126	# This should be the same for all languages, so no per-tag cache variable.
12127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12128printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12129if test ${lt_cv_irix_exported_symbol+y}
12130then :
12131  printf %s "(cached) " >&6
12132else $as_nop
12133  save_LDFLAGS=$LDFLAGS
12134	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12135	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136/* end confdefs.h.  */
12137int foo (void) { return 0; }
12138_ACEOF
12139if ac_fn_c_try_link "$LINENO"
12140then :
12141  lt_cv_irix_exported_symbol=yes
12142else $as_nop
12143  lt_cv_irix_exported_symbol=no
12144fi
12145rm -f core conftest.err conftest.$ac_objext conftest.beam \
12146    conftest$ac_exeext conftest.$ac_ext
12147           LDFLAGS=$save_LDFLAGS
12148fi
12149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12150printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12151	if test yes = "$lt_cv_irix_exported_symbol"; then
12152          archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
12153	fi
12154	link_all_deplibs=no
12155      else
12156	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'
12157	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'
12158      fi
12159      archive_cmds_need_lc='no'
12160      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12161      hardcode_libdir_separator=:
12162      inherit_rpath=yes
12163      link_all_deplibs=yes
12164      ;;
12165
12166    linux*)
12167      case $cc_basename in
12168      tcc*)
12169	# Fabrice Bellard et al's Tiny C Compiler
12170	ld_shlibs=yes
12171	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12172	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12173	;;
12174      esac
12175      ;;
12176
12177    netbsd* | netbsdelf*-gnu)
12178      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12179	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12180      else
12181	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12182      fi
12183      hardcode_libdir_flag_spec='-R$libdir'
12184      hardcode_direct=yes
12185      hardcode_shlibpath_var=no
12186      ;;
12187
12188    newsos6)
12189      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12190      hardcode_direct=yes
12191      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12192      hardcode_libdir_separator=:
12193      hardcode_shlibpath_var=no
12194      ;;
12195
12196    *nto* | *qnx*)
12197      ;;
12198
12199    openbsd* | bitrig*)
12200      if test -f /usr/libexec/ld.so; then
12201	hardcode_direct=yes
12202	hardcode_shlibpath_var=no
12203	hardcode_direct_absolute=yes
12204	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12205	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12206	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12207	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12208	  export_dynamic_flag_spec='$wl-E'
12209	else
12210	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12211	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12212	fi
12213      else
12214	ld_shlibs=no
12215      fi
12216      ;;
12217
12218    os2*)
12219      hardcode_libdir_flag_spec='-L$libdir'
12220      hardcode_minus_L=yes
12221      allow_undefined_flag=unsupported
12222      shrext_cmds=.dll
12223      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12224	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12225	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12226	$ECHO EXPORTS >> $output_objdir/$libname.def~
12227	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12228	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12229	emximp -o $lib $output_objdir/$libname.def'
12230      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12231	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12232	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12233	$ECHO EXPORTS >> $output_objdir/$libname.def~
12234	prefix_cmds="$SED"~
12235	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12236	  prefix_cmds="$prefix_cmds -e 1d";
12237	fi~
12238	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12239	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12240	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12241	emximp -o $lib $output_objdir/$libname.def'
12242      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12243      enable_shared_with_static_runtimes=yes
12244      file_list_spec='@'
12245      ;;
12246
12247    osf3*)
12248      if test yes = "$GCC"; then
12249	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12250	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'
12251      else
12252	allow_undefined_flag=' -expect_unresolved \*'
12253	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'
12254      fi
12255      archive_cmds_need_lc='no'
12256      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12257      hardcode_libdir_separator=:
12258      ;;
12259
12260    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12261      if test yes = "$GCC"; then
12262	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12263	archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
12264	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12265      else
12266	allow_undefined_flag=' -expect_unresolved \*'
12267	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'
12268	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~
12269          $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'
12270
12271	# Both c and cxx compiler support -rpath directly
12272	hardcode_libdir_flag_spec='-rpath $libdir'
12273      fi
12274      archive_cmds_need_lc='no'
12275      hardcode_libdir_separator=:
12276      ;;
12277
12278    solaris*)
12279      no_undefined_flag=' -z defs'
12280      if test yes = "$GCC"; then
12281	wlarc='$wl'
12282	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12283	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12284          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12285      else
12286	case `$CC -V 2>&1` in
12287	*"Compilers 5.0"*)
12288	  wlarc=''
12289	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12290	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12291            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12292	  ;;
12293	*)
12294	  wlarc='$wl'
12295	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12296	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12297            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12298	  ;;
12299	esac
12300      fi
12301      hardcode_libdir_flag_spec='-R$libdir'
12302      hardcode_shlibpath_var=no
12303      case $host_os in
12304      solaris2.[0-5] | solaris2.[0-5].*) ;;
12305      *)
12306	# The compiler driver will combine and reorder linker options,
12307	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12308	# but is careful enough not to reorder.
12309	# Supported since Solaris 2.6 (maybe 2.5.1?)
12310	if test yes = "$GCC"; then
12311	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12312	else
12313	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12314	fi
12315	;;
12316      esac
12317      link_all_deplibs=yes
12318      ;;
12319
12320    sunos4*)
12321      if test sequent = "$host_vendor"; then
12322	# Use $CC to link under sequent, because it throws in some extra .o
12323	# files that make .init and .fini sections work.
12324	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12325      else
12326	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12327      fi
12328      hardcode_libdir_flag_spec='-L$libdir'
12329      hardcode_direct=yes
12330      hardcode_minus_L=yes
12331      hardcode_shlibpath_var=no
12332      ;;
12333
12334    sysv4)
12335      case $host_vendor in
12336	sni)
12337	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12338	  hardcode_direct=yes # is this really true???
12339	;;
12340	siemens)
12341	  ## LD is ld it makes a PLAMLIB
12342	  ## CC just makes a GrossModule.
12343	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12344	  reload_cmds='$CC -r -o $output$reload_objs'
12345	  hardcode_direct=no
12346        ;;
12347	motorola)
12348	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12349	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12350	;;
12351      esac
12352      runpath_var='LD_RUN_PATH'
12353      hardcode_shlibpath_var=no
12354      ;;
12355
12356    sysv4.3*)
12357      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12358      hardcode_shlibpath_var=no
12359      export_dynamic_flag_spec='-Bexport'
12360      ;;
12361
12362    sysv4*MP*)
12363      if test -d /usr/nec; then
12364	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12365	hardcode_shlibpath_var=no
12366	runpath_var=LD_RUN_PATH
12367	hardcode_runpath_var=yes
12368	ld_shlibs=yes
12369      fi
12370      ;;
12371
12372    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12373      no_undefined_flag='$wl-z,text'
12374      archive_cmds_need_lc=no
12375      hardcode_shlibpath_var=no
12376      runpath_var='LD_RUN_PATH'
12377
12378      if test yes = "$GCC"; then
12379	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12380	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12381      else
12382	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12383	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12384      fi
12385      ;;
12386
12387    sysv5* | sco3.2v5* | sco5v6*)
12388      # Note: We CANNOT use -z defs as we might desire, because we do not
12389      # link with -lc, and that would cause any symbols used from libc to
12390      # always be unresolved, which means just about no library would
12391      # ever link correctly.  If we're not using GNU ld we use -z text
12392      # though, which does catch some bad symbols but isn't as heavy-handed
12393      # as -z defs.
12394      no_undefined_flag='$wl-z,text'
12395      allow_undefined_flag='$wl-z,nodefs'
12396      archive_cmds_need_lc=no
12397      hardcode_shlibpath_var=no
12398      hardcode_libdir_flag_spec='$wl-R,$libdir'
12399      hardcode_libdir_separator=':'
12400      link_all_deplibs=yes
12401      export_dynamic_flag_spec='$wl-Bexport'
12402      runpath_var='LD_RUN_PATH'
12403
12404      if test yes = "$GCC"; then
12405	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12406	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12407      else
12408	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12409	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12410      fi
12411      ;;
12412
12413    uts4*)
12414      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12415      hardcode_libdir_flag_spec='-L$libdir'
12416      hardcode_shlibpath_var=no
12417      ;;
12418
12419    *)
12420      ld_shlibs=no
12421      ;;
12422    esac
12423
12424    if test sni = "$host_vendor"; then
12425      case $host in
12426      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12427	export_dynamic_flag_spec='$wl-Blargedynsym'
12428	;;
12429      esac
12430    fi
12431  fi
12432
12433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12434printf "%s\n" "$ld_shlibs" >&6; }
12435test no = "$ld_shlibs" && can_build_shared=no
12436
12437with_gnu_ld=$with_gnu_ld
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453#
12454# Do we need to explicitly link libc?
12455#
12456case "x$archive_cmds_need_lc" in
12457x|xyes)
12458  # Assume -lc should be added
12459  archive_cmds_need_lc=yes
12460
12461  if test yes,yes = "$GCC,$enable_shared"; then
12462    case $archive_cmds in
12463    *'~'*)
12464      # FIXME: we may have to deal with multi-command sequences.
12465      ;;
12466    '$CC '*)
12467      # Test whether the compiler implicitly links with -lc since on some
12468      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12469      # to ld, don't add -lc before -lgcc.
12470      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12471printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12472if test ${lt_cv_archive_cmds_need_lc+y}
12473then :
12474  printf %s "(cached) " >&6
12475else $as_nop
12476  $RM conftest*
12477	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12478
12479	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12480  (eval $ac_compile) 2>&5
12481  ac_status=$?
12482  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12483  test $ac_status = 0; } 2>conftest.err; then
12484	  soname=conftest
12485	  lib=conftest
12486	  libobjs=conftest.$ac_objext
12487	  deplibs=
12488	  wl=$lt_prog_compiler_wl
12489	  pic_flag=$lt_prog_compiler_pic
12490	  compiler_flags=-v
12491	  linker_flags=-v
12492	  verstring=
12493	  output_objdir=.
12494	  libname=conftest
12495	  lt_save_allow_undefined_flag=$allow_undefined_flag
12496	  allow_undefined_flag=
12497	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12498  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12499  ac_status=$?
12500  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12501  test $ac_status = 0; }
12502	  then
12503	    lt_cv_archive_cmds_need_lc=no
12504	  else
12505	    lt_cv_archive_cmds_need_lc=yes
12506	  fi
12507	  allow_undefined_flag=$lt_save_allow_undefined_flag
12508	else
12509	  cat conftest.err 1>&5
12510	fi
12511	$RM conftest*
12512
12513fi
12514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12515printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12516      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12517      ;;
12518    esac
12519  fi
12520  ;;
12521esac
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12675printf %s "checking dynamic linker characteristics... " >&6; }
12676
12677if test yes = "$GCC"; then
12678  case $host_os in
12679    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12680    *) lt_awk_arg='/^libraries:/' ;;
12681  esac
12682  case $host_os in
12683    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12684    *) lt_sed_strip_eq='s|=/|/|g' ;;
12685  esac
12686  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12687  case $lt_search_path_spec in
12688  *\;*)
12689    # if the path contains ";" then we assume it to be the separator
12690    # otherwise default to the standard path separator (i.e. ":") - it is
12691    # assumed that no part of a normal pathname contains ";" but that should
12692    # okay in the real world where ";" in dirpaths is itself problematic.
12693    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12694    ;;
12695  *)
12696    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12697    ;;
12698  esac
12699  # Ok, now we have the path, separated by spaces, we can step through it
12700  # and add multilib dir if necessary...
12701  lt_tmp_lt_search_path_spec=
12702  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12703  # ...but if some path component already ends with the multilib dir we assume
12704  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12705  case "$lt_multi_os_dir; $lt_search_path_spec " in
12706  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12707    lt_multi_os_dir=
12708    ;;
12709  esac
12710  for lt_sys_path in $lt_search_path_spec; do
12711    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12712      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12713    elif test -n "$lt_multi_os_dir"; then
12714      test -d "$lt_sys_path" && \
12715	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12716    fi
12717  done
12718  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12719BEGIN {RS = " "; FS = "/|\n";} {
12720  lt_foo = "";
12721  lt_count = 0;
12722  for (lt_i = NF; lt_i > 0; lt_i--) {
12723    if ($lt_i != "" && $lt_i != ".") {
12724      if ($lt_i == "..") {
12725        lt_count++;
12726      } else {
12727        if (lt_count == 0) {
12728          lt_foo = "/" $lt_i lt_foo;
12729        } else {
12730          lt_count--;
12731        }
12732      }
12733    }
12734  }
12735  if (lt_foo != "") { lt_freq[lt_foo]++; }
12736  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12737}'`
12738  # AWK program above erroneously prepends '/' to C:/dos/paths
12739  # for these hosts.
12740  case $host_os in
12741    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12742      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12743  esac
12744  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12745else
12746  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12747fi
12748library_names_spec=
12749libname_spec='lib$name'
12750soname_spec=
12751shrext_cmds=.so
12752postinstall_cmds=
12753postuninstall_cmds=
12754finish_cmds=
12755finish_eval=
12756shlibpath_var=
12757shlibpath_overrides_runpath=unknown
12758version_type=none
12759dynamic_linker="$host_os ld.so"
12760sys_lib_dlsearch_path_spec="/lib /usr/lib"
12761need_lib_prefix=unknown
12762hardcode_into_libs=no
12763
12764# when you set need_version to no, make sure it does not cause -set_version
12765# flags to be left without arguments
12766need_version=unknown
12767
12768
12769
12770case $host_os in
12771aix3*)
12772  version_type=linux # correct to gnu/linux during the next big refactor
12773  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12774  shlibpath_var=LIBPATH
12775
12776  # AIX 3 has no versioning support, so we append a major version to the name.
12777  soname_spec='$libname$release$shared_ext$major'
12778  ;;
12779
12780aix[4-9]*)
12781  version_type=linux # correct to gnu/linux during the next big refactor
12782  need_lib_prefix=no
12783  need_version=no
12784  hardcode_into_libs=yes
12785  if test ia64 = "$host_cpu"; then
12786    # AIX 5 supports IA64
12787    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12788    shlibpath_var=LD_LIBRARY_PATH
12789  else
12790    # With GCC up to 2.95.x, collect2 would create an import file
12791    # for dependence libraries.  The import file would start with
12792    # the line '#! .'.  This would cause the generated library to
12793    # depend on '.', always an invalid library.  This was fixed in
12794    # development snapshots of GCC prior to 3.0.
12795    case $host_os in
12796      aix4 | aix4.[01] | aix4.[01].*)
12797      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12798	   echo ' yes '
12799	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12800	:
12801      else
12802	can_build_shared=no
12803      fi
12804      ;;
12805    esac
12806    # Using Import Files as archive members, it is possible to support
12807    # filename-based versioning of shared library archives on AIX. While
12808    # this would work for both with and without runtime linking, it will
12809    # prevent static linking of such archives. So we do filename-based
12810    # shared library versioning with .so extension only, which is used
12811    # when both runtime linking and shared linking is enabled.
12812    # Unfortunately, runtime linking may impact performance, so we do
12813    # not want this to be the default eventually. Also, we use the
12814    # versioned .so libs for executables only if there is the -brtl
12815    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12816    # To allow for filename-based versioning support, we need to create
12817    # libNAME.so.V as an archive file, containing:
12818    # *) an Import File, referring to the versioned filename of the
12819    #    archive as well as the shared archive member, telling the
12820    #    bitwidth (32 or 64) of that shared object, and providing the
12821    #    list of exported symbols of that shared object, eventually
12822    #    decorated with the 'weak' keyword
12823    # *) the shared object with the F_LOADONLY flag set, to really avoid
12824    #    it being seen by the linker.
12825    # At run time we better use the real file rather than another symlink,
12826    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12827
12828    case $with_aix_soname,$aix_use_runtimelinking in
12829    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12830    # soname into executable. Probably we can add versioning support to
12831    # collect2, so additional links can be useful in future.
12832    aix,yes) # traditional libtool
12833      dynamic_linker='AIX unversionable lib.so'
12834      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12835      # instead of lib<name>.a to let people know that these are not
12836      # typical AIX shared libraries.
12837      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12838      ;;
12839    aix,no) # traditional AIX only
12840      dynamic_linker='AIX lib.a(lib.so.V)'
12841      # We preserve .a as extension for shared libraries through AIX4.2
12842      # and later when we are not doing run time linking.
12843      library_names_spec='$libname$release.a $libname.a'
12844      soname_spec='$libname$release$shared_ext$major'
12845      ;;
12846    svr4,*) # full svr4 only
12847      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12848      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12849      # We do not specify a path in Import Files, so LIBPATH fires.
12850      shlibpath_overrides_runpath=yes
12851      ;;
12852    *,yes) # both, prefer svr4
12853      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12854      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12855      # unpreferred sharedlib libNAME.a needs extra handling
12856      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12857      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12858      # We do not specify a path in Import Files, so LIBPATH fires.
12859      shlibpath_overrides_runpath=yes
12860      ;;
12861    *,no) # both, prefer aix
12862      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12863      library_names_spec='$libname$release.a $libname.a'
12864      soname_spec='$libname$release$shared_ext$major'
12865      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12866      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12867      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12868      ;;
12869    esac
12870    shlibpath_var=LIBPATH
12871  fi
12872  ;;
12873
12874amigaos*)
12875  case $host_cpu in
12876  powerpc)
12877    # Since July 2007 AmigaOS4 officially supports .so libraries.
12878    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12879    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12880    ;;
12881  m68k)
12882    library_names_spec='$libname.ixlibrary $libname.a'
12883    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12884    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12885    ;;
12886  esac
12887  ;;
12888
12889beos*)
12890  library_names_spec='$libname$shared_ext'
12891  dynamic_linker="$host_os ld.so"
12892  shlibpath_var=LIBRARY_PATH
12893  ;;
12894
12895bsdi[45]*)
12896  version_type=linux # correct to gnu/linux during the next big refactor
12897  need_version=no
12898  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12899  soname_spec='$libname$release$shared_ext$major'
12900  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12901  shlibpath_var=LD_LIBRARY_PATH
12902  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12903  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12904  # the default ld.so.conf also contains /usr/contrib/lib and
12905  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12906  # libtool to hard-code these into programs
12907  ;;
12908
12909cygwin* | mingw* | pw32* | cegcc*)
12910  version_type=windows
12911  shrext_cmds=.dll
12912  need_version=no
12913  need_lib_prefix=no
12914
12915  case $GCC,$cc_basename in
12916  yes,*)
12917    # gcc
12918    library_names_spec='$libname.dll.a'
12919    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12920    postinstall_cmds='base_file=`basename \$file`~
12921      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12922      dldir=$destdir/`dirname \$dlpath`~
12923      test -d \$dldir || mkdir -p \$dldir~
12924      $install_prog $dir/$dlname \$dldir/$dlname~
12925      chmod a+x \$dldir/$dlname~
12926      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12927        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12928      fi'
12929    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12930      dlpath=$dir/\$dldll~
12931       $RM \$dlpath'
12932    shlibpath_overrides_runpath=yes
12933
12934    case $host_os in
12935    cygwin*)
12936      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12937      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12938
12939      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12940      ;;
12941    mingw* | cegcc*)
12942      # MinGW DLLs use traditional 'lib' prefix
12943      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12944      ;;
12945    pw32*)
12946      # pw32 DLLs use 'pw' prefix rather than 'lib'
12947      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12948      ;;
12949    esac
12950    dynamic_linker='Win32 ld.exe'
12951    ;;
12952
12953  *,cl* | *,icl*)
12954    # Native MSVC or ICC
12955    libname_spec='$name'
12956    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12957    library_names_spec='$libname.dll.lib'
12958
12959    case $build_os in
12960    mingw*)
12961      sys_lib_search_path_spec=
12962      lt_save_ifs=$IFS
12963      IFS=';'
12964      for lt_path in $LIB
12965      do
12966        IFS=$lt_save_ifs
12967        # Let DOS variable expansion print the short 8.3 style file name.
12968        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12969        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12970      done
12971      IFS=$lt_save_ifs
12972      # Convert to MSYS style.
12973      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12974      ;;
12975    cygwin*)
12976      # Convert to unix form, then to dos form, then back to unix form
12977      # but this time dos style (no spaces!) so that the unix form looks
12978      # like /cygdrive/c/PROGRA~1:/cygdr...
12979      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12980      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12981      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12982      ;;
12983    *)
12984      sys_lib_search_path_spec=$LIB
12985      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12986        # It is most probably a Windows format PATH.
12987        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12988      else
12989        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12990      fi
12991      # FIXME: find the short name or the path components, as spaces are
12992      # common. (e.g. "Program Files" -> "PROGRA~1")
12993      ;;
12994    esac
12995
12996    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12997    postinstall_cmds='base_file=`basename \$file`~
12998      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12999      dldir=$destdir/`dirname \$dlpath`~
13000      test -d \$dldir || mkdir -p \$dldir~
13001      $install_prog $dir/$dlname \$dldir/$dlname'
13002    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13003      dlpath=$dir/\$dldll~
13004       $RM \$dlpath'
13005    shlibpath_overrides_runpath=yes
13006    dynamic_linker='Win32 link.exe'
13007    ;;
13008
13009  *)
13010    # Assume MSVC and ICC wrapper
13011    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13012    dynamic_linker='Win32 ld.exe'
13013    ;;
13014  esac
13015  # FIXME: first we should search . and the directory the executable is in
13016  shlibpath_var=PATH
13017  ;;
13018
13019darwin* | rhapsody*)
13020  dynamic_linker="$host_os dyld"
13021  version_type=darwin
13022  need_lib_prefix=no
13023  need_version=no
13024  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13025  soname_spec='$libname$release$major$shared_ext'
13026  shlibpath_overrides_runpath=yes
13027  shlibpath_var=DYLD_LIBRARY_PATH
13028  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13029
13030  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13031  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13032  ;;
13033
13034dgux*)
13035  version_type=linux # correct to gnu/linux during the next big refactor
13036  need_lib_prefix=no
13037  need_version=no
13038  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13039  soname_spec='$libname$release$shared_ext$major'
13040  shlibpath_var=LD_LIBRARY_PATH
13041  ;;
13042
13043freebsd* | dragonfly* | midnightbsd*)
13044  # DragonFly does not have aout.  When/if they implement a new
13045  # versioning mechanism, adjust this.
13046  if test -x /usr/bin/objformat; then
13047    objformat=`/usr/bin/objformat`
13048  else
13049    case $host_os in
13050    freebsd[23].*) objformat=aout ;;
13051    *) objformat=elf ;;
13052    esac
13053  fi
13054  version_type=freebsd-$objformat
13055  case $version_type in
13056    freebsd-elf*)
13057      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13058      soname_spec='$libname$release$shared_ext$major'
13059      need_version=no
13060      need_lib_prefix=no
13061      ;;
13062    freebsd-*)
13063      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13064      need_version=yes
13065      ;;
13066  esac
13067  shlibpath_var=LD_LIBRARY_PATH
13068  case $host_os in
13069  freebsd2.*)
13070    shlibpath_overrides_runpath=yes
13071    ;;
13072  freebsd3.[01]* | freebsdelf3.[01]*)
13073    shlibpath_overrides_runpath=yes
13074    hardcode_into_libs=yes
13075    ;;
13076  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13077  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13078    shlibpath_overrides_runpath=no
13079    hardcode_into_libs=yes
13080    ;;
13081  *) # from 4.6 on, and DragonFly
13082    shlibpath_overrides_runpath=yes
13083    hardcode_into_libs=yes
13084    ;;
13085  esac
13086  ;;
13087
13088haiku*)
13089  version_type=linux # correct to gnu/linux during the next big refactor
13090  need_lib_prefix=no
13091  need_version=no
13092  dynamic_linker="$host_os runtime_loader"
13093  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13094  soname_spec='$libname$release$shared_ext$major'
13095  shlibpath_var=LIBRARY_PATH
13096  shlibpath_overrides_runpath=no
13097  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13098  hardcode_into_libs=yes
13099  ;;
13100
13101hpux9* | hpux10* | hpux11*)
13102  # Give a soname corresponding to the major version so that dld.sl refuses to
13103  # link against other versions.
13104  version_type=sunos
13105  need_lib_prefix=no
13106  need_version=no
13107  case $host_cpu in
13108  ia64*)
13109    shrext_cmds='.so'
13110    hardcode_into_libs=yes
13111    dynamic_linker="$host_os dld.so"
13112    shlibpath_var=LD_LIBRARY_PATH
13113    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13114    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13115    soname_spec='$libname$release$shared_ext$major'
13116    if test 32 = "$HPUX_IA64_MODE"; then
13117      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13118      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13119    else
13120      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13121      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13122    fi
13123    ;;
13124  hppa*64*)
13125    shrext_cmds='.sl'
13126    hardcode_into_libs=yes
13127    dynamic_linker="$host_os dld.sl"
13128    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13129    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13130    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13131    soname_spec='$libname$release$shared_ext$major'
13132    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13133    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13134    ;;
13135  *)
13136    shrext_cmds='.sl'
13137    dynamic_linker="$host_os dld.sl"
13138    shlibpath_var=SHLIB_PATH
13139    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13140    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13141    soname_spec='$libname$release$shared_ext$major'
13142    ;;
13143  esac
13144  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13145  postinstall_cmds='chmod 555 $lib'
13146  # or fails outright, so override atomically:
13147  install_override_mode=555
13148  ;;
13149
13150interix[3-9]*)
13151  version_type=linux # correct to gnu/linux during the next big refactor
13152  need_lib_prefix=no
13153  need_version=no
13154  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13155  soname_spec='$libname$release$shared_ext$major'
13156  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13157  shlibpath_var=LD_LIBRARY_PATH
13158  shlibpath_overrides_runpath=no
13159  hardcode_into_libs=yes
13160  ;;
13161
13162irix5* | irix6* | nonstopux*)
13163  case $host_os in
13164    nonstopux*) version_type=nonstopux ;;
13165    *)
13166	if test yes = "$lt_cv_prog_gnu_ld"; then
13167		version_type=linux # correct to gnu/linux during the next big refactor
13168	else
13169		version_type=irix
13170	fi ;;
13171  esac
13172  need_lib_prefix=no
13173  need_version=no
13174  soname_spec='$libname$release$shared_ext$major'
13175  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13176  case $host_os in
13177  irix5* | nonstopux*)
13178    libsuff= shlibsuff=
13179    ;;
13180  *)
13181    case $LD in # libtool.m4 will add one of these switches to LD
13182    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13183      libsuff= shlibsuff= libmagic=32-bit;;
13184    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13185      libsuff=32 shlibsuff=N32 libmagic=N32;;
13186    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13187      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13188    *) libsuff= shlibsuff= libmagic=never-match;;
13189    esac
13190    ;;
13191  esac
13192  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13193  shlibpath_overrides_runpath=no
13194  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13195  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13196  hardcode_into_libs=yes
13197  ;;
13198
13199# No shared lib support for Linux oldld, aout, or coff.
13200linux*oldld* | linux*aout* | linux*coff*)
13201  dynamic_linker=no
13202  ;;
13203
13204linux*android*)
13205  version_type=none # Android doesn't support versioned libraries.
13206  need_lib_prefix=no
13207  need_version=no
13208  library_names_spec='$libname$release$shared_ext'
13209  soname_spec='$libname$release$shared_ext'
13210  finish_cmds=
13211  shlibpath_var=LD_LIBRARY_PATH
13212  shlibpath_overrides_runpath=yes
13213
13214  # This implies no fast_install, which is unacceptable.
13215  # Some rework will be needed to allow for fast_install
13216  # before this can be enabled.
13217  hardcode_into_libs=yes
13218
13219  dynamic_linker='Android linker'
13220  # Don't embed -rpath directories since the linker doesn't support them.
13221  hardcode_libdir_flag_spec='-L$libdir'
13222  ;;
13223
13224# This must be glibc/ELF.
13225linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13226  version_type=linux # correct to gnu/linux during the next big refactor
13227  need_lib_prefix=no
13228  need_version=no
13229  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13230  soname_spec='$libname$release$shared_ext$major'
13231  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13232  shlibpath_var=LD_LIBRARY_PATH
13233  shlibpath_overrides_runpath=no
13234
13235  # Some binutils ld are patched to set DT_RUNPATH
13236  if test ${lt_cv_shlibpath_overrides_runpath+y}
13237then :
13238  printf %s "(cached) " >&6
13239else $as_nop
13240  lt_cv_shlibpath_overrides_runpath=no
13241    save_LDFLAGS=$LDFLAGS
13242    save_libdir=$libdir
13243    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13244	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246/* end confdefs.h.  */
13247
13248int
13249main (void)
13250{
13251
13252  ;
13253  return 0;
13254}
13255_ACEOF
13256if ac_fn_c_try_link "$LINENO"
13257then :
13258  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13259then :
13260  lt_cv_shlibpath_overrides_runpath=yes
13261fi
13262fi
13263rm -f core conftest.err conftest.$ac_objext conftest.beam \
13264    conftest$ac_exeext conftest.$ac_ext
13265    LDFLAGS=$save_LDFLAGS
13266    libdir=$save_libdir
13267
13268fi
13269
13270  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13271
13272  # This implies no fast_install, which is unacceptable.
13273  # Some rework will be needed to allow for fast_install
13274  # before this can be enabled.
13275  hardcode_into_libs=yes
13276
13277  # Ideally, we could use ldconfig to report *all* directores which are
13278  # searched for libraries, however this is still not possible.  Aside from not
13279  # being certain /sbin/ldconfig is available, command
13280  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13281  # even though it is searched at run-time.  Try to do the best guess by
13282  # appending ld.so.conf contents (and includes) to the search path.
13283  if test -f /etc/ld.so.conf; then
13284    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' ' '`
13285    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13286  fi
13287
13288  # We used to test for /lib/ld.so.1 and disable shared libraries on
13289  # powerpc, because MkLinux only supported shared libraries with the
13290  # GNU dynamic linker.  Since this was broken with cross compilers,
13291  # most powerpc-linux boxes support dynamic linking these days and
13292  # people can always --disable-shared, the test was removed, and we
13293  # assume the GNU/Linux dynamic linker is in use.
13294  dynamic_linker='GNU/Linux ld.so'
13295  ;;
13296
13297netbsdelf*-gnu)
13298  version_type=linux
13299  need_lib_prefix=no
13300  need_version=no
13301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13302  soname_spec='${libname}${release}${shared_ext}$major'
13303  shlibpath_var=LD_LIBRARY_PATH
13304  shlibpath_overrides_runpath=no
13305  hardcode_into_libs=yes
13306  dynamic_linker='NetBSD ld.elf_so'
13307  ;;
13308
13309netbsd*)
13310  version_type=sunos
13311  need_lib_prefix=no
13312  need_version=no
13313  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13314    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13315    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13316    dynamic_linker='NetBSD (a.out) ld.so'
13317  else
13318    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13319    soname_spec='$libname$release$shared_ext$major'
13320    dynamic_linker='NetBSD ld.elf_so'
13321  fi
13322  shlibpath_var=LD_LIBRARY_PATH
13323  shlibpath_overrides_runpath=yes
13324  hardcode_into_libs=yes
13325  ;;
13326
13327newsos6)
13328  version_type=linux # correct to gnu/linux during the next big refactor
13329  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13330  shlibpath_var=LD_LIBRARY_PATH
13331  shlibpath_overrides_runpath=yes
13332  ;;
13333
13334*nto* | *qnx*)
13335  version_type=qnx
13336  need_lib_prefix=no
13337  need_version=no
13338  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13339  soname_spec='$libname$release$shared_ext$major'
13340  shlibpath_var=LD_LIBRARY_PATH
13341  shlibpath_overrides_runpath=no
13342  hardcode_into_libs=yes
13343  dynamic_linker='ldqnx.so'
13344  ;;
13345
13346openbsd* | bitrig*)
13347  version_type=sunos
13348  sys_lib_dlsearch_path_spec=/usr/lib
13349  need_lib_prefix=no
13350  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13351    need_version=no
13352  else
13353    need_version=yes
13354  fi
13355  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13356  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13357  shlibpath_var=LD_LIBRARY_PATH
13358  shlibpath_overrides_runpath=yes
13359  ;;
13360
13361os2*)
13362  libname_spec='$name'
13363  version_type=windows
13364  shrext_cmds=.dll
13365  need_version=no
13366  need_lib_prefix=no
13367  # OS/2 can only load a DLL with a base name of 8 characters or less.
13368  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13369    v=$($ECHO $release$versuffix | tr -d .-);
13370    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13371    $ECHO $n$v`$shared_ext'
13372  library_names_spec='${libname}_dll.$libext'
13373  dynamic_linker='OS/2 ld.exe'
13374  shlibpath_var=BEGINLIBPATH
13375  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13376  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13377  postinstall_cmds='base_file=`basename \$file`~
13378    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13379    dldir=$destdir/`dirname \$dlpath`~
13380    test -d \$dldir || mkdir -p \$dldir~
13381    $install_prog $dir/$dlname \$dldir/$dlname~
13382    chmod a+x \$dldir/$dlname~
13383    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13384      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13385    fi'
13386  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13387    dlpath=$dir/\$dldll~
13388    $RM \$dlpath'
13389  ;;
13390
13391osf3* | osf4* | osf5*)
13392  version_type=osf
13393  need_lib_prefix=no
13394  need_version=no
13395  soname_spec='$libname$release$shared_ext$major'
13396  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13397  shlibpath_var=LD_LIBRARY_PATH
13398  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13399  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13400  ;;
13401
13402rdos*)
13403  dynamic_linker=no
13404  ;;
13405
13406solaris*)
13407  version_type=linux # correct to gnu/linux during the next big refactor
13408  need_lib_prefix=no
13409  need_version=no
13410  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13411  soname_spec='$libname$release$shared_ext$major'
13412  shlibpath_var=LD_LIBRARY_PATH
13413  shlibpath_overrides_runpath=yes
13414  hardcode_into_libs=yes
13415  # ldd complains unless libraries are executable
13416  postinstall_cmds='chmod +x $lib'
13417  ;;
13418
13419sunos4*)
13420  version_type=sunos
13421  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13422  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13423  shlibpath_var=LD_LIBRARY_PATH
13424  shlibpath_overrides_runpath=yes
13425  if test yes = "$with_gnu_ld"; then
13426    need_lib_prefix=no
13427  fi
13428  need_version=yes
13429  ;;
13430
13431sysv4 | sysv4.3*)
13432  version_type=linux # correct to gnu/linux during the next big refactor
13433  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13434  soname_spec='$libname$release$shared_ext$major'
13435  shlibpath_var=LD_LIBRARY_PATH
13436  case $host_vendor in
13437    sni)
13438      shlibpath_overrides_runpath=no
13439      need_lib_prefix=no
13440      runpath_var=LD_RUN_PATH
13441      ;;
13442    siemens)
13443      need_lib_prefix=no
13444      ;;
13445    motorola)
13446      need_lib_prefix=no
13447      need_version=no
13448      shlibpath_overrides_runpath=no
13449      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13450      ;;
13451  esac
13452  ;;
13453
13454sysv4*MP*)
13455  if test -d /usr/nec; then
13456    version_type=linux # correct to gnu/linux during the next big refactor
13457    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13458    soname_spec='$libname$shared_ext.$major'
13459    shlibpath_var=LD_LIBRARY_PATH
13460  fi
13461  ;;
13462
13463sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13464  version_type=sco
13465  need_lib_prefix=no
13466  need_version=no
13467  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13468  soname_spec='$libname$release$shared_ext$major'
13469  shlibpath_var=LD_LIBRARY_PATH
13470  shlibpath_overrides_runpath=yes
13471  hardcode_into_libs=yes
13472  if test yes = "$with_gnu_ld"; then
13473    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13474  else
13475    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13476    case $host_os in
13477      sco3.2v5*)
13478        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13479	;;
13480    esac
13481  fi
13482  sys_lib_dlsearch_path_spec='/usr/lib'
13483  ;;
13484
13485tpf*)
13486  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13487  version_type=linux # correct to gnu/linux during the next big refactor
13488  need_lib_prefix=no
13489  need_version=no
13490  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13491  shlibpath_var=LD_LIBRARY_PATH
13492  shlibpath_overrides_runpath=no
13493  hardcode_into_libs=yes
13494  ;;
13495
13496uts4*)
13497  version_type=linux # correct to gnu/linux during the next big refactor
13498  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13499  soname_spec='$libname$release$shared_ext$major'
13500  shlibpath_var=LD_LIBRARY_PATH
13501  ;;
13502
13503*)
13504  dynamic_linker=no
13505  ;;
13506esac
13507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13508printf "%s\n" "$dynamic_linker" >&6; }
13509test no = "$dynamic_linker" && can_build_shared=no
13510
13511variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13512if test yes = "$GCC"; then
13513  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13514fi
13515
13516if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13517  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13518fi
13519
13520if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13521  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13522fi
13523
13524# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13525configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13526
13527# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13528func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13529
13530# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13531configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13630printf %s "checking how to hardcode library paths into programs... " >&6; }
13631hardcode_action=
13632if test -n "$hardcode_libdir_flag_spec" ||
13633   test -n "$runpath_var" ||
13634   test yes = "$hardcode_automatic"; then
13635
13636  # We can hardcode non-existent directories.
13637  if test no != "$hardcode_direct" &&
13638     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13639     # have to relink, otherwise we might link with an installed library
13640     # when we should be linking with a yet-to-be-installed one
13641     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13642     test no != "$hardcode_minus_L"; then
13643    # Linking always hardcodes the temporary library directory.
13644    hardcode_action=relink
13645  else
13646    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13647    hardcode_action=immediate
13648  fi
13649else
13650  # We cannot hardcode anything, or else we can only hardcode existing
13651  # directories.
13652  hardcode_action=unsupported
13653fi
13654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13655printf "%s\n" "$hardcode_action" >&6; }
13656
13657if test relink = "$hardcode_action" ||
13658   test yes = "$inherit_rpath"; then
13659  # Fast installation is not supported
13660  enable_fast_install=no
13661elif test yes = "$shlibpath_overrides_runpath" ||
13662     test no = "$enable_shared"; then
13663  # Fast installation is not necessary
13664  enable_fast_install=needless
13665fi
13666
13667
13668
13669
13670
13671
13672  if test yes != "$enable_dlopen"; then
13673  enable_dlopen=unknown
13674  enable_dlopen_self=unknown
13675  enable_dlopen_self_static=unknown
13676else
13677  lt_cv_dlopen=no
13678  lt_cv_dlopen_libs=
13679
13680  case $host_os in
13681  beos*)
13682    lt_cv_dlopen=load_add_on
13683    lt_cv_dlopen_libs=
13684    lt_cv_dlopen_self=yes
13685    ;;
13686
13687  mingw* | pw32* | cegcc*)
13688    lt_cv_dlopen=LoadLibrary
13689    lt_cv_dlopen_libs=
13690    ;;
13691
13692  cygwin*)
13693    lt_cv_dlopen=dlopen
13694    lt_cv_dlopen_libs=
13695    ;;
13696
13697  darwin*)
13698    # if libdl is installed we need to link against it
13699    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13700printf %s "checking for dlopen in -ldl... " >&6; }
13701if test ${ac_cv_lib_dl_dlopen+y}
13702then :
13703  printf %s "(cached) " >&6
13704else $as_nop
13705  ac_check_lib_save_LIBS=$LIBS
13706LIBS="-ldl  $LIBS"
13707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708/* end confdefs.h.  */
13709
13710/* Override any GCC internal prototype to avoid an error.
13711   Use char because int might match the return type of a GCC
13712   builtin and then its argument prototype would still apply.  */
13713#ifdef __cplusplus
13714extern "C"
13715#endif
13716char dlopen ();
13717int
13718main (void)
13719{
13720return dlopen ();
13721  ;
13722  return 0;
13723}
13724_ACEOF
13725if ac_fn_c_try_link "$LINENO"
13726then :
13727  ac_cv_lib_dl_dlopen=yes
13728else $as_nop
13729  ac_cv_lib_dl_dlopen=no
13730fi
13731rm -f core conftest.err conftest.$ac_objext conftest.beam \
13732    conftest$ac_exeext conftest.$ac_ext
13733LIBS=$ac_check_lib_save_LIBS
13734fi
13735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13736printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13737if test "x$ac_cv_lib_dl_dlopen" = xyes
13738then :
13739  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13740else $as_nop
13741
13742    lt_cv_dlopen=dyld
13743    lt_cv_dlopen_libs=
13744    lt_cv_dlopen_self=yes
13745
13746fi
13747
13748    ;;
13749
13750  tpf*)
13751    # Don't try to run any link tests for TPF.  We know it's impossible
13752    # because TPF is a cross-compiler, and we know how we open DSOs.
13753    lt_cv_dlopen=dlopen
13754    lt_cv_dlopen_libs=
13755    lt_cv_dlopen_self=no
13756    ;;
13757
13758  *)
13759    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13760if test "x$ac_cv_func_shl_load" = xyes
13761then :
13762  lt_cv_dlopen=shl_load
13763else $as_nop
13764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13765printf %s "checking for shl_load in -ldld... " >&6; }
13766if test ${ac_cv_lib_dld_shl_load+y}
13767then :
13768  printf %s "(cached) " >&6
13769else $as_nop
13770  ac_check_lib_save_LIBS=$LIBS
13771LIBS="-ldld  $LIBS"
13772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773/* end confdefs.h.  */
13774
13775/* Override any GCC internal prototype to avoid an error.
13776   Use char because int might match the return type of a GCC
13777   builtin and then its argument prototype would still apply.  */
13778#ifdef __cplusplus
13779extern "C"
13780#endif
13781char shl_load ();
13782int
13783main (void)
13784{
13785return shl_load ();
13786  ;
13787  return 0;
13788}
13789_ACEOF
13790if ac_fn_c_try_link "$LINENO"
13791then :
13792  ac_cv_lib_dld_shl_load=yes
13793else $as_nop
13794  ac_cv_lib_dld_shl_load=no
13795fi
13796rm -f core conftest.err conftest.$ac_objext conftest.beam \
13797    conftest$ac_exeext conftest.$ac_ext
13798LIBS=$ac_check_lib_save_LIBS
13799fi
13800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13801printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13802if test "x$ac_cv_lib_dld_shl_load" = xyes
13803then :
13804  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13805else $as_nop
13806  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13807if test "x$ac_cv_func_dlopen" = xyes
13808then :
13809  lt_cv_dlopen=dlopen
13810else $as_nop
13811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13812printf %s "checking for dlopen in -ldl... " >&6; }
13813if test ${ac_cv_lib_dl_dlopen+y}
13814then :
13815  printf %s "(cached) " >&6
13816else $as_nop
13817  ac_check_lib_save_LIBS=$LIBS
13818LIBS="-ldl  $LIBS"
13819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820/* end confdefs.h.  */
13821
13822/* Override any GCC internal prototype to avoid an error.
13823   Use char because int might match the return type of a GCC
13824   builtin and then its argument prototype would still apply.  */
13825#ifdef __cplusplus
13826extern "C"
13827#endif
13828char dlopen ();
13829int
13830main (void)
13831{
13832return dlopen ();
13833  ;
13834  return 0;
13835}
13836_ACEOF
13837if ac_fn_c_try_link "$LINENO"
13838then :
13839  ac_cv_lib_dl_dlopen=yes
13840else $as_nop
13841  ac_cv_lib_dl_dlopen=no
13842fi
13843rm -f core conftest.err conftest.$ac_objext conftest.beam \
13844    conftest$ac_exeext conftest.$ac_ext
13845LIBS=$ac_check_lib_save_LIBS
13846fi
13847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13848printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13849if test "x$ac_cv_lib_dl_dlopen" = xyes
13850then :
13851  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13852else $as_nop
13853  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13854printf %s "checking for dlopen in -lsvld... " >&6; }
13855if test ${ac_cv_lib_svld_dlopen+y}
13856then :
13857  printf %s "(cached) " >&6
13858else $as_nop
13859  ac_check_lib_save_LIBS=$LIBS
13860LIBS="-lsvld  $LIBS"
13861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h.  */
13863
13864/* Override any GCC internal prototype to avoid an error.
13865   Use char because int might match the return type of a GCC
13866   builtin and then its argument prototype would still apply.  */
13867#ifdef __cplusplus
13868extern "C"
13869#endif
13870char dlopen ();
13871int
13872main (void)
13873{
13874return dlopen ();
13875  ;
13876  return 0;
13877}
13878_ACEOF
13879if ac_fn_c_try_link "$LINENO"
13880then :
13881  ac_cv_lib_svld_dlopen=yes
13882else $as_nop
13883  ac_cv_lib_svld_dlopen=no
13884fi
13885rm -f core conftest.err conftest.$ac_objext conftest.beam \
13886    conftest$ac_exeext conftest.$ac_ext
13887LIBS=$ac_check_lib_save_LIBS
13888fi
13889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13890printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13891if test "x$ac_cv_lib_svld_dlopen" = xyes
13892then :
13893  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13894else $as_nop
13895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13896printf %s "checking for dld_link in -ldld... " >&6; }
13897if test ${ac_cv_lib_dld_dld_link+y}
13898then :
13899  printf %s "(cached) " >&6
13900else $as_nop
13901  ac_check_lib_save_LIBS=$LIBS
13902LIBS="-ldld  $LIBS"
13903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904/* end confdefs.h.  */
13905
13906/* Override any GCC internal prototype to avoid an error.
13907   Use char because int might match the return type of a GCC
13908   builtin and then its argument prototype would still apply.  */
13909#ifdef __cplusplus
13910extern "C"
13911#endif
13912char dld_link ();
13913int
13914main (void)
13915{
13916return dld_link ();
13917  ;
13918  return 0;
13919}
13920_ACEOF
13921if ac_fn_c_try_link "$LINENO"
13922then :
13923  ac_cv_lib_dld_dld_link=yes
13924else $as_nop
13925  ac_cv_lib_dld_dld_link=no
13926fi
13927rm -f core conftest.err conftest.$ac_objext conftest.beam \
13928    conftest$ac_exeext conftest.$ac_ext
13929LIBS=$ac_check_lib_save_LIBS
13930fi
13931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13932printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13933if test "x$ac_cv_lib_dld_dld_link" = xyes
13934then :
13935  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13936fi
13937
13938
13939fi
13940
13941
13942fi
13943
13944
13945fi
13946
13947
13948fi
13949
13950
13951fi
13952
13953    ;;
13954  esac
13955
13956  if test no = "$lt_cv_dlopen"; then
13957    enable_dlopen=no
13958  else
13959    enable_dlopen=yes
13960  fi
13961
13962  case $lt_cv_dlopen in
13963  dlopen)
13964    save_CPPFLAGS=$CPPFLAGS
13965    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13966
13967    save_LDFLAGS=$LDFLAGS
13968    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13969
13970    save_LIBS=$LIBS
13971    LIBS="$lt_cv_dlopen_libs $LIBS"
13972
13973    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13974printf %s "checking whether a program can dlopen itself... " >&6; }
13975if test ${lt_cv_dlopen_self+y}
13976then :
13977  printf %s "(cached) " >&6
13978else $as_nop
13979  	  if test yes = "$cross_compiling"; then :
13980  lt_cv_dlopen_self=cross
13981else
13982  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13983  lt_status=$lt_dlunknown
13984  cat > conftest.$ac_ext <<_LT_EOF
13985#line $LINENO "configure"
13986#include "confdefs.h"
13987
13988#if HAVE_DLFCN_H
13989#include <dlfcn.h>
13990#endif
13991
13992#include <stdio.h>
13993
13994#ifdef RTLD_GLOBAL
13995#  define LT_DLGLOBAL		RTLD_GLOBAL
13996#else
13997#  ifdef DL_GLOBAL
13998#    define LT_DLGLOBAL		DL_GLOBAL
13999#  else
14000#    define LT_DLGLOBAL		0
14001#  endif
14002#endif
14003
14004/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14005   find out it does not work in some platform. */
14006#ifndef LT_DLLAZY_OR_NOW
14007#  ifdef RTLD_LAZY
14008#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14009#  else
14010#    ifdef DL_LAZY
14011#      define LT_DLLAZY_OR_NOW		DL_LAZY
14012#    else
14013#      ifdef RTLD_NOW
14014#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14015#      else
14016#        ifdef DL_NOW
14017#          define LT_DLLAZY_OR_NOW	DL_NOW
14018#        else
14019#          define LT_DLLAZY_OR_NOW	0
14020#        endif
14021#      endif
14022#    endif
14023#  endif
14024#endif
14025
14026/* When -fvisibility=hidden is used, assume the code has been annotated
14027   correspondingly for the symbols needed.  */
14028#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14029int fnord () __attribute__((visibility("default")));
14030#endif
14031
14032int fnord () { return 42; }
14033int main ()
14034{
14035  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14036  int status = $lt_dlunknown;
14037
14038  if (self)
14039    {
14040      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14041      else
14042        {
14043	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14044          else puts (dlerror ());
14045	}
14046      /* dlclose (self); */
14047    }
14048  else
14049    puts (dlerror ());
14050
14051  return status;
14052}
14053_LT_EOF
14054  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14055  (eval $ac_link) 2>&5
14056  ac_status=$?
14057  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14058  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14059    (./conftest; exit; ) >&5 2>/dev/null
14060    lt_status=$?
14061    case x$lt_status in
14062      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14063      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14064      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14065    esac
14066  else :
14067    # compilation failed
14068    lt_cv_dlopen_self=no
14069  fi
14070fi
14071rm -fr conftest*
14072
14073
14074fi
14075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14076printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14077
14078    if test yes = "$lt_cv_dlopen_self"; then
14079      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14080      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14081printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14082if test ${lt_cv_dlopen_self_static+y}
14083then :
14084  printf %s "(cached) " >&6
14085else $as_nop
14086  	  if test yes = "$cross_compiling"; then :
14087  lt_cv_dlopen_self_static=cross
14088else
14089  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14090  lt_status=$lt_dlunknown
14091  cat > conftest.$ac_ext <<_LT_EOF
14092#line $LINENO "configure"
14093#include "confdefs.h"
14094
14095#if HAVE_DLFCN_H
14096#include <dlfcn.h>
14097#endif
14098
14099#include <stdio.h>
14100
14101#ifdef RTLD_GLOBAL
14102#  define LT_DLGLOBAL		RTLD_GLOBAL
14103#else
14104#  ifdef DL_GLOBAL
14105#    define LT_DLGLOBAL		DL_GLOBAL
14106#  else
14107#    define LT_DLGLOBAL		0
14108#  endif
14109#endif
14110
14111/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14112   find out it does not work in some platform. */
14113#ifndef LT_DLLAZY_OR_NOW
14114#  ifdef RTLD_LAZY
14115#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14116#  else
14117#    ifdef DL_LAZY
14118#      define LT_DLLAZY_OR_NOW		DL_LAZY
14119#    else
14120#      ifdef RTLD_NOW
14121#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14122#      else
14123#        ifdef DL_NOW
14124#          define LT_DLLAZY_OR_NOW	DL_NOW
14125#        else
14126#          define LT_DLLAZY_OR_NOW	0
14127#        endif
14128#      endif
14129#    endif
14130#  endif
14131#endif
14132
14133/* When -fvisibility=hidden is used, assume the code has been annotated
14134   correspondingly for the symbols needed.  */
14135#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14136int fnord () __attribute__((visibility("default")));
14137#endif
14138
14139int fnord () { return 42; }
14140int main ()
14141{
14142  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14143  int status = $lt_dlunknown;
14144
14145  if (self)
14146    {
14147      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14148      else
14149        {
14150	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14151          else puts (dlerror ());
14152	}
14153      /* dlclose (self); */
14154    }
14155  else
14156    puts (dlerror ());
14157
14158  return status;
14159}
14160_LT_EOF
14161  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14162  (eval $ac_link) 2>&5
14163  ac_status=$?
14164  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14165  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14166    (./conftest; exit; ) >&5 2>/dev/null
14167    lt_status=$?
14168    case x$lt_status in
14169      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14170      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14171      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14172    esac
14173  else :
14174    # compilation failed
14175    lt_cv_dlopen_self_static=no
14176  fi
14177fi
14178rm -fr conftest*
14179
14180
14181fi
14182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14183printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14184    fi
14185
14186    CPPFLAGS=$save_CPPFLAGS
14187    LDFLAGS=$save_LDFLAGS
14188    LIBS=$save_LIBS
14189    ;;
14190  esac
14191
14192  case $lt_cv_dlopen_self in
14193  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14194  *) enable_dlopen_self=unknown ;;
14195  esac
14196
14197  case $lt_cv_dlopen_self_static in
14198  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14199  *) enable_dlopen_self_static=unknown ;;
14200  esac
14201fi
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219striplib=
14220old_striplib=
14221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14222printf %s "checking whether stripping libraries is possible... " >&6; }
14223if test -z "$STRIP"; then
14224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225printf "%s\n" "no" >&6; }
14226else
14227  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14228    old_striplib="$STRIP --strip-debug"
14229    striplib="$STRIP --strip-unneeded"
14230    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14231printf "%s\n" "yes" >&6; }
14232  else
14233    case $host_os in
14234    darwin*)
14235      # FIXME - insert some real tests, host_os isn't really good enough
14236      striplib="$STRIP -x"
14237      old_striplib="$STRIP -S"
14238      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14239printf "%s\n" "yes" >&6; }
14240      ;;
14241    freebsd*)
14242      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14243        old_striplib="$STRIP --strip-debug"
14244        striplib="$STRIP --strip-unneeded"
14245        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14246printf "%s\n" "yes" >&6; }
14247      else
14248        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249printf "%s\n" "no" >&6; }
14250      fi
14251      ;;
14252    *)
14253      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254printf "%s\n" "no" >&6; }
14255      ;;
14256    esac
14257  fi
14258fi
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271  # Report what library types will actually be built
14272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14273printf %s "checking if libtool supports shared libraries... " >&6; }
14274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14275printf "%s\n" "$can_build_shared" >&6; }
14276
14277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14278printf %s "checking whether to build shared libraries... " >&6; }
14279  test no = "$can_build_shared" && enable_shared=no
14280
14281  # On AIX, shared libraries and static libraries use the same namespace, and
14282  # are all built from PIC.
14283  case $host_os in
14284  aix3*)
14285    test yes = "$enable_shared" && enable_static=no
14286    if test -n "$RANLIB"; then
14287      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14288      postinstall_cmds='$RANLIB $lib'
14289    fi
14290    ;;
14291
14292  aix[4-9]*)
14293    if test ia64 != "$host_cpu"; then
14294      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14295      yes,aix,yes) ;;			# shared object as lib.so file only
14296      yes,svr4,*) ;;			# shared object as lib.so archive member only
14297      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14298      esac
14299    fi
14300    ;;
14301  esac
14302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14303printf "%s\n" "$enable_shared" >&6; }
14304
14305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14306printf %s "checking whether to build static libraries... " >&6; }
14307  # Make sure either enable_shared or enable_static is yes.
14308  test yes = "$enable_shared" || enable_static=yes
14309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14310printf "%s\n" "$enable_static" >&6; }
14311
14312
14313
14314
14315fi
14316ac_ext=c
14317ac_cpp='$CPP $CPPFLAGS'
14318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14320ac_compiler_gnu=$ac_cv_c_compiler_gnu
14321
14322CC=$lt_save_CC
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338        ac_config_commands="$ac_config_commands libtool"
14339
14340
14341
14342
14343# Only expand once:
14344
14345
14346
14347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-MS-Windows ICC" >&5
14348printf %s "checking for non-MS-Windows ICC... " >&6; }
14349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350/* end confdefs.h.  */
14351
14352#if (!defined(__ICC) && !defined(__INTEL_COMPILER)) || defined(_WIN32)
14353# error "Not a non-MS-Windows ICC"
14354error
14355#endif
14356
14357int
14358main (void)
14359{
14360
14361  ;
14362  return 0;
14363}
14364_ACEOF
14365if ac_fn_c_try_compile "$LINENO"
14366then :
14367
14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14369printf "%s\n" "yes" >&6; }
14370 CFLAGS="-fp_port -mieee-fp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
14371
14372else $as_nop
14373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14374printf "%s\n" "no" >&6; }
14375fi
14376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14377
14378if test "$test_CFLAGS" != set && test -n "$GCC"; then
14379  CFLAGS="-Wpointer-arith $CFLAGS"
14380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the selected language is C++" >&5
14381printf %s "checking whether the selected language is C++... " >&6; }
14382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383/* end confdefs.h.  */
14384
14385#if defined (__cplusplus)
14386# error "C++"
14387error
14388#endif
14389
14390int
14391main (void)
14392{
14393
14394  ;
14395  return 0;
14396}
14397_ACEOF
14398if ac_fn_c_try_compile "$LINENO"
14399then :
14400
14401    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402printf "%s\n" "no" >&6; }
14403
14404    case `$CC --version | $SED -e 's/^[^ ]* //' -e 's/([^)]*) //' -e 1q` in
14405      2.*|3.*|4.0*) ;;
14406      *) CFLAGS="-Wc++-compat $CFLAGS" ;;
14407    esac
14408    CFLAGS="-Wmissing-prototypes $CFLAGS"
14409
14410
14411else $as_nop
14412
14413    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14414printf "%s\n" "yes" >&6; }
14415    CFLAGS="-Wmissing-declarations -Wno-sign-compare $CFLAGS"
14416
14417fi
14418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14419  CFLAGS="-Wall $CFLAGS"
14420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS=\"$CFLAGS\"" >&5
14421printf "%s\n" "$as_me: using CFLAGS=\"$CFLAGS\"" >&6;}
14422fi
14423
14424
14425
14426case $host in
14427  *-apple-darwin*)
14428    case "$LD $LDFLAGS" in
14429  *-Wl,-search_paths_first*) ;;
14430  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
14431printf %s "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
14432     saved_LDFLAGS="$LDFLAGS"
14433     LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
14434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435/* end confdefs.h.  */
14436
14437int
14438main (void)
14439{
14440
14441  ;
14442  return 0;
14443}
14444_ACEOF
14445if ac_fn_c_try_link "$LINENO"
14446then :
14447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14448printf "%s\n" "yes" >&6; }
14449else $as_nop
14450  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14451printf "%s\n" "no" >&6; }
14452        LDFLAGS="$saved_LDFLAGS"
14453fi
14454rm -f core conftest.err conftest.$ac_objext conftest.beam \
14455    conftest$ac_exeext conftest.$ac_ext
14456     ;;
14457 esac
14458 ;;
14459esac
14460
14461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14462printf %s "checking for an ANSI C-conforming const... " >&6; }
14463if test ${ac_cv_c_const+y}
14464then :
14465  printf %s "(cached) " >&6
14466else $as_nop
14467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468/* end confdefs.h.  */
14469
14470int
14471main (void)
14472{
14473
14474#ifndef __cplusplus
14475  /* Ultrix mips cc rejects this sort of thing.  */
14476  typedef int charset[2];
14477  const charset cs = { 0, 0 };
14478  /* SunOS 4.1.1 cc rejects this.  */
14479  char const *const *pcpcc;
14480  char **ppc;
14481  /* NEC SVR4.0.2 mips cc rejects this.  */
14482  struct point {int x, y;};
14483  static struct point const zero = {0,0};
14484  /* IBM XL C 1.02.0.0 rejects this.
14485     It does not let you subtract one const X* pointer from another in
14486     an arm of an if-expression whose if-part is not a constant
14487     expression */
14488  const char *g = "string";
14489  pcpcc = &g + (g ? g-g : 0);
14490  /* HPUX 7.0 cc rejects these. */
14491  ++pcpcc;
14492  ppc = (char**) pcpcc;
14493  pcpcc = (char const *const *) ppc;
14494  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14495    char tx;
14496    char *t = &tx;
14497    char const *s = 0 ? (char *) 0 : (char const *) 0;
14498
14499    *t++ = 0;
14500    if (s) return 0;
14501  }
14502  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14503    int x[] = {25, 17};
14504    const int *foo = &x[0];
14505    ++foo;
14506  }
14507  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14508    typedef const int *iptr;
14509    iptr p = 0;
14510    ++p;
14511  }
14512  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14513       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14514    struct s { int j; const int *ap[3]; } bx;
14515    struct s *b = &bx; b->j = 5;
14516  }
14517  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14518    const int foo = 10;
14519    if (!foo) return 0;
14520  }
14521  return !cs[0] && !zero.x;
14522#endif
14523
14524  ;
14525  return 0;
14526}
14527_ACEOF
14528if ac_fn_c_try_compile "$LINENO"
14529then :
14530  ac_cv_c_const=yes
14531else $as_nop
14532  ac_cv_c_const=no
14533fi
14534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14535fi
14536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14537printf "%s\n" "$ac_cv_c_const" >&6; }
14538if test $ac_cv_c_const = no; then
14539
14540printf "%s\n" "#define const /**/" >>confdefs.h
14541
14542fi
14543
14544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14545printf %s "checking for working volatile... " >&6; }
14546if test ${ac_cv_c_volatile+y}
14547then :
14548  printf %s "(cached) " >&6
14549else $as_nop
14550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551/* end confdefs.h.  */
14552
14553int
14554main (void)
14555{
14556
14557volatile int x;
14558int * volatile y = (int *) 0;
14559return !x && !y;
14560  ;
14561  return 0;
14562}
14563_ACEOF
14564if ac_fn_c_try_compile "$LINENO"
14565then :
14566  ac_cv_c_volatile=yes
14567else $as_nop
14568  ac_cv_c_volatile=no
14569fi
14570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14571fi
14572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14573printf "%s\n" "$ac_cv_c_volatile" >&6; }
14574if test $ac_cv_c_volatile = no; then
14575
14576printf "%s\n" "#define volatile /**/" >>confdefs.h
14577
14578fi
14579
14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14581printf %s "checking whether byte ordering is bigendian... " >&6; }
14582if test ${ac_cv_c_bigendian+y}
14583then :
14584  printf %s "(cached) " >&6
14585else $as_nop
14586  ac_cv_c_bigendian=unknown
14587    # See if we're dealing with a universal compiler.
14588    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589/* end confdefs.h.  */
14590#ifndef __APPLE_CC__
14591	       not a universal capable compiler
14592	     #endif
14593	     typedef int dummy;
14594
14595_ACEOF
14596if ac_fn_c_try_compile "$LINENO"
14597then :
14598
14599	# Check for potential -arch flags.  It is not universal unless
14600	# there are at least two -arch flags with different values.
14601	ac_arch=
14602	ac_prev=
14603	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14604	 if test -n "$ac_prev"; then
14605	   case $ac_word in
14606	     i?86 | x86_64 | ppc | ppc64)
14607	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14608		 ac_arch=$ac_word
14609	       else
14610		 ac_cv_c_bigendian=universal
14611		 break
14612	       fi
14613	       ;;
14614	   esac
14615	   ac_prev=
14616	 elif test "x$ac_word" = "x-arch"; then
14617	   ac_prev=arch
14618	 fi
14619       done
14620fi
14621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14622    if test $ac_cv_c_bigendian = unknown; then
14623      # See if sys/param.h defines the BYTE_ORDER macro.
14624      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625/* end confdefs.h.  */
14626#include <sys/types.h>
14627	     #include <sys/param.h>
14628
14629int
14630main (void)
14631{
14632#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14633		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14634		     && LITTLE_ENDIAN)
14635	      bogus endian macros
14636	     #endif
14637
14638  ;
14639  return 0;
14640}
14641_ACEOF
14642if ac_fn_c_try_compile "$LINENO"
14643then :
14644  # It does; now see whether it defined to BIG_ENDIAN or not.
14645	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646/* end confdefs.h.  */
14647#include <sys/types.h>
14648		#include <sys/param.h>
14649
14650int
14651main (void)
14652{
14653#if BYTE_ORDER != BIG_ENDIAN
14654		 not big endian
14655		#endif
14656
14657  ;
14658  return 0;
14659}
14660_ACEOF
14661if ac_fn_c_try_compile "$LINENO"
14662then :
14663  ac_cv_c_bigendian=yes
14664else $as_nop
14665  ac_cv_c_bigendian=no
14666fi
14667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14668fi
14669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14670    fi
14671    if test $ac_cv_c_bigendian = unknown; then
14672      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14673      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674/* end confdefs.h.  */
14675#include <limits.h>
14676
14677int
14678main (void)
14679{
14680#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14681	      bogus endian macros
14682	     #endif
14683
14684  ;
14685  return 0;
14686}
14687_ACEOF
14688if ac_fn_c_try_compile "$LINENO"
14689then :
14690  # It does; now see whether it defined to _BIG_ENDIAN or not.
14691	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692/* end confdefs.h.  */
14693#include <limits.h>
14694
14695int
14696main (void)
14697{
14698#ifndef _BIG_ENDIAN
14699		 not big endian
14700		#endif
14701
14702  ;
14703  return 0;
14704}
14705_ACEOF
14706if ac_fn_c_try_compile "$LINENO"
14707then :
14708  ac_cv_c_bigendian=yes
14709else $as_nop
14710  ac_cv_c_bigendian=no
14711fi
14712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14713fi
14714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14715    fi
14716    if test $ac_cv_c_bigendian = unknown; then
14717      # Compile a test program.
14718      if test "$cross_compiling" = yes
14719then :
14720  # Try to guess by grepping values from an object file.
14721	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722/* end confdefs.h.  */
14723unsigned short int ascii_mm[] =
14724		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14725		unsigned short int ascii_ii[] =
14726		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14727		int use_ascii (int i) {
14728		  return ascii_mm[i] + ascii_ii[i];
14729		}
14730		unsigned short int ebcdic_ii[] =
14731		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14732		unsigned short int ebcdic_mm[] =
14733		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14734		int use_ebcdic (int i) {
14735		  return ebcdic_mm[i] + ebcdic_ii[i];
14736		}
14737		extern int foo;
14738
14739int
14740main (void)
14741{
14742return use_ascii (foo) == use_ebcdic (foo);
14743  ;
14744  return 0;
14745}
14746_ACEOF
14747if ac_fn_c_try_compile "$LINENO"
14748then :
14749  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14750	      ac_cv_c_bigendian=yes
14751	    fi
14752	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14753	      if test "$ac_cv_c_bigendian" = unknown; then
14754		ac_cv_c_bigendian=no
14755	      else
14756		# finding both strings is unlikely to happen, but who knows?
14757		ac_cv_c_bigendian=unknown
14758	      fi
14759	    fi
14760fi
14761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14762else $as_nop
14763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764/* end confdefs.h.  */
14765$ac_includes_default
14766int
14767main (void)
14768{
14769
14770	     /* Are we little or big endian?  From Harbison&Steele.  */
14771	     union
14772	     {
14773	       long int l;
14774	       char c[sizeof (long int)];
14775	     } u;
14776	     u.l = 1;
14777	     return u.c[sizeof (long int) - 1] == 1;
14778
14779  ;
14780  return 0;
14781}
14782_ACEOF
14783if ac_fn_c_try_run "$LINENO"
14784then :
14785  ac_cv_c_bigendian=no
14786else $as_nop
14787  ac_cv_c_bigendian=yes
14788fi
14789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14790  conftest.$ac_objext conftest.beam conftest.$ac_ext
14791fi
14792
14793    fi
14794fi
14795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14796printf "%s\n" "$ac_cv_c_bigendian" >&6; }
14797 case $ac_cv_c_bigendian in #(
14798   yes)
14799     printf "%s\n" "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
14800;; #(
14801   no)
14802     printf "%s\n" "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
14803 ;; #(
14804   universal)
14805     true
14806     ;; #(
14807   *)
14808     true ;;
14809 esac
14810
14811
14812# (Based on GMP 5.1)
14813# clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt to
14814# TUNE_LIBS if needed (e.g. if clock_gettime is not already in the C library).
14815# On linux (tested on x86_32, 2.6.26), clock_getres reports ns accuracy,
14816# while in a quick test on osf, clock_getres said only 1 millisecond.
14817old_LIBS="$LIBS"
14818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14819printf %s "checking for library containing clock_gettime... " >&6; }
14820if test ${ac_cv_search_clock_gettime+y}
14821then :
14822  printf %s "(cached) " >&6
14823else $as_nop
14824  ac_func_search_save_LIBS=$LIBS
14825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826/* end confdefs.h.  */
14827
14828/* Override any GCC internal prototype to avoid an error.
14829   Use char because int might match the return type of a GCC
14830   builtin and then its argument prototype would still apply.  */
14831#ifdef __cplusplus
14832extern "C"
14833#endif
14834char clock_gettime ();
14835int
14836main (void)
14837{
14838return clock_gettime ();
14839  ;
14840  return 0;
14841}
14842_ACEOF
14843for ac_lib in '' rt
14844do
14845  if test -z "$ac_lib"; then
14846    ac_res="none required"
14847  else
14848    ac_res=-l$ac_lib
14849    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14850  fi
14851  if ac_fn_c_try_link "$LINENO"
14852then :
14853  ac_cv_search_clock_gettime=$ac_res
14854fi
14855rm -f core conftest.err conftest.$ac_objext conftest.beam \
14856    conftest$ac_exeext
14857  if test ${ac_cv_search_clock_gettime+y}
14858then :
14859  break
14860fi
14861done
14862if test ${ac_cv_search_clock_gettime+y}
14863then :
14864
14865else $as_nop
14866  ac_cv_search_clock_gettime=no
14867fi
14868rm conftest.$ac_ext
14869LIBS=$ac_func_search_save_LIBS
14870fi
14871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14872printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
14873ac_res=$ac_cv_search_clock_gettime
14874if test "$ac_res" != no
14875then :
14876  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14877
14878
14879printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14880
14881fi
14882
14883TUNE_LIBS="$LIBS"
14884LIBS="$old_LIBS"
14885
14886
14887case $host in
14888  *-*-linux-gnu)
14889    if test -n "$LD_LIBRARY_PATH" && test -z "$TERMUX_VERSION"; then
14890      saved_LDFLAGS="$LDFLAGS"
14891      LDFLAGS="$LDFLAGS -Wl,--disable-new-dtags"
14892      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
14893printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; }
14894      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14895/* end confdefs.h.  */
14896
14897int main (void) { return 0; }
14898
14899_ACEOF
14900if ac_fn_c_try_link "$LINENO"
14901then :
14902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
14903printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
14904else $as_nop
14905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906printf "%s\n" "no" >&6; }
14907       LDFLAGS="$saved_LDFLAGS"
14908
14909fi
14910rm -f core conftest.err conftest.$ac_objext conftest.beam \
14911    conftest$ac_exeext conftest.$ac_ext
14912    fi
14913    ;;
14914esac
14915
14916
14917
14918MPFR_LIBM=''
14919
14920case $host in
14921  *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14922    # According to libtool.m4:
14923    #   These systems don't have libm, or don't need it.
14924    ;;
14925  *-*-solaris*)
14926    # On Solaris, some additional math functions are in -lm9x.
14927    # For MPFR, https://docs.oracle.com/cd/E19957-01/806-3568/ncg_lib.html
14928    # says that ceil, floor and rint are provided by libm. We would also
14929    # like nearbyint when available, but there is no mention of it in this
14930    # doc. Just in case, let's check for it in m9x, e.g. if it is added in
14931    # the future.
14932
14933saved_LIBS="$LIBS"
14934LIBS="-lm9x $LIBS"
14935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936/* end confdefs.h.  */
14937
14938int
14939main (void)
14940{
14941
14942  ;
14943  return 0;
14944}
14945_ACEOF
14946if ac_fn_c_try_link "$LINENO"
14947then :
14948  MPFR_LIBM="-lm9x"
14949fi
14950rm -f core conftest.err conftest.$ac_objext conftest.beam \
14951    conftest$ac_exeext conftest.$ac_ext
14952LIBS="$saved_LIBS"
14953
14954
14955saved_LIBS="$LIBS"
14956LIBS="-lm $LIBS"
14957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958/* end confdefs.h.  */
14959
14960int
14961main (void)
14962{
14963
14964  ;
14965  return 0;
14966}
14967_ACEOF
14968if ac_fn_c_try_link "$LINENO"
14969then :
14970  MPFR_LIBM="$MPFR_LIBM -lm"
14971fi
14972rm -f core conftest.err conftest.$ac_objext conftest.beam \
14973    conftest$ac_exeext conftest.$ac_ext
14974LIBS="$saved_LIBS"
14975
14976    ;;
14977  *-ncr-sysv4.3*)
14978    # The following AC_CHECK_LIB line about -lmw is copied from libtool.m4,
14979    # but do we need it? This has never been tested in MPFR. See commits
14980    #   6d34bd85f038abeaeeb77aa8f65b562623cc38bc (1999-02-13)
14981    #   e65f46d3fc4eb98d25ee94ad8e6f51c5846c8fe3 (1999-03-20)
14982    # in the libtool repository.
14983    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14984printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
14985if test ${ac_cv_lib_mw__mwvalidcheckl+y}
14986then :
14987  printf %s "(cached) " >&6
14988else $as_nop
14989  ac_check_lib_save_LIBS=$LIBS
14990LIBS="-lmw  $LIBS"
14991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992/* end confdefs.h.  */
14993
14994/* Override any GCC internal prototype to avoid an error.
14995   Use char because int might match the return type of a GCC
14996   builtin and then its argument prototype would still apply.  */
14997#ifdef __cplusplus
14998extern "C"
14999#endif
15000char _mwvalidcheckl ();
15001int
15002main (void)
15003{
15004return _mwvalidcheckl ();
15005  ;
15006  return 0;
15007}
15008_ACEOF
15009if ac_fn_c_try_link "$LINENO"
15010then :
15011  ac_cv_lib_mw__mwvalidcheckl=yes
15012else $as_nop
15013  ac_cv_lib_mw__mwvalidcheckl=no
15014fi
15015rm -f core conftest.err conftest.$ac_objext conftest.beam \
15016    conftest$ac_exeext conftest.$ac_ext
15017LIBS=$ac_check_lib_save_LIBS
15018fi
15019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15020printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15021if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
15022then :
15023  MPFR_LIBM="-lmw"
15024fi
15025
15026
15027saved_LIBS="$LIBS"
15028LIBS="-lm $LIBS"
15029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030/* end confdefs.h.  */
15031
15032int
15033main (void)
15034{
15035
15036  ;
15037  return 0;
15038}
15039_ACEOF
15040if ac_fn_c_try_link "$LINENO"
15041then :
15042  MPFR_LIBM="$MPFR_LIBM -lm"
15043fi
15044rm -f core conftest.err conftest.$ac_objext conftest.beam \
15045    conftest$ac_exeext conftest.$ac_ext
15046LIBS="$saved_LIBS"
15047
15048    ;;
15049  *)
15050
15051saved_LIBS="$LIBS"
15052LIBS="-lm $LIBS"
15053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054/* end confdefs.h.  */
15055
15056int
15057main (void)
15058{
15059
15060  ;
15061  return 0;
15062}
15063_ACEOF
15064if ac_fn_c_try_link "$LINENO"
15065then :
15066  MPFR_LIBM="-lm"
15067fi
15068rm -f core conftest.err conftest.$ac_objext conftest.beam \
15069    conftest$ac_exeext conftest.$ac_ext
15070LIBS="$saved_LIBS"
15071
15072    ;;
15073esac
15074
15075
15076MPFR_LIBQUADMATH=''
15077
15078case $host in
15079  *)
15080
15081saved_LIBS="$LIBS"
15082LIBS="-lquadmath $LIBS"
15083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084/* end confdefs.h.  */
15085
15086int
15087main (void)
15088{
15089
15090  ;
15091  return 0;
15092}
15093_ACEOF
15094if ac_fn_c_try_link "$LINENO"
15095then :
15096  MPFR_LIBQUADMATH="-lquadmath"
15097fi
15098rm -f core conftest.err conftest.$ac_objext conftest.beam \
15099    conftest$ac_exeext conftest.$ac_ext
15100LIBS="$saved_LIBS"
15101
15102    ;;
15103esac
15104
15105
15106ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15107if test "x$ac_cv_type_size_t" = xyes
15108then :
15109
15110else $as_nop
15111
15112printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15113
15114fi
15115
15116
15117
15118
15119
15120
15121
15122
15123if test "$enable_shared_cache" = yes; then
15124
15125
15126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ISO C11 thread support" >&5
15127printf %s "checking for ISO C11 thread support... " >&6; }
15128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129/* end confdefs.h.  */
15130
15131#include <assert.h>
15132#include <threads.h>
15133 mtx_t lock;
15134 once_flag once = ONCE_FLAG_INIT;
15135 thrd_t thd_idx;
15136 int x = 0;
15137 void once_call (void) { x = 1; }
15138
15139int
15140main (void)
15141{
15142
15143    int err;
15144    err = mtx_init(&lock, mtx_plain);
15145    assert(err == thrd_success);
15146    err = mtx_lock(&lock);
15147    assert(err == thrd_success);
15148    err = mtx_unlock(&lock);
15149    assert(err == thrd_success);
15150    mtx_destroy(&lock);
15151    once_call(&once, once_call);
15152    return x == 1 ? 0 : -1;
15153
15154  ;
15155  return 0;
15156}
15157_ACEOF
15158if ac_fn_c_try_link "$LINENO"
15159then :
15160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15161printf "%s\n" "yes" >&6; }
15162       mpfr_c11_thread_ok=yes
15163else $as_nop
15164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15165printf "%s\n" "no" >&6; }
15166
15167fi
15168rm -f core conftest.err conftest.$ac_objext conftest.beam \
15169    conftest$ac_exeext conftest.$ac_ext
15170
15171if test "$mpfr_c11_thread_ok" = "yes"; then
15172
15173printf "%s\n" "#define MPFR_HAVE_C11_LOCK 1" >>confdefs.h
15174
15175fi
15176
15177
15178  if test "$mpfr_c11_thread_ok" != yes; then
15179
15180
15181
15182
15183
15184ac_ext=c
15185ac_cpp='$CPP $CPPFLAGS'
15186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15188ac_compiler_gnu=$ac_cv_c_compiler_gnu
15189
15190ax_pthread_ok=no
15191
15192# We used to check for pthread.h first, but this fails if pthread.h
15193# requires special compiler flags (e.g. on Tru64 or Sequent).
15194# It gets checked for in the link test anyway.
15195
15196# First of all, check if the user has set any of the PTHREAD_LIBS,
15197# etcetera environment variables, and if threads linking works using
15198# them:
15199if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15200        ax_pthread_save_CC="$CC"
15201        ax_pthread_save_CFLAGS="$CFLAGS"
15202        ax_pthread_save_LIBS="$LIBS"
15203        if test "x$PTHREAD_CC" != "x"
15204then :
15205  CC="$PTHREAD_CC"
15206fi
15207        if test "x$PTHREAD_CXX" != "x"
15208then :
15209  CXX="$PTHREAD_CXX"
15210fi
15211        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15212        LIBS="$PTHREAD_LIBS $LIBS"
15213        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15214printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15215        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216/* end confdefs.h.  */
15217
15218/* Override any GCC internal prototype to avoid an error.
15219   Use char because int might match the return type of a GCC
15220   builtin and then its argument prototype would still apply.  */
15221#ifdef __cplusplus
15222extern "C"
15223#endif
15224char pthread_join ();
15225int
15226main (void)
15227{
15228return pthread_join ();
15229  ;
15230  return 0;
15231}
15232_ACEOF
15233if ac_fn_c_try_link "$LINENO"
15234then :
15235  ax_pthread_ok=yes
15236fi
15237rm -f core conftest.err conftest.$ac_objext conftest.beam \
15238    conftest$ac_exeext conftest.$ac_ext
15239        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15240printf "%s\n" "$ax_pthread_ok" >&6; }
15241        if test "x$ax_pthread_ok" = "xno"; then
15242                PTHREAD_LIBS=""
15243                PTHREAD_CFLAGS=""
15244        fi
15245        CC="$ax_pthread_save_CC"
15246        CFLAGS="$ax_pthread_save_CFLAGS"
15247        LIBS="$ax_pthread_save_LIBS"
15248fi
15249
15250# We must check for the threads library under a number of different
15251# names; the ordering is very important because some systems
15252# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15253# libraries is broken (non-POSIX).
15254
15255# Create a list of thread flags to try. Items with a "," contain both
15256# C compiler flags (before ",") and linker flags (after ","). Other items
15257# starting with a "-" are C compiler flags, and remaining items are
15258# library names, except for "none" which indicates that we try without
15259# any flags at all, and "pthread-config" which is a program returning
15260# the flags for the Pth emulation library.
15261
15262ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15263
15264# The ordering *is* (sometimes) important.  Some notes on the
15265# individual items follow:
15266
15267# pthreads: AIX (must check this before -lpthread)
15268# none: in case threads are in libc; should be tried before -Kthread and
15269#       other compiler flags to prevent continual compiler warnings
15270# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15271# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15272#           (Note: HP C rejects this with "bad form for `-t' option")
15273# -pthreads: Solaris/gcc (Note: HP C also rejects)
15274# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15275#      doesn't hurt to check since this sometimes defines pthreads and
15276#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
15277#      is present but should not be used directly; and before -mthreads,
15278#      because the compiler interprets this as "-mt" + "-hreads")
15279# -mthreads: Mingw32/gcc, Lynx/gcc
15280# pthread: Linux, etcetera
15281# --thread-safe: KAI C++
15282# pthread-config: use pthread-config program (for GNU Pth library)
15283
15284case $host_os in
15285
15286        freebsd*)
15287
15288        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15289        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15290
15291        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15292        ;;
15293
15294        hpux*)
15295
15296        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15297        # multi-threading and also sets -lpthread."
15298
15299        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15300        ;;
15301
15302        openedition*)
15303
15304        # IBM z/OS requires a feature-test macro to be defined in order to
15305        # enable POSIX threads at all, so give the user a hint if this is
15306        # not set. (We don't define these ourselves, as they can affect
15307        # other portions of the system API in unpredictable ways.)
15308
15309        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310/* end confdefs.h.  */
15311
15312#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15313             AX_PTHREAD_ZOS_MISSING
15314#            endif
15315
15316_ACEOF
15317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15318  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
15319then :
15320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15321printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15322fi
15323rm -rf conftest*
15324
15325        ;;
15326
15327        solaris*)
15328
15329        # On Solaris (at least, for some versions), libc contains stubbed
15330        # (non-functional) versions of the pthreads routines, so link-based
15331        # tests will erroneously succeed. (N.B.: The stubs are missing
15332        # pthread_cleanup_push, or rather a function called by this macro,
15333        # so we could check for that, but who knows whether they'll stub
15334        # that too in a future libc.)  So we'll check first for the
15335        # standard Solaris way of linking pthreads (-mt -lpthread).
15336
15337        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
15338        ;;
15339esac
15340
15341# Are we compiling with Clang?
15342
15343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15344printf %s "checking whether $CC is Clang... " >&6; }
15345if test ${ax_cv_PTHREAD_CLANG+y}
15346then :
15347  printf %s "(cached) " >&6
15348else $as_nop
15349  ax_cv_PTHREAD_CLANG=no
15350     # Note that Autoconf sets GCC=yes for Clang as well as GCC
15351     if test "x$GCC" = "xyes"; then
15352        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15353/* end confdefs.h.  */
15354/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15355#            if defined(__clang__) && defined(__llvm__)
15356             AX_PTHREAD_CC_IS_CLANG
15357#            endif
15358
15359_ACEOF
15360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15361  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
15362then :
15363  ax_cv_PTHREAD_CLANG=yes
15364fi
15365rm -rf conftest*
15366
15367     fi
15368
15369fi
15370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15371printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
15372ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15373
15374
15375# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15376
15377# Note that for GCC and Clang -pthread generally implies -lpthread,
15378# except when -nostdlib is passed.
15379# This is problematic using libtool to build C++ shared libraries with pthread:
15380# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
15381# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
15382# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
15383# To solve this, first try -pthread together with -lpthread for GCC
15384
15385if test "x$GCC" = "xyes"
15386then :
15387  ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
15388fi
15389
15390# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
15391
15392if test "x$ax_pthread_clang" = "xyes"
15393then :
15394  ax_pthread_flags="-pthread,-lpthread -pthread"
15395fi
15396
15397
15398# The presence of a feature test macro requesting re-entrant function
15399# definitions is, on some systems, a strong hint that pthreads support is
15400# correctly enabled
15401
15402case $host_os in
15403        darwin* | hpux* | linux* | osf* | solaris*)
15404        ax_pthread_check_macro="_REENTRANT"
15405        ;;
15406
15407        aix*)
15408        ax_pthread_check_macro="_THREAD_SAFE"
15409        ;;
15410
15411        *)
15412        ax_pthread_check_macro="--"
15413        ;;
15414esac
15415if test "x$ax_pthread_check_macro" = "x--"
15416then :
15417  ax_pthread_check_cond=0
15418else $as_nop
15419  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15420fi
15421
15422
15423if test "x$ax_pthread_ok" = "xno"; then
15424for ax_pthread_try_flag in $ax_pthread_flags; do
15425
15426        case $ax_pthread_try_flag in
15427                none)
15428                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15429printf %s "checking whether pthreads work without any flags... " >&6; }
15430                ;;
15431
15432                *,*)
15433                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
15434                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
15435                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
15436printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
15437                ;;
15438
15439                -*)
15440                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15441printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15442                PTHREAD_CFLAGS="$ax_pthread_try_flag"
15443                ;;
15444
15445                pthread-config)
15446                # Extract the first word of "pthread-config", so it can be a program name with args.
15447set dummy pthread-config; ac_word=$2
15448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15449printf %s "checking for $ac_word... " >&6; }
15450if test ${ac_cv_prog_ax_pthread_config+y}
15451then :
15452  printf %s "(cached) " >&6
15453else $as_nop
15454  if test -n "$ax_pthread_config"; then
15455  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15456else
15457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15458for as_dir in $PATH
15459do
15460  IFS=$as_save_IFS
15461  case $as_dir in #(((
15462    '') as_dir=./ ;;
15463    */) ;;
15464    *) as_dir=$as_dir/ ;;
15465  esac
15466    for ac_exec_ext in '' $ac_executable_extensions; do
15467  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15468    ac_cv_prog_ax_pthread_config="yes"
15469    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15470    break 2
15471  fi
15472done
15473  done
15474IFS=$as_save_IFS
15475
15476  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15477fi
15478fi
15479ax_pthread_config=$ac_cv_prog_ax_pthread_config
15480if test -n "$ax_pthread_config"; then
15481  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15482printf "%s\n" "$ax_pthread_config" >&6; }
15483else
15484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485printf "%s\n" "no" >&6; }
15486fi
15487
15488
15489                if test "x$ax_pthread_config" = "xno"
15490then :
15491  continue
15492fi
15493                PTHREAD_CFLAGS="`pthread-config --cflags`"
15494                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15495                ;;
15496
15497                *)
15498                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15499printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15500                PTHREAD_LIBS="-l$ax_pthread_try_flag"
15501                ;;
15502        esac
15503
15504        ax_pthread_save_CFLAGS="$CFLAGS"
15505        ax_pthread_save_LIBS="$LIBS"
15506        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15507        LIBS="$PTHREAD_LIBS $LIBS"
15508
15509        # Check for various functions.  We must include pthread.h,
15510        # since some functions may be macros.  (On the Sequent, we
15511        # need a special flag -Kthread to make this header compile.)
15512        # We check for pthread_join because it is in -lpthread on IRIX
15513        # while pthread_create is in libc.  We check for pthread_attr_init
15514        # due to DEC craziness with -lpthreads.  We check for
15515        # pthread_cleanup_push because it is one of the few pthread
15516        # functions on Solaris that doesn't have a non-functional libc stub.
15517        # We try pthread_create on general principles.
15518
15519        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520/* end confdefs.h.  */
15521#include <pthread.h>
15522#                       if $ax_pthread_check_cond
15523#                        error "$ax_pthread_check_macro must be defined"
15524#                       endif
15525                        static void *some_global = NULL;
15526                        static void routine(void *a)
15527                          {
15528                             /* To avoid any unused-parameter or
15529                                unused-but-set-parameter warning.  */
15530                             some_global = a;
15531                          }
15532                        static void *start_routine(void *a) { return a; }
15533int
15534main (void)
15535{
15536pthread_t th; pthread_attr_t attr;
15537                        pthread_create(&th, 0, start_routine, 0);
15538                        pthread_join(th, 0);
15539                        pthread_attr_init(&attr);
15540                        pthread_cleanup_push(routine, 0);
15541                        pthread_cleanup_pop(0) /* ; */
15542  ;
15543  return 0;
15544}
15545_ACEOF
15546if ac_fn_c_try_link "$LINENO"
15547then :
15548  ax_pthread_ok=yes
15549fi
15550rm -f core conftest.err conftest.$ac_objext conftest.beam \
15551    conftest$ac_exeext conftest.$ac_ext
15552
15553        CFLAGS="$ax_pthread_save_CFLAGS"
15554        LIBS="$ax_pthread_save_LIBS"
15555
15556        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15557printf "%s\n" "$ax_pthread_ok" >&6; }
15558        if test "x$ax_pthread_ok" = "xyes"
15559then :
15560  break
15561fi
15562
15563        PTHREAD_LIBS=""
15564        PTHREAD_CFLAGS=""
15565done
15566fi
15567
15568
15569# Clang needs special handling, because older versions handle the -pthread
15570# option in a rather... idiosyncratic way
15571
15572if test "x$ax_pthread_clang" = "xyes"; then
15573
15574        # Clang takes -pthread; it has never supported any other flag
15575
15576        # (Note 1: This will need to be revisited if a system that Clang
15577        # supports has POSIX threads in a separate library.  This tends not
15578        # to be the way of modern systems, but it's conceivable.)
15579
15580        # (Note 2: On some systems, notably Darwin, -pthread is not needed
15581        # to get POSIX threads support; the API is always present and
15582        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
15583        # -pthread does define _REENTRANT, and while the Darwin headers
15584        # ignore this macro, third-party headers might not.)
15585
15586        # However, older versions of Clang make a point of warning the user
15587        # that, in an invocation where only linking and no compilation is
15588        # taking place, the -pthread option has no effect ("argument unused
15589        # during compilation").  They expect -pthread to be passed in only
15590        # when source code is being compiled.
15591        #
15592        # Problem is, this is at odds with the way Automake and most other
15593        # C build frameworks function, which is that the same flags used in
15594        # compilation (CFLAGS) are also used in linking.  Many systems
15595        # supported by AX_PTHREAD require exactly this for POSIX threads
15596        # support, and in fact it is often not straightforward to specify a
15597        # flag that is used only in the compilation phase and not in
15598        # linking.  Such a scenario is extremely rare in practice.
15599        #
15600        # Even though use of the -pthread flag in linking would only print
15601        # a warning, this can be a nuisance for well-run software projects
15602        # that build with -Werror.  So if the active version of Clang has
15603        # this misfeature, we search for an option to squash it.
15604
15605        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15606printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15607if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
15608then :
15609  printf %s "(cached) " >&6
15610else $as_nop
15611  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15612             # Create an alternate version of $ac_link that compiles and
15613             # links in two steps (.c -> .o, .o -> exe) instead of one
15614             # (.c -> exe), because the warning occurs only in the second
15615             # step
15616             ax_pthread_save_ac_link="$ac_link"
15617             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15618             ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
15619             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15620             ax_pthread_save_CFLAGS="$CFLAGS"
15621             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15622                if test "x$ax_pthread_try" = "xunknown"
15623then :
15624  break
15625fi
15626                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15627                ac_link="$ax_pthread_save_ac_link"
15628                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629/* end confdefs.h.  */
15630int main(void){return 0;}
15631_ACEOF
15632if ac_fn_c_try_link "$LINENO"
15633then :
15634  ac_link="$ax_pthread_2step_ac_link"
15635                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636/* end confdefs.h.  */
15637int main(void){return 0;}
15638_ACEOF
15639if ac_fn_c_try_link "$LINENO"
15640then :
15641  break
15642fi
15643rm -f core conftest.err conftest.$ac_objext conftest.beam \
15644    conftest$ac_exeext conftest.$ac_ext
15645
15646fi
15647rm -f core conftest.err conftest.$ac_objext conftest.beam \
15648    conftest$ac_exeext conftest.$ac_ext
15649             done
15650             ac_link="$ax_pthread_save_ac_link"
15651             CFLAGS="$ax_pthread_save_CFLAGS"
15652             if test "x$ax_pthread_try" = "x"
15653then :
15654  ax_pthread_try=no
15655fi
15656             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15657
15658fi
15659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15660printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15661
15662        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15663                no | unknown) ;;
15664                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15665        esac
15666
15667fi # $ax_pthread_clang = yes
15668
15669
15670
15671# Various other checks:
15672if test "x$ax_pthread_ok" = "xyes"; then
15673        ax_pthread_save_CFLAGS="$CFLAGS"
15674        ax_pthread_save_LIBS="$LIBS"
15675        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15676        LIBS="$PTHREAD_LIBS $LIBS"
15677
15678        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15679        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15680printf %s "checking for joinable pthread attribute... " >&6; }
15681if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
15682then :
15683  printf %s "(cached) " >&6
15684else $as_nop
15685  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15686             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15687                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688/* end confdefs.h.  */
15689#include <pthread.h>
15690int
15691main (void)
15692{
15693int attr = $ax_pthread_attr; return attr /* ; */
15694  ;
15695  return 0;
15696}
15697_ACEOF
15698if ac_fn_c_try_link "$LINENO"
15699then :
15700  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
15701fi
15702rm -f core conftest.err conftest.$ac_objext conftest.beam \
15703    conftest$ac_exeext conftest.$ac_ext
15704             done
15705
15706fi
15707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
15708printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
15709        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
15710               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
15711               test "x$ax_pthread_joinable_attr_defined" != "xyes"
15712then :
15713
15714printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
15715
15716               ax_pthread_joinable_attr_defined=yes
15717
15718fi
15719
15720        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
15721printf %s "checking whether more special flags are required for pthreads... " >&6; }
15722if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
15723then :
15724  printf %s "(cached) " >&6
15725else $as_nop
15726  ax_cv_PTHREAD_SPECIAL_FLAGS=no
15727             case $host_os in
15728             solaris*)
15729             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
15730             ;;
15731             esac
15732
15733fi
15734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
15735printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
15736        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
15737               test "x$ax_pthread_special_flags_added" != "xyes"
15738then :
15739  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
15740               ax_pthread_special_flags_added=yes
15741fi
15742
15743        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15744printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15745if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
15746then :
15747  printf %s "(cached) " >&6
15748else $as_nop
15749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750/* end confdefs.h.  */
15751#include <pthread.h>
15752int
15753main (void)
15754{
15755int i = PTHREAD_PRIO_INHERIT;
15756                                               return i;
15757  ;
15758  return 0;
15759}
15760_ACEOF
15761if ac_fn_c_try_link "$LINENO"
15762then :
15763  ax_cv_PTHREAD_PRIO_INHERIT=yes
15764else $as_nop
15765  ax_cv_PTHREAD_PRIO_INHERIT=no
15766fi
15767rm -f core conftest.err conftest.$ac_objext conftest.beam \
15768    conftest$ac_exeext conftest.$ac_ext
15769
15770fi
15771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15772printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15773        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
15774               test "x$ax_pthread_prio_inherit_defined" != "xyes"
15775then :
15776
15777printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15778
15779               ax_pthread_prio_inherit_defined=yes
15780
15781fi
15782
15783        CFLAGS="$ax_pthread_save_CFLAGS"
15784        LIBS="$ax_pthread_save_LIBS"
15785
15786        # More AIX lossage: compile with *_r variant
15787        if test "x$GCC" != "xyes"; then
15788            case $host_os in
15789                aix*)
15790                case "x/$CC" in #(
15791  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15792    #handle absolute path differently from PATH based program lookup
15793                     case "x$CC" in #(
15794  x/*) :
15795
15796			   if as_fn_executable_p ${CC}_r
15797then :
15798  PTHREAD_CC="${CC}_r"
15799fi
15800			   if test "x${CXX}" != "x"
15801then :
15802  if as_fn_executable_p ${CXX}_r
15803then :
15804  PTHREAD_CXX="${CXX}_r"
15805fi
15806fi
15807			  ;; #(
15808  *) :
15809
15810			   for ac_prog in ${CC}_r
15811do
15812  # Extract the first word of "$ac_prog", so it can be a program name with args.
15813set dummy $ac_prog; ac_word=$2
15814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15815printf %s "checking for $ac_word... " >&6; }
15816if test ${ac_cv_prog_PTHREAD_CC+y}
15817then :
15818  printf %s "(cached) " >&6
15819else $as_nop
15820  if test -n "$PTHREAD_CC"; then
15821  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15822else
15823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15824for as_dir in $PATH
15825do
15826  IFS=$as_save_IFS
15827  case $as_dir in #(((
15828    '') as_dir=./ ;;
15829    */) ;;
15830    *) as_dir=$as_dir/ ;;
15831  esac
15832    for ac_exec_ext in '' $ac_executable_extensions; do
15833  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15834    ac_cv_prog_PTHREAD_CC="$ac_prog"
15835    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15836    break 2
15837  fi
15838done
15839  done
15840IFS=$as_save_IFS
15841
15842fi
15843fi
15844PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15845if test -n "$PTHREAD_CC"; then
15846  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15847printf "%s\n" "$PTHREAD_CC" >&6; }
15848else
15849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15850printf "%s\n" "no" >&6; }
15851fi
15852
15853
15854  test -n "$PTHREAD_CC" && break
15855done
15856test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15857
15858			   if test "x${CXX}" != "x"
15859then :
15860  for ac_prog in ${CXX}_r
15861do
15862  # Extract the first word of "$ac_prog", so it can be a program name with args.
15863set dummy $ac_prog; ac_word=$2
15864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15865printf %s "checking for $ac_word... " >&6; }
15866if test ${ac_cv_prog_PTHREAD_CXX+y}
15867then :
15868  printf %s "(cached) " >&6
15869else $as_nop
15870  if test -n "$PTHREAD_CXX"; then
15871  ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
15872else
15873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15874for as_dir in $PATH
15875do
15876  IFS=$as_save_IFS
15877  case $as_dir in #(((
15878    '') as_dir=./ ;;
15879    */) ;;
15880    *) as_dir=$as_dir/ ;;
15881  esac
15882    for ac_exec_ext in '' $ac_executable_extensions; do
15883  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15884    ac_cv_prog_PTHREAD_CXX="$ac_prog"
15885    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15886    break 2
15887  fi
15888done
15889  done
15890IFS=$as_save_IFS
15891
15892fi
15893fi
15894PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
15895if test -n "$PTHREAD_CXX"; then
15896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
15897printf "%s\n" "$PTHREAD_CXX" >&6; }
15898else
15899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900printf "%s\n" "no" >&6; }
15901fi
15902
15903
15904  test -n "$PTHREAD_CXX" && break
15905done
15906test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
15907
15908fi
15909
15910                      ;;
15911esac
15912                     ;; #(
15913  *) :
15914     ;;
15915esac
15916                ;;
15917            esac
15918        fi
15919fi
15920
15921test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15922test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
15923
15924
15925
15926
15927
15928
15929# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15930if test "x$ax_pthread_ok" = "xyes"; then
15931
15932printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
15933
15934        :
15935else
15936        ax_pthread_ok=no
15937
15938fi
15939ac_ext=c
15940ac_cpp='$CPP $CPPFLAGS'
15941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15943ac_compiler_gnu=$ac_cv_c_compiler_gnu
15944
15945
15946    if test "$ax_pthread_ok" = yes; then
15947      CC="$PTHREAD_CC"
15948      CXX="$PTHREAD_CXX"
15949      CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15950      CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
15951      LIBS="$LIBS $PTHREAD_LIBS"
15952      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
15953printf %s "checking for pthread_rwlock_t... " >&6; }
15954      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955/* end confdefs.h.  */
15956
15957#include <pthread.h>
15958
15959int
15960main (void)
15961{
15962
15963pthread_rwlock_t lock; (void) lock;
15964
15965  ;
15966  return 0;
15967}
15968_ACEOF
15969if ac_fn_c_try_compile "$LINENO"
15970then :
15971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15972printf "%s\n" "yes" >&6; }
15973         mpfr_pthread_ok=yes
15974else $as_nop
15975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15976printf "%s\n" "no" >&6; }
15977         mpfr_pthread_ok=no
15978fi
15979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15980    else
15981      mpfr_pthread_ok=no
15982    fi
15983  fi
15984
15985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if shared cache can be supported" >&5
15986printf %s "checking if shared cache can be supported... " >&6; }
15987  if test "$mpfr_c11_thread_ok" = yes; then
15988    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with ISO C11 threads" >&5
15989printf "%s\n" "yes, with ISO C11 threads" >&6; }
15990  elif test "$mpfr_pthread_ok" = yes; then
15991    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with pthread" >&5
15992printf "%s\n" "yes, with pthread" >&6; }
15993  else
15994    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15995printf "%s\n" "no" >&6; }
15996    as_fn_error $? "shared cache needs C11 threads or pthread support" "$LINENO" 5
15997  fi
15998
15999fi
16000
16001
16002ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
16003if test "x$ac_cv_header_limits_h" = xyes
16004then :
16005
16006else $as_nop
16007  as_fn_error $? "limits.h not found" "$LINENO" 5
16008fi
16009
16010ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
16011if test "x$ac_cv_header_float_h" = xyes
16012then :
16013
16014else $as_nop
16015  as_fn_error $? "float.h not found" "$LINENO" 5
16016fi
16017
16018ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
16019if test "x$ac_cv_header_string_h" = xyes
16020then :
16021
16022else $as_nop
16023  as_fn_error $? "string.h not found" "$LINENO" 5
16024fi
16025
16026
16027ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16028if test "x$ac_cv_header_locale_h" = xyes
16029then :
16030  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
16031
16032fi
16033
16034
16035ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
16036if test "x$ac_cv_header_wchar_h" = xyes
16037then :
16038  printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
16039
16040fi
16041
16042
16043ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
16044if test "x$ac_cv_header_stdarg_h" = xyes
16045then :
16046
16047printf "%s\n" "#define HAVE_STDARG 1" >>confdefs.h
16048
16049else $as_nop
16050  ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
16051if test "x$ac_cv_header_varargs_h" = xyes
16052then :
16053
16054else $as_nop
16055  as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5
16056fi
16057
16058fi
16059
16060
16061ac_fn_c_check_header_compile "$LINENO" "sys/fpu.h" "ac_cv_header_sys_fpu_h" "$ac_includes_default"
16062if test "x$ac_cv_header_sys_fpu_h" = xyes
16063then :
16064  printf "%s\n" "#define HAVE_SYS_FPU_H 1" >>confdefs.h
16065
16066fi
16067
16068
16069ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
16070"
16071if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
16072then :
16073
16074printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h
16075
16076
16077fi
16078ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
16079"
16080if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes
16081then :
16082
16083printf "%s\n" "#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1" >>confdefs.h
16084
16085
16086fi
16087
16088
16089# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16090# for constant arguments.  Useless!
16091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16092printf %s "checking for working alloca.h... " >&6; }
16093if test ${ac_cv_working_alloca_h+y}
16094then :
16095  printf %s "(cached) " >&6
16096else $as_nop
16097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098/* end confdefs.h.  */
16099#include <alloca.h>
16100int
16101main (void)
16102{
16103char *p = (char *) alloca (2 * sizeof (int));
16104			  if (p) return 0;
16105  ;
16106  return 0;
16107}
16108_ACEOF
16109if ac_fn_c_try_link "$LINENO"
16110then :
16111  ac_cv_working_alloca_h=yes
16112else $as_nop
16113  ac_cv_working_alloca_h=no
16114fi
16115rm -f core conftest.err conftest.$ac_objext conftest.beam \
16116    conftest$ac_exeext conftest.$ac_ext
16117fi
16118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16119printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
16120if test $ac_cv_working_alloca_h = yes; then
16121
16122printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
16123
16124fi
16125
16126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16127printf %s "checking for alloca... " >&6; }
16128if test ${ac_cv_func_alloca_works+y}
16129then :
16130  printf %s "(cached) " >&6
16131else $as_nop
16132  if test $ac_cv_working_alloca_h = yes; then
16133  ac_cv_func_alloca_works=yes
16134else
16135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136/* end confdefs.h.  */
16137#include <stdlib.h>
16138#include <stddef.h>
16139#ifndef alloca
16140# ifdef __GNUC__
16141#  define alloca __builtin_alloca
16142# elif defined _MSC_VER
16143#  include <malloc.h>
16144#  define alloca _alloca
16145# else
16146#  ifdef  __cplusplus
16147extern "C"
16148#  endif
16149void *alloca (size_t);
16150# endif
16151#endif
16152
16153int
16154main (void)
16155{
16156char *p = (char *) alloca (1);
16157				    if (p) return 0;
16158  ;
16159  return 0;
16160}
16161_ACEOF
16162if ac_fn_c_try_link "$LINENO"
16163then :
16164  ac_cv_func_alloca_works=yes
16165else $as_nop
16166  ac_cv_func_alloca_works=no
16167fi
16168rm -f core conftest.err conftest.$ac_objext conftest.beam \
16169    conftest$ac_exeext conftest.$ac_ext
16170fi
16171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16172printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
16173fi
16174
16175if test $ac_cv_func_alloca_works = yes; then
16176
16177printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16178
16179else
16180  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16181# that cause trouble.  Some versions do not even contain alloca or
16182# contain a buggy version.  If you still want to use their alloca,
16183# use ar to extract alloca.o from them instead of compiling alloca.c.
16184
16185ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16186
16187printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
16188
16189
16190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16191printf %s "checking stack direction for C alloca... " >&6; }
16192if test ${ac_cv_c_stack_direction+y}
16193then :
16194  printf %s "(cached) " >&6
16195else $as_nop
16196  if test "$cross_compiling" = yes
16197then :
16198  ac_cv_c_stack_direction=0
16199else $as_nop
16200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16201/* end confdefs.h.  */
16202$ac_includes_default
16203int
16204find_stack_direction (int *addr, int depth)
16205{
16206  int dir, dummy = 0;
16207  if (! addr)
16208    addr = &dummy;
16209  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16210  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16211  return dir + dummy;
16212}
16213
16214int
16215main (int argc, char **argv)
16216{
16217  return find_stack_direction (0, argc + !argv + 20) < 0;
16218}
16219_ACEOF
16220if ac_fn_c_try_run "$LINENO"
16221then :
16222  ac_cv_c_stack_direction=1
16223else $as_nop
16224  ac_cv_c_stack_direction=-1
16225fi
16226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16227  conftest.$ac_objext conftest.beam conftest.$ac_ext
16228fi
16229
16230fi
16231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16232printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
16233printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
16234
16235
16236fi
16237
16238
16239
16240  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16241if test "x$ac_cv_type_uintptr_t" = xyes
16242then :
16243
16244printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
16245
16246else $as_nop
16247  for ac_type in 'unsigned int' 'unsigned long int' \
16248	'unsigned long long int'; do
16249       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250/* end confdefs.h.  */
16251$ac_includes_default
16252int
16253main (void)
16254{
16255static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16256test_array [0] = 0;
16257return test_array [0];
16258
16259  ;
16260  return 0;
16261}
16262_ACEOF
16263if ac_fn_c_try_compile "$LINENO"
16264then :
16265
16266printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
16267
16268	  ac_type=
16269fi
16270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16271       test -z "$ac_type" && break
16272     done
16273fi
16274
16275
16276
16277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
16278printf %s "checking how to copy va_list... " >&6; }
16279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280/* end confdefs.h.  */
16281
16282#include <stdarg.h>
16283
16284int
16285main (void)
16286{
16287
16288   va_list ap1, ap2;
16289   va_copy(ap1, ap2);
16290
16291  ;
16292  return 0;
16293}
16294_ACEOF
16295if ac_fn_c_try_link "$LINENO"
16296then :
16297
16298   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
16299printf "%s\n" "va_copy" >&6; }
16300   printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h
16301
16302
16303else $as_nop
16304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305/* end confdefs.h.  */
16306
16307#include <stdarg.h>
16308
16309int
16310main (void)
16311{
16312
16313   va_list ap1, ap2;
16314   __va_copy(ap1, ap2);
16315
16316  ;
16317  return 0;
16318}
16319_ACEOF
16320if ac_fn_c_try_link "$LINENO"
16321then :
16322  printf "%s\n" "#define HAVE___VA_COPY 1" >>confdefs.h
16323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
16324printf "%s\n" "__va_copy" >&6; }
16325else $as_nop
16326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
16327printf "%s\n" "memcpy" >&6; }
16328fi
16329rm -f core conftest.err conftest.$ac_objext conftest.beam \
16330    conftest$ac_exeext conftest.$ac_ext
16331fi
16332rm -f core conftest.err conftest.$ac_objext conftest.beam \
16333    conftest$ac_exeext conftest.$ac_ext
16334
16335saved_CFLAGS="$CFLAGS"
16336CFLAGS=`echo " $CFLAGS" | $SED 's/ -Werror[^ ]*//g'`
16337ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
16338if test "x$ac_cv_func_setlocale" = xyes
16339then :
16340  printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
16341
16342fi
16343ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16344if test "x$ac_cv_func_gettimeofday" = xyes
16345then :
16346  printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16347
16348fi
16349ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
16350if test "x$ac_cv_func_signal" = xyes
16351then :
16352  printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
16353
16354fi
16355
16356CFLAGS="$saved_CFLAGS"
16357
16358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigaction and its associated structure" >&5
16359printf %s "checking for sigaction and its associated structure... " >&6; }
16360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361/* end confdefs.h.  */
16362
16363#include <signal.h>
16364static int f (int (*func)(int, const struct sigaction *, struct sigaction *))
16365{ return 0; }
16366
16367int
16368main (void)
16369{
16370
16371 return f(sigaction);
16372
16373  ;
16374  return 0;
16375}
16376_ACEOF
16377if ac_fn_c_try_link "$LINENO"
16378then :
16379
16380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16381printf "%s\n" "yes" >&6; }
16382
16383printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
16384
16385
16386else $as_nop
16387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16388printf "%s\n" "no" >&6; }
16389fi
16390rm -f core conftest.err conftest.$ac_objext conftest.beam \
16391    conftest$ac_exeext conftest.$ac_ext
16392
16393ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
16394if test "x$ac_cv_type_long_long_int" = xyes
16395then :
16396
16397printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
16398
16399fi
16400
16401
16402ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16403if test "x$ac_cv_type_intmax_t" = xyes
16404then :
16405
16406printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
16407
16408
16409fi
16410
16411if test "$ac_cv_type_intmax_t" = yes; then
16412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5
16413printf %s "checking for working INTMAX_MAX... " >&6; }
16414if test ${mpfr_cv_have_intmax_max+y}
16415then :
16416  printf %s "(cached) " >&6
16417else $as_nop
16418
16419    saved_CPPFLAGS="$CPPFLAGS"
16420    CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H"
16421    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422/* end confdefs.h.  */
16423#include "mpfr-intmax.h"
16424int
16425main (void)
16426{
16427intmax_t x = INTMAX_MAX; (void) x;
16428
16429  ;
16430  return 0;
16431}
16432_ACEOF
16433if ac_fn_c_try_compile "$LINENO"
16434then :
16435  mpfr_cv_have_intmax_max=yes
16436else $as_nop
16437  mpfr_cv_have_intmax_max=no
16438fi
16439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16440    CPPFLAGS="$saved_CPPFLAGS"
16441
16442fi
16443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5
16444printf "%s\n" "$mpfr_cv_have_intmax_max" >&6; }
16445  if test "$mpfr_cv_have_intmax_max" = "yes"; then
16446
16447printf "%s\n" "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h
16448
16449  fi
16450fi
16451
16452ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
16453#if HAVE_SYS_FPU_H
16454#  include <sys/fpu.h>
16455#endif
16456
16457"
16458if test "x$ac_cv_type_union_fpc_csr" = xyes
16459then :
16460
16461printf "%s\n" "#define HAVE_FPC_CSR 1" >>confdefs.h
16462
16463fi
16464
16465
16466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Noreturn" >&5
16467printf %s "checking for _Noreturn... " >&6; }
16468if test ${mpfr_cv_have_noreturn+y}
16469then :
16470  printf %s "(cached) " >&6
16471else $as_nop
16472
16473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474/* end confdefs.h.  */
16475_Noreturn void foo(int);
16476_ACEOF
16477if ac_fn_c_try_compile "$LINENO"
16478then :
16479  mpfr_cv_have_noreturn=yes
16480else $as_nop
16481  mpfr_cv_have_noreturn=no
16482fi
16483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16484
16485fi
16486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_noreturn" >&5
16487printf "%s\n" "$mpfr_cv_have_noreturn" >&6; }
16488if test "$mpfr_cv_have_noreturn" = "yes"; then
16489
16490printf "%s\n" "#define MPFR_HAVE_NORETURN 1" >>confdefs.h
16491
16492fi
16493
16494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
16495printf %s "checking for __builtin_unreachable... " >&6; }
16496if test ${mpfr_cv_have_builtin_unreachable+y}
16497then :
16498  printf %s "(cached) " >&6
16499else $as_nop
16500
16501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502/* end confdefs.h.  */
16503int x;
16504int
16505main (void)
16506{
16507if (x) __builtin_unreachable();
16508
16509  ;
16510  return 0;
16511}
16512_ACEOF
16513if ac_fn_c_try_link "$LINENO"
16514then :
16515  mpfr_cv_have_builtin_unreachable=yes
16516else $as_nop
16517  mpfr_cv_have_builtin_unreachable=no
16518fi
16519rm -f core conftest.err conftest.$ac_objext conftest.beam \
16520    conftest$ac_exeext conftest.$ac_ext
16521
16522fi
16523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_builtin_unreachable" >&5
16524printf "%s\n" "$mpfr_cv_have_builtin_unreachable" >&6; }
16525if test "$mpfr_cv_have_builtin_unreachable" = "yes"; then
16526
16527printf "%s\n" "#define MPFR_HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
16528
16529fi
16530
16531
16532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for constructor and destructor attributes" >&5
16533printf %s "checking for constructor and destructor attributes... " >&6; }
16534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535/* end confdefs.h.  */
16536
16537#include <stdlib.h>
16538int x = 0;
16539__attribute__((constructor)) static void
16540call_f(void) { x = 1742; }
16541__attribute__((destructor)) static void
16542call_g(void) { x = 1448; }
16543
16544int
16545main (void)
16546{
16547
16548    return (x == 1742) ? 0 : 1;
16549
16550  ;
16551  return 0;
16552}
16553_ACEOF
16554if ac_fn_c_try_link "$LINENO"
16555then :
16556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16557printf "%s\n" "yes" >&6; }
16558       mpfr_have_constructor_destructor_attributes=yes
16559else $as_nop
16560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16561printf "%s\n" "no" >&6; }
16562
16563fi
16564rm -f core conftest.err conftest.$ac_objext conftest.beam \
16565    conftest$ac_exeext conftest.$ac_ext
16566
16567if test "$mpfr_have_constructor_destructor_attributes" = "yes"; then
16568
16569printf "%s\n" "#define MPFR_HAVE_CONSTRUCTOR_ATTR 1" >>confdefs.h
16570
16571fi
16572
16573
16574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
16575printf %s "checking for fesetround... " >&6; }
16576if test ${mpfr_cv_have_fesetround+y}
16577then :
16578  printf %s "(cached) " >&6
16579else $as_nop
16580
16581saved_LIBS="$LIBS"
16582LIBS="$LIBS $MPFR_LIBM"
16583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16584/* end confdefs.h.  */
16585#include <fenv.h>
16586int
16587main (void)
16588{
16589fesetround(FE_TONEAREST);
16590  ;
16591  return 0;
16592}
16593_ACEOF
16594if ac_fn_c_try_link "$LINENO"
16595then :
16596  mpfr_cv_have_fesetround=yes
16597else $as_nop
16598  mpfr_cv_have_fesetround=no
16599fi
16600rm -f core conftest.err conftest.$ac_objext conftest.beam \
16601    conftest$ac_exeext conftest.$ac_ext
16602LIBS="$saved_LIBS"
16603
16604fi
16605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
16606printf "%s\n" "$mpfr_cv_have_fesetround" >&6; }
16607if test "$mpfr_cv_have_fesetround" = "yes"; then
16608
16609printf "%s\n" "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
16610
16611fi
16612
16613if test -n "$GCC"; then
16614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
16615printf %s "checking for gcc float-conversion bug... " >&6; }
16616if test ${mpfr_cv_gcc_floatconv_bug+y}
16617then :
16618  printf %s "(cached) " >&6
16619else $as_nop
16620
16621  saved_LIBS="$LIBS"
16622  LIBS="$LIBS $MPFR_LIBM"
16623  if test "$cross_compiling" = yes
16624then :
16625  mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
16626else $as_nop
16627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628/* end confdefs.h.  */
16629
16630#include <float.h>
16631#ifdef MPFR_HAVE_FESETROUND
16632#include <fenv.h>
16633#endif
16634static double get_max (void);
16635int main (void) {
16636  double x = 0.5;
16637  double y;
16638  int i;
16639  for (i = 1; i <= 11; i++)
16640    x *= x;
16641  if (x != 0)
16642    return 1;
16643#ifdef MPFR_HAVE_FESETROUND
16644  /* Useful test for the G4 PowerPC */
16645  fesetround(FE_TOWARDZERO);
16646  x = y = get_max ();
16647  x *= 2.0;
16648  if (x != y)
16649    return 1;
16650#endif
16651  return 0;
16652}
16653static double get_max (void) { static volatile double d = DBL_MAX; return d; }
16654
16655_ACEOF
16656if ac_fn_c_try_run "$LINENO"
16657then :
16658  mpfr_cv_gcc_floatconv_bug="no"
16659else $as_nop
16660  mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
16661fi
16662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16663  conftest.$ac_objext conftest.beam conftest.$ac_ext
16664fi
16665
16666  LIBS="$saved_LIBS"
16667
16668fi
16669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
16670printf "%s\n" "$mpfr_cv_gcc_floatconv_bug" >&6; }
16671  if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
16672    CFLAGS="$CFLAGS -ffloat-store"
16673  fi
16674fi
16675
16676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for subnormal double-precision numbers" >&5
16677printf %s "checking for subnormal double-precision numbers... " >&6; }
16678if test ${mpfr_cv_have_subnorm_dbl+y}
16679then :
16680  printf %s "(cached) " >&6
16681else $as_nop
16682
16683if test "$cross_compiling" = yes
16684then :
16685  mpfr_cv_have_subnorm_dbl="cannot test, assume no"
16686else $as_nop
16687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688/* end confdefs.h.  */
16689
16690#include <stdio.h>
16691int main (void) {
16692  volatile double x = 2.22507385850720138309e-308, y;
16693  y = x / 2.0;
16694  fprintf (stderr, "%e\n", y);
16695  return 2.0 * y != x;
16696}
16697
16698_ACEOF
16699if ac_fn_c_try_run "$LINENO"
16700then :
16701  mpfr_cv_have_subnorm_dbl="yes"
16702else $as_nop
16703  mpfr_cv_have_subnorm_dbl="no"
16704fi
16705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16706  conftest.$ac_objext conftest.beam conftest.$ac_ext
16707fi
16708
16709
16710fi
16711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_dbl" >&5
16712printf "%s\n" "$mpfr_cv_have_subnorm_dbl" >&6; }
16713if test "$mpfr_cv_have_subnorm_dbl" = "yes"; then
16714
16715printf "%s\n" "#define HAVE_SUBNORM_DBL 1" >>confdefs.h
16716
16717fi
16718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for subnormal single-precision numbers" >&5
16719printf %s "checking for subnormal single-precision numbers... " >&6; }
16720if test ${mpfr_cv_have_subnorm_flt+y}
16721then :
16722  printf %s "(cached) " >&6
16723else $as_nop
16724
16725if test "$cross_compiling" = yes
16726then :
16727  mpfr_cv_have_subnorm_flt="cannot test, assume no"
16728else $as_nop
16729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730/* end confdefs.h.  */
16731
16732#include <stdio.h>
16733int main (void) {
16734  volatile float x = 1.17549435082229e-38, y;
16735  y = x / 2.0f;
16736  fprintf (stderr, "%e\n", (double) y);
16737  return 2.0f * y != x;
16738}
16739
16740_ACEOF
16741if ac_fn_c_try_run "$LINENO"
16742then :
16743  mpfr_cv_have_subnorm_flt="yes"
16744else $as_nop
16745  mpfr_cv_have_subnorm_flt="no"
16746fi
16747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16748  conftest.$ac_objext conftest.beam conftest.$ac_ext
16749fi
16750
16751
16752fi
16753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_flt" >&5
16754printf "%s\n" "$mpfr_cv_have_subnorm_flt" >&6; }
16755if test "$mpfr_cv_have_subnorm_flt" = "yes"; then
16756
16757printf "%s\n" "#define HAVE_SUBNORM_FLT 1" >>confdefs.h
16758
16759fi
16760
16761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signed zeros" >&5
16762printf %s "checking for signed zeros... " >&6; }
16763if test ${mpfr_cv_have_signedz+y}
16764then :
16765  printf %s "(cached) " >&6
16766else $as_nop
16767
16768if test "$cross_compiling" = yes
16769then :
16770  mpfr_cv_have_signedz="cannot test, assume no"
16771else $as_nop
16772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773/* end confdefs.h.  */
16774
16775int main (void) {
16776  return 1.0 / 0.0 == 1.0 / -0.0;
16777}
16778
16779_ACEOF
16780if ac_fn_c_try_run "$LINENO"
16781then :
16782  mpfr_cv_have_signedz="yes"
16783else $as_nop
16784  mpfr_cv_have_signedz="no"
16785fi
16786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16787  conftest.$ac_objext conftest.beam conftest.$ac_ext
16788fi
16789
16790
16791fi
16792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_signedz" >&5
16793printf "%s\n" "$mpfr_cv_have_signedz" >&6; }
16794if test "$mpfr_cv_have_signedz" = "yes"; then
16795
16796printf "%s\n" "#define HAVE_SIGNEDZ 1" >>confdefs.h
16797
16798fi
16799
16800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5
16801printf %s "checking if the FP division by 0 fails... " >&6; }
16802if test ${mpfr_cv_errdivzero+y}
16803then :
16804  printf %s "(cached) " >&6
16805else $as_nop
16806
16807if test "$cross_compiling" = yes
16808then :
16809  mpfr_cv_errdivzero="cannot test, assume no"
16810else $as_nop
16811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812/* end confdefs.h.  */
16813
16814int main (void) {
16815  volatile double d = 0.0, x;
16816  x = 0.0 / d;
16817  x = 1.0 / d;
16818  (void) x;
16819  return 0;
16820}
16821
16822_ACEOF
16823if ac_fn_c_try_run "$LINENO"
16824then :
16825  mpfr_cv_errdivzero="no"
16826else $as_nop
16827  mpfr_cv_errdivzero="yes"
16828fi
16829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16830  conftest.$ac_objext conftest.beam conftest.$ac_ext
16831fi
16832
16833
16834fi
16835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5
16836printf "%s\n" "$mpfr_cv_errdivzero" >&6; }
16837if test "$mpfr_cv_errdivzero" = "yes"; then
16838
16839printf "%s\n" "#define MPFR_ERRDIVZERO 1" >>confdefs.h
16840
16841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5
16842printf "%s\n" "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;}
16843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5
16844printf "%s\n" "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;}
16845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5
16846printf "%s\n" "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;}
16847fi
16848
16849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
16850printf %s "checking if NAN == NAN... " >&6; }
16851if test ${mpfr_cv_nanisnan+y}
16852then :
16853  printf %s "(cached) " >&6
16854else $as_nop
16855
16856if test "$cross_compiling" = yes
16857then :
16858  mpfr_cv_nanisnan="cannot test, assume no"
16859else $as_nop
16860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861/* end confdefs.h.  */
16862
16863#include <stdio.h>
16864#include <math.h>
16865#ifndef NAN
16866# define NAN (0.0/0.0)
16867#endif
16868int main (void) {
16869  double d;
16870  d = NAN;
16871  return d != d;
16872}
16873
16874_ACEOF
16875if ac_fn_c_try_run "$LINENO"
16876then :
16877  mpfr_cv_nanisnan="yes"
16878else $as_nop
16879  mpfr_cv_nanisnan="no"
16880fi
16881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16882  conftest.$ac_objext conftest.beam conftest.$ac_ext
16883fi
16884
16885
16886fi
16887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
16888printf "%s\n" "$mpfr_cv_nanisnan" >&6; }
16889if test "$mpfr_cv_nanisnan" = "yes"; then
16890
16891printf "%s\n" "#define MPFR_NANISNAN 1" >>confdefs.h
16892
16893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
16894printf "%s\n" "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
16895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
16896printf "%s\n" "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
16897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
16898printf "%s\n" "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
16899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used.  You" >&5
16900printf "%s\n" "$as_me: WARNING: -fast (depending on the compiler), has been used.  You" >&2;}
16901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
16902printf "%s\n" "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
16903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
16904printf "%s\n" "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
16905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
16906printf "%s\n" "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
16907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
16908printf "%s\n" "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
16909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
16910printf "%s\n" "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
16911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
16912printf "%s\n" "$as_me: WARNING: platform and/or document the behavior." >&2;}
16913fi
16914
16915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
16916printf %s "checking if charset has consecutive values... " >&6; }
16917if test "$cross_compiling" = yes
16918then :
16919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
16920printf "%s\n" "cannot test" >&6; }
16921else $as_nop
16922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16923/* end confdefs.h.  */
16924
16925const char *number = "0123456789";
16926const char *lower  = "abcdefghijklmnopqrstuvwxyz";
16927const char *upper  = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
16928
16929int
16930main (void)
16931{
16932
16933 int i;
16934 unsigned char *p;
16935 for (p = (unsigned char*) number, i = 0; i < 9; i++)
16936   if ( (*p)+1 != *(p+1) ) return 1;
16937 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
16938   if ( (*p)+1 != *(p+1) ) return 1;
16939 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
16940   if ( (*p)+1 != *(p+1) ) return 1;
16941
16942  ;
16943  return 0;
16944}
16945_ACEOF
16946if ac_fn_c_try_run "$LINENO"
16947then :
16948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16949printf "%s\n" "yes" >&6; }
16950else $as_nop
16951
16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16953printf "%s\n" "no" >&6; }
16954
16955printf "%s\n" "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
16956
16957
16958fi
16959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16960  conftest.$ac_objext conftest.beam conftest.$ac_ext
16961fi
16962
16963
16964saved_LIBS="$LIBS"
16965LIBS="$LIBS $MPFR_LIBM"
16966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5
16967printf %s "checking for math/round... " >&6; }
16968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16969/* end confdefs.h.  */
16970
16971#include <math.h>
16972static int f (double (*func)(double)) { return 0; }
16973
16974int
16975main (void)
16976{
16977
16978 return f(round);
16979
16980  ;
16981  return 0;
16982}
16983_ACEOF
16984if ac_fn_c_try_link "$LINENO"
16985then :
16986
16987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16988printf "%s\n" "yes" >&6; }
16989
16990printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
16991
16992
16993else $as_nop
16994  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995printf "%s\n" "no" >&6; }
16996fi
16997rm -f core conftest.err conftest.$ac_objext conftest.beam \
16998    conftest$ac_exeext conftest.$ac_ext
16999
17000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5
17001printf %s "checking for math/trunc... " >&6; }
17002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17003/* end confdefs.h.  */
17004
17005#include <math.h>
17006static int f (double (*func)(double)) { return 0; }
17007
17008int
17009main (void)
17010{
17011
17012 return f(trunc);
17013
17014  ;
17015  return 0;
17016}
17017_ACEOF
17018if ac_fn_c_try_link "$LINENO"
17019then :
17020
17021   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17022printf "%s\n" "yes" >&6; }
17023
17024printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
17025
17026
17027else $as_nop
17028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17029printf "%s\n" "no" >&6; }
17030fi
17031rm -f core conftest.err conftest.$ac_objext conftest.beam \
17032    conftest$ac_exeext conftest.$ac_ext
17033
17034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5
17035printf %s "checking for math/floor... " >&6; }
17036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037/* end confdefs.h.  */
17038
17039#include <math.h>
17040static int f (double (*func)(double)) { return 0; }
17041
17042int
17043main (void)
17044{
17045
17046 return f(floor);
17047
17048  ;
17049  return 0;
17050}
17051_ACEOF
17052if ac_fn_c_try_link "$LINENO"
17053then :
17054
17055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17056printf "%s\n" "yes" >&6; }
17057
17058printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
17059
17060
17061else $as_nop
17062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17063printf "%s\n" "no" >&6; }
17064fi
17065rm -f core conftest.err conftest.$ac_objext conftest.beam \
17066    conftest$ac_exeext conftest.$ac_ext
17067
17068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5
17069printf %s "checking for math/ceil... " >&6; }
17070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17071/* end confdefs.h.  */
17072
17073#include <math.h>
17074static int f (double (*func)(double)) { return 0; }
17075
17076int
17077main (void)
17078{
17079
17080 return f(ceil);
17081
17082  ;
17083  return 0;
17084}
17085_ACEOF
17086if ac_fn_c_try_link "$LINENO"
17087then :
17088
17089   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17090printf "%s\n" "yes" >&6; }
17091
17092printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
17093
17094
17095else $as_nop
17096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17097printf "%s\n" "no" >&6; }
17098fi
17099rm -f core conftest.err conftest.$ac_objext conftest.beam \
17100    conftest$ac_exeext conftest.$ac_ext
17101
17102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/nearbyint" >&5
17103printf %s "checking for math/nearbyint... " >&6; }
17104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17105/* end confdefs.h.  */
17106
17107#include <math.h>
17108static int f (double (*func)(double)) { return 0; }
17109
17110int
17111main (void)
17112{
17113
17114 return f(nearbyint);
17115
17116  ;
17117  return 0;
17118}
17119_ACEOF
17120if ac_fn_c_try_link "$LINENO"
17121then :
17122
17123   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17124printf "%s\n" "yes" >&6; }
17125
17126printf "%s\n" "#define HAVE_NEARBYINT 1" >>confdefs.h
17127
17128
17129else $as_nop
17130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131printf "%s\n" "no" >&6; }
17132fi
17133rm -f core conftest.err conftest.$ac_objext conftest.beam \
17134    conftest$ac_exeext conftest.$ac_ext
17135
17136LIBS="$saved_LIBS"
17137
17138
17139
17140
17141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`double'" >&5
17142printf %s "checking format of floating-point type \`double'... " >&6; }
17143if test ${mpfr_cv_c_double_format+y}
17144then :
17145  printf %s "(cached) " >&6
17146else $as_nop
17147  mpfr_cv_c_double_format=unknown
17148 cat >conftest.c <<\EOF
17149
17150#include <stdio.h>
17151/* "before" is 16 bytes to ensure there's no padding between it and "x".
17152   We're not expecting any type bigger than 16 bytes or with
17153   alignment requirements stricter than 16 bytes.  */
17154typedef struct {
17155  char         before[16];
17156  double           x;
17157  char         after[8];
17158} foo_t;
17159
17160foo_t foo = {
17161  { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
17162    '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
17163  -123456789.0,
17164  { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
17165};
17166
17167int main (void) {
17168  int i;
17169  for (i = 0; i < 8; i++)
17170    printf ("%d %f\n", foo.before[i] + foo.after[i], foo.x);
17171  return 0;
17172}
17173
17174EOF
17175 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1"
17176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
17177  (eval $mpfr_compile) 2>&5
17178  ac_status=$?
17179  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17180  test $ac_status = 0; }; then
17181   cat >conftest.awk <<\EOF
17182
17183BEGIN {
17184  found = 0
17185}
17186
17187# got[] holds a sliding window of bytes read the input.  got[0] is the most
17188# recent byte read, and got[31] the oldest byte read, so when looking to
17189# match some data the indices are "reversed".
17190#
17191{
17192  for (f = 2; f <= NF; f++)
17193    {
17194      # new byte, shift others up
17195      for (i = 31; i >= 0; i--)
17196        got[i+1] = got[i];
17197      got[0] = $f;
17198
17199      # end sequence
17200      if (got[7] != "376") continue
17201      if (got[6] != "334") continue
17202      if (got[5] != "272") continue
17203      if (got[4] != "230") continue
17204      if (got[3] != "166") continue
17205      if (got[2] != "124") continue
17206      if (got[1] != "062") continue
17207      if (got[0] != "020") continue
17208
17209      # start sequence, with 8-byte body
17210      if (got[23] == "001" && \
17211          got[22] == "043" && \
17212          got[21] == "105" && \
17213          got[20] == "147" && \
17214          got[19] == "211" && \
17215          got[18] == "253" && \
17216          got[17] == "315" && \
17217          got[16] == "357")
17218        {
17219          saw = " (" got[15] \
17220                 " " got[14] \
17221                 " " got[13] \
17222                 " " got[12] \
17223                 " " got[11] \
17224                 " " got[10] \
17225                 " " got[9]  \
17226                 " " got[8] ")"
17227
17228          if (got[15] == "301" && \
17229              got[14] == "235" && \
17230              got[13] == "157" && \
17231              got[12] == "064" && \
17232              got[11] == "124" && \
17233              got[10] == "000" && \
17234              got[9] ==  "000" && \
17235              got[8] ==  "000")
17236            {
17237              print "IEEE double, big endian"
17238              found = 1
17239              exit
17240            }
17241
17242          if (got[15] == "000" && \
17243              got[14] == "000" && \
17244              got[13] == "000" && \
17245              got[12] == "124" && \
17246              got[11] == "064" && \
17247              got[10] == "157" && \
17248              got[9] ==  "235" && \
17249              got[8] ==  "301")
17250            {
17251              print "IEEE double, little endian"
17252              found = 1
17253              exit
17254            }
17255        }
17256
17257      # start sequence, with 12-byte body
17258      if (got[27] == "001" && \
17259          got[26] == "043" && \
17260          got[25] == "105" && \
17261          got[24] == "147" && \
17262          got[23] == "211" && \
17263          got[22] == "253" && \
17264          got[21] == "315" && \
17265          got[20] == "357")
17266        {
17267          saw = " (" got[19] \
17268                 " " got[18] \
17269                 " " got[17] \
17270                 " " got[16] \
17271                 " " got[15] \
17272                 " " got[14] \
17273                 " " got[13] \
17274                 " " got[12] \
17275                 " " got[11] \
17276                 " " got[10] \
17277                 " " got[9]  \
17278                 " " got[8] ")"
17279
17280          if (got[19] == "000" && \
17281              got[18] == "000" && \
17282              got[17] == "000" && \
17283              got[16] == "000" && \
17284              got[15] == "240" && \
17285              got[14] == "242" && \
17286              got[13] == "171" && \
17287              got[12] == "353" && \
17288              got[11] == "031" && \
17289              got[10] == "300")
17290            {
17291              print "IEEE extended, little endian (12 bytes)"
17292              found = 1
17293              exit
17294            }
17295
17296          if (got[19] == "300" && \
17297              got[18] == "031" && \
17298              got[17] == "000" && \
17299              got[16] == "000" && \
17300              got[15] == "353" && \
17301              got[14] == "171" && \
17302              got[13] == "242" && \
17303              got[12] == "240" && \
17304              got[11] == "000" && \
17305              got[10] == "000" && \
17306              got[09] == "000" && \
17307              got[08] == "000")
17308            {
17309              # format found on m68k
17310              print "IEEE extended, big endian (12 bytes)"
17311              found = 1
17312              exit
17313            }
17314        }
17315
17316      # start sequence, with 16-byte body
17317      if (got[31] == "001" && \
17318          got[30] == "043" && \
17319          got[29] == "105" && \
17320          got[28] == "147" && \
17321          got[27] == "211" && \
17322          got[26] == "253" && \
17323          got[25] == "315" && \
17324          got[24] == "357")
17325        {
17326          saw = " (" got[23] \
17327                 " " got[22] \
17328                 " " got[21] \
17329                 " " got[20] \
17330                 " " got[19] \
17331                 " " got[18] \
17332                 " " got[17] \
17333                 " " got[16] \
17334                 " " got[15] \
17335                 " " got[14] \
17336                 " " got[13] \
17337                 " " got[12] \
17338                 " " got[11] \
17339                 " " got[10] \
17340                 " " got[9]  \
17341                 " " got[8] ")"
17342
17343          if (got[23] == "000" && \
17344              got[22] == "000" && \
17345              got[21] == "000" && \
17346              got[20] == "000" && \
17347              got[19] == "240" && \
17348              got[18] == "242" && \
17349              got[17] == "171" && \
17350              got[16] == "353" && \
17351              got[15] == "031" && \
17352              got[14] == "300")
17353            {
17354              print "IEEE extended, little endian (16 bytes)"
17355              found = 1
17356              exit
17357            }
17358
17359          if (got[23] == "300" && \
17360              got[22] == "031" && \
17361              got[21] == "326" && \
17362              got[20] == "363" && \
17363              got[19] == "105" && \
17364              got[18] == "100" && \
17365              got[17] == "000" && \
17366              got[16] == "000" && \
17367              got[15] == "000" && \
17368              got[14] == "000" && \
17369              got[13] == "000" && \
17370              got[12] == "000" && \
17371              got[11] == "000" && \
17372              got[10] == "000" && \
17373              got[9]  == "000" && \
17374              got[8]  == "000")
17375            {
17376              # format used on HP 9000/785 under HP-UX
17377              print "IEEE quad, big endian"
17378              found = 1
17379              exit
17380            }
17381
17382          if (got[23] == "000" && \
17383              got[22] == "000" && \
17384              got[21] == "000" && \
17385              got[20] == "000" && \
17386              got[19] == "000" && \
17387              got[18] == "000" && \
17388              got[17] == "000" && \
17389              got[16] == "000" && \
17390              got[15] == "000" && \
17391              got[14] == "000" && \
17392              got[13] == "100" && \
17393              got[12] == "105" && \
17394              got[11] == "363" && \
17395              got[10] == "326" && \
17396              got[9]  == "031" && \
17397	      got[8]  == "300")
17398            {
17399              print "IEEE quad, little endian"
17400              found = 1
17401              exit
17402            }
17403
17404          if (got[23] == "301" && \
17405              got[22] == "235" && \
17406              got[21] == "157" && \
17407              got[20] == "064" && \
17408              got[19] == "124" && \
17409              got[18] == "000" && \
17410              got[17] == "000" && \
17411              got[16] == "000" && \
17412              got[15] == "000" && \
17413              got[14] == "000" && \
17414              got[13] == "000" && \
17415              got[12] == "000" && \
17416              got[11] == "000" && \
17417              got[10] == "000" && \
17418              got[9]  == "000" && \
17419              got[8]  == "000")
17420            {
17421              # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
17422              print "possibly double-double, big endian"
17423              found = 1
17424              exit
17425            }
17426
17427          if (got[23] == "000" && \
17428              got[22] == "000" && \
17429              got[21] == "000" && \
17430              got[20] == "124" && \
17431              got[19] == "064" && \
17432              got[18] == "157" && \
17433              got[17] == "235" && \
17434              got[16] == "301" && \
17435              got[15] == "000" && \
17436              got[14] == "000" && \
17437              got[13] == "000" && \
17438              got[12] == "000" && \
17439              got[11] == "000" && \
17440              got[10] == "000" && \
17441              got[9]  == "000" && \
17442              got[8]  == "000")
17443            {
17444              # format used on ppc64le
17445              print "possibly double-double, little endian"
17446              found = 1
17447              exit
17448            }
17449        }
17450    }
17451}
17452
17453END {
17454  if (! found)
17455    print "unknown", saw
17456}
17457
17458EOF
17459   mpfr_cv_c_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk`
17460   case $mpfr_cv_c_double_format in
17461   unknown*)
17462     echo "cannot match anything, conftest$EXEEXT contains" >&5
17463     od -b conftest$EXEEXT >&5
17464     ;;
17465   esac
17466 else
17467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
17468printf "%s\n" "$as_me: WARNING: oops, cannot compile test program" >&2;}
17469 fi
17470 rm -f conftest*
17471
17472fi
17473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_double_format" >&5
17474printf "%s\n" "$mpfr_cv_c_double_format" >&6; }
17475case $mpfr_cv_c_double_format in
17476  "IEEE double, big endian"*)
17477    printf "%s\n" "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
17478
17479    ;;
17480  "IEEE double, little endian"*)
17481    printf "%s\n" "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
17482
17483    ;;
17484  unknown*)
17485    ;;
17486  *)
17487    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&5
17488printf "%s\n" "$as_me: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&2;}
17489    ;;
17490esac
17491
17492
17493
17494
17495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`long double'" >&5
17496printf %s "checking format of floating-point type \`long double'... " >&6; }
17497if test ${mpfr_cv_c_long_double_format+y}
17498then :
17499  printf %s "(cached) " >&6
17500else $as_nop
17501  mpfr_cv_c_long_double_format=unknown
17502 cat >conftest.c <<\EOF
17503
17504#include <stdio.h>
17505/* "before" is 16 bytes to ensure there's no padding between it and "x".
17506   We're not expecting any type bigger than 16 bytes or with
17507   alignment requirements stricter than 16 bytes.  */
17508typedef struct {
17509  char         before[16];
17510  long double           x;
17511  char         after[8];
17512} foo_t;
17513
17514foo_t foo = {
17515  { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
17516    '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
17517  -123456789.0,
17518  { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
17519};
17520
17521int main (void) {
17522  int i;
17523  for (i = 0; i < 8; i++)
17524    printf ("%d %Lf\n", foo.before[i] + foo.after[i], foo.x);
17525  return 0;
17526}
17527
17528EOF
17529 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1"
17530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
17531  (eval $mpfr_compile) 2>&5
17532  ac_status=$?
17533  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17534  test $ac_status = 0; }; then
17535   cat >conftest.awk <<\EOF
17536
17537BEGIN {
17538  found = 0
17539}
17540
17541# got[] holds a sliding window of bytes read the input.  got[0] is the most
17542# recent byte read, and got[31] the oldest byte read, so when looking to
17543# match some data the indices are "reversed".
17544#
17545{
17546  for (f = 2; f <= NF; f++)
17547    {
17548      # new byte, shift others up
17549      for (i = 31; i >= 0; i--)
17550        got[i+1] = got[i];
17551      got[0] = $f;
17552
17553      # end sequence
17554      if (got[7] != "376") continue
17555      if (got[6] != "334") continue
17556      if (got[5] != "272") continue
17557      if (got[4] != "230") continue
17558      if (got[3] != "166") continue
17559      if (got[2] != "124") continue
17560      if (got[1] != "062") continue
17561      if (got[0] != "020") continue
17562
17563      # start sequence, with 8-byte body
17564      if (got[23] == "001" && \
17565          got[22] == "043" && \
17566          got[21] == "105" && \
17567          got[20] == "147" && \
17568          got[19] == "211" && \
17569          got[18] == "253" && \
17570          got[17] == "315" && \
17571          got[16] == "357")
17572        {
17573          saw = " (" got[15] \
17574                 " " got[14] \
17575                 " " got[13] \
17576                 " " got[12] \
17577                 " " got[11] \
17578                 " " got[10] \
17579                 " " got[9]  \
17580                 " " got[8] ")"
17581
17582          if (got[15] == "301" && \
17583              got[14] == "235" && \
17584              got[13] == "157" && \
17585              got[12] == "064" && \
17586              got[11] == "124" && \
17587              got[10] == "000" && \
17588              got[9] ==  "000" && \
17589              got[8] ==  "000")
17590            {
17591              print "IEEE double, big endian"
17592              found = 1
17593              exit
17594            }
17595
17596          if (got[15] == "000" && \
17597              got[14] == "000" && \
17598              got[13] == "000" && \
17599              got[12] == "124" && \
17600              got[11] == "064" && \
17601              got[10] == "157" && \
17602              got[9] ==  "235" && \
17603              got[8] ==  "301")
17604            {
17605              print "IEEE double, little endian"
17606              found = 1
17607              exit
17608            }
17609        }
17610
17611      # start sequence, with 12-byte body
17612      if (got[27] == "001" && \
17613          got[26] == "043" && \
17614          got[25] == "105" && \
17615          got[24] == "147" && \
17616          got[23] == "211" && \
17617          got[22] == "253" && \
17618          got[21] == "315" && \
17619          got[20] == "357")
17620        {
17621          saw = " (" got[19] \
17622                 " " got[18] \
17623                 " " got[17] \
17624                 " " got[16] \
17625                 " " got[15] \
17626                 " " got[14] \
17627                 " " got[13] \
17628                 " " got[12] \
17629                 " " got[11] \
17630                 " " got[10] \
17631                 " " got[9]  \
17632                 " " got[8] ")"
17633
17634          if (got[19] == "000" && \
17635              got[18] == "000" && \
17636              got[17] == "000" && \
17637              got[16] == "000" && \
17638              got[15] == "240" && \
17639              got[14] == "242" && \
17640              got[13] == "171" && \
17641              got[12] == "353" && \
17642              got[11] == "031" && \
17643              got[10] == "300")
17644            {
17645              print "IEEE extended, little endian (12 bytes)"
17646              found = 1
17647              exit
17648            }
17649
17650          if (got[19] == "300" && \
17651              got[18] == "031" && \
17652              got[17] == "000" && \
17653              got[16] == "000" && \
17654              got[15] == "353" && \
17655              got[14] == "171" && \
17656              got[13] == "242" && \
17657              got[12] == "240" && \
17658              got[11] == "000" && \
17659              got[10] == "000" && \
17660              got[09] == "000" && \
17661              got[08] == "000")
17662            {
17663              # format found on m68k
17664              print "IEEE extended, big endian (12 bytes)"
17665              found = 1
17666              exit
17667            }
17668        }
17669
17670      # start sequence, with 16-byte body
17671      if (got[31] == "001" && \
17672          got[30] == "043" && \
17673          got[29] == "105" && \
17674          got[28] == "147" && \
17675          got[27] == "211" && \
17676          got[26] == "253" && \
17677          got[25] == "315" && \
17678          got[24] == "357")
17679        {
17680          saw = " (" got[23] \
17681                 " " got[22] \
17682                 " " got[21] \
17683                 " " got[20] \
17684                 " " got[19] \
17685                 " " got[18] \
17686                 " " got[17] \
17687                 " " got[16] \
17688                 " " got[15] \
17689                 " " got[14] \
17690                 " " got[13] \
17691                 " " got[12] \
17692                 " " got[11] \
17693                 " " got[10] \
17694                 " " got[9]  \
17695                 " " got[8] ")"
17696
17697          if (got[23] == "000" && \
17698              got[22] == "000" && \
17699              got[21] == "000" && \
17700              got[20] == "000" && \
17701              got[19] == "240" && \
17702              got[18] == "242" && \
17703              got[17] == "171" && \
17704              got[16] == "353" && \
17705              got[15] == "031" && \
17706              got[14] == "300")
17707            {
17708              print "IEEE extended, little endian (16 bytes)"
17709              found = 1
17710              exit
17711            }
17712
17713          if (got[23] == "300" && \
17714              got[22] == "031" && \
17715              got[21] == "326" && \
17716              got[20] == "363" && \
17717              got[19] == "105" && \
17718              got[18] == "100" && \
17719              got[17] == "000" && \
17720              got[16] == "000" && \
17721              got[15] == "000" && \
17722              got[14] == "000" && \
17723              got[13] == "000" && \
17724              got[12] == "000" && \
17725              got[11] == "000" && \
17726              got[10] == "000" && \
17727              got[9]  == "000" && \
17728              got[8]  == "000")
17729            {
17730              # format used on HP 9000/785 under HP-UX
17731              print "IEEE quad, big endian"
17732              found = 1
17733              exit
17734            }
17735
17736          if (got[23] == "000" && \
17737              got[22] == "000" && \
17738              got[21] == "000" && \
17739              got[20] == "000" && \
17740              got[19] == "000" && \
17741              got[18] == "000" && \
17742              got[17] == "000" && \
17743              got[16] == "000" && \
17744              got[15] == "000" && \
17745              got[14] == "000" && \
17746              got[13] == "100" && \
17747              got[12] == "105" && \
17748              got[11] == "363" && \
17749              got[10] == "326" && \
17750              got[9]  == "031" && \
17751	      got[8]  == "300")
17752            {
17753              print "IEEE quad, little endian"
17754              found = 1
17755              exit
17756            }
17757
17758          if (got[23] == "301" && \
17759              got[22] == "235" && \
17760              got[21] == "157" && \
17761              got[20] == "064" && \
17762              got[19] == "124" && \
17763              got[18] == "000" && \
17764              got[17] == "000" && \
17765              got[16] == "000" && \
17766              got[15] == "000" && \
17767              got[14] == "000" && \
17768              got[13] == "000" && \
17769              got[12] == "000" && \
17770              got[11] == "000" && \
17771              got[10] == "000" && \
17772              got[9]  == "000" && \
17773              got[8]  == "000")
17774            {
17775              # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
17776              print "possibly double-double, big endian"
17777              found = 1
17778              exit
17779            }
17780
17781          if (got[23] == "000" && \
17782              got[22] == "000" && \
17783              got[21] == "000" && \
17784              got[20] == "124" && \
17785              got[19] == "064" && \
17786              got[18] == "157" && \
17787              got[17] == "235" && \
17788              got[16] == "301" && \
17789              got[15] == "000" && \
17790              got[14] == "000" && \
17791              got[13] == "000" && \
17792              got[12] == "000" && \
17793              got[11] == "000" && \
17794              got[10] == "000" && \
17795              got[9]  == "000" && \
17796              got[8]  == "000")
17797            {
17798              # format used on ppc64le
17799              print "possibly double-double, little endian"
17800              found = 1
17801              exit
17802            }
17803        }
17804    }
17805}
17806
17807END {
17808  if (! found)
17809    print "unknown", saw
17810}
17811
17812EOF
17813   mpfr_cv_c_long_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk`
17814   case $mpfr_cv_c_long_double_format in
17815   unknown*)
17816     echo "cannot match anything, conftest$EXEEXT contains" >&5
17817     od -b conftest$EXEEXT >&5
17818     ;;
17819   esac
17820 else
17821   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
17822printf "%s\n" "$as_me: WARNING: oops, cannot compile test program" >&2;}
17823 fi
17824 rm -f conftest*
17825
17826fi
17827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
17828printf "%s\n" "$mpfr_cv_c_long_double_format" >&6; }
17829case $mpfr_cv_c_long_double_format in
17830  "IEEE double, big endian"*)
17831    printf "%s\n" "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h
17832
17833    ;;
17834  "IEEE double, little endian"*)
17835    printf "%s\n" "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h
17836
17837    ;;
17838  "IEEE extended, little endian"*)
17839    printf "%s\n" "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
17840
17841    ;;
17842  "IEEE extended, big endian"*)
17843    printf "%s\n" "#define HAVE_LDOUBLE_IEEE_EXT_BIG 1" >>confdefs.h
17844
17845    ;;
17846  "IEEE quad, big endian"*)
17847    printf "%s\n" "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
17848
17849    ;;
17850  "IEEE quad, little endian"*)
17851    printf "%s\n" "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h
17852
17853    ;;
17854  "possibly double-double, big endian"*)
17855    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
17856printf "%s\n" "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
17857    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
17858printf "%s\n" "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
17859    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
17860printf "%s\n" "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
17861    printf "%s\n" "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h
17862
17863    ;;
17864  "possibly double-double, little endian"*)
17865    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
17866printf "%s\n" "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
17867    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
17868printf "%s\n" "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
17869    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
17870printf "%s\n" "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
17871    printf "%s\n" "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h
17872
17873    ;;
17874  unknown*)
17875    ;;
17876  *)
17877    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&5
17878printf "%s\n" "$as_me: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&2;}
17879    ;;
17880esac
17881
17882if test "$enable_thread_safe" != no; then
17883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support using C11" >&5
17884printf %s "checking for TLS support using C11... " >&6; }
17885saved_CPPFLAGS="$CPPFLAGS"
17886CPPFLAGS="$CPPFLAGS -I$srcdir/src"
17887if test "$cross_compiling" = yes
17888then :
17889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
17890printf "%s\n" "cannot test, assume no" >&6; }
17891
17892else $as_nop
17893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894/* end confdefs.h.  */
17895
17896#define MPFR_USE_THREAD_SAFE 1
17897#define MPFR_USE_C11_THREAD_SAFE 1
17898#include "mpfr-thread.h"
17899MPFR_THREAD_ATTR int x = 17;
17900int main (void) {
17901  return x != 17;
17902}
17903
17904_ACEOF
17905if ac_fn_c_try_run "$LINENO"
17906then :
17907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17908printf "%s\n" "yes" >&6; }
17909
17910printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
17911
17912
17913printf "%s\n" "#define MPFR_USE_C11_THREAD_SAFE 1" >>confdefs.h
17914
17915      tls_c11_support=yes
17916      enable_thread_safe=yes
17917
17918else $as_nop
17919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17920printf "%s\n" "no" >&6; }
17921
17922fi
17923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17924  conftest.$ac_objext conftest.beam conftest.$ac_ext
17925fi
17926
17927CPPFLAGS="$saved_CPPFLAGS"
17928
17929if test "$tls_c11_support" != "yes"
17930then
17931
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
17933printf %s "checking for TLS support... " >&6; }
17934 saved_CPPFLAGS="$CPPFLAGS"
17935 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
17936 if test "$cross_compiling" = yes
17937then :
17938  if test "$enable_thread_safe" = yes; then
17939         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume yes" >&5
17940printf "%s\n" "cannot test, assume yes" >&6; }
17941
17942printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
17943
17944       else
17945         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
17946printf "%s\n" "cannot test, assume no" >&6; }
17947       fi
17948
17949else $as_nop
17950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951/* end confdefs.h.  */
17952
17953 #define MPFR_USE_THREAD_SAFE 1
17954 #include "mpfr-thread.h"
17955 MPFR_THREAD_ATTR int x = 17;
17956 int main (void) {
17957   return x != 17;
17958 }
17959
17960_ACEOF
17961if ac_fn_c_try_run "$LINENO"
17962then :
17963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17964printf "%s\n" "yes" >&6; }
17965
17966printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
17967
17968       enable_thread_safe=yes
17969
17970else $as_nop
17971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17972printf "%s\n" "no" >&6; }
17973       if test "$enable_thread_safe" = yes; then
17974         as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5
17975       fi
17976
17977fi
17978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17979  conftest.$ac_objext conftest.beam conftest.$ac_ext
17980fi
17981
17982 CPPFLAGS="$saved_CPPFLAGS"
17983 fi
17984fi
17985
17986if test "$enable_decimal_float" != no; then
17987
17988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5
17989printf %s "checking if compiler knows _Decimal64... " >&6; }
17990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991/* end confdefs.h.  */
17992_Decimal64 x;
17993int
17994main (void)
17995{
17996
17997  ;
17998  return 0;
17999}
18000_ACEOF
18001if ac_fn_c_try_compile "$LINENO"
18002then :
18003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18004printf "%s\n" "yes" >&6; }
18005     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5
18006printf %s "checking decimal float format... " >&6; }
18007     if test "$cross_compiling" = yes
18008then :
18009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
18010printf "%s\n" "cannot test" >&6; }
18011                                   enable_decimal_float=compile-time
18012else $as_nop
18013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014/* end confdefs.h.  */
18015
18016#include <stdlib.h>
18017
18018int
18019main (void)
18020{
18021
18022volatile _Decimal64 x = 1;
18023union { double d; _Decimal64 d64; } y;
18024if (x != x) return 83;
18025y.d64 = 1234567890123456.0dd;
18026return y.d == 0.14894469406741037E-123 ? 80 :
18027       y.d == 0.59075095508629822E-68  ? 81 : 82;
18028
18029  ;
18030  return 0;
18031}
18032_ACEOF
18033if ac_fn_c_try_run "$LINENO"
18034then :
18035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal error" >&5
18036printf "%s\n" "internal error" >&6; }
18037       { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18038printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18039as_fn_error $? "unexpected exit status 0
18040See \`config.log' for more details" "$LINENO" 5; }
18041else $as_nop
18042  d64_exit_status=$?
18043       case "$d64_exit_status" in
18044         80) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DPD" >&5
18045printf "%s\n" "DPD" >&6; }
18046             if test "$enable_decimal_float" = bid; then
18047               as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5
18048             fi
18049             if test "$enable_decimal_float" != generic; then
18050               enable_decimal_float=dpd
18051             fi ;;
18052         81) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: BID" >&5
18053printf "%s\n" "BID" >&6; }
18054             if test "$enable_decimal_float" = dpd; then
18055               as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5
18056             fi
18057             if test "$enable_decimal_float" != generic; then
18058               enable_decimal_float=bid
18059             fi ;;
18060         82) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither DPD nor BID" >&5
18061printf "%s\n" "neither DPD nor BID" >&6; }
18062             if test "$enable_decimal_float" = dpd; then
18063               as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5
18064             fi
18065             if test "$enable_decimal_float" = bid; then
18066               as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5
18067             fi
18068             enable_decimal_float=generic
18069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The _Decimal64 encoding is non-standard or there was an" >&5
18070printf "%s\n" "$as_me: WARNING: The _Decimal64 encoding is non-standard or there was an" >&2;}
18071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: issue with its detection.  The generic code will be used." >&5
18072printf "%s\n" "$as_me: WARNING: issue with its detection.  The generic code will be used." >&2;}
18073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please do not forget to test with \`make check'." >&5
18074printf "%s\n" "$as_me: WARNING: Please do not forget to test with \`make check'." >&2;}
18075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: In case of failure of a decimal test, you should rebuild" >&5
18076printf "%s\n" "$as_me: WARNING: In case of failure of a decimal test, you should rebuild" >&2;}
18077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MPFR without --enable-decimal-float." >&5
18078printf "%s\n" "$as_me: WARNING: MPFR without --enable-decimal-float." >&2;} ;;
18079         *)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error (exit status $d64_exit_status)" >&5
18080printf "%s\n" "error (exit status $d64_exit_status)" >&6; }
18081             case "$enable_decimal_float" in
18082               yes|bid|dpd|generic) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18083printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18084as_fn_error $? "internal or link error.
18085Please build MPFR without --enable-decimal-float.
18086See \`config.log' for more details" "$LINENO" 5; } ;;
18087               *) enable_decimal_float=no ;;
18088             esac ;;
18089       esac
18090fi
18091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18092  conftest.$ac_objext conftest.beam conftest.$ac_ext
18093fi
18094
18095
18096else $as_nop
18097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18098printf "%s\n" "no" >&6; }
18099     case "$enable_decimal_float" in
18100       yes|bid|dpd|generic)
18101         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18102printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18103as_fn_error $? "compiler doesn't know _Decimal64 (ISO/IEC TR 24732).
18104Please use another compiler or build MPFR without --enable-decimal-float.
18105See \`config.log' for more details" "$LINENO" 5; } ;;
18106       *) enable_decimal_float=no ;;
18107     esac
18108fi
18109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18110  if test "$enable_decimal_float" != no; then
18111
18112printf "%s\n" "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
18113
18114    case "$enable_decimal_float" in
18115      dpd) printf "%s\n" "#define DECIMAL_DPD_FORMAT 1" >>confdefs.h
18116 ;;
18117      bid) printf "%s\n" "#define DECIMAL_BID_FORMAT 1" >>confdefs.h
18118 ;;
18119      generic) printf "%s\n" "#define DECIMAL_GENERIC_CODE 1" >>confdefs.h
18120 ;;
18121      compile-time) ;;
18122      *) as_fn_error $? "internal error" "$LINENO" 5 ;;
18123    esac
18124  fi
18125
18126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bit-field ordering for _Decimal128" >&5
18127printf %s "checking bit-field ordering for _Decimal128... " >&6; }
18128  if test "$cross_compiling" = yes
18129then :
18130  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
18131printf "%s\n" "cannot test" >&6; }
18132else $as_nop
18133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18134/* end confdefs.h.  */
18135
18136
18137int
18138main (void)
18139{
18140
18141    union ieee_decimal128
18142    {
18143      struct
18144      {
18145        unsigned int t3:32;
18146        unsigned int t2:32;
18147        unsigned int t1:32;
18148        unsigned int t0:14;
18149        unsigned int comb:17;
18150        unsigned int sig:1;
18151      } s;
18152      _Decimal128 d128;
18153    } x;
18154
18155    x.d128 = 1.0dl;
18156    if (x.s.sig == 0 && x.s.comb == 49400 &&
18157        x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 10)
18158       return 80; /* little endian */
18159    else if (x.s.sig == 0 && x.s.comb == 8 &&
18160             x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 570933248)
18161       return 81; /* big endian */
18162    else
18163       return 82; /* unknown encoding */
18164
18165  ;
18166  return 0;
18167}
18168_ACEOF
18169if ac_fn_c_try_run "$LINENO"
18170then :
18171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal error" >&5
18172printf "%s\n" "internal error" >&6; }
18173else $as_nop
18174  d128_exit_status=$?
18175         case "$d128_exit_status" in
18176           80) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little endian" >&5
18177printf "%s\n" "little endian" >&6; }
18178               printf "%s\n" "#define HAVE_DECIMAL128_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
18179 ;;
18180           81) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big endian" >&5
18181printf "%s\n" "big endian" >&6; }
18182               printf "%s\n" "#define HAVE_DECIMAL128_IEEE_BIG_ENDIAN 1" >>confdefs.h
18183 ;;
18184           *)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unavailable or unknown" >&5
18185printf "%s\n" "unavailable or unknown" >&6; } ;;
18186         esac
18187fi
18188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18189  conftest.$ac_objext conftest.beam conftest.$ac_ext
18190fi
18191
18192
18193fi
18194# End of decimal float checks
18195
18196if test "$enable_float128" != no; then
18197   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Float128 with hex constants is supported" >&5
18198printf %s "checking if _Float128 with hex constants is supported... " >&6; }
18199   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200/* end confdefs.h.  */
18201
18202int
18203main (void)
18204{
18205
18206volatile _Float128 x = 0x1.fp+16383f128;
18207return x == 0;
18208
18209  ;
18210  return 0;
18211}
18212_ACEOF
18213if ac_fn_c_try_link "$LINENO"
18214then :
18215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18216printf "%s\n" "yes" >&6; }
18217
18218printf "%s\n" "#define MPFR_WANT_FLOAT128 1" >>confdefs.h
18219
18220else $as_nop
18221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18222printf "%s\n" "no" >&6; }
18223       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __float128 can be used as a fallback" >&5
18224printf %s "checking if __float128 can be used as a fallback... " >&6; }
18225       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226/* end confdefs.h.  */
18227
18228#define _Float128 __float128
18229
18230int
18231main (void)
18232{
18233
18234volatile _Float128 x = 0x1.fp+16383q;
18235return x == 0;
18236
18237  ;
18238  return 0;
18239}
18240_ACEOF
18241if ac_fn_c_try_link "$LINENO"
18242then :
18243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18244printf "%s\n" "yes" >&6; }
18245
18246printf "%s\n" "#define MPFR_WANT_FLOAT128 2" >>confdefs.h
18247
18248
18249printf "%s\n" "#define _Float128 __float128" >>confdefs.h
18250
18251else $as_nop
18252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18253printf "%s\n" "no" >&6; }
18254           if test "$enable_float128" = yes; then
18255              as_fn_error $? "compiler doesn't know _Float128 or __float128 with hex constants.
18256Please use another compiler or build MPFR without --enable-float128." "$LINENO" 5
18257       fi
18258fi
18259rm -f core conftest.err conftest.$ac_objext conftest.beam \
18260    conftest$ac_exeext conftest.$ac_ext
18261
18262fi
18263rm -f core conftest.err conftest.$ac_objext conftest.beam \
18264    conftest$ac_exeext conftest.$ac_ext
18265fi
18266
18267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Static Assertion support" >&5
18268printf %s "checking for Static Assertion support... " >&6; }
18269saved_CPPFLAGS="$CPPFLAGS"
18270CPPFLAGS="$CPPFLAGS -I$srcdir/src"
18271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272/* end confdefs.h.  */
18273
18274#define MPFR_USE_STATIC_ASSERT 1
18275#include "mpfr-sassert.h"
18276
18277/* Test if Static Assertions work */
18278
18279int main (void) {
18280  int x;
18281  (void) (x = 1);  /* cast to void: avoid a warning, at least with GCC */
18282  /* Test of the macro after a declaraction and a statement. */
18283  MPFR_STAT_STATIC_ASSERT(sizeof(short) <= sizeof(int));
18284  return 0;
18285}
18286
18287_ACEOF
18288if ac_fn_c_try_compile "$LINENO"
18289then :
18290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18291printf "%s\n" "yes" >&6; }
18292
18293printf "%s\n" "#define MPFR_USE_STATIC_ASSERT 1" >>confdefs.h
18294
18295
18296else $as_nop
18297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18298printf "%s\n" "no" >&6; }
18299
18300fi
18301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18302CPPFLAGS="$saved_CPPFLAGS"
18303
18304if test "$enable_lto" = "yes" ; then
18305
18306CFLAGS="$CFLAGS -flto"
18307
18308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation flag '-flto' is supported..." >&5
18309printf %s "checking if Link Time Optimisation flag '-flto' is supported...... " >&6; }
18310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311/* end confdefs.h.  */
18312
18313int main(void) { return 0; }
18314
18315_ACEOF
18316if ac_fn_c_try_compile "$LINENO"
18317then :
18318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18319printf "%s\n" "yes" >&6; }
18320
18321else $as_nop
18322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323printf "%s\n" "no" >&6; }
18324      as_fn_error $? "Link Time Optimisation flag '-flto' is not supported." "$LINENO" 5
18325
18326fi
18327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18328
18329mpfr_compile_and_link()
18330{
18331   echo "int f(int); int f(int n) { return n; }" > conftest-f.c
18332   echo "int f(int); int main() { return f(0); }" > conftest-m.c
18333   echo "$CC $CFLAGS -c -o conftest-f.o conftest-f.c" >&2
18334   $CC $CFLAGS -c -o conftest-f.o conftest-f.c || return 1
18335   echo "$AR cru conftest-lib.a conftest-f.o" >&2
18336   $AR cru conftest-lib.a conftest-f.o || return 1
18337   echo "$RANLIB conftest-lib.a" >&2
18338   $RANLIB conftest-lib.a || return 1
18339   echo "$CC $CFLAGS conftest-m.c conftest-lib.a" >&2
18340   $CC $CFLAGS conftest-m.c conftest-lib.a || return 1
18341   return 0
18342}
18343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5
18344printf %s "checking if Link Time Optimisation works with AR=$AR... " >&6; }
18345   if mpfr_compile_and_link 2> conftest-log1.txt ; then
18346      cat conftest-log1.txt >&5
18347      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18348printf "%s\n" "yes" >&6; }
18349   else
18350      cat conftest-log1.txt >&5
18351      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18352printf "%s\n" "no" >&6; }
18353      AR=gcc-ar
18354      RANLIB=gcc-ranlib
18355      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5
18356printf %s "checking if Link Time Optimisation works with AR=$AR... " >&6; }
18357      if mpfr_compile_and_link 2> conftest-log2.txt; then
18358         cat conftest-log2.txt >&5
18359         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18360printf "%s\n" "yes" >&6; }
18361      else
18362        cat conftest-log2.txt >&5
18363        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18364printf "%s\n" "no" >&6; }
18365        as_fn_error $? "Link Time Optimisation is not supported (see config.log for details)." "$LINENO" 5
18366      fi
18367   fi
18368rm -f conftest*
18369
18370fi
18371
18372if test "$enable_logging" = yes; then
18373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nested functions and 'cleanup' attribute" >&5
18374printf %s "checking for nested functions and 'cleanup' attribute... " >&6; }
18375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376/* end confdefs.h.  */
18377
18378int main (void) {
18379  auto void f_cleanup (int *p);
18380  void f_cleanup (int *p) { int v = *p; (void) v; }
18381  int v __attribute__ ((cleanup (f_cleanup)));
18382  v = 0;
18383  return 0;
18384}
18385
18386_ACEOF
18387if ac_fn_c_try_compile "$LINENO"
18388then :
18389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18390printf "%s\n" "yes" >&6; }
18391else $as_nop
18392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18393printf "%s\n" "no" >&6; }
18394      as_fn_error $? "logging support needs nested functions and the 'cleanup' attribute" "$LINENO" 5
18395
18396fi
18397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18398fi
18399
18400if test -z "$enable_tests_timeout" && test -n "$dev_version"; then
18401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if timeout can be supported" >&5
18402printf %s "checking if timeout can be supported... " >&6; }
18403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404/* end confdefs.h.  */
18405
18406#include <sys/resource.h>
18407
18408int
18409main (void)
18410{
18411
18412  struct rlimit rlim[1];
18413  if (getrlimit (RLIMIT_CPU, rlim))
18414    return 1;
18415  rlim->rlim_cur = 1;
18416  if (setrlimit (RLIMIT_CPU, rlim))
18417    return 1;
18418
18419  ;
18420  return 0;
18421}
18422_ACEOF
18423if ac_fn_c_try_link "$LINENO"
18424then :
18425
18426  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18427printf "%s\n" "yes" >&6; }
18428  enable_tests_timeout=yes
18429
18430else $as_nop
18431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18432printf "%s\n" "no" >&6; }
18433fi
18434rm -f core conftest.err conftest.$ac_objext conftest.beam \
18435    conftest$ac_exeext conftest.$ac_ext
18436fi
18437if test "$enable_tests_timeout" = yes; then
18438
18439printf "%s\n" "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
18440
18441fi
18442
18443
18444
18445
18446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
18447printf %s "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
18448if test ${gmp_cv_c_attribute_mode+y}
18449then :
18450  printf %s "(cached) " >&6
18451else $as_nop
18452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453/* end confdefs.h.  */
18454typedef int SItype __attribute__ ((mode (SI)));
18455int
18456main (void)
18457{
18458
18459  ;
18460  return 0;
18461}
18462_ACEOF
18463if ac_fn_c_try_compile "$LINENO"
18464then :
18465  gmp_cv_c_attribute_mode=yes
18466else $as_nop
18467  gmp_cv_c_attribute_mode=no
18468fi
18469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18470
18471fi
18472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
18473printf "%s\n" "$gmp_cv_c_attribute_mode" >&6; }
18474if test $gmp_cv_c_attribute_mode = yes; then
18475
18476printf "%s\n" "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
18477
18478fi
18479
18480
18481
18482
18483if test -z "$mini_gmp_path" ; then
18484
18485
18486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
18487printf %s "checking for gmp.h... " >&6; }
18488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489/* end confdefs.h.  */
18490
18491#include "gmp.h"
18492
18493_ACEOF
18494if ac_fn_c_try_compile "$LINENO"
18495then :
18496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18497printf "%s\n" "yes" >&6; }
18498else $as_nop
18499
18500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18501printf "%s\n" "no" >&6; }
18502 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5
18503
18504fi
18505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18506
18507
18508
18509case $host in
18510  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
18511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
18512printf %s "checking for DLL/static GMP... " >&6; }
18513   if test "$enable_shared" = yes; then
18514     MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined"
18515     LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-6.dll.def"
18516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18517/* end confdefs.h.  */
18518
18519#include "gmp.h"
18520#if !__GMP_LIBGMP_DLL
18521# error "Dead man"
18522error
18523#endif
18524
18525int
18526main (void)
18527{
18528
18529  ;
18530  return 0;
18531}
18532_ACEOF
18533if ac_fn_c_try_compile "$LINENO"
18534then :
18535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
18536printf "%s\n" "DLL" >&6; }
18537else $as_nop
18538
18539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
18540printf "%s\n" "static" >&6; }
18541  as_fn_error $? "libgmp isn't provided as a DLL: use --enable-static --disable-shared" "$LINENO" 5
18542fi
18543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18544   else
18545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18546/* end confdefs.h.  */
18547
18548#include "gmp.h"
18549#if __GMP_LIBGMP_DLL
18550# error "Dead man"
18551error
18552#endif
18553
18554int
18555main (void)
18556{
18557
18558  ;
18559  return 0;
18560}
18561_ACEOF
18562if ac_fn_c_try_compile "$LINENO"
18563then :
18564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
18565printf "%s\n" "static" >&6; }
18566else $as_nop
18567
18568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
18569printf "%s\n" "DLL" >&6; }
18570  as_fn_error $? "libgmp is provided as a DLL: use --disable-static --enable-shared" "$LINENO" 5
18571fi
18572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18573  fi
18574  ;;
18575esac
18576
18577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
18578printf %s "checking for recent GMP... " >&6; }
18579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580/* end confdefs.h.  */
18581
18582#include "gmp.h"
18583#if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 500)
18584# error "GMP 5.0.0 or newer is required"
18585error
18586#endif
18587
18588_ACEOF
18589if ac_fn_c_try_compile "$LINENO"
18590then :
18591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18592printf "%s\n" "yes" >&6; }
18593else $as_nop
18594
18595   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596printf "%s\n" "no" >&6; }
18597   as_fn_error $? "GMP 5.0.0 or newer is required" "$LINENO" 5
18598
18599fi
18600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18601
18602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking usable gmp.h at link time" >&5
18603printf %s "checking usable gmp.h at link time... " >&6; }
18604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605/* end confdefs.h.  */
18606
18607#include "gmp.h"
18608
18609int
18610main (void)
18611{
18612
18613  ;
18614  return 0;
18615}
18616_ACEOF
18617if ac_fn_c_try_link "$LINENO"
18618then :
18619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18620printf "%s\n" "yes" >&6; }
18621else $as_nop
18622
18623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18624printf "%s\n" "no" >&6; }
18625 as_fn_error $? "there is an incompatibility between gmp.h and the compiler.
18626See 'config.log' for details." "$LINENO" 5
18627
18628fi
18629rm -f core conftest.err conftest.$ac_objext conftest.beam \
18630    conftest$ac_exeext conftest.$ac_ext
18631
18632if test "$use_gmp_build" = yes ; then
18633   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5
18634printf %s "checking for gmp internal files... " >&6; }
18635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636/* end confdefs.h.  */
18637
18638   #include "gmp.h"
18639   #include "gmp-impl.h"
18640   #include "longlong.h"
18641
18642_ACEOF
18643if ac_fn_c_try_compile "$LINENO"
18644then :
18645
18646     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18647printf "%s\n" "yes" >&6; }
18648
18649printf "%s\n" "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
18650
18651
18652else $as_nop
18653
18654     as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5
18655
18656fi
18657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18658fi
18659
18660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency" >&5
18661printf %s "checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... " >&6; }
18662if test "$cross_compiling" = yes
18663then :
18664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
18665printf "%s\n" "cannot test" >&6; }
18666else $as_nop
18667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668/* end confdefs.h.  */
18669
18670#include <stdio.h>
18671#include <limits.h>
18672#include "gmp.h"
18673
18674int
18675main (void)
18676{
18677
18678  if (GMP_NUMB_BITS == sizeof(mp_limb_t) * CHAR_BIT)
18679    return 0;
18680  fprintf (stderr, "GMP_NUMB_BITS     = %ld\n", (long) GMP_NUMB_BITS);
18681  fprintf (stderr, "sizeof(mp_limb_t) = %ld\n", (long) sizeof(mp_limb_t));
18682  fprintf (stderr, "sizeof(mp_limb_t) * CHAR_BIT = %ld != GMP_NUMB_BITS\n",
18683           (long) (sizeof(mp_limb_t) * CHAR_BIT));
18684  return 1;
18685
18686  ;
18687  return 0;
18688}
18689_ACEOF
18690if ac_fn_c_try_run "$LINENO"
18691then :
18692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18693printf "%s\n" "yes" >&6; }
18694else $as_nop
18695
18696       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697printf "%s\n" "no" >&6; }
18698       as_fn_error $? "GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent.
18699You probably need to change some of the GMP or MPFR compile options.
18700See 'config.log' for details (search for GMP_NUMB_BITS)." "$LINENO" 5
18701fi
18702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18703  conftest.$ac_objext conftest.beam conftest.$ac_ext
18704fi
18705
18706
18707
18708
18709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long to fit in mp_limb_t" >&5
18710printf %s "checking for long to fit in mp_limb_t... " >&6; }
18711if test ${mpfr_cv_long_within_limb+y}
18712then :
18713  printf %s "(cached) " >&6
18714else $as_nop
18715
18716saved_CPPFLAGS="$CPPFLAGS"
18717CPPFLAGS="$CPPFLAGS -I$srcdir/src"
18718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719/* end confdefs.h.  */
18720
18721#include "gmp.h"
18722/* Make sure that a static assertion is used (not MPFR_ASSERTN). */
18723#undef MPFR_USE_STATIC_ASSERT
18724#define MPFR_USE_STATIC_ASSERT 1
18725#include "mpfr-sassert.h"
18726
18727int
18728main (void)
18729{
18730
18731  MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (unsigned long) -1);
18732  return 0;
18733
18734  ;
18735  return 0;
18736}
18737_ACEOF
18738if ac_fn_c_try_link "$LINENO"
18739then :
18740  mpfr_cv_long_within_limb="yes"
18741else $as_nop
18742  mpfr_cv_long_within_limb="no"
18743fi
18744rm -f core conftest.err conftest.$ac_objext conftest.beam \
18745    conftest$ac_exeext conftest.$ac_ext
18746
18747fi
18748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_long_within_limb" >&5
18749printf "%s\n" "$mpfr_cv_long_within_limb" >&6; }
18750case $mpfr_cv_long_within_limb in
18751yes*)
18752
18753printf "%s\n" "#define MPFR_LONG_WITHIN_LIMB 1" >>confdefs.h
18754 ;;
18755esac
18756CPPFLAGS="$saved_CPPFLAGS"
18757
18758
18759
18760if test "$ac_cv_type_intmax_t" = yes; then
18761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t to fit in mp_limb_t" >&5
18762printf %s "checking for intmax_t to fit in mp_limb_t... " >&6; }
18763if test ${mpfr_cv_intmax_within_limb+y}
18764then :
18765  printf %s "(cached) " >&6
18766else $as_nop
18767
18768saved_CPPFLAGS="$CPPFLAGS"
18769CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H"
18770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18771/* end confdefs.h.  */
18772
18773#include "gmp.h"
18774/* Make sure that a static assertion is used (not MPFR_ASSERTN). */
18775#undef MPFR_USE_STATIC_ASSERT
18776#define MPFR_USE_STATIC_ASSERT 1
18777#include "mpfr-sassert.h"
18778#include "mpfr-intmax.h"
18779
18780int
18781main (void)
18782{
18783
18784  MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (uintmax_t) -1);
18785  return 0;
18786
18787  ;
18788  return 0;
18789}
18790_ACEOF
18791if ac_fn_c_try_link "$LINENO"
18792then :
18793  mpfr_cv_intmax_within_limb="yes"
18794else $as_nop
18795  mpfr_cv_intmax_within_limb="no"
18796fi
18797rm -f core conftest.err conftest.$ac_objext conftest.beam \
18798    conftest$ac_exeext conftest.$ac_ext
18799
18800fi
18801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_intmax_within_limb" >&5
18802printf "%s\n" "$mpfr_cv_intmax_within_limb" >&6; }
18803case $mpfr_cv_intmax_within_limb in
18804yes*)
18805
18806printf "%s\n" "#define MPFR_INTMAX_WITHIN_LIMB 1" >>confdefs.h
18807 ;;
18808esac
18809CPPFLAGS="$saved_CPPFLAGS"
18810fi
18811
18812
18813LIBS="-lgmp $LIBS"
18814
18815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link with GMP" >&5
18816printf %s "checking if we can link with GMP... " >&6; }
18817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18818/* end confdefs.h.  */
18819
18820#include "gmp.h"
18821mpz_t m;
18822
18823int
18824main (void)
18825{
18826
18827mpz_init (m);
18828
18829  ;
18830  return 0;
18831}
18832_ACEOF
18833if ac_fn_c_try_link "$LINENO"
18834then :
18835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18836printf "%s\n" "yes" >&6; }
18837else $as_nop
18838
18839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18840printf "%s\n" "no" >&6; }
18841 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared).
18842Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5
18843
18844fi
18845rm -f core conftest.err conftest.$ac_objext conftest.beam \
18846    conftest$ac_exeext conftest.$ac_ext
18847
18848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
18849printf %s "checking if gmp.h version and libgmp version are the same... " >&6; }
18850saved_LD_RUN_PATH="$LD_RUN_PATH"
18851LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
18852export LD_RUN_PATH
18853if test "$cross_compiling" = yes
18854then :
18855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
18856printf "%s\n" "cannot test" >&6; }
18857
18858else $as_nop
18859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860/* end confdefs.h.  */
18861
18862#include <stdio.h>
18863#include <string.h>
18864#include "gmp.h"
18865
18866int
18867main (void)
18868{
18869
18870  char buffer[100];
18871  sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
18872           __GNU_MP_VERSION_PATCHLEVEL);
18873  printf ("(%s/%s) ", buffer, gmp_version);
18874  fflush (stdout);
18875  /* Also put information in config.log (stderr) */
18876  fprintf (stderr, "gmp.h: %s / libgmp: %s\n", buffer, gmp_version);
18877  if (strcmp (buffer, gmp_version) == 0)
18878    return 0;
18879  if (__GNU_MP_VERSION_PATCHLEVEL != 0)
18880    return 1;
18881  sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
18882  return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
18883
18884  ;
18885  return 0;
18886}
18887_ACEOF
18888if ac_fn_c_try_run "$LINENO"
18889then :
18890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18891printf "%s\n" "yes" >&6; }
18892
18893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP library vs header correctness" >&5
18894printf %s "checking for GMP library vs header correctness... " >&6; }
18895if test ${mpfr_cv_check_gmp+y}
18896then :
18897  printf %s "(cached) " >&6
18898else $as_nop
18899
18900if test "$cross_compiling" = yes
18901then :
18902  mpfr_cv_check_gmp="cannot test, assume yes"
18903else $as_nop
18904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905/* end confdefs.h.  */
18906
18907#include <stdio.h>
18908#include <limits.h>
18909#include "gmp.h"
18910
18911int
18912main (void)
18913{
18914
18915  fprintf (stderr, "GMP_NAIL_BITS     = %d\n", (int) GMP_NAIL_BITS);
18916  fprintf (stderr, "GMP_NUMB_BITS     = %d\n", (int) GMP_NUMB_BITS);
18917  fprintf (stderr, "mp_bits_per_limb  = %d\n", (int) mp_bits_per_limb);
18918  fprintf (stderr, "sizeof(mp_limb_t) = %d\n", (int) sizeof(mp_limb_t));
18919  if (GMP_NAIL_BITS != 0)
18920    {
18921      fprintf (stderr, "GMP_NAIL_BITS != 0\n");
18922      return 81;
18923    }
18924  if (GMP_NUMB_BITS != mp_bits_per_limb)
18925    {
18926      fprintf (stderr, "GMP_NUMB_BITS != mp_bits_per_limb\n");
18927      return 82;
18928    }
18929  if (GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT)
18930    {
18931      fprintf (stderr, "GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT\n");
18932      return 83;
18933    }
18934  return 0;
18935
18936  ;
18937  return 0;
18938}
18939_ACEOF
18940if ac_fn_c_try_run "$LINENO"
18941then :
18942  mpfr_cv_check_gmp="yes"
18943else $as_nop
18944  mpfr_cv_check_gmp="no (exit status is $?)"
18945fi
18946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18947  conftest.$ac_objext conftest.beam conftest.$ac_ext
18948fi
18949
18950
18951fi
18952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_check_gmp" >&5
18953printf "%s\n" "$mpfr_cv_check_gmp" >&6; }
18954case $mpfr_cv_check_gmp in
18955no*)
18956  as_fn_error $? "bad GMP library or header - ABI problem?
18957See 'config.log' for details." "$LINENO" 5 ;;
18958esac
18959
18960
18961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for double-to-integer conversion bug" >&5
18962printf %s "checking for double-to-integer conversion bug... " >&6; }
18963if test ${mpfr_cv_dbl_int_bug+y}
18964then :
18965  printf %s "(cached) " >&6
18966else $as_nop
18967
18968if test "$cross_compiling" = yes
18969then :
18970  mpfr_cv_dbl_int_bug="cannot test, assume not present"
18971else $as_nop
18972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973/* end confdefs.h.  */
18974
18975#include <stdio.h>
18976#include "gmp.h"
18977
18978int
18979main (void)
18980{
18981
18982  double d;
18983  mp_limb_t u;
18984  int i;
18985
18986  d = 1.0;
18987  for (i = 0; i < GMP_NUMB_BITS - 1; i++)
18988    d = d + d;
18989  u = (mp_limb_t) d;
18990  for (; i > 0; i--)
18991    {
18992      if (u & 1)
18993        break;
18994      u = u >> 1;
18995    }
18996  if (i == 0 && u == 1UL)
18997    return 0;
18998  fprintf (stderr, "Failure: i = %d, (unsigned long) u = %lu\n",
18999           i, (unsigned long) u);
19000  return 1;
19001
19002  ;
19003  return 0;
19004}
19005_ACEOF
19006if ac_fn_c_try_run "$LINENO"
19007then :
19008  mpfr_cv_dbl_int_bug="no"
19009else $as_nop
19010  mpfr_cv_dbl_int_bug="yes or failed to exec (exit status is $?)"
19011fi
19012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19013  conftest.$ac_objext conftest.beam conftest.$ac_ext
19014fi
19015
19016
19017fi
19018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_dbl_int_bug" >&5
19019printf "%s\n" "$mpfr_cv_dbl_int_bug" >&6; }
19020case $mpfr_cv_dbl_int_bug in
19021yes*)
19022  as_fn_error $? "double-to-integer conversion is incorrect.
19023You need to use another compiler (or lower the optimization level)." "$LINENO" 5 ;;
19024esac
19025
19026
19027if test "$ac_cv_type_intmax_t" = yes; then
19028
19029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
19030printf %s "checking if gmp_printf supports \"%jd\"... " >&6; }
19031if test "$cross_compiling" = yes
19032then :
19033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
19034printf "%s\n" "cross-compiling" >&6; }
19035
19036else $as_nop
19037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19038/* end confdefs.h.  */
19039
19040#include <stdio.h>
19041#include <string.h>
19042
19043#ifdef HAVE_INTTYPES_H
19044# include <inttypes.h>
19045#endif
19046#ifdef HAVE_STDINT_H
19047# include <stdint.h>
19048#endif
19049
19050#include "gmp.h"
19051
19052int
19053main (void)
19054{
19055
19056  char s[256];
19057  intmax_t a = 17;
19058
19059  /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
19060     precision, as -Werror=format yields an error, even though this
19061     flag is allowed by the ISO C standard (it is just ignored).
19062     https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
19063  if (sprintf (s, "(%.0jd)(%d)", a, 42) != 8 ||
19064      strcmp (s, "(17)(42)") != 0)
19065    return 1;
19066
19067  if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1 ||
19068      strcmp (s, "(17)(42)") != 0)
19069    return 1;
19070
19071  return 0;
19072
19073  ;
19074  return 0;
19075}
19076_ACEOF
19077if ac_fn_c_try_run "$LINENO"
19078then :
19079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19080printf "%s\n" "yes" >&6; }
19081
19082else $as_nop
19083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19084printf "%s\n" "no" >&6; }
19085
19086printf "%s\n" "#define NPRINTF_J 1" >>confdefs.h
19087
19088fi
19089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19090  conftest.$ac_objext conftest.beam conftest.$ac_ext
19091fi
19092
19093
19094fi
19095
19096
19097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
19098printf %s "checking if gmp_printf supports \"%hhd\"... " >&6; }
19099if test "$cross_compiling" = yes
19100then :
19101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
19102printf "%s\n" "cross-compiling" >&6; }
19103
19104else $as_nop
19105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106/* end confdefs.h.  */
19107
19108#include <stdio.h>
19109#include <string.h>
19110
19111#include "gmp.h"
19112
19113#include "gmp.h"
19114
19115int
19116main (void)
19117{
19118
19119  char s[256];
19120  char a = 17;
19121
19122  /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
19123     precision, as -Werror=format yields an error, even though this
19124     flag is allowed by the ISO C standard (it is just ignored).
19125     https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
19126  if (sprintf (s, "(%.0hhd)(%d)", a, 42) != 8 ||
19127      strcmp (s, "(17)(42)") != 0)
19128    return 1;
19129
19130  if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1 ||
19131      strcmp (s, "(17)(42)") != 0)
19132    return 1;
19133
19134  return 0;
19135
19136  ;
19137  return 0;
19138}
19139_ACEOF
19140if ac_fn_c_try_run "$LINENO"
19141then :
19142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19143printf "%s\n" "yes" >&6; }
19144
19145else $as_nop
19146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19147printf "%s\n" "no" >&6; }
19148
19149printf "%s\n" "#define NPRINTF_HH 1" >>confdefs.h
19150
19151fi
19152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19153  conftest.$ac_objext conftest.beam conftest.$ac_ext
19154fi
19155
19156
19157
19158
19159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
19160printf %s "checking if gmp_printf supports \"%lld\"... " >&6; }
19161if test "$cross_compiling" = yes
19162then :
19163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
19164printf "%s\n" "cross-compiling" >&6; }
19165
19166else $as_nop
19167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168/* end confdefs.h.  */
19169
19170#include <stdio.h>
19171#include <string.h>
19172
19173#include "gmp.h"
19174
19175#include "gmp.h"
19176
19177int
19178main (void)
19179{
19180
19181  char s[256];
19182  long long int a = 17;
19183
19184  /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
19185     precision, as -Werror=format yields an error, even though this
19186     flag is allowed by the ISO C standard (it is just ignored).
19187     https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
19188  if (sprintf (s, "(%.0lld)(%d)", a, 42) != 8 ||
19189      strcmp (s, "(17)(42)") != 0)
19190    return 1;
19191
19192  if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1 ||
19193      strcmp (s, "(17)(42)") != 0)
19194    return 1;
19195
19196  return 0;
19197
19198  ;
19199  return 0;
19200}
19201_ACEOF
19202if ac_fn_c_try_run "$LINENO"
19203then :
19204  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19205printf "%s\n" "yes" >&6; }
19206
19207else $as_nop
19208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19209printf "%s\n" "no" >&6; }
19210
19211printf "%s\n" "#define NPRINTF_LL 1" >>confdefs.h
19212
19213fi
19214rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19215  conftest.$ac_objext conftest.beam conftest.$ac_ext
19216fi
19217
19218
19219
19220
19221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
19222printf %s "checking if gmp_printf supports \"%Lf\"... " >&6; }
19223if test "$cross_compiling" = yes
19224then :
19225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
19226printf "%s\n" "cross-compiling" >&6; }
19227
19228printf "%s\n" "#define PRINTF_L 1" >>confdefs.h
19229
19230else $as_nop
19231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19232/* end confdefs.h.  */
19233
19234#include <stdio.h>
19235#include <string.h>
19236
19237#include "gmp.h"
19238
19239#include "gmp.h"
19240
19241int
19242main (void)
19243{
19244
19245  char s[256];
19246  long double a = 17;
19247
19248  /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
19249     precision, as -Werror=format yields an error, even though this
19250     flag is allowed by the ISO C standard (it is just ignored).
19251     https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
19252  if (sprintf (s, "(%.0Lf)(%d)", a, 42) != 8 ||
19253      strcmp (s, "(17)(42)") != 0)
19254    return 1;
19255
19256  if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1 ||
19257      strcmp (s, "(17)(42)") != 0)
19258    return 1;
19259
19260  return 0;
19261
19262  ;
19263  return 0;
19264}
19265_ACEOF
19266if ac_fn_c_try_run "$LINENO"
19267then :
19268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19269printf "%s\n" "yes" >&6; }
19270
19271printf "%s\n" "#define PRINTF_L 1" >>confdefs.h
19272
19273else $as_nop
19274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275printf "%s\n" "no" >&6; }
19276
19277printf "%s\n" "#define NPRINTF_L 1" >>confdefs.h
19278
19279fi
19280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19281  conftest.$ac_objext conftest.beam conftest.$ac_ext
19282fi
19283
19284
19285
19286
19287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
19288printf %s "checking if gmp_printf supports \"%td\"... " >&6; }
19289if test "$cross_compiling" = yes
19290then :
19291  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
19292printf "%s\n" "cross-compiling" >&6; }
19293
19294printf "%s\n" "#define PRINTF_T 1" >>confdefs.h
19295
19296else $as_nop
19297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298/* end confdefs.h.  */
19299
19300#include <stdio.h>
19301#include <string.h>
19302
19303#if defined (__cplusplus)
19304#include <cstddef>
19305#else
19306#include <stddef.h>
19307#endif
19308#include "gmp.h"
19309
19310#include "gmp.h"
19311
19312int
19313main (void)
19314{
19315
19316  char s[256];
19317  ptrdiff_t a = 17;
19318
19319  /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
19320     precision, as -Werror=format yields an error, even though this
19321     flag is allowed by the ISO C standard (it is just ignored).
19322     https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
19323  if (sprintf (s, "(%.0td)(%d)", a, 42) != 8 ||
19324      strcmp (s, "(17)(42)") != 0)
19325    return 1;
19326
19327  if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1 ||
19328      strcmp (s, "(17)(42)") != 0)
19329    return 1;
19330
19331  return 0;
19332
19333  ;
19334  return 0;
19335}
19336_ACEOF
19337if ac_fn_c_try_run "$LINENO"
19338then :
19339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19340printf "%s\n" "yes" >&6; }
19341
19342printf "%s\n" "#define PRINTF_T 1" >>confdefs.h
19343
19344else $as_nop
19345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19346printf "%s\n" "no" >&6; }
19347
19348printf "%s\n" "#define NPRINTF_T 1" >>confdefs.h
19349
19350fi
19351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19352  conftest.$ac_objext conftest.beam conftest.$ac_ext
19353fi
19354
19355
19356
19357
19358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports the ' group flag" >&5
19359printf %s "checking if gmp_printf supports the ' group flag... " >&6; }
19360if test "$cross_compiling" = yes
19361then :
19362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
19363printf "%s\n" "cannot test" >&6; }
19364else $as_nop
19365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366/* end confdefs.h.  */
19367
19368#include <string.h>
19369#include "gmp.h"
19370
19371int
19372main (void)
19373{
19374
19375  char s[256];
19376
19377  if (gmp_sprintf (s, "%'d", 17) == -1) return 1;
19378  return (strcmp (s, "17") != 0);
19379
19380  ;
19381  return 0;
19382}
19383_ACEOF
19384if ac_fn_c_try_run "$LINENO"
19385then :
19386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19387printf "%s\n" "yes" >&6; }
19388
19389printf "%s\n" "#define PRINTF_GROUPFLAG 1" >>confdefs.h
19390
19391else $as_nop
19392  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19393printf "%s\n" "no" >&6; }
19394fi
19395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19396  conftest.$ac_objext conftest.beam conftest.$ac_ext
19397fi
19398
19399
19400else $as_nop
19401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19402printf "%s\n" "no" >&6; }
19403    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
19404printf "%s\n" "$as_me: WARNING: ==========================================================" >&2;}
19405    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5
19406printf "%s\n" "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;}
19407    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
19408printf "%s\n" "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
19409    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5
19410printf "%s\n" "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;}
19411    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&5
19412printf "%s\n" "$as_me: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&2;}
19413    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: or --with-gmp-include with a system include directory" >&5
19414printf "%s\n" "$as_me: WARNING: or --with-gmp-include with a system include directory" >&2;}
19415    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: (such as /usr/include or /usr/local/include). Another" >&5
19416printf "%s\n" "$as_me: WARNING: (such as /usr/include or /usr/local/include). Another" >&2;}
19417    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&5
19418printf "%s\n" "$as_me: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&2;}
19419    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: seen under OpenBSD 6.6 and with the GNU gold linker)." >&5
19420printf "%s\n" "$as_me: WARNING: seen under OpenBSD 6.6 and with the GNU gold linker)." >&2;}
19421    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: However, since we can't use 'libtool' inside the configure," >&5
19422printf "%s\n" "$as_me: WARNING: However, since we can't use 'libtool' inside the configure," >&2;}
19423    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5
19424printf "%s\n" "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
19425    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CC=\"$CC\"" >&5
19426printf "%s\n" "$as_me: WARNING: CC=\"$CC\"" >&2;}
19427    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CFLAGS=\"$CFLAGS\"" >&5
19428printf "%s\n" "$as_me: WARNING: CFLAGS=\"$CFLAGS\"" >&2;}
19429    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&5
19430printf "%s\n" "$as_me: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&2;}
19431    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LDFLAGS=\"$LDFLAGS\"" >&5
19432printf "%s\n" "$as_me: WARNING: LDFLAGS=\"$LDFLAGS\"" >&2;}
19433    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LIBS=\"$LIBS\"" >&5
19434printf "%s\n" "$as_me: WARNING: LIBS=\"$LIBS\"" >&2;}
19435    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&5
19436printf "%s\n" "$as_me: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&2;}
19437    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
19438printf "%s\n" "$as_me: WARNING: ==========================================================" >&2;}
19439
19440fi
19441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19442  conftest.$ac_objext conftest.beam conftest.$ac_ext
19443fi
19444
19445LD_RUN_PATH="$saved_LD_RUN_PATH"
19446
19447ac_fn_c_check_func "$LINENO" "__gmpn_sbpi1_divappr_q" "ac_cv_func___gmpn_sbpi1_divappr_q"
19448if test "x$ac_cv_func___gmpn_sbpi1_divappr_q" = xyes
19449then :
19450  printf "%s\n" "#define HAVE___GMPN_SBPI1_DIVAPPR_Q 1" >>confdefs.h
19451
19452fi
19453
19454ac_fn_c_check_func "$LINENO" "__gmpn_invert_limb" "ac_cv_func___gmpn_invert_limb"
19455if test "x$ac_cv_func___gmpn_invert_limb" = xyes
19456then :
19457  printf "%s\n" "#define HAVE___GMPN_INVERT_LIMB 1" >>confdefs.h
19458
19459fi
19460
19461ac_fn_c_check_func "$LINENO" "__gmpn_rsblsh1_n" "ac_cv_func___gmpn_rsblsh1_n"
19462if test "x$ac_cv_func___gmpn_rsblsh1_n" = xyes
19463then :
19464  printf "%s\n" "#define HAVE___GMPN_RSBLSH1_N 1" >>confdefs.h
19465
19466fi
19467
19468
19469else
19470
19471
19472mpfr_build_src="${ac_top_build_prefix}src"
19473mkdir -p "$mpfr_build_src"
19474rm -f -- "$mpfr_build_src"/mini-gmp.*
19475for i in c h
19476do
19477  ln -s -- "$mini_gmp_path/mini-gmp.$i" "$mpfr_build_src/mini-gmp.$i"
19478done
19479
19480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS" >&5
19481printf %s "checking for GMP_NUMB_BITS... " >&6; }
19482how="from mini-gmp.h"
19483saved_CPPFLAGS="$CPPFLAGS"
19484CPPFLAGS="$CPPFLAGS -I$mpfr_build_src"
19485if ac_fn_c_compute_int "$LINENO" "(GMP_NUMB_BITS)" "mini_gmp_numb_bits"        "#include <mini-gmp.h>"
19486then :
19487
19488else $as_nop
19489  how="not in mini-gmp.h; guessed"
19490    if ac_fn_c_compute_int "$LINENO" "(sizeof(mp_limb_t) * CHAR_BIT)" "mini_gmp_numb_bits"        "#include <limits.h>
19491        #include <mini-gmp.h>"
19492then :
19493
19494else $as_nop
19495  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19496printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19497as_fn_error $? "cannot define GMP_NUMB_BITS
19498See \`config.log' for more details" "$LINENO" 5; }
19499fi
19500
19501
19502printf "%s\n" "#define GMP_NUMB_BITS $mini_gmp_numb_bits" >>confdefs.h
19503
19504
19505fi
19506
19507CPPFLAGS="$saved_CPPFLAGS"
19508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mini_gmp_numb_bits bits ($how)" >&5
19509printf "%s\n" "$mini_gmp_numb_bits bits ($how)" >&6; }
19510
19511fi
19512
19513
19514ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
19515if test "x$ac_cv_func_getrusage" = xyes
19516then :
19517  printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
19518
19519fi
19520
19521
19522if test -f confdefs.h; then
19523  for i in PACKAGE_ HAVE_STRING HAVE_DLFCN_H HAVE_MEM STDC_HEADERS \
19524           HAVE_STDLIB_H HAVE_UNISTD_H HAVE_STDC_HEADERS \
19525           HAVE_SYS_STAT_H HAVE_SYS_TYPES_H PROTOTYPES __PROTOTYPES
19526  do
19527    $SED "/#define $i/d" < confdefs.h > confdefs.tmp
19528    mv confdefs.tmp confdefs.h
19529  done
19530fi
19531
19532if test -n "$dev_version"; then
19533    DATAFILES=`echo \`$SED -n \
19534    's/^ *data_check *("\(data\/[^"]*\)".*/tests\/\1/p' \
19535    $srcdir/tests/*.c\``
19536fi
19537
19538ac_config_files="$ac_config_files Makefile mpfr.pc doc/Makefile src/Makefile tests/Makefile tune/Makefile src/mparam.h:src/mparam_h.in tools/bench/Makefile"
19539
19540cat >confcache <<\_ACEOF
19541# This file is a shell script that caches the results of configure
19542# tests run on this system so they can be shared between configure
19543# scripts and configure runs, see configure's option --config-cache.
19544# It is not useful on other systems.  If it contains results you don't
19545# want to keep, you may remove or edit it.
19546#
19547# config.status only pays attention to the cache file if you give it
19548# the --recheck option to rerun configure.
19549#
19550# `ac_cv_env_foo' variables (set or unset) will be overridden when
19551# loading this file, other *unset* `ac_cv_foo' will be assigned the
19552# following values.
19553
19554_ACEOF
19555
19556# The following way of writing the cache mishandles newlines in values,
19557# but we know of no workaround that is simple, portable, and efficient.
19558# So, we kill variables containing newlines.
19559# Ultrix sh set writes to stderr and can't be redirected directly,
19560# and sets the high bit in the cache file unless we assign to the vars.
19561(
19562  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19563    eval ac_val=\$$ac_var
19564    case $ac_val in #(
19565    *${as_nl}*)
19566      case $ac_var in #(
19567      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19568printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19569      esac
19570      case $ac_var in #(
19571      _ | IFS | as_nl) ;; #(
19572      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19573      *) { eval $ac_var=; unset $ac_var;} ;;
19574      esac ;;
19575    esac
19576  done
19577
19578  (set) 2>&1 |
19579    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19580    *${as_nl}ac_space=\ *)
19581      # `set' does not quote correctly, so add quotes: double-quote
19582      # substitution turns \\\\ into \\, and sed turns \\ into \.
19583      sed -n \
19584	"s/'/'\\\\''/g;
19585	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19586      ;; #(
19587    *)
19588      # `set' quotes correctly as required by POSIX, so do not add quotes.
19589      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19590      ;;
19591    esac |
19592    sort
19593) |
19594  sed '
19595     /^ac_cv_env_/b end
19596     t clear
19597     :clear
19598     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19599     t end
19600     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19601     :end' >>confcache
19602if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19603  if test -w "$cache_file"; then
19604    if test "x$cache_file" != "x/dev/null"; then
19605      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19606printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19607      if test ! -f "$cache_file" || test -h "$cache_file"; then
19608	cat confcache >"$cache_file"
19609      else
19610        case $cache_file in #(
19611        */* | ?:*)
19612	  mv -f confcache "$cache_file"$$ &&
19613	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19614        *)
19615	  mv -f confcache "$cache_file" ;;
19616	esac
19617      fi
19618    fi
19619  else
19620    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19621printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19622  fi
19623fi
19624rm -f confcache
19625
19626test "x$prefix" = xNONE && prefix=$ac_default_prefix
19627# Let make expand exec_prefix.
19628test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19629
19630# Transform confdefs.h into DEFS.
19631# Protect against shell expansion while executing Makefile rules.
19632# Protect against Makefile macro expansion.
19633#
19634# If the first sed substitution is executed (which looks for macros that
19635# take arguments), then branch to the quote section.  Otherwise,
19636# look for a macro that doesn't take arguments.
19637ac_script='
19638:mline
19639/\\$/{
19640 N
19641 s,\\\n,,
19642 b mline
19643}
19644t clear
19645:clear
19646s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
19647t quote
19648s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
19649t quote
19650b any
19651:quote
19652s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19653s/\[/\\&/g
19654s/\]/\\&/g
19655s/\$/$$/g
19656H
19657:any
19658${
19659	g
19660	s/^\n//
19661	s/\n/ /g
19662	p
19663}
19664'
19665DEFS=`sed -n "$ac_script" confdefs.h`
19666
19667
19668ac_libobjs=
19669ac_ltlibobjs=
19670U=
19671for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19672  # 1. Remove the extension, and $U if already installed.
19673  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19674  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19675  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19676  #    will be set to the directory where LIBOBJS objects are built.
19677  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19678  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19679done
19680LIBOBJS=$ac_libobjs
19681
19682LTLIBOBJS=$ac_ltlibobjs
19683
19684
19685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19686printf %s "checking that generated files are newer than configure... " >&6; }
19687   if test -n "$am_sleep_pid"; then
19688     # Hide warnings about reused PIDs.
19689     wait $am_sleep_pid 2>/dev/null
19690   fi
19691   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19692printf "%s\n" "done" >&6; }
19693 if test -n "$EXEEXT"; then
19694  am__EXEEXT_TRUE=
19695  am__EXEEXT_FALSE='#'
19696else
19697  am__EXEEXT_TRUE='#'
19698  am__EXEEXT_FALSE=
19699fi
19700
19701if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19702  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19703Usually this means the macro was only invoked conditionally." "$LINENO" 5
19704fi
19705if test -z "${MINI_GMP_TRUE}" && test -z "${MINI_GMP_FALSE}"; then
19706  as_fn_error $? "conditional \"MINI_GMP\" was never defined.
19707Usually this means the macro was only invoked conditionally." "$LINENO" 5
19708fi
19709if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19710  as_fn_error $? "conditional \"AMDEP\" was never defined.
19711Usually this means the macro was only invoked conditionally." "$LINENO" 5
19712fi
19713if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19714  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19715Usually this means the macro was only invoked conditionally." "$LINENO" 5
19716fi
19717
19718: "${CONFIG_STATUS=./config.status}"
19719ac_write_fail=0
19720ac_clean_files_save=$ac_clean_files
19721ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19723printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19724as_write_fail=0
19725cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19726#! $SHELL
19727# Generated by $as_me.
19728# Run this file to recreate the current configuration.
19729# Compiler output produced by configure, useful for debugging
19730# configure, is in config.log if it exists.
19731
19732debug=false
19733ac_cs_recheck=false
19734ac_cs_silent=false
19735
19736SHELL=\${CONFIG_SHELL-$SHELL}
19737export SHELL
19738_ASEOF
19739cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19740## -------------------- ##
19741## M4sh Initialization. ##
19742## -------------------- ##
19743
19744# Be more Bourne compatible
19745DUALCASE=1; export DUALCASE # for MKS sh
19746as_nop=:
19747if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19748then :
19749  emulate sh
19750  NULLCMD=:
19751  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19752  # is contrary to our usage.  Disable this feature.
19753  alias -g '${1+"$@"}'='"$@"'
19754  setopt NO_GLOB_SUBST
19755else $as_nop
19756  case `(set -o) 2>/dev/null` in #(
19757  *posix*) :
19758    set -o posix ;; #(
19759  *) :
19760     ;;
19761esac
19762fi
19763
19764
19765
19766# Reset variables that may have inherited troublesome values from
19767# the environment.
19768
19769# IFS needs to be set, to space, tab, and newline, in precisely that order.
19770# (If _AS_PATH_WALK were called with IFS unset, it would have the
19771# side effect of setting IFS to empty, thus disabling word splitting.)
19772# Quoting is to prevent editors from complaining about space-tab.
19773as_nl='
19774'
19775export as_nl
19776IFS=" ""	$as_nl"
19777
19778PS1='$ '
19779PS2='> '
19780PS4='+ '
19781
19782# Ensure predictable behavior from utilities with locale-dependent output.
19783LC_ALL=C
19784export LC_ALL
19785LANGUAGE=C
19786export LANGUAGE
19787
19788# We cannot yet rely on "unset" to work, but we need these variables
19789# to be unset--not just set to an empty or harmless value--now, to
19790# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19791# also avoids known problems related to "unset" and subshell syntax
19792# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19793for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19794do eval test \${$as_var+y} \
19795  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19796done
19797
19798# Ensure that fds 0, 1, and 2 are open.
19799if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19800if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19801if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19802
19803# The user is always right.
19804if ${PATH_SEPARATOR+false} :; then
19805  PATH_SEPARATOR=:
19806  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19807    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19808      PATH_SEPARATOR=';'
19809  }
19810fi
19811
19812
19813# Find who we are.  Look in the path if we contain no directory separator.
19814as_myself=
19815case $0 in #((
19816  *[\\/]* ) as_myself=$0 ;;
19817  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818for as_dir in $PATH
19819do
19820  IFS=$as_save_IFS
19821  case $as_dir in #(((
19822    '') as_dir=./ ;;
19823    */) ;;
19824    *) as_dir=$as_dir/ ;;
19825  esac
19826    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19827  done
19828IFS=$as_save_IFS
19829
19830     ;;
19831esac
19832# We did not find ourselves, most probably we were run as `sh COMMAND'
19833# in which case we are not to be found in the path.
19834if test "x$as_myself" = x; then
19835  as_myself=$0
19836fi
19837if test ! -f "$as_myself"; then
19838  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19839  exit 1
19840fi
19841
19842
19843
19844# as_fn_error STATUS ERROR [LINENO LOG_FD]
19845# ----------------------------------------
19846# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19847# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19848# script with STATUS, using 1 if that was 0.
19849as_fn_error ()
19850{
19851  as_status=$1; test $as_status -eq 0 && as_status=1
19852  if test "$4"; then
19853    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19854    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19855  fi
19856  printf "%s\n" "$as_me: error: $2" >&2
19857  as_fn_exit $as_status
19858} # as_fn_error
19859
19860
19861
19862# as_fn_set_status STATUS
19863# -----------------------
19864# Set $? to STATUS, without forking.
19865as_fn_set_status ()
19866{
19867  return $1
19868} # as_fn_set_status
19869
19870# as_fn_exit STATUS
19871# -----------------
19872# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19873as_fn_exit ()
19874{
19875  set +e
19876  as_fn_set_status $1
19877  exit $1
19878} # as_fn_exit
19879
19880# as_fn_unset VAR
19881# ---------------
19882# Portably unset VAR.
19883as_fn_unset ()
19884{
19885  { eval $1=; unset $1;}
19886}
19887as_unset=as_fn_unset
19888
19889# as_fn_append VAR VALUE
19890# ----------------------
19891# Append the text in VALUE to the end of the definition contained in VAR. Take
19892# advantage of any shell optimizations that allow amortized linear growth over
19893# repeated appends, instead of the typical quadratic growth present in naive
19894# implementations.
19895if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19896then :
19897  eval 'as_fn_append ()
19898  {
19899    eval $1+=\$2
19900  }'
19901else $as_nop
19902  as_fn_append ()
19903  {
19904    eval $1=\$$1\$2
19905  }
19906fi # as_fn_append
19907
19908# as_fn_arith ARG...
19909# ------------------
19910# Perform arithmetic evaluation on the ARGs, and store the result in the
19911# global $as_val. Take advantage of shells that can avoid forks. The arguments
19912# must be portable across $(()) and expr.
19913if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19914then :
19915  eval 'as_fn_arith ()
19916  {
19917    as_val=$(( $* ))
19918  }'
19919else $as_nop
19920  as_fn_arith ()
19921  {
19922    as_val=`expr "$@" || test $? -eq 1`
19923  }
19924fi # as_fn_arith
19925
19926
19927if expr a : '\(a\)' >/dev/null 2>&1 &&
19928   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19929  as_expr=expr
19930else
19931  as_expr=false
19932fi
19933
19934if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19935  as_basename=basename
19936else
19937  as_basename=false
19938fi
19939
19940if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19941  as_dirname=dirname
19942else
19943  as_dirname=false
19944fi
19945
19946as_me=`$as_basename -- "$0" ||
19947$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19948	 X"$0" : 'X\(//\)$' \| \
19949	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19950printf "%s\n" X/"$0" |
19951    sed '/^.*\/\([^/][^/]*\)\/*$/{
19952	    s//\1/
19953	    q
19954	  }
19955	  /^X\/\(\/\/\)$/{
19956	    s//\1/
19957	    q
19958	  }
19959	  /^X\/\(\/\).*/{
19960	    s//\1/
19961	    q
19962	  }
19963	  s/.*/./; q'`
19964
19965# Avoid depending upon Character Ranges.
19966as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19967as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19968as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19969as_cr_digits='0123456789'
19970as_cr_alnum=$as_cr_Letters$as_cr_digits
19971
19972
19973# Determine whether it's possible to make 'echo' print without a newline.
19974# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19975# for compatibility with existing Makefiles.
19976ECHO_C= ECHO_N= ECHO_T=
19977case `echo -n x` in #(((((
19978-n*)
19979  case `echo 'xy\c'` in
19980  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19981  xy)  ECHO_C='\c';;
19982  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19983       ECHO_T='	';;
19984  esac;;
19985*)
19986  ECHO_N='-n';;
19987esac
19988
19989# For backward compatibility with old third-party macros, we provide
19990# the shell variables $as_echo and $as_echo_n.  New code should use
19991# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19992as_echo='printf %s\n'
19993as_echo_n='printf %s'
19994
19995rm -f conf$$ conf$$.exe conf$$.file
19996if test -d conf$$.dir; then
19997  rm -f conf$$.dir/conf$$.file
19998else
19999  rm -f conf$$.dir
20000  mkdir conf$$.dir 2>/dev/null
20001fi
20002if (echo >conf$$.file) 2>/dev/null; then
20003  if ln -s conf$$.file conf$$ 2>/dev/null; then
20004    as_ln_s='ln -s'
20005    # ... but there are two gotchas:
20006    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20007    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20008    # In both cases, we have to default to `cp -pR'.
20009    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20010      as_ln_s='cp -pR'
20011  elif ln conf$$.file conf$$ 2>/dev/null; then
20012    as_ln_s=ln
20013  else
20014    as_ln_s='cp -pR'
20015  fi
20016else
20017  as_ln_s='cp -pR'
20018fi
20019rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20020rmdir conf$$.dir 2>/dev/null
20021
20022
20023# as_fn_mkdir_p
20024# -------------
20025# Create "$as_dir" as a directory, including parents if necessary.
20026as_fn_mkdir_p ()
20027{
20028
20029  case $as_dir in #(
20030  -*) as_dir=./$as_dir;;
20031  esac
20032  test -d "$as_dir" || eval $as_mkdir_p || {
20033    as_dirs=
20034    while :; do
20035      case $as_dir in #(
20036      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20037      *) as_qdir=$as_dir;;
20038      esac
20039      as_dirs="'$as_qdir' $as_dirs"
20040      as_dir=`$as_dirname -- "$as_dir" ||
20041$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20042	 X"$as_dir" : 'X\(//\)[^/]' \| \
20043	 X"$as_dir" : 'X\(//\)$' \| \
20044	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20045printf "%s\n" X"$as_dir" |
20046    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20047	    s//\1/
20048	    q
20049	  }
20050	  /^X\(\/\/\)[^/].*/{
20051	    s//\1/
20052	    q
20053	  }
20054	  /^X\(\/\/\)$/{
20055	    s//\1/
20056	    q
20057	  }
20058	  /^X\(\/\).*/{
20059	    s//\1/
20060	    q
20061	  }
20062	  s/.*/./; q'`
20063      test -d "$as_dir" && break
20064    done
20065    test -z "$as_dirs" || eval "mkdir $as_dirs"
20066  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20067
20068
20069} # as_fn_mkdir_p
20070if mkdir -p . 2>/dev/null; then
20071  as_mkdir_p='mkdir -p "$as_dir"'
20072else
20073  test -d ./-p && rmdir ./-p
20074  as_mkdir_p=false
20075fi
20076
20077
20078# as_fn_executable_p FILE
20079# -----------------------
20080# Test if FILE is an executable regular file.
20081as_fn_executable_p ()
20082{
20083  test -f "$1" && test -x "$1"
20084} # as_fn_executable_p
20085as_test_x='test -x'
20086as_executable_p=as_fn_executable_p
20087
20088# Sed expression to map a string onto a valid CPP name.
20089as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20090
20091# Sed expression to map a string onto a valid variable name.
20092as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20093
20094
20095exec 6>&1
20096## ----------------------------------- ##
20097## Main body of $CONFIG_STATUS script. ##
20098## ----------------------------------- ##
20099_ASEOF
20100test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20101
20102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20103# Save the log message, to keep $0 and so on meaningful, and to
20104# report actual input values of CONFIG_FILES etc. instead of their
20105# values after options handling.
20106ac_log="
20107This file was extended by MPFR $as_me 4.2.1, which was
20108generated by GNU Autoconf 2.71.  Invocation command line was
20109
20110  CONFIG_FILES    = $CONFIG_FILES
20111  CONFIG_HEADERS  = $CONFIG_HEADERS
20112  CONFIG_LINKS    = $CONFIG_LINKS
20113  CONFIG_COMMANDS = $CONFIG_COMMANDS
20114  $ $0 $@
20115
20116on `(hostname || uname -n) 2>/dev/null | sed 1q`
20117"
20118
20119_ACEOF
20120
20121case $ac_config_files in *"
20122"*) set x $ac_config_files; shift; ac_config_files=$*;;
20123esac
20124
20125
20126
20127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20128# Files that config.status was made for.
20129config_files="$ac_config_files"
20130config_commands="$ac_config_commands"
20131
20132_ACEOF
20133
20134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20135ac_cs_usage="\
20136\`$as_me' instantiates files and other configuration actions
20137from templates according to the current configuration.  Unless the files
20138and actions are specified as TAGs, all are instantiated by default.
20139
20140Usage: $0 [OPTION]... [TAG]...
20141
20142  -h, --help       print this help, then exit
20143  -V, --version    print version number and configuration settings, then exit
20144      --config     print configuration, then exit
20145  -q, --quiet, --silent
20146                   do not print progress messages
20147  -d, --debug      don't remove temporary files
20148      --recheck    update $as_me by reconfiguring in the same conditions
20149      --file=FILE[:TEMPLATE]
20150                   instantiate the configuration file FILE
20151
20152Configuration files:
20153$config_files
20154
20155Configuration commands:
20156$config_commands
20157
20158Report bugs to the package provider."
20159
20160_ACEOF
20161ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20162ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20164ac_cs_config='$ac_cs_config_escaped'
20165ac_cs_version="\\
20166MPFR config.status 4.2.1
20167configured by $0, generated by GNU Autoconf 2.71,
20168  with options \\"\$ac_cs_config\\"
20169
20170Copyright (C) 2021 Free Software Foundation, Inc.
20171This config.status script is free software; the Free Software Foundation
20172gives unlimited permission to copy, distribute and modify it."
20173
20174ac_pwd='$ac_pwd'
20175srcdir='$srcdir'
20176INSTALL='$INSTALL'
20177MKDIR_P='$MKDIR_P'
20178AWK='$AWK'
20179test -n "\$AWK" || AWK=awk
20180_ACEOF
20181
20182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20183# The default lists apply if the user does not specify any file.
20184ac_need_defaults=:
20185while test $# != 0
20186do
20187  case $1 in
20188  --*=?*)
20189    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20190    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20191    ac_shift=:
20192    ;;
20193  --*=)
20194    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20195    ac_optarg=
20196    ac_shift=:
20197    ;;
20198  *)
20199    ac_option=$1
20200    ac_optarg=$2
20201    ac_shift=shift
20202    ;;
20203  esac
20204
20205  case $ac_option in
20206  # Handling of the options.
20207  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20208    ac_cs_recheck=: ;;
20209  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20210    printf "%s\n" "$ac_cs_version"; exit ;;
20211  --config | --confi | --conf | --con | --co | --c )
20212    printf "%s\n" "$ac_cs_config"; exit ;;
20213  --debug | --debu | --deb | --de | --d | -d )
20214    debug=: ;;
20215  --file | --fil | --fi | --f )
20216    $ac_shift
20217    case $ac_optarg in
20218    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20219    '') as_fn_error $? "missing file argument" ;;
20220    esac
20221    as_fn_append CONFIG_FILES " '$ac_optarg'"
20222    ac_need_defaults=false;;
20223  --he | --h |  --help | --hel | -h )
20224    printf "%s\n" "$ac_cs_usage"; exit ;;
20225  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20226  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20227    ac_cs_silent=: ;;
20228
20229  # This is an error.
20230  -*) as_fn_error $? "unrecognized option: \`$1'
20231Try \`$0 --help' for more information." ;;
20232
20233  *) as_fn_append ac_config_targets " $1"
20234     ac_need_defaults=false ;;
20235
20236  esac
20237  shift
20238done
20239
20240ac_configure_extra_args=
20241
20242if $ac_cs_silent; then
20243  exec 6>/dev/null
20244  ac_configure_extra_args="$ac_configure_extra_args --silent"
20245fi
20246
20247_ACEOF
20248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20249if \$ac_cs_recheck; then
20250  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20251  shift
20252  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20253  CONFIG_SHELL='$SHELL'
20254  export CONFIG_SHELL
20255  exec "\$@"
20256fi
20257
20258_ACEOF
20259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20260exec 5>>config.log
20261{
20262  echo
20263  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20264## Running $as_me. ##
20265_ASBOX
20266  printf "%s\n" "$ac_log"
20267} >&5
20268
20269_ACEOF
20270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20271#
20272# INIT-COMMANDS
20273#
20274AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20275
20276
20277# The HP-UX ksh and POSIX shell print the target directory to stdout
20278# if CDPATH is set.
20279(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20280
20281sed_quote_subst='$sed_quote_subst'
20282double_quote_subst='$double_quote_subst'
20283delay_variable_subst='$delay_variable_subst'
20284macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20285macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20286AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20287DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20288OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20289enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20290enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20291pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20292enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20293shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20294SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20295ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20296PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20297host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20298host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20299host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20300build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20301build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20302build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20303SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20304Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20305GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20306EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20307FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20308LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20309NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20310LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20311max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20312ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20313exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20314lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20315lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20316lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20317lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20318lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20319reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20320reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20321FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20322deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20323file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20324file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20325want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20326sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20327AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20328lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20329AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20330archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20331STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20332RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20333old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20334old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20335old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20336lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20337CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20338CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20339compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20340GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20341lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20342lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20343lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20344lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20345lt_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"`'
20346lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20347nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20348lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20349lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20350objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20351MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20352lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20353lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20354lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20355lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20356lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20357need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20358MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20359DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20360NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20361LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20362OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20363OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20364libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20365shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20366extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20367archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20368enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20369export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20370whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20371compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20372old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20373old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20374archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20375archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20376module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20377module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20378with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20379allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20380no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20381hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20382hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20383hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20384hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20385hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20386hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20387hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20388inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20389link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20390always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20391export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20392exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20393include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20394prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20395postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20396file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20397variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20398need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20399need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20400version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20401runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20402shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20403shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20404libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20405library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20406soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20407install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20408postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20409postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20410finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20411finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20412hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20413sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20414configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20415configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20416hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20417enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20418enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20419enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20420old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20421striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20422
20423LTCC='$LTCC'
20424LTCFLAGS='$LTCFLAGS'
20425compiler='$compiler_DEFAULT'
20426
20427# A function that is used when there is no print builtin or printf.
20428func_fallback_echo ()
20429{
20430  eval 'cat <<_LTECHO_EOF
20431\$1
20432_LTECHO_EOF'
20433}
20434
20435# Quote evaled strings.
20436for var in AS \
20437DLLTOOL \
20438OBJDUMP \
20439SHELL \
20440ECHO \
20441PATH_SEPARATOR \
20442SED \
20443GREP \
20444EGREP \
20445FGREP \
20446LD \
20447NM \
20448LN_S \
20449lt_SP2NL \
20450lt_NL2SP \
20451reload_flag \
20452FILECMD \
20453deplibs_check_method \
20454file_magic_cmd \
20455file_magic_glob \
20456want_nocaseglob \
20457sharedlib_from_linklib_cmd \
20458AR \
20459archiver_list_spec \
20460STRIP \
20461RANLIB \
20462CC \
20463CFLAGS \
20464compiler \
20465lt_cv_sys_global_symbol_pipe \
20466lt_cv_sys_global_symbol_to_cdecl \
20467lt_cv_sys_global_symbol_to_import \
20468lt_cv_sys_global_symbol_to_c_name_address \
20469lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20470lt_cv_nm_interface \
20471nm_file_list_spec \
20472lt_cv_truncate_bin \
20473lt_prog_compiler_no_builtin_flag \
20474lt_prog_compiler_pic \
20475lt_prog_compiler_wl \
20476lt_prog_compiler_static \
20477lt_cv_prog_compiler_c_o \
20478need_locks \
20479MANIFEST_TOOL \
20480DSYMUTIL \
20481NMEDIT \
20482LIPO \
20483OTOOL \
20484OTOOL64 \
20485shrext_cmds \
20486export_dynamic_flag_spec \
20487whole_archive_flag_spec \
20488compiler_needs_object \
20489with_gnu_ld \
20490allow_undefined_flag \
20491no_undefined_flag \
20492hardcode_libdir_flag_spec \
20493hardcode_libdir_separator \
20494exclude_expsyms \
20495include_expsyms \
20496file_list_spec \
20497variables_saved_for_relink \
20498libname_spec \
20499library_names_spec \
20500soname_spec \
20501install_override_mode \
20502finish_eval \
20503old_striplib \
20504striplib; do
20505    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20506    *[\\\\\\\`\\"\\\$]*)
20507      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20508      ;;
20509    *)
20510      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20511      ;;
20512    esac
20513done
20514
20515# Double-quote double-evaled strings.
20516for var in reload_cmds \
20517old_postinstall_cmds \
20518old_postuninstall_cmds \
20519old_archive_cmds \
20520extract_expsyms_cmds \
20521old_archive_from_new_cmds \
20522old_archive_from_expsyms_cmds \
20523archive_cmds \
20524archive_expsym_cmds \
20525module_cmds \
20526module_expsym_cmds \
20527export_symbols_cmds \
20528prelink_cmds \
20529postlink_cmds \
20530postinstall_cmds \
20531postuninstall_cmds \
20532finish_cmds \
20533sys_lib_search_path_spec \
20534configure_time_dlsearch_path \
20535configure_time_lt_sys_library_path; do
20536    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20537    *[\\\\\\\`\\"\\\$]*)
20538      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20539      ;;
20540    *)
20541      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20542      ;;
20543    esac
20544done
20545
20546ac_aux_dir='$ac_aux_dir'
20547
20548# See if we are running on zsh, and set the options that allow our
20549# commands through without removal of \ escapes INIT.
20550if test -n "\${ZSH_VERSION+set}"; then
20551   setopt NO_GLOB_SUBST
20552fi
20553
20554
20555    PACKAGE='$PACKAGE'
20556    VERSION='$VERSION'
20557    RM='$RM'
20558    ofile='$ofile'
20559
20560
20561
20562
20563_ACEOF
20564
20565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20566
20567# Handling of arguments.
20568for ac_config_target in $ac_config_targets
20569do
20570  case $ac_config_target in
20571    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20572    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20573    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20574    "mpfr.pc") CONFIG_FILES="$CONFIG_FILES mpfr.pc" ;;
20575    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20576    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20577    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20578    "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
20579    "src/mparam.h") CONFIG_FILES="$CONFIG_FILES src/mparam.h:src/mparam_h.in" ;;
20580    "tools/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tools/bench/Makefile" ;;
20581
20582  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20583  esac
20584done
20585
20586
20587# If the user did not use the arguments to specify the items to instantiate,
20588# then the envvar interface is used.  Set only those that are not.
20589# We use the long form for the default assignment because of an extremely
20590# bizarre bug on SunOS 4.1.3.
20591if $ac_need_defaults; then
20592  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20593  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20594fi
20595
20596# Have a temporary directory for convenience.  Make it in the build tree
20597# simply because there is no reason against having it here, and in addition,
20598# creating and moving files from /tmp can sometimes cause problems.
20599# Hook for its removal unless debugging.
20600# Note that there is a small window in which the directory will not be cleaned:
20601# after its creation but before its name has been assigned to `$tmp'.
20602$debug ||
20603{
20604  tmp= ac_tmp=
20605  trap 'exit_status=$?
20606  : "${ac_tmp:=$tmp}"
20607  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20608' 0
20609  trap 'as_fn_exit 1' 1 2 13 15
20610}
20611# Create a (secure) tmp directory for tmp files.
20612
20613{
20614  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20615  test -d "$tmp"
20616}  ||
20617{
20618  tmp=./conf$$-$RANDOM
20619  (umask 077 && mkdir "$tmp")
20620} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20621ac_tmp=$tmp
20622
20623# Set up the scripts for CONFIG_FILES section.
20624# No need to generate them if there are no CONFIG_FILES.
20625# This happens for instance with `./config.status config.h'.
20626if test -n "$CONFIG_FILES"; then
20627
20628
20629ac_cr=`echo X | tr X '\015'`
20630# On cygwin, bash can eat \r inside `` if the user requested igncr.
20631# But we know of no other shell where ac_cr would be empty at this
20632# point, so we can use a bashism as a fallback.
20633if test "x$ac_cr" = x; then
20634  eval ac_cr=\$\'\\r\'
20635fi
20636ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20637if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20638  ac_cs_awk_cr='\\r'
20639else
20640  ac_cs_awk_cr=$ac_cr
20641fi
20642
20643echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20644_ACEOF
20645
20646
20647{
20648  echo "cat >conf$$subs.awk <<_ACEOF" &&
20649  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20650  echo "_ACEOF"
20651} >conf$$subs.sh ||
20652  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20653ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20654ac_delim='%!_!# '
20655for ac_last_try in false false false false false :; do
20656  . ./conf$$subs.sh ||
20657    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20658
20659  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20660  if test $ac_delim_n = $ac_delim_num; then
20661    break
20662  elif $ac_last_try; then
20663    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20664  else
20665    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20666  fi
20667done
20668rm -f conf$$subs.sh
20669
20670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20671cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20672_ACEOF
20673sed -n '
20674h
20675s/^/S["/; s/!.*/"]=/
20676p
20677g
20678s/^[^!]*!//
20679:repl
20680t repl
20681s/'"$ac_delim"'$//
20682t delim
20683:nl
20684h
20685s/\(.\{148\}\)..*/\1/
20686t more1
20687s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20688p
20689n
20690b repl
20691:more1
20692s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20693p
20694g
20695s/.\{148\}//
20696t nl
20697:delim
20698h
20699s/\(.\{148\}\)..*/\1/
20700t more2
20701s/["\\]/\\&/g; s/^/"/; s/$/"/
20702p
20703b
20704:more2
20705s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20706p
20707g
20708s/.\{148\}//
20709t delim
20710' <conf$$subs.awk | sed '
20711/^[^""]/{
20712  N
20713  s/\n//
20714}
20715' >>$CONFIG_STATUS || ac_write_fail=1
20716rm -f conf$$subs.awk
20717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20718_ACAWK
20719cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20720  for (key in S) S_is_set[key] = 1
20721  FS = ""
20722
20723}
20724{
20725  line = $ 0
20726  nfields = split(line, field, "@")
20727  substed = 0
20728  len = length(field[1])
20729  for (i = 2; i < nfields; i++) {
20730    key = field[i]
20731    keylen = length(key)
20732    if (S_is_set[key]) {
20733      value = S[key]
20734      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20735      len += length(value) + length(field[++i])
20736      substed = 1
20737    } else
20738      len += 1 + keylen
20739  }
20740
20741  print line
20742}
20743
20744_ACAWK
20745_ACEOF
20746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20747if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20748  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20749else
20750  cat
20751fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20752  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20753_ACEOF
20754
20755# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20756# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20757# trailing colons and then remove the whole line if VPATH becomes empty
20758# (actually we leave an empty line to preserve line numbers).
20759if test "x$srcdir" = x.; then
20760  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20761h
20762s///
20763s/^/:/
20764s/[	 ]*$/:/
20765s/:\$(srcdir):/:/g
20766s/:\${srcdir}:/:/g
20767s/:@srcdir@:/:/g
20768s/^:*//
20769s/:*$//
20770x
20771s/\(=[	 ]*\).*/\1/
20772G
20773s/\n//
20774s/^[^=]*=[	 ]*$//
20775}'
20776fi
20777
20778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20779fi # test -n "$CONFIG_FILES"
20780
20781
20782eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
20783shift
20784for ac_tag
20785do
20786  case $ac_tag in
20787  :[FHLC]) ac_mode=$ac_tag; continue;;
20788  esac
20789  case $ac_mode$ac_tag in
20790  :[FHL]*:*);;
20791  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20792  :[FH]-) ac_tag=-:-;;
20793  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20794  esac
20795  ac_save_IFS=$IFS
20796  IFS=:
20797  set x $ac_tag
20798  IFS=$ac_save_IFS
20799  shift
20800  ac_file=$1
20801  shift
20802
20803  case $ac_mode in
20804  :L) ac_source=$1;;
20805  :[FH])
20806    ac_file_inputs=
20807    for ac_f
20808    do
20809      case $ac_f in
20810      -) ac_f="$ac_tmp/stdin";;
20811      *) # Look for the file first in the build tree, then in the source tree
20812	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20813	 # because $ac_f cannot contain `:'.
20814	 test -f "$ac_f" ||
20815	   case $ac_f in
20816	   [\\/$]*) false;;
20817	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20818	   esac ||
20819	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20820      esac
20821      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20822      as_fn_append ac_file_inputs " '$ac_f'"
20823    done
20824
20825    # Let's still pretend it is `configure' which instantiates (i.e., don't
20826    # use $as_me), people would be surprised to read:
20827    #    /* config.h.  Generated by config.status.  */
20828    configure_input='Generated from '`
20829	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20830	`' by configure.'
20831    if test x"$ac_file" != x-; then
20832      configure_input="$ac_file.  $configure_input"
20833      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20834printf "%s\n" "$as_me: creating $ac_file" >&6;}
20835    fi
20836    # Neutralize special characters interpreted by sed in replacement strings.
20837    case $configure_input in #(
20838    *\&* | *\|* | *\\* )
20839       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20840       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20841    *) ac_sed_conf_input=$configure_input;;
20842    esac
20843
20844    case $ac_tag in
20845    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20846      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20847    esac
20848    ;;
20849  esac
20850
20851  ac_dir=`$as_dirname -- "$ac_file" ||
20852$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20853	 X"$ac_file" : 'X\(//\)[^/]' \| \
20854	 X"$ac_file" : 'X\(//\)$' \| \
20855	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20856printf "%s\n" X"$ac_file" |
20857    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20858	    s//\1/
20859	    q
20860	  }
20861	  /^X\(\/\/\)[^/].*/{
20862	    s//\1/
20863	    q
20864	  }
20865	  /^X\(\/\/\)$/{
20866	    s//\1/
20867	    q
20868	  }
20869	  /^X\(\/\).*/{
20870	    s//\1/
20871	    q
20872	  }
20873	  s/.*/./; q'`
20874  as_dir="$ac_dir"; as_fn_mkdir_p
20875  ac_builddir=.
20876
20877case "$ac_dir" in
20878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20879*)
20880  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20881  # A ".." for each directory in $ac_dir_suffix.
20882  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20883  case $ac_top_builddir_sub in
20884  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20885  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20886  esac ;;
20887esac
20888ac_abs_top_builddir=$ac_pwd
20889ac_abs_builddir=$ac_pwd$ac_dir_suffix
20890# for backward compatibility:
20891ac_top_builddir=$ac_top_build_prefix
20892
20893case $srcdir in
20894  .)  # We are building in place.
20895    ac_srcdir=.
20896    ac_top_srcdir=$ac_top_builddir_sub
20897    ac_abs_top_srcdir=$ac_pwd ;;
20898  [\\/]* | ?:[\\/]* )  # Absolute name.
20899    ac_srcdir=$srcdir$ac_dir_suffix;
20900    ac_top_srcdir=$srcdir
20901    ac_abs_top_srcdir=$srcdir ;;
20902  *) # Relative name.
20903    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20904    ac_top_srcdir=$ac_top_build_prefix$srcdir
20905    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20906esac
20907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20908
20909
20910  case $ac_mode in
20911  :F)
20912  #
20913  # CONFIG_FILE
20914  #
20915
20916  case $INSTALL in
20917  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20918  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20919  esac
20920  ac_MKDIR_P=$MKDIR_P
20921  case $MKDIR_P in
20922  [\\/$]* | ?:[\\/]* ) ;;
20923  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20924  esac
20925_ACEOF
20926
20927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20928# If the template does not know about datarootdir, expand it.
20929# FIXME: This hack should be removed a few years after 2.60.
20930ac_datarootdir_hack=; ac_datarootdir_seen=
20931ac_sed_dataroot='
20932/datarootdir/ {
20933  p
20934  q
20935}
20936/@datadir@/p
20937/@docdir@/p
20938/@infodir@/p
20939/@localedir@/p
20940/@mandir@/p'
20941case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20942*datarootdir*) ac_datarootdir_seen=yes;;
20943*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20944  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20945printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20946_ACEOF
20947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20948  ac_datarootdir_hack='
20949  s&@datadir@&$datadir&g
20950  s&@docdir@&$docdir&g
20951  s&@infodir@&$infodir&g
20952  s&@localedir@&$localedir&g
20953  s&@mandir@&$mandir&g
20954  s&\\\${datarootdir}&$datarootdir&g' ;;
20955esac
20956_ACEOF
20957
20958# Neutralize VPATH when `$srcdir' = `.'.
20959# Shell code in configure.ac might set extrasub.
20960# FIXME: do we really want to maintain this feature?
20961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20962ac_sed_extra="$ac_vpsub
20963$extrasub
20964_ACEOF
20965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20966:t
20967/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20968s|@configure_input@|$ac_sed_conf_input|;t t
20969s&@top_builddir@&$ac_top_builddir_sub&;t t
20970s&@top_build_prefix@&$ac_top_build_prefix&;t t
20971s&@srcdir@&$ac_srcdir&;t t
20972s&@abs_srcdir@&$ac_abs_srcdir&;t t
20973s&@top_srcdir@&$ac_top_srcdir&;t t
20974s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20975s&@builddir@&$ac_builddir&;t t
20976s&@abs_builddir@&$ac_abs_builddir&;t t
20977s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20978s&@INSTALL@&$ac_INSTALL&;t t
20979s&@MKDIR_P@&$ac_MKDIR_P&;t t
20980$ac_datarootdir_hack
20981"
20982eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20983  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20984
20985test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20986  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20987  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20988      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20989  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20990which seems to be undefined.  Please make sure it is defined" >&5
20991printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20992which seems to be undefined.  Please make sure it is defined" >&2;}
20993
20994  rm -f "$ac_tmp/stdin"
20995  case $ac_file in
20996  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20997  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20998  esac \
20999  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21000 ;;
21001
21002
21003  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21004printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21005 ;;
21006  esac
21007
21008
21009  case $ac_file$ac_mode in
21010    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21011  # Older Autoconf quotes --file arguments for eval, but not when files
21012  # are listed without --file.  Let's play safe and only enable the eval
21013  # if we detect the quoting.
21014  # TODO: see whether this extra hack can be removed once we start
21015  # requiring Autoconf 2.70 or later.
21016  case $CONFIG_FILES in #(
21017  *\'*) :
21018    eval set x "$CONFIG_FILES" ;; #(
21019  *) :
21020    set x $CONFIG_FILES ;; #(
21021  *) :
21022     ;;
21023esac
21024  shift
21025  # Used to flag and report bootstrapping failures.
21026  am_rc=0
21027  for am_mf
21028  do
21029    # Strip MF so we end up with the name of the file.
21030    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21031    # Check whether this is an Automake generated Makefile which includes
21032    # dependency-tracking related rules and includes.
21033    # Grep'ing the whole file directly is not great: AIX grep has a line
21034    # limit of 2048, but all sed's we know have understand at least 4000.
21035    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21036      || continue
21037    am_dirpart=`$as_dirname -- "$am_mf" ||
21038$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21039	 X"$am_mf" : 'X\(//\)[^/]' \| \
21040	 X"$am_mf" : 'X\(//\)$' \| \
21041	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21042printf "%s\n" X"$am_mf" |
21043    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21044	    s//\1/
21045	    q
21046	  }
21047	  /^X\(\/\/\)[^/].*/{
21048	    s//\1/
21049	    q
21050	  }
21051	  /^X\(\/\/\)$/{
21052	    s//\1/
21053	    q
21054	  }
21055	  /^X\(\/\).*/{
21056	    s//\1/
21057	    q
21058	  }
21059	  s/.*/./; q'`
21060    am_filepart=`$as_basename -- "$am_mf" ||
21061$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21062	 X"$am_mf" : 'X\(//\)$' \| \
21063	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21064printf "%s\n" X/"$am_mf" |
21065    sed '/^.*\/\([^/][^/]*\)\/*$/{
21066	    s//\1/
21067	    q
21068	  }
21069	  /^X\/\(\/\/\)$/{
21070	    s//\1/
21071	    q
21072	  }
21073	  /^X\/\(\/\).*/{
21074	    s//\1/
21075	    q
21076	  }
21077	  s/.*/./; q'`
21078    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21079      && sed -e '/# am--include-marker/d' "$am_filepart" \
21080        | $MAKE -f - am--depfiles" >&5
21081   (cd "$am_dirpart" \
21082      && sed -e '/# am--include-marker/d' "$am_filepart" \
21083        | $MAKE -f - am--depfiles) >&5 2>&5
21084   ac_status=$?
21085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086   (exit $ac_status); } || am_rc=$?
21087  done
21088  if test $am_rc -ne 0; then
21089    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21090printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21091as_fn_error $? "Something went wrong bootstrapping makefile fragments
21092    for automatic dependency tracking.  If GNU make was not used, consider
21093    re-running the configure script with MAKE=\"gmake\" (or whatever is
21094    necessary).  You can also try re-running configure with the
21095    '--disable-dependency-tracking' option to at least be able to build
21096    the package (albeit without support for automatic dependency tracking).
21097See \`config.log' for more details" "$LINENO" 5; }
21098  fi
21099  { am_dirpart=; unset am_dirpart;}
21100  { am_filepart=; unset am_filepart;}
21101  { am_mf=; unset am_mf;}
21102  { am_rc=; unset am_rc;}
21103  rm -f conftest-deps.mk
21104}
21105 ;;
21106    "libtool":C)
21107
21108    # See if we are running on zsh, and set the options that allow our
21109    # commands through without removal of \ escapes.
21110    if test -n "${ZSH_VERSION+set}"; then
21111      setopt NO_GLOB_SUBST
21112    fi
21113
21114    cfgfile=${ofile}T
21115    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21116    $RM "$cfgfile"
21117
21118    cat <<_LT_EOF >> "$cfgfile"
21119#! $SHELL
21120# Generated automatically by $as_me ($PACKAGE) $VERSION
21121# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21122
21123# Provide generalized library-building support services.
21124# Written by Gordon Matzigkeit, 1996
21125
21126# Copyright (C) 2014 Free Software Foundation, Inc.
21127# This is free software; see the source for copying conditions.  There is NO
21128# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21129
21130# GNU Libtool is free software; you can redistribute it and/or modify
21131# it under the terms of the GNU General Public License as published by
21132# the Free Software Foundation; either version 2 of of the License, or
21133# (at your option) any later version.
21134#
21135# As a special exception to the GNU General Public License, if you
21136# distribute this file as part of a program or library that is built
21137# using GNU Libtool, you may include this file under the  same
21138# distribution terms that you use for the rest of that program.
21139#
21140# GNU Libtool is distributed in the hope that it will be useful, but
21141# WITHOUT ANY WARRANTY; without even the implied warranty of
21142# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21143# GNU General Public License for more details.
21144#
21145# You should have received a copy of the GNU General Public License
21146# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21147
21148
21149# The names of the tagged configurations supported by this script.
21150available_tags=''
21151
21152# Configured defaults for sys_lib_dlsearch_path munging.
21153: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21154
21155# ### BEGIN LIBTOOL CONFIG
21156
21157# Which release of libtool.m4 was used?
21158macro_version=$macro_version
21159macro_revision=$macro_revision
21160
21161# Assembler program.
21162AS=$lt_AS
21163
21164# DLL creation program.
21165DLLTOOL=$lt_DLLTOOL
21166
21167# Object dumper program.
21168OBJDUMP=$lt_OBJDUMP
21169
21170# Whether or not to build shared libraries.
21171build_libtool_libs=$enable_shared
21172
21173# Whether or not to build static libraries.
21174build_old_libs=$enable_static
21175
21176# What type of objects to build.
21177pic_mode=$pic_mode
21178
21179# Whether or not to optimize for fast installation.
21180fast_install=$enable_fast_install
21181
21182# Shared archive member basename,for filename based shared library versioning on AIX.
21183shared_archive_member_spec=$shared_archive_member_spec
21184
21185# Shell to use when invoking shell scripts.
21186SHELL=$lt_SHELL
21187
21188# An echo program that protects backslashes.
21189ECHO=$lt_ECHO
21190
21191# The PATH separator for the build system.
21192PATH_SEPARATOR=$lt_PATH_SEPARATOR
21193
21194# The host system.
21195host_alias=$host_alias
21196host=$host
21197host_os=$host_os
21198
21199# The build system.
21200build_alias=$build_alias
21201build=$build
21202build_os=$build_os
21203
21204# A sed program that does not truncate output.
21205SED=$lt_SED
21206
21207# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21208Xsed="\$SED -e 1s/^X//"
21209
21210# A grep program that handles long lines.
21211GREP=$lt_GREP
21212
21213# An ERE matcher.
21214EGREP=$lt_EGREP
21215
21216# A literal string matcher.
21217FGREP=$lt_FGREP
21218
21219# A BSD- or MS-compatible name lister.
21220NM=$lt_NM
21221
21222# Whether we need soft or hard links.
21223LN_S=$lt_LN_S
21224
21225# What is the maximum length of a command?
21226max_cmd_len=$max_cmd_len
21227
21228# Object file suffix (normally "o").
21229objext=$ac_objext
21230
21231# Executable file suffix (normally "").
21232exeext=$exeext
21233
21234# whether the shell understands "unset".
21235lt_unset=$lt_unset
21236
21237# turn spaces into newlines.
21238SP2NL=$lt_lt_SP2NL
21239
21240# turn newlines into spaces.
21241NL2SP=$lt_lt_NL2SP
21242
21243# convert \$build file names to \$host format.
21244to_host_file_cmd=$lt_cv_to_host_file_cmd
21245
21246# convert \$build files to toolchain format.
21247to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21248
21249# A file(cmd) program that detects file types.
21250FILECMD=$lt_FILECMD
21251
21252# Method to check whether dependent libraries are shared objects.
21253deplibs_check_method=$lt_deplibs_check_method
21254
21255# Command to use when deplibs_check_method = "file_magic".
21256file_magic_cmd=$lt_file_magic_cmd
21257
21258# How to find potential files when deplibs_check_method = "file_magic".
21259file_magic_glob=$lt_file_magic_glob
21260
21261# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21262want_nocaseglob=$lt_want_nocaseglob
21263
21264# Command to associate shared and link libraries.
21265sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21266
21267# The archiver.
21268AR=$lt_AR
21269
21270# Flags to create an archive (by configure).
21271lt_ar_flags=$lt_ar_flags
21272
21273# Flags to create an archive.
21274AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21275
21276# How to feed a file listing to the archiver.
21277archiver_list_spec=$lt_archiver_list_spec
21278
21279# A symbol stripping program.
21280STRIP=$lt_STRIP
21281
21282# Commands used to install an old-style archive.
21283RANLIB=$lt_RANLIB
21284old_postinstall_cmds=$lt_old_postinstall_cmds
21285old_postuninstall_cmds=$lt_old_postuninstall_cmds
21286
21287# Whether to use a lock for old archive extraction.
21288lock_old_archive_extraction=$lock_old_archive_extraction
21289
21290# A C compiler.
21291LTCC=$lt_CC
21292
21293# LTCC compiler flags.
21294LTCFLAGS=$lt_CFLAGS
21295
21296# Take the output of nm and produce a listing of raw symbols and C names.
21297global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21298
21299# Transform the output of nm in a proper C declaration.
21300global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21301
21302# Transform the output of nm into a list of symbols to manually relocate.
21303global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21304
21305# Transform the output of nm in a C name address pair.
21306global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21307
21308# Transform the output of nm in a C name address pair when lib prefix is needed.
21309global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21310
21311# The name lister interface.
21312nm_interface=$lt_lt_cv_nm_interface
21313
21314# Specify filename containing input files for \$NM.
21315nm_file_list_spec=$lt_nm_file_list_spec
21316
21317# The root where to search for dependent libraries,and where our libraries should be installed.
21318lt_sysroot=$lt_sysroot
21319
21320# Command to truncate a binary pipe.
21321lt_truncate_bin=$lt_lt_cv_truncate_bin
21322
21323# The name of the directory that contains temporary libtool files.
21324objdir=$objdir
21325
21326# Used to examine libraries when file_magic_cmd begins with "file".
21327MAGIC_CMD=$MAGIC_CMD
21328
21329# Must we lock files when doing compilation?
21330need_locks=$lt_need_locks
21331
21332# Manifest tool.
21333MANIFEST_TOOL=$lt_MANIFEST_TOOL
21334
21335# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21336DSYMUTIL=$lt_DSYMUTIL
21337
21338# Tool to change global to local symbols on Mac OS X.
21339NMEDIT=$lt_NMEDIT
21340
21341# Tool to manipulate fat objects and archives on Mac OS X.
21342LIPO=$lt_LIPO
21343
21344# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21345OTOOL=$lt_OTOOL
21346
21347# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21348OTOOL64=$lt_OTOOL64
21349
21350# Old archive suffix (normally "a").
21351libext=$libext
21352
21353# Shared library suffix (normally ".so").
21354shrext_cmds=$lt_shrext_cmds
21355
21356# The commands to extract the exported symbol list from a shared archive.
21357extract_expsyms_cmds=$lt_extract_expsyms_cmds
21358
21359# Variables whose values should be saved in libtool wrapper scripts and
21360# restored at link time.
21361variables_saved_for_relink=$lt_variables_saved_for_relink
21362
21363# Do we need the "lib" prefix for modules?
21364need_lib_prefix=$need_lib_prefix
21365
21366# Do we need a version for libraries?
21367need_version=$need_version
21368
21369# Library versioning type.
21370version_type=$version_type
21371
21372# Shared library runtime path variable.
21373runpath_var=$runpath_var
21374
21375# Shared library path variable.
21376shlibpath_var=$shlibpath_var
21377
21378# Is shlibpath searched before the hard-coded library search path?
21379shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21380
21381# Format of library name prefix.
21382libname_spec=$lt_libname_spec
21383
21384# List of archive names.  First name is the real one, the rest are links.
21385# The last name is the one that the linker finds with -lNAME
21386library_names_spec=$lt_library_names_spec
21387
21388# The coded name of the library, if different from the real name.
21389soname_spec=$lt_soname_spec
21390
21391# Permission mode override for installation of shared libraries.
21392install_override_mode=$lt_install_override_mode
21393
21394# Command to use after installation of a shared archive.
21395postinstall_cmds=$lt_postinstall_cmds
21396
21397# Command to use after uninstallation of a shared archive.
21398postuninstall_cmds=$lt_postuninstall_cmds
21399
21400# Commands used to finish a libtool library installation in a directory.
21401finish_cmds=$lt_finish_cmds
21402
21403# As "finish_cmds", except a single script fragment to be evaled but
21404# not shown.
21405finish_eval=$lt_finish_eval
21406
21407# Whether we should hardcode library paths into libraries.
21408hardcode_into_libs=$hardcode_into_libs
21409
21410# Compile-time system search path for libraries.
21411sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21412
21413# Detected run-time system search path for libraries.
21414sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21415
21416# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21417configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21418
21419# Whether dlopen is supported.
21420dlopen_support=$enable_dlopen
21421
21422# Whether dlopen of programs is supported.
21423dlopen_self=$enable_dlopen_self
21424
21425# Whether dlopen of statically linked programs is supported.
21426dlopen_self_static=$enable_dlopen_self_static
21427
21428# Commands to strip libraries.
21429old_striplib=$lt_old_striplib
21430striplib=$lt_striplib
21431
21432
21433# The linker used to build libraries.
21434LD=$lt_LD
21435
21436# How to create reloadable object files.
21437reload_flag=$lt_reload_flag
21438reload_cmds=$lt_reload_cmds
21439
21440# Commands used to build an old-style archive.
21441old_archive_cmds=$lt_old_archive_cmds
21442
21443# A language specific compiler.
21444CC=$lt_compiler
21445
21446# Is the compiler the GNU compiler?
21447with_gcc=$GCC
21448
21449# Compiler flag to turn off builtin functions.
21450no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21451
21452# Additional compiler flags for building library objects.
21453pic_flag=$lt_lt_prog_compiler_pic
21454
21455# How to pass a linker flag through the compiler.
21456wl=$lt_lt_prog_compiler_wl
21457
21458# Compiler flag to prevent dynamic linking.
21459link_static_flag=$lt_lt_prog_compiler_static
21460
21461# Does compiler simultaneously support -c and -o options?
21462compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21463
21464# Whether or not to add -lc for building shared libraries.
21465build_libtool_need_lc=$archive_cmds_need_lc
21466
21467# Whether or not to disallow shared libs when runtime libs are static.
21468allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21469
21470# Compiler flag to allow reflexive dlopens.
21471export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21472
21473# Compiler flag to generate shared objects directly from archives.
21474whole_archive_flag_spec=$lt_whole_archive_flag_spec
21475
21476# Whether the compiler copes with passing no objects directly.
21477compiler_needs_object=$lt_compiler_needs_object
21478
21479# Create an old-style archive from a shared archive.
21480old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21481
21482# Create a temporary old-style archive to link instead of a shared archive.
21483old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21484
21485# Commands used to build a shared archive.
21486archive_cmds=$lt_archive_cmds
21487archive_expsym_cmds=$lt_archive_expsym_cmds
21488
21489# Commands used to build a loadable module if different from building
21490# a shared archive.
21491module_cmds=$lt_module_cmds
21492module_expsym_cmds=$lt_module_expsym_cmds
21493
21494# Whether we are building with GNU ld or not.
21495with_gnu_ld=$lt_with_gnu_ld
21496
21497# Flag that allows shared libraries with undefined symbols to be built.
21498allow_undefined_flag=$lt_allow_undefined_flag
21499
21500# Flag that enforces no undefined symbols.
21501no_undefined_flag=$lt_no_undefined_flag
21502
21503# Flag to hardcode \$libdir into a binary during linking.
21504# This must work even if \$libdir does not exist
21505hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21506
21507# Whether we need a single "-rpath" flag with a separated argument.
21508hardcode_libdir_separator=$lt_hardcode_libdir_separator
21509
21510# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21511# DIR into the resulting binary.
21512hardcode_direct=$hardcode_direct
21513
21514# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21515# DIR into the resulting binary and the resulting library dependency is
21516# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21517# library is relocated.
21518hardcode_direct_absolute=$hardcode_direct_absolute
21519
21520# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21521# into the resulting binary.
21522hardcode_minus_L=$hardcode_minus_L
21523
21524# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21525# into the resulting binary.
21526hardcode_shlibpath_var=$hardcode_shlibpath_var
21527
21528# Set to "yes" if building a shared library automatically hardcodes DIR
21529# into the library and all subsequent libraries and executables linked
21530# against it.
21531hardcode_automatic=$hardcode_automatic
21532
21533# Set to yes if linker adds runtime paths of dependent libraries
21534# to runtime path list.
21535inherit_rpath=$inherit_rpath
21536
21537# Whether libtool must link a program against all its dependency libraries.
21538link_all_deplibs=$link_all_deplibs
21539
21540# Set to "yes" if exported symbols are required.
21541always_export_symbols=$always_export_symbols
21542
21543# The commands to list exported symbols.
21544export_symbols_cmds=$lt_export_symbols_cmds
21545
21546# Symbols that should not be listed in the preloaded symbols.
21547exclude_expsyms=$lt_exclude_expsyms
21548
21549# Symbols that must always be exported.
21550include_expsyms=$lt_include_expsyms
21551
21552# Commands necessary for linking programs (against libraries) with templates.
21553prelink_cmds=$lt_prelink_cmds
21554
21555# Commands necessary for finishing linking programs.
21556postlink_cmds=$lt_postlink_cmds
21557
21558# Specify filename containing input files.
21559file_list_spec=$lt_file_list_spec
21560
21561# How to hardcode a shared library path into an executable.
21562hardcode_action=$hardcode_action
21563
21564# ### END LIBTOOL CONFIG
21565
21566_LT_EOF
21567
21568    cat <<'_LT_EOF' >> "$cfgfile"
21569
21570# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21571
21572# func_munge_path_list VARIABLE PATH
21573# -----------------------------------
21574# VARIABLE is name of variable containing _space_ separated list of
21575# directories to be munged by the contents of PATH, which is string
21576# having a format:
21577# "DIR[:DIR]:"
21578#       string "DIR[ DIR]" will be prepended to VARIABLE
21579# ":DIR[:DIR]"
21580#       string "DIR[ DIR]" will be appended to VARIABLE
21581# "DIRP[:DIRP]::[DIRA:]DIRA"
21582#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21583#       "DIRA[ DIRA]" will be appended to VARIABLE
21584# "DIR[:DIR]"
21585#       VARIABLE will be replaced by "DIR[ DIR]"
21586func_munge_path_list ()
21587{
21588    case x$2 in
21589    x)
21590        ;;
21591    *:)
21592        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21593        ;;
21594    x:*)
21595        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21596        ;;
21597    *::*)
21598        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21599        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21600        ;;
21601    *)
21602        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21603        ;;
21604    esac
21605}
21606
21607
21608# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21609func_cc_basename ()
21610{
21611    for cc_temp in $*""; do
21612      case $cc_temp in
21613        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21614        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21615        \-*) ;;
21616        *) break;;
21617      esac
21618    done
21619    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21620}
21621
21622
21623# ### END FUNCTIONS SHARED WITH CONFIGURE
21624
21625_LT_EOF
21626
21627  case $host_os in
21628  aix3*)
21629    cat <<\_LT_EOF >> "$cfgfile"
21630# AIX sometimes has problems with the GCC collect2 program.  For some
21631# reason, if we set the COLLECT_NAMES environment variable, the problems
21632# vanish in a puff of smoke.
21633if test set != "${COLLECT_NAMES+set}"; then
21634  COLLECT_NAMES=
21635  export COLLECT_NAMES
21636fi
21637_LT_EOF
21638    ;;
21639  esac
21640
21641
21642
21643ltmain=$ac_aux_dir/ltmain.sh
21644
21645
21646  # We use sed instead of cat because bash on DJGPP gets confused if
21647  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21648  # text mode, it properly converts lines to CR/LF.  This bash problem
21649  # is reportedly fixed, but why not run on old versions too?
21650  $SED '$q' "$ltmain" >> "$cfgfile" \
21651     || (rm -f "$cfgfile"; exit 1)
21652
21653   mv -f "$cfgfile" "$ofile" ||
21654    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21655  chmod +x "$ofile"
21656
21657 ;;
21658
21659  esac
21660done # for ac_tag
21661
21662
21663as_fn_exit 0
21664_ACEOF
21665ac_clean_files=$ac_clean_files_save
21666
21667test $ac_write_fail = 0 ||
21668  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21669
21670
21671# configure is writing to config.log, and then calls config.status.
21672# config.status does its own redirection, appending to config.log.
21673# Unfortunately, on DOS this fails, as config.log is still kept open
21674# by configure, so config.status won't be able to write to it; its
21675# output is simply discarded.  So we exec the FD to /dev/null,
21676# effectively closing config.log, so it can be properly (re)opened and
21677# appended to by config.status.  When coming back to configure, we
21678# need to make the FD available again.
21679if test "$no_create" != yes; then
21680  ac_cs_success=:
21681  ac_config_status_args=
21682  test "$silent" = yes &&
21683    ac_config_status_args="$ac_config_status_args --quiet"
21684  exec 5>/dev/null
21685  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21686  exec 5>>config.log
21687  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21688  # would make configure fail if this is the last instruction.
21689  $ac_cs_success || as_fn_exit 1
21690fi
21691if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21693printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21694fi
21695
21696
21697
21698