configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for MPFR 4.1.0.
4 #
5 #
6 # Copyright 1999-2020 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-2012 Free Software Foundation, Inc.
29 #
30 #
31 # This configure script is free software; the Free Software Foundation
32 # gives unlimited permission to copy, distribute and modify it.
33 ## -------------------- ##
34 ## M4sh Initialization. ##
35 ## -------------------- ##
36
37 # Be more Bourne compatible
38 DUALCASE=1; export DUALCASE # for MKS sh
39 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
40 emulate sh
41 NULLCMD=:
42 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43 # is contrary to our usage. Disable this feature.
44 alias -g '${1+"$@"}'='"$@"'
45 setopt NO_GLOB_SUBST
46 else
47 case `(set -o) 2>/dev/null` in #(
48 *posix*) :
49 set -o posix ;; #(
50 *) :
51 ;;
52 esac
53 fi
54
55
56 as_nl='
57 '
58 export as_nl
59 # Printing a long string crashes Solaris 7 /usr/bin/printf.
60 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
62 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
63 # Prefer a ksh shell builtin over an external printf program on Solaris,
64 # but without wasting forks for bash or zsh.
65 if test -z "$BASH_VERSION$ZSH_VERSION" \
66 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
67 as_echo='print -r --'
68 as_echo_n='print -rn --'
69 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
70 as_echo='printf %s\n'
71 as_echo_n='printf %s'
72 else
73 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
75 as_echo_n='/usr/ucb/echo -n'
76 else
77 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
78 as_echo_n_body='eval
79 arg=$1;
80 case $arg in #(
81 *"$as_nl"*)
82 expr "X$arg" : "X\\(.*\\)$as_nl";
83 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
84 esac;
85 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
86 '
87 export as_echo_n_body
88 as_echo_n='sh -c $as_echo_n_body as_echo'
89 fi
90 export as_echo_body
91 as_echo='sh -c $as_echo_body as_echo'
92 fi
93
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
96 PATH_SEPARATOR=:
97 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
99 PATH_SEPARATOR=';'
100 }
101 fi
102
103
104 # IFS
105 # We need space, tab and new line, in precisely that order. Quoting is
106 # there to prevent editors from complaining about space-tab.
107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
108 # splitting by setting IFS to empty value.)
109 IFS=" "" $as_nl"
110
111 # Find who we are. Look in the path if we contain no directory separator.
112 as_myself=
113 case $0 in #((
114 *[\\/]* ) as_myself=$0 ;;
115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 for as_dir in $PATH
117 do
118 IFS=$as_save_IFS
119 test -z "$as_dir" && as_dir=.
120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 done
122 IFS=$as_save_IFS
123
124 ;;
125 esac
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.
128 if test "x$as_myself" = x; then
129 as_myself=$0
130 fi
131 if test ! -f "$as_myself"; then
132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133 exit 1
134 fi
135
136 # Unset variables that we do not need and which cause bugs (e.g. in
137 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
138 # suppresses any "Segmentation fault" message there. '((' could
139 # trigger a bug in pdksh 5.2.14.
140 for as_var in BASH_ENV ENV MAIL MAILPATH
141 do eval test x\${$as_var+set} = xset \
142 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
143 done
144 PS1='$ '
145 PS2='> '
146 PS4='+ '
147
148 # NLS nuisances.
149 LC_ALL=C
150 export LC_ALL
151 LANGUAGE=C
152 export LANGUAGE
153
154 # CDPATH.
155 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156
157 # Use a proper internal environment variable to ensure we don't fall
158 # into an infinite loop, continuously re-executing ourselves.
159 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
160 _as_can_reexec=no; export _as_can_reexec;
161 # We cannot yet assume a decent shell, so we have to provide a
162 # neutralization value for shells without unset; and this also
163 # works around shells that cannot unset nonexistent variables.
164 # Preserve -v and -x to the replacement shell.
165 BASH_ENV=/dev/null
166 ENV=/dev/null
167 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
168 case $- in # ((((
169 *v*x* | *x*v* ) as_opts=-vx ;;
170 *v* ) as_opts=-v ;;
171 *x* ) as_opts=-x ;;
172 * ) as_opts= ;;
173 esac
174 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
175 # Admittedly, this is quite paranoid, since all the known shells bail
176 # out after a failed `exec'.
177 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
178 as_fn_exit 255
179 fi
180 # We don't want this to propagate to other subprocesses.
181 { _as_can_reexec=; unset _as_can_reexec;}
182 if test "x$CONFIG_SHELL" = x; then
183 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
184 emulate sh
185 NULLCMD=:
186 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
187 # is contrary to our usage. Disable this feature.
188 alias -g '\${1+\"\$@\"}'='\"\$@\"'
189 setopt NO_GLOB_SUBST
190 else
191 case \`(set -o) 2>/dev/null\` in #(
192 *posix*) :
193 set -o posix ;; #(
194 *) :
195 ;;
196 esac
197 fi
198 "
199 as_required="as_fn_return () { (exit \$1); }
200 as_fn_success () { as_fn_return 0; }
201 as_fn_failure () { as_fn_return 1; }
202 as_fn_ret_success () { return 0; }
203 as_fn_ret_failure () { return 1; }
204
205 exitcode=0
206 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
207 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
208 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
209 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
210 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
211
212 else
213 exitcode=1; echo positional parameters were not saved.
214 fi
215 test x\$exitcode = x0 || exit 1
216 test -x / || exit 1"
217 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
218 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
219 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
220 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
221 test \$(( 1 + 1 )) = 2 || exit 1
222
223 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
225 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
226 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
227 PATH=/empty FPATH=/empty; export PATH FPATH
228 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
229 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
230 if (eval "$as_required") 2>/dev/null; then :
231 as_have_required=yes
232 else
233 as_have_required=no
234 fi
235 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
236
237 else
238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
239 as_found=false
240 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
241 do
242 IFS=$as_save_IFS
243 test -z "$as_dir" && as_dir=.
244 as_found=:
245 case $as_dir in #(
246 /*)
247 for as_base in sh bash ksh sh5; do
248 # Try only shells that exist, to save several forks.
249 as_shell=$as_dir/$as_base
250 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
251 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
252 CONFIG_SHELL=$as_shell as_have_required=yes
253 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
254 break 2
255 fi
256 fi
257 done;;
258 esac
259 as_found=false
260 done
261 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
262 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
263 CONFIG_SHELL=$SHELL as_have_required=yes
264 fi; }
265 IFS=$as_save_IFS
266
267
268 if test "x$CONFIG_SHELL" != x; then :
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.
274 BASH_ENV=/dev/null
275 ENV=/dev/null
276 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
277 case $- in # ((((
278 *v*x* | *x*v* ) as_opts=-vx ;;
279 *v* ) as_opts=-v ;;
280 *x* ) as_opts=-x ;;
281 * ) as_opts= ;;
282 esac
283 exec $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'.
286 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
287 exit 255
288 fi
289
290 if test x$as_have_required = xno; then :
291 $as_echo "$0: This script requires a shell more modern than all"
292 $as_echo "$0: the shells that I found on your system."
293 if test x${ZSH_VERSION+set} = xset ; then
294 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
295 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
296 else
297 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
298 $0: including any error possibly output before this
299 $0: message. Then install a modern shell, or manually run
300 $0: the script under such a shell if you do have one."
301 fi
302 exit 1
303 fi
304 fi
305 fi
306 SHELL=${CONFIG_SHELL-/bin/sh}
307 export SHELL
308 # Unset more variables known to interfere with behavior of common tools.
309 CLICOLOR_FORCE= GREP_OPTIONS=
310 unset CLICOLOR_FORCE GREP_OPTIONS
311
312 ## --------------------- ##
313 ## M4sh Shell Functions. ##
314 ## --------------------- ##
315 # as_fn_unset VAR
316 # ---------------
317 # Portably unset VAR.
318 as_fn_unset ()
319 {
320 { eval $1=; unset $1;}
321 }
322 as_unset=as_fn_unset
323
324 # as_fn_set_status STATUS
325 # -----------------------
326 # Set $? to STATUS, without forking.
327 as_fn_set_status ()
328 {
329 return $1
330 } # as_fn_set_status
331
332 # as_fn_exit STATUS
333 # -----------------
334 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
335 as_fn_exit ()
336 {
337 set +e
338 as_fn_set_status $1
339 exit $1
340 } # as_fn_exit
341
342 # as_fn_mkdir_p
343 # -------------
344 # Create "$as_dir" as a directory, including parents if necessary.
345 as_fn_mkdir_p ()
346 {
347
348 case $as_dir in #(
349 -*) as_dir=./$as_dir;;
350 esac
351 test -d "$as_dir" || eval $as_mkdir_p || {
352 as_dirs=
353 while :; do
354 case $as_dir in #(
355 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
356 *) as_qdir=$as_dir;;
357 esac
358 as_dirs="'$as_qdir' $as_dirs"
359 as_dir=`$as_dirname -- "$as_dir" ||
360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
361 X"$as_dir" : 'X\(//\)[^/]' \| \
362 X"$as_dir" : 'X\(//\)$' \| \
363 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
364 $as_echo X"$as_dir" |
365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\/\)[^/].*/{
370 s//\1/
371 q
372 }
373 /^X\(\/\/\)$/{
374 s//\1/
375 q
376 }
377 /^X\(\/\).*/{
378 s//\1/
379 q
380 }
381 s/.*/./; q'`
382 test -d "$as_dir" && break
383 done
384 test -z "$as_dirs" || eval "mkdir $as_dirs"
385 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
386
387
388 } # as_fn_mkdir_p
389
390 # as_fn_executable_p FILE
391 # -----------------------
392 # Test if FILE is an executable regular file.
393 as_fn_executable_p ()
394 {
395 test -f "$1" && test -x "$1"
396 } # as_fn_executable_p
397 # as_fn_append VAR VALUE
398 # ----------------------
399 # Append the text in VALUE to the end of the definition contained in VAR. Take
400 # advantage of any shell optimizations that allow amortized linear growth over
401 # repeated appends, instead of the typical quadratic growth present in naive
402 # implementations.
403 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
404 eval 'as_fn_append ()
405 {
406 eval $1+=\$2
407 }'
408 else
409 as_fn_append ()
410 {
411 eval $1=\$$1\$2
412 }
413 fi # as_fn_append
414
415 # as_fn_arith ARG...
416 # ------------------
417 # Perform arithmetic evaluation on the ARGs, and store the result in the
418 # global $as_val. Take advantage of shells that can avoid forks. The arguments
419 # must be portable across $(()) and expr.
420 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
421 eval 'as_fn_arith ()
422 {
423 as_val=$(( $* ))
424 }'
425 else
426 as_fn_arith ()
427 {
428 as_val=`expr "$@" || test $? -eq 1`
429 }
430 fi # as_fn_arith
431
432
433 # as_fn_error STATUS ERROR [LINENO LOG_FD]
434 # ----------------------------------------
435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
437 # script with STATUS, using 1 if that was 0.
438 as_fn_error ()
439 {
440 as_status=$1; test $as_status -eq 0 && as_status=1
441 if test "$4"; then
442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
443 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
444 fi
445 $as_echo "$as_me: error: $2" >&2
446 as_fn_exit $as_status
447 } # as_fn_error
448
449 if expr a : '\(a\)' >/dev/null 2>&1 &&
450 test "X`expr 00001 : '.*\(...\)'`" = X001; then
451 as_expr=expr
452 else
453 as_expr=false
454 fi
455
456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
457 as_basename=basename
458 else
459 as_basename=false
460 fi
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
466 fi
467
468 as_me=`$as_basename -- "$0" ||
469 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
470 X"$0" : 'X\(//\)$' \| \
471 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
472 $as_echo X/"$0" |
473 sed '/^.*\/\([^/][^/]*\)\/*$/{
474 s//\1/
475 q
476 }
477 /^X\/\(\/\/\)$/{
478 s//\1/
479 q
480 }
481 /^X\/\(\/\).*/{
482 s//\1/
483 q
484 }
485 s/.*/./; q'`
486
487 # Avoid depending upon Character Ranges.
488 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
489 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
490 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
491 as_cr_digits='0123456789'
492 as_cr_alnum=$as_cr_Letters$as_cr_digits
493
494
495 as_lineno_1=$LINENO as_lineno_1a=$LINENO
496 as_lineno_2=$LINENO as_lineno_2a=$LINENO
497 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
498 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
499 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
500 sed -n '
501 p
502 /[$]LINENO/=
503 ' <$as_myself |
504 sed '
505 s/[$]LINENO.*/&-/
506 t lineno
507 b
508 :lineno
509 N
510 :loop
511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
512 t loop
513 s/-\n.*//
514 ' >$as_me.lineno &&
515 chmod +x "$as_me.lineno" ||
516 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
517
518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
519 # already done that, so ensure we don't try to do so again and fall
520 # in an infinite loop. This has already happened in practice.
521 _as_can_reexec=no; export _as_can_reexec
522 # Don't try to exec as it changes $[0], causing all sort of problems
523 # (the dirname of $[0] is not the place where we might find the
524 # original and so on. Autoconf is especially sensitive to this).
525 . "./$as_me.lineno"
526 # Exit status is that of the last command.
527 exit
528 }
529
530 ECHO_C= ECHO_N= ECHO_T=
531 case `echo -n x` in #(((((
532 -n*)
533 case `echo 'xy\c'` in
534 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
535 xy) ECHO_C='\c';;
536 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
537 ECHO_T=' ';;
538 esac;;
539 *)
540 ECHO_N='-n';;
541 esac
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586 SHELL=${CONFIG_SHELL-/bin/sh}
587
588
589 test -n "$DJDIR" || exec 7<&0 </dev/null
590 exec 6>&1
591
592 # Name of the host.
593 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
594 # so uname gets run too.
595 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
596
597 #
598 # Initializations.
599 #
600 ac_default_prefix=/usr/local
601 ac_clean_files=
602 ac_config_libobj_dir=.
603 LIBOBJS=
604 cross_compiling=no
605 subdirs=
606 MFLAGS=
607 MAKEFLAGS=
608
609 # Identity of this package.
610 PACKAGE_NAME='MPFR'
611 PACKAGE_TARNAME='mpfr'
612 PACKAGE_VERSION='4.1.0'
613 PACKAGE_STRING='MPFR 4.1.0'
614 PACKAGE_BUGREPORT=''
615 PACKAGE_URL=''
616
617 # Factoring default headers for most tests.
618 ac_includes_default="\
619 #include <stdio.h>
620 #ifdef HAVE_SYS_TYPES_H
621 # include <sys/types.h>
622 #endif
623 #ifdef HAVE_SYS_STAT_H
624 # include <sys/stat.h>
625 #endif
626 #ifdef STDC_HEADERS
627 # include <stdlib.h>
628 # include <stddef.h>
629 #else
630 # ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 # endif
633 #endif
634 #ifdef HAVE_STRING_H
635 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
636 # include <memory.h>
637 # endif
638 # include <string.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 DATAFILES
658 LIBMPFR_LDFLAGS
659 MPFR_LDFLAGS
660 ALLOCA
661 PTHREAD_CFLAGS
662 PTHREAD_LIBS
663 PTHREAD_CC
664 ax_pthread_config
665 MPFR_LIBQUADMATH
666 MPFR_LIBM
667 TUNE_LIBS
668 LT_SYS_LIBRARY_PATH
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 LN_S
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 LIBTOOL
683 OBJDUMP
684 DLLTOOL
685 AS
686 ac_ct_AR
687 AR
688 CPP
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 MINI_GMP_FALSE
706 MINI_GMP_TRUE
707 mini_gmp_path
708 SED
709 EGREP
710 GREP
711 host_os
712 host_vendor
713 host_cpu
714 host
715 build_os
716 build_vendor
717 build_cpu
718 build
719 MAINT
720 MAINTAINER_MODE_FALSE
721 MAINTAINER_MODE_TRUE
722 AM_BACKSLASH
723 AM_DEFAULT_VERBOSITY
724 AM_DEFAULT_V
725 AM_V
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 runstatedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL
788 am__quote'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_maintainer_mode
794 with_gmp_include
795 with_gmp_lib
796 with_gmp
797 with_gmp_build
798 with_mini_gmp
799 with_mulhigh_size
800 enable_gmp_internals
801 enable_assert
802 enable_logging
803 enable_thread_safe
804 enable_shared_cache
805 enable_warnings
806 enable_tests_timeout
807 enable_tune_for_coverage
808 enable_decimal_float
809 enable_float128
810 enable_debug_prediction
811 enable_lto
812 enable_formally_proven_code
813 enable_dependency_tracking
814 enable_shared
815 enable_static
816 with_pic
817 enable_fast_install
818 with_aix_soname
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 '
823 ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 CC
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 CPP
832 LT_SYS_LIBRARY_PATH'
833
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 runstatedir='${localstatedir}/run'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
893 fi
894
895 case $ac_option in
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
899 esac
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
911
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
926
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
931
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
964
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1000
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1005
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1035
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1109
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -runstatedir | --runstatedir | --runstatedi | --runstated \
1125 | --runstate | --runstat | --runsta | --runst | --runs \
1126 | --run | --ru | --r)
1127 ac_prev=runstatedir ;;
1128 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1129 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1130 | --run=* | --ru=* | --r=*)
1131 runstatedir=$ac_optarg ;;
1132
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
1137 sbindir=$ac_optarg ;;
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
1148 sharedstatedir=$ac_optarg ;;
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
1153 site=$ac_optarg ;;
1154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1177
1178 -with-* | --with-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
1193
1194 -without-* | --without-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1219 x_includes=$ac_optarg ;;
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1226 x_libraries=$ac_optarg ;;
1227
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1230 ;;
1231
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1238 esac
1239 eval $ac_envvar=\$ac_optarg
1240 export $ac_envvar ;;
1241
1242 *)
1243 # FIXME: should be removed in autoconf 3.0.
1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 ;;
1249
1250 esac
1251 done
1252
1253 if test -n "$ac_prev"; then
1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $? "missing argument to $ac_option"
1256 fi
1257
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264 fi
1265
1266 # Check all directory arguments for consistency.
1267 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir runstatedir
1271 do
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
1280 case $ac_val in
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 esac
1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1347 fi
1348 else
1349 ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures MPFR 4.1.0 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/mpfr]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437 _ACEOF
1438
1439 cat <<\_ACEOF
1440
1441 Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445
1446 System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453 case $ac_init_help in
1454 short | recursive ) echo "Configuration of MPFR 4.1.0:";;
1455 esac
1456 cat <<\_ACEOF
1457
1458 Optional Features:
1459 --disable-option-checking ignore unrecognized --enable/--with options
1460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1462 --enable-silent-rules less verbose build output (undo: "make V=1")
1463 --disable-silent-rules verbose build output (undo: "make V=0")
1464 --disable-maintainer-mode
1465 disable make rules and dependencies not useful (and
1466 sometimes confusing) to the casual installer
1467 --enable-gmp-internals enable use of GMP undocumented functions [default=no]
1468 --enable-assert enable ASSERT checking [default=no]
1469 --enable-logging enable MPFR logging (needs nested functions
1470 and the 'cleanup' attribute) [default=no]
1471 --disable-thread-safe explicitly disable TLS support
1472 --enable-thread-safe build MPFR as thread safe, i.e. with TLS support
1473 (the system must support it) [default=autodetect]
1474 --enable-shared-cache enable use of caches shared by all threads,
1475 for all MPFR constants. It usually makes MPFR
1476 dependent on PTHREAD [default=no]
1477 --enable-warnings allow MPFR to output warnings to stderr [default=no]
1478 --enable-tests-timeout=NUM
1479 [for developers] enable timeout for test programs
1480 (NUM seconds, <= 9999) [default=no]; if this is
1481 enabled, the environment variable $MPFR_TESTS_TIMEOUT
1482 overrides NUM (0: no timeout)
1483 --enable-tune-for-coverage
1484 [for developers] tune MPFR for coverage tests
1485 --disable-decimal-float explicitly disable decimal floats support
1486 --enable-decimal-float build conversion functions from/to decimal floats
1487 (see INSTALL file for details) [default=auto]
1488 --disable-float128 explicitly disable binary128 support
1489 --enable-float128 build conversion functions from/to binary128
1490 (_Float128 or __float128) [default=autodetect]
1491 --enable-debug-prediction
1492 [for developers] enable debug of branch prediction
1493 (for x86 and x86-64 with GCC, static libs)
1494 --enable-lto build MPFR with link-time-optimization
1495 (experimental) [default: no]
1496 --enable-formally-proven-code
1497 use formally proven code when available
1498 (needs a C99 compiler) [default=no]
1499 --enable-dependency-tracking
1500 do not reject slow dependency extractors
1501 --disable-dependency-tracking
1502 speeds up one-time build
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-static[=PKGS] build static libraries [default=yes]
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508
1509 Optional Packages:
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-gmp-include=DIR GMP include directory
1513 --with-gmp-lib=DIR GMP lib directory
1514 --with-gmp=DIR GMP install directory
1515 --with-gmp-build=DIR GMP build directory (please read INSTALL file)
1516 --with-mini-gmp=DIR use mini-gmp (sources in DIR) instead of GMP
1517 (experimental, please read doc/mini-gmp file)
1518 --with-mulhigh-size=NUM internal threshold table for mulhigh
1519 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1520 both]
1521 --with-aix-soname=aix|svr4|both
1522 shared library versioning (aka "SONAME") variant to
1523 provide on AIX, [default=aix].
1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1525 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1526 compiler's sysroot if not specified).
1527
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 CPP C preprocessor
1537 LT_SYS_LIBRARY_PATH
1538 User-defined run-time library search path.
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to the package provider.
1544 _ACEOF
1545 ac_status=$?
1546 fi
1547
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 continue
1554 ac_builddir=.
1555
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *)
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1571
1572 case $srcdir in
1573 .) # We are building in place.
1574 ac_srcdir=.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1596 else
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1600 done
1601 fi
1602
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605 cat <<\_ACEOF
1606 MPFR configure 4.1.0
1607 generated by GNU Autoconf 2.69
1608
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612
1613
1614 Copyright 1999-2020 Free Software Foundation, Inc.
1615 Contributed by the AriC and Caramba projects, INRIA.
1616
1617 This file is part of the GNU MPFR Library.
1618
1619 The GNU MPFR Library is free software; you can redistribute it and/or modify
1620 it under the terms of the GNU Lesser General Public License as published
1621 by the Free Software Foundation; either version 3 of the License, or (at
1622 your option) any later version.
1623
1624 The GNU MPFR Library is distributed in the hope that it will be useful, but
1625 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1626 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1627 License for more details.
1628
1629 You should have received a copy of the GNU Lesser General Public License
1630 along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
1631 https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
1632 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
1633
1634 _ACEOF
1635 exit
1636 fi
1637
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1641
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674 fi
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_compile
1679
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } > conftest.i && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_cpp
1716
1717 # ac_fn_c_try_link LINENO
1718 # -----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded.
1720 ac_fn_c_try_link ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1725 case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
1744 test -x conftest$ac_exeext
1745 }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752 fi
1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755 # interfere with the next link command; also delete a directory that is
1756 # left behind by Apple's compiler. We do this before executing the actions.
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_link
1762
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 $4
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 eval "$3=yes"
1782 else
1783 eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_compile
1793
1794 # ac_fn_c_try_run LINENO
1795 # ----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797 # that executables *can* be run.
1798 ac_fn_c_try_run ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812 { { case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_try") 2>&5
1819 ac_status=$?
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; }; }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: program exited with status $ac_status" >&5
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=$ac_status
1829 fi
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_run
1835
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1852
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1857
1858 #ifdef __STDC__
1859 # include <limits.h>
1860 #else
1861 # include <assert.h>
1862 #endif
1863
1864 #undef $2
1865
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1869 #ifdef __cplusplus
1870 extern "C"
1871 #endif
1872 char $2 ();
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1877 choke me
1878 #endif
1879
1880 int
1881 main (void)
1882 {
1883 return $2 ();
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_link "$LINENO"; then :
1889 eval "$3=yes"
1890 else
1891 eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1907 # accordingly.
1908 ac_fn_c_check_header_mongrel ()
1909 {
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if eval \${$3+:} false; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1916 fi
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 else
1921 # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $4
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_header_compiler=yes
1931 else
1932 ac_header_compiler=no
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1937
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_cpp "$LINENO"; then :
1946 ac_header_preproc=yes
1947 else
1948 ac_header_preproc=no
1949 fi
1950 rm -f conftest.err conftest.i conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1953
1954 # So? What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1956 yes:no: )
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 ;;
1962 no:yes:* )
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 ;;
1974 esac
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1979 else
1980 eval "$3=\$ac_header_compiler"
1981 fi
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 fi
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_header_mongrel
1989
1990 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1991 # ----------------------------------------------------
1992 # Tries to find if the field MEMBER exists in type AGGR, after including
1993 # INCLUDES, setting cache variable VAR accordingly.
1994 ac_fn_c_check_member ()
1995 {
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1998 $as_echo_n "checking for $2.$3... " >&6; }
1999 if eval \${$4+:} false; then :
2000 $as_echo_n "(cached) " >&6
2001 else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $5
2005 int
2006 main (void)
2007 {
2008 static $2 ac_aggr;
2009 if (ac_aggr.$3)
2010 return 0;
2011 ;
2012 return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 eval "$4=yes"
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $5
2021 int
2022 main (void)
2023 {
2024 static $2 ac_aggr;
2025 if (sizeof ac_aggr.$3)
2026 return 0;
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$4=yes"
2033 else
2034 eval "$4=no"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$4
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045 } # ac_fn_c_check_member
2046
2047 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2048 # -------------------------------------------
2049 # Tests whether TYPE exists after having included INCLUDES, setting cache
2050 # variable VAR accordingly.
2051 ac_fn_c_check_type ()
2052 {
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2058 else
2059 eval "$3=no"
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 $4
2063 int
2064 main (void)
2065 {
2066 if (sizeof ($2))
2067 return 0;
2068 ;
2069 return 0;
2070 }
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $4
2076 int
2077 main (void)
2078 {
2079 if (sizeof (($2)))
2080 return 0;
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086
2087 else
2088 eval "$3=yes"
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 fi
2094 eval ac_res=\$$3
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098
2099 } # ac_fn_c_check_type
2100
2101 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2102 # --------------------------------------------
2103 # Tries to find the compile-time value of EXPR in a program that includes
2104 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2105 # computed
2106 ac_fn_c_compute_int ()
2107 {
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if test "$cross_compiling" = yes; then
2110 # Depending upon the size, compute the lo and hi bounds.
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 $4
2114 int
2115 main (void)
2116 {
2117 static int test_array [1 - 2 * !(($2) >= 0)];
2118 test_array [0] = 0;
2119 return test_array [0];
2120
2121 ;
2122 return 0;
2123 }
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 ac_lo=0 ac_mid=0
2127 while :; do
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 $4
2131 int
2132 main (void)
2133 {
2134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2135 test_array [0] = 0;
2136 return test_array [0];
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_hi=$ac_mid; break
2144 else
2145 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2146 if test $ac_lo -le $ac_mid; then
2147 ac_lo= ac_hi=
2148 break
2149 fi
2150 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 else
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 $4
2158 int
2159 main (void)
2160 {
2161 static int test_array [1 - 2 * !(($2) < 0)];
2162 test_array [0] = 0;
2163 return test_array [0];
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_hi=-1 ac_mid=-1
2171 while :; do
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main (void)
2177 {
2178 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2179 test_array [0] = 0;
2180 return test_array [0];
2181
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_lo=$ac_mid; break
2188 else
2189 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2190 if test $ac_mid -le $ac_hi; then
2191 ac_lo= ac_hi=
2192 break
2193 fi
2194 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 done
2198 else
2199 ac_lo= ac_hi=
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 # Binary search between lo and hi bounds.
2205 while test "x$ac_lo" != "x$ac_hi"; do
2206 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 int
2211 main (void)
2212 {
2213 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2214 test_array [0] = 0;
2215 return test_array [0];
2216
2217 ;
2218 return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 ac_hi=$ac_mid
2223 else
2224 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 done
2228 case $ac_lo in #((
2229 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2230 '') ac_retval=1 ;;
2231 esac
2232 else
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2235 $4
2236 static long int longval (void) { return $2; }
2237 static unsigned long int ulongval (void) { return $2; }
2238 #include <stdio.h>
2239 #include <stdlib.h>
2240 int
2241 main (void)
2242 {
2243
2244 FILE *f = fopen ("conftest.val", "w");
2245 if (! f)
2246 return 1;
2247 if (($2) < 0)
2248 {
2249 long int i = longval ();
2250 if (i != ($2))
2251 return 1;
2252 fprintf (f, "%ld", i);
2253 }
2254 else
2255 {
2256 unsigned long int i = ulongval ();
2257 if (i != ($2))
2258 return 1;
2259 fprintf (f, "%lu", i);
2260 }
2261 /* Do not output a trailing newline, as this causes \r\n confusion
2262 on some platforms. */
2263 return ferror (f) || fclose (f) != 0;
2264
2265 ;
2266 return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_c_try_run "$LINENO"; then :
2270 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2271 else
2272 ac_retval=1
2273 fi
2274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2275 conftest.$ac_objext conftest.beam conftest.$ac_ext
2276 rm -f conftest.val
2277
2278 fi
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2281
2282 } # ac_fn_c_compute_int
2283 cat >config.log <<_ACEOF
2284 This file contains any messages produced by compilers while
2285 running configure, to aid debugging if configure makes a mistake.
2286
2287 It was created by MPFR $as_me 4.1.0, which was
2288 generated by GNU Autoconf 2.69. Invocation command line was
2289
2290 $ $0 $@
2291
2292 _ACEOF
2293 exec 5>>config.log
2294 {
2295 cat <<_ASUNAME
2296 ## --------- ##
2297 ## Platform. ##
2298 ## --------- ##
2299
2300 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305
2306 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2308
2309 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2310 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2311 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2313 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2314 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2315 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2316
2317 _ASUNAME
2318
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 $as_echo "PATH: $as_dir"
2325 done
2326 IFS=$as_save_IFS
2327
2328 } >&5
2329
2330 cat >&5 <<_ACEOF
2331
2332
2333 ## ----------- ##
2334 ## Core tests. ##
2335 ## ----------- ##
2336
2337 _ACEOF
2338
2339
2340 # Keep a trace of the command line.
2341 # Strip out --no-create and --no-recursion so they do not pile up.
2342 # Strip out --silent because we don't want to record it for future runs.
2343 # Also quote any args containing shell meta-characters.
2344 # Make two passes to allow for proper duplicate-argument suppression.
2345 ac_configure_args=
2346 ac_configure_args0=
2347 ac_configure_args1=
2348 ac_must_keep_next=false
2349 for ac_pass in 1 2
2350 do
2351 for ac_arg
2352 do
2353 case $ac_arg in
2354 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356 | -silent | --silent | --silen | --sile | --sil)
2357 continue ;;
2358 *\'*)
2359 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2360 esac
2361 case $ac_pass in
2362 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2363 2)
2364 as_fn_append ac_configure_args1 " '$ac_arg'"
2365 if test $ac_must_keep_next = true; then
2366 ac_must_keep_next=false # Got value, back to normal.
2367 else
2368 case $ac_arg in
2369 *=* | --config-cache | -C | -disable-* | --disable-* \
2370 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372 | -with-* | --with-* | -without-* | --without-* | --x)
2373 case "$ac_configure_args0 " in
2374 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2375 esac
2376 ;;
2377 -* ) ac_must_keep_next=true ;;
2378 esac
2379 fi
2380 as_fn_append ac_configure_args " '$ac_arg'"
2381 ;;
2382 esac
2383 done
2384 done
2385 { ac_configure_args0=; unset ac_configure_args0;}
2386 { ac_configure_args1=; unset ac_configure_args1;}
2387
2388 # When interrupted or exit'd, cleanup temporary files, and complete
2389 # config.log. We remove comments because anyway the quotes in there
2390 # would cause problems or look ugly.
2391 # WARNING: Use '\'' to represent an apostrophe within the trap.
2392 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393 trap 'exit_status=$?
2394 # Save into config.log some information that might help in debugging.
2395 {
2396 echo
2397
2398 $as_echo "## ---------------- ##
2399 ## Cache variables. ##
2400 ## ---------------- ##"
2401 echo
2402 # The following way of writing the cache mishandles newlines in values,
2403 (
2404 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2405 eval ac_val=\$$ac_var
2406 case $ac_val in #(
2407 *${as_nl}*)
2408 case $ac_var in #(
2409 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2410 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2411 esac
2412 case $ac_var in #(
2413 _ | IFS | as_nl) ;; #(
2414 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2415 *) { eval $ac_var=; unset $ac_var;} ;;
2416 esac ;;
2417 esac
2418 done
2419 (set) 2>&1 |
2420 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2421 *${as_nl}ac_space=\ *)
2422 sed -n \
2423 "s/'\''/'\''\\\\'\'''\''/g;
2424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2425 ;; #(
2426 *)
2427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2428 ;;
2429 esac |
2430 sort
2431 )
2432 echo
2433
2434 $as_echo "## ----------------- ##
2435 ## Output variables. ##
2436 ## ----------------- ##"
2437 echo
2438 for ac_var in $ac_subst_vars
2439 do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in
2442 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443 esac
2444 $as_echo "$ac_var='\''$ac_val'\''"
2445 done | sort
2446 echo
2447
2448 if test -n "$ac_subst_files"; then
2449 $as_echo "## ------------------- ##
2450 ## File substitutions. ##
2451 ## ------------------- ##"
2452 echo
2453 for ac_var in $ac_subst_files
2454 do
2455 eval ac_val=\$$ac_var
2456 case $ac_val in
2457 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458 esac
2459 $as_echo "$ac_var='\''$ac_val'\''"
2460 done | sort
2461 echo
2462 fi
2463
2464 if test -s confdefs.h; then
2465 $as_echo "## ----------- ##
2466 ## confdefs.h. ##
2467 ## ----------- ##"
2468 echo
2469 cat confdefs.h
2470 echo
2471 fi
2472 test "$ac_signal" != 0 &&
2473 $as_echo "$as_me: caught signal $ac_signal"
2474 $as_echo "$as_me: exit $exit_status"
2475 } >&5
2476 rm -f core *.core core.conftest.* &&
2477 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2478 exit $exit_status
2479 ' 0
2480 for ac_signal in 1 2 13 15; do
2481 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2482 done
2483 ac_signal=0
2484
2485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2486 rm -f -r conftest* confdefs.h
2487
2488 $as_echo "/* confdefs.h */" > confdefs.h
2489
2490 # Predefined preprocessor variables.
2491
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_NAME "$PACKAGE_NAME"
2494 _ACEOF
2495
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2498 _ACEOF
2499
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2502 _ACEOF
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_STRING "$PACKAGE_STRING"
2506 _ACEOF
2507
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2510 _ACEOF
2511
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_URL "$PACKAGE_URL"
2514 _ACEOF
2515
2516
2517 # Let the site file select an alternate cache file if it wants to.
2518 # Prefer an explicitly selected file to automatically selected ones.
2519 ac_site_file1=NONE
2520 ac_site_file2=NONE
2521 if test -n "$CONFIG_SITE"; then
2522 # We do not want a PATH search for config.site.
2523 case $CONFIG_SITE in #((
2524 -*) ac_site_file1=./$CONFIG_SITE;;
2525 */*) ac_site_file1=$CONFIG_SITE;;
2526 *) ac_site_file1=./$CONFIG_SITE;;
2527 esac
2528 elif test "x$prefix" != xNONE; then
2529 ac_site_file1=$prefix/share/config.site
2530 ac_site_file2=$prefix/etc/config.site
2531 else
2532 ac_site_file1=$ac_default_prefix/share/config.site
2533 ac_site_file2=$ac_default_prefix/etc/config.site
2534 fi
2535 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2536 do
2537 test "x$ac_site_file" = xNONE && continue
2538 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2540 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541 sed 's/^/| /' "$ac_site_file" >&5
2542 . "$ac_site_file" \
2543 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 as_fn_error $? "failed to load site script $ac_site_file
2546 See \`config.log' for more details" "$LINENO" 5; }
2547 fi
2548 done
2549
2550 if test -r "$cache_file"; then
2551 # Some versions of bash will fail to source /dev/null (special files
2552 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2553 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2555 $as_echo "$as_me: loading cache $cache_file" >&6;}
2556 case $cache_file in
2557 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2558 *) . "./$cache_file";;
2559 esac
2560 fi
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2563 $as_echo "$as_me: creating cache $cache_file" >&6;}
2564 >$cache_file
2565 fi
2566
2567 # Check that the precious variables saved in the cache have kept the same
2568 # value.
2569 ac_cache_corrupted=false
2570 for ac_var in $ac_precious_vars; do
2571 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572 eval ac_new_set=\$ac_env_${ac_var}_set
2573 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574 eval ac_new_val=\$ac_env_${ac_var}_value
2575 case $ac_old_set,$ac_new_set in
2576 set,)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2578 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,set)
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2582 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2583 ac_cache_corrupted=: ;;
2584 ,);;
2585 *)
2586 if test "x$ac_old_val" != "x$ac_new_val"; then
2587 # differences in whitespace do not lead to failure.
2588 ac_old_val_w=`echo x $ac_old_val`
2589 ac_new_val_w=`echo x $ac_new_val`
2590 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2592 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2593 ac_cache_corrupted=:
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2596 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2597 eval $ac_var=\$ac_old_val
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2600 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2602 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2603 fi;;
2604 esac
2605 # Pass precious variables to config.status.
2606 if test "$ac_new_set" = set; then
2607 case $ac_new_val in
2608 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609 *) ac_arg=$ac_var=$ac_new_val ;;
2610 esac
2611 case " $ac_configure_args " in
2612 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2613 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614 esac
2615 fi
2616 done
2617 if $ac_cache_corrupted; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2622 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2623 fi
2624 ## -------------------- ##
2625 ## Main body of script. ##
2626 ## -------------------- ##
2627
2628 ac_ext=c
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633
2634
2635
2636 am__api_version='1.16'
2637
2638 ac_aux_dir=
2639 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2640 if test -f "$ac_dir/install-sh"; then
2641 ac_aux_dir=$ac_dir
2642 ac_install_sh="$ac_aux_dir/install-sh -c"
2643 break
2644 elif test -f "$ac_dir/install.sh"; then
2645 ac_aux_dir=$ac_dir
2646 ac_install_sh="$ac_aux_dir/install.sh -c"
2647 break
2648 elif test -f "$ac_dir/shtool"; then
2649 ac_aux_dir=$ac_dir
2650 ac_install_sh="$ac_aux_dir/shtool install -c"
2651 break
2652 fi
2653 done
2654 if test -z "$ac_aux_dir"; then
2655 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2656 fi
2657
2658 # These three variables are undocumented and unsupported,
2659 # and are intended to be withdrawn in a future Autoconf release.
2660 # They can cause serious problems if a builder's source tree is in a directory
2661 # whose full name contains unusual characters.
2662 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2663 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2664 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2665
2666
2667 # Find a good install program. We prefer a C program (faster),
2668 # so one script is as good as another. But avoid the broken or
2669 # incompatible versions:
2670 # SysV /etc/install, /usr/sbin/install
2671 # SunOS /usr/etc/install
2672 # IRIX /sbin/install
2673 # AIX /bin/install
2674 # AmigaOS /C/install, which installs bootblocks on floppy discs
2675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2678 # OS/2's system install, which has a completely different semantic
2679 # ./install, which can be erroneously created by make from ./install.sh.
2680 # Reject install programs that cannot install multiple files.
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2682 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2683 if test -z "$INSTALL"; then
2684 if ${ac_cv_path_install+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 # Account for people who put trailing slashes in PATH elements.
2693 case $as_dir/ in #((
2694 ./ | .// | /[cC]/* | \
2695 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2696 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2697 /usr/ucb/* ) ;;
2698 *)
2699 # OSF1 and SCO ODT 3.0 have their own names for install.
2700 # Don't use installbsd from OSF since it installs stuff as root
2701 # by default.
2702 for ac_prog in ginstall scoinst install; do
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2705 if test $ac_prog = install &&
2706 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707 # AIX install. It has an incompatible calling convention.
2708 :
2709 elif test $ac_prog = install &&
2710 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2711 # program-specific install script used by HP pwplus--don't use.
2712 :
2713 else
2714 rm -rf conftest.one conftest.two conftest.dir
2715 echo one > conftest.one
2716 echo two > conftest.two
2717 mkdir conftest.dir
2718 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2719 test -s conftest.one && test -s conftest.two &&
2720 test -s conftest.dir/conftest.one &&
2721 test -s conftest.dir/conftest.two
2722 then
2723 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2724 break 3
2725 fi
2726 fi
2727 fi
2728 done
2729 done
2730 ;;
2731 esac
2732
2733 done
2734 IFS=$as_save_IFS
2735
2736 rm -rf conftest.one conftest.two conftest.dir
2737
2738 fi
2739 if test "${ac_cv_path_install+set}" = set; then
2740 INSTALL=$ac_cv_path_install
2741 else
2742 # As a last resort, use the slow shell script. Don't cache a
2743 # value for INSTALL within a source directory, because that will
2744 # break other packages using the cache if that directory is
2745 # removed, or if the value is a relative name.
2746 INSTALL=$ac_install_sh
2747 fi
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2750 $as_echo "$INSTALL" >&6; }
2751
2752 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2753 # It thinks the first close brace ends the variable substitution.
2754 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2755
2756 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2757
2758 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2759
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2761 $as_echo_n "checking whether build environment is sane... " >&6; }
2762 # Reject unsafe characters in $srcdir or the absolute working directory
2763 # name. Accept space and tab only in the latter.
2764 am_lf='
2765 '
2766 case `pwd` in
2767 *[\\\"\#\$\&\'\`$am_lf]*)
2768 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2769 esac
2770 case $srcdir in
2771 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2772 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2773 esac
2774
2775 # Do 'set' in a subshell so we don't clobber the current shell's
2776 # arguments. Must try -L first in case configure is actually a
2777 # symlink; some systems play weird games with the mod time of symlinks
2778 # (eg FreeBSD returns the mod time of the symlink's containing
2779 # directory).
2780 if (
2781 am_has_slept=no
2782 for am_try in 1 2; do
2783 echo "timestamp, slept: $am_has_slept" > conftest.file
2784 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2785 if test "$*" = "X"; then
2786 # -L didn't work.
2787 set X `ls -t "$srcdir/configure" conftest.file`
2788 fi
2789 if test "$*" != "X $srcdir/configure conftest.file" \
2790 && test "$*" != "X conftest.file $srcdir/configure"; then
2791
2792 # If neither matched, then we have a broken ls. This can happen
2793 # if, for instance, CONFIG_SHELL is bash and it inherits a
2794 # broken ls alias from the environment. This has actually
2795 # happened. Such a system could not be considered "sane".
2796 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2797 alias in your environment" "$LINENO" 5
2798 fi
2799 if test "$2" = conftest.file || test $am_try -eq 2; then
2800 break
2801 fi
2802 # Just in case.
2803 sleep 1
2804 am_has_slept=yes
2805 done
2806 test "$2" = conftest.file
2807 )
2808 then
2809 # Ok.
2810 :
2811 else
2812 as_fn_error $? "newly created file is older than distributed files!
2813 Check your system clock" "$LINENO" 5
2814 fi
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2816 $as_echo "yes" >&6; }
2817 # If we didn't sleep, we still need to ensure time stamps of config.status and
2818 # generated files are strictly newer.
2819 am_sleep_pid=
2820 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2821 ( sleep 1 ) &
2822 am_sleep_pid=$!
2823 fi
2824
2825 rm -f conftest.file
2826
2827 test "$program_prefix" != NONE &&
2828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2829 # Use a double $ so make ignores it.
2830 test "$program_suffix" != NONE &&
2831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2832 # Double any \ or $.
2833 # By default was `s,x,x', remove it if useless.
2834 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2835 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2836
2837 # Expand $ac_aux_dir to an absolute path.
2838 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2839
2840 if test x"${MISSING+set}" != xset; then
2841 case $am_aux_dir in
2842 *\ * | *\ *)
2843 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2844 *)
2845 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2846 esac
2847 fi
2848 # Use eval to expand $SHELL
2849 if eval "$MISSING --is-lightweight"; then
2850 am_missing_run="$MISSING "
2851 else
2852 am_missing_run=
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2854 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2855 fi
2856
2857 if test x"${install_sh+set}" != xset; then
2858 case $am_aux_dir in
2859 *\ * | *\ *)
2860 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2861 *)
2862 install_sh="\${SHELL} $am_aux_dir/install-sh"
2863 esac
2864 fi
2865
2866 # Installed binaries are usually stripped using 'strip' when the user
2867 # run "make install-strip". However 'strip' might not be the right
2868 # tool to use in cross-compilation environments, therefore Automake
2869 # will honor the 'STRIP' environment variable to overrule this program.
2870 if test "$cross_compiling" != no; then
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}strip; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_STRIP+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$STRIP"; then
2880 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898 fi
2899 STRIP=$ac_cv_prog_STRIP
2900 if test -n "$STRIP"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2902 $as_echo "$STRIP" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2906 fi
2907
2908
2909 fi
2910 if test -z "$ac_cv_prog_STRIP"; then
2911 ac_ct_STRIP=$STRIP
2912 # Extract the first word of "strip", so it can be a program name with args.
2913 set dummy strip; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940 if test -n "$ac_ct_STRIP"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2942 $as_echo "$ac_ct_STRIP" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948 if test "x$ac_ct_STRIP" = x; then
2949 STRIP=":"
2950 else
2951 case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 ac_tool_warned=yes ;;
2956 esac
2957 STRIP=$ac_ct_STRIP
2958 fi
2959 else
2960 STRIP="$ac_cv_prog_STRIP"
2961 fi
2962
2963 fi
2964 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2965
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2967 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2968 if test -z "$MKDIR_P"; then
2969 if ${ac_cv_path_mkdir+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_prog in mkdir gmkdir; do
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2980 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2981 'mkdir (GNU coreutils) '* | \
2982 'mkdir (coreutils) '* | \
2983 'mkdir (fileutils) '4.1*)
2984 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2985 break 3;;
2986 esac
2987 done
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993
2994 test -d ./--version && rmdir ./--version
2995 if test "${ac_cv_path_mkdir+set}" = set; then
2996 MKDIR_P="$ac_cv_path_mkdir -p"
2997 else
2998 # As a last resort, use the slow shell script. Don't cache a
2999 # value for MKDIR_P within a source directory, because that will
3000 # break other packages using the cache if that directory is
3001 # removed, or if the value is a relative name.
3002 MKDIR_P="$ac_install_sh -d"
3003 fi
3004 fi
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3006 $as_echo "$MKDIR_P" >&6; }
3007
3008 for ac_prog in gawk mawk nawk awk
3009 do
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy $ac_prog; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_prog_AWK+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if test -n "$AWK"; then
3018 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_AWK="$ac_prog"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031 done
3032 done
3033 IFS=$as_save_IFS
3034
3035 fi
3036 fi
3037 AWK=$ac_cv_prog_AWK
3038 if test -n "$AWK"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3040 $as_echo "$AWK" >&6; }
3041 else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047 test -n "$AWK" && break
3048 done
3049
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3051 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3052 set x ${MAKE-make}
3053 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3054 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 cat >conftest.make <<\_ACEOF
3058 SHELL = /bin/sh
3059 all:
3060 @echo '@@@%%%=$(MAKE)=@@@%%%'
3061 _ACEOF
3062 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3063 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3064 *@@@%%%=?*=@@@%%%*)
3065 eval ac_cv_prog_make_${ac_make}_set=yes;;
3066 *)
3067 eval ac_cv_prog_make_${ac_make}_set=no;;
3068 esac
3069 rm -f conftest.make
3070 fi
3071 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3073 $as_echo "yes" >&6; }
3074 SET_MAKE=
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 SET_MAKE="MAKE=${MAKE-make}"
3079 fi
3080
3081 rm -rf .tst 2>/dev/null
3082 mkdir .tst 2>/dev/null
3083 if test -d .tst; then
3084 am__leading_dot=.
3085 else
3086 am__leading_dot=_
3087 fi
3088 rmdir .tst 2>/dev/null
3089
3090 # Check whether --enable-silent-rules was given.
3091 if test "${enable_silent_rules+set}" = set; then :
3092 enableval=$enable_silent_rules;
3093 fi
3094
3095 case $enable_silent_rules in # (((
3096 yes) AM_DEFAULT_VERBOSITY=0;;
3097 no) AM_DEFAULT_VERBOSITY=1;;
3098 *) AM_DEFAULT_VERBOSITY=1;;
3099 esac
3100 am_make=${MAKE-make}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3102 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3103 if ${am_cv_make_support_nested_variables+:} false; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 if $as_echo 'TRUE=$(BAR$(V))
3107 BAR0=false
3108 BAR1=true
3109 V=1
3110 am__doit:
3111 @$(TRUE)
3112 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3113 am_cv_make_support_nested_variables=yes
3114 else
3115 am_cv_make_support_nested_variables=no
3116 fi
3117 fi
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3119 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3120 if test $am_cv_make_support_nested_variables = yes; then
3121 AM_V='$(V)'
3122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3123 else
3124 AM_V=$AM_DEFAULT_VERBOSITY
3125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3126 fi
3127 AM_BACKSLASH='\'
3128
3129 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3131 # is not polluted with repeated "-I."
3132 am__isrc=' -I$(srcdir)'
3133 # test to see if srcdir already configured
3134 if test -f $srcdir/config.status; then
3135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3136 fi
3137 fi
3138
3139 # test whether we have cygpath
3140 if test -z "$CYGPATH_W"; then
3141 if (cygpath --version) >/dev/null 2>/dev/null; then
3142 CYGPATH_W='cygpath -w'
3143 else
3144 CYGPATH_W=echo
3145 fi
3146 fi
3147
3148
3149 # Define the identity of the package.
3150 PACKAGE='mpfr'
3151 VERSION='4.1.0'
3152
3153
3154 # Some tools Automake needs.
3155
3156 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3157
3158
3159 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3160
3161
3162 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3163
3164
3165 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3166
3167
3168 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3169
3170 # For better backward compatibility. To be removed once Automake 1.9.x
3171 # dies out for good. For more background, see:
3172 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3173 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3174 mkdir_p='$(MKDIR_P)'
3175
3176 # We need awk for the "check" target (and possibly the TAP driver). The
3177 # system "awk" is bad on some platforms.
3178 # Always define AMTAR for backward compatibility. Yes, it's still used
3179 # in the wild :-( We should find a proper way to deprecate it ...
3180 AMTAR='$${TAR-tar}'
3181
3182
3183 # We'll loop over all known methods to create a tar archive until one works.
3184 _am_tools='gnutar pax cpio none'
3185
3186 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3187
3188
3189
3190
3191
3192
3193 # POSIX will say in a future version that running "rm -f" with no argument
3194 # is OK; and we want to be able to make that assumption in our Makefile
3195 # recipes. So use an aggressive probe to check that the usage we want is
3196 # actually supported "in the wild" to an acceptable degree.
3197 # See automake bug#10828.
3198 # To make any issue more visible, cause the running configure to be aborted
3199 # by default if the 'rm' program in use doesn't match our expectations; the
3200 # user can still override this though.
3201 if rm -f && rm -fr && rm -rf; then : OK; else
3202 cat >&2 <<'END'
3203 Oops!
3204
3205 Your 'rm' program seems unable to run without file operands specified
3206 on the command line, even when the '-f' option is present. This is contrary
3207 to the behaviour of most rm programs out there, and not conforming with
3208 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3209
3210 Please tell bug-automake@gnu.org about your system, including the value
3211 of your $PATH and any error possibly output before this message. This
3212 can help us improve future automake versions.
3213
3214 END
3215 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3216 echo 'Configuration will proceed anyway, since you have set the' >&2
3217 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3218 echo >&2
3219 else
3220 cat >&2 <<'END'
3221 Aborting the configuration process, to ensure you take notice of the issue.
3222
3223 You can download and install GNU coreutils to get an 'rm' implementation
3224 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3225
3226 If you want to complete the configuration process using your problematic
3227 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3228 to "yes", and re-run configure.
3229
3230 END
3231 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3232 fi
3233 fi
3234
3235
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3237 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3238 # Check whether --enable-maintainer-mode was given.
3239 if test "${enable_maintainer_mode+set}" = set; then :
3240 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3241 else
3242 USE_MAINTAINER_MODE=yes
3243 fi
3244
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3246 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3247 if test $USE_MAINTAINER_MODE = yes; then
3248 MAINTAINER_MODE_TRUE=
3249 MAINTAINER_MODE_FALSE='#'
3250 else
3251 MAINTAINER_MODE_TRUE='#'
3252 MAINTAINER_MODE_FALSE=
3253 fi
3254
3255 MAINT=$MAINTAINER_MODE_TRUE
3256
3257
3258
3259
3260
3261
3262 test_CFLAGS=${CFLAGS+set}
3263
3264 if test -n "$CFLAGS" || test -n "$CC" ; then
3265 user_redefine_cc=yes
3266 fi
3267
3268
3269 # Make sure we can run config.sub.
3270 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3271 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3272
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3274 $as_echo_n "checking build system type... " >&6; }
3275 if ${ac_cv_build+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277 else
3278 ac_build_alias=$build_alias
3279 test "x$ac_build_alias" = x &&
3280 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3281 test "x$ac_build_alias" = x &&
3282 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3283 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3284 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3285
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3288 $as_echo "$ac_cv_build" >&6; }
3289 case $ac_cv_build in
3290 *-*-*) ;;
3291 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3292 esac
3293 build=$ac_cv_build
3294 ac_save_IFS=$IFS; IFS='-'
3295 set x $ac_cv_build
3296 shift
3297 build_cpu=$1
3298 build_vendor=$2
3299 shift; shift
3300 # Remember, the first character of IFS is used to create $*,
3301 # except with old shells:
3302 build_os=$*
3303 IFS=$ac_save_IFS
3304 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3305
3306
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3308 $as_echo_n "checking host system type... " >&6; }
3309 if ${ac_cv_host+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 if test "x$host_alias" = x; then
3313 ac_cv_host=$ac_cv_build
3314 else
3315 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3316 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3317 fi
3318
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3321 $as_echo "$ac_cv_host" >&6; }
3322 case $ac_cv_host in
3323 *-*-*) ;;
3324 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3325 esac
3326 host=$ac_cv_host
3327 ac_save_IFS=$IFS; IFS='-'
3328 set x $ac_cv_host
3329 shift
3330 host_cpu=$1
3331 host_vendor=$2
3332 shift; shift
3333 # Remember, the first character of IFS is used to create $*,
3334 # except with old shells:
3335 host_os=$*
3336 IFS=$ac_save_IFS
3337 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3338
3339
3340
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3342 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3343 if ${ac_cv_path_GREP+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 if test -z "$GREP"; then
3347 ac_path_GREP_found=false
3348 # Loop through the user's path and test for each of PROGNAME-LIST
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3351 do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_prog in grep ggrep; do
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3357 as_fn_executable_p "$ac_path_GREP" || continue
3358 # Check for GNU ac_path_GREP and select it if it is found.
3359 # Check for GNU $ac_path_GREP
3360 case `"$ac_path_GREP" --version 2>&1` in
3361 *GNU*)
3362 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3363 *)
3364 ac_count=0
3365 $as_echo_n 0123456789 >"conftest.in"
3366 while :
3367 do
3368 cat "conftest.in" "conftest.in" >"conftest.tmp"
3369 mv "conftest.tmp" "conftest.in"
3370 cp "conftest.in" "conftest.nl"
3371 $as_echo 'GREP' >> "conftest.nl"
3372 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3374 as_fn_arith $ac_count + 1 && ac_count=$as_val
3375 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3376 # Best one so far, save it but keep looking for a better one
3377 ac_cv_path_GREP="$ac_path_GREP"
3378 ac_path_GREP_max=$ac_count
3379 fi
3380 # 10*(2^10) chars as input seems more than enough
3381 test $ac_count -gt 10 && break
3382 done
3383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3384 esac
3385
3386 $ac_path_GREP_found && break 3
3387 done
3388 done
3389 done
3390 IFS=$as_save_IFS
3391 if test -z "$ac_cv_path_GREP"; then
3392 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3393 fi
3394 else
3395 ac_cv_path_GREP=$GREP
3396 fi
3397
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3400 $as_echo "$ac_cv_path_GREP" >&6; }
3401 GREP="$ac_cv_path_GREP"
3402
3403
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3405 $as_echo_n "checking for egrep... " >&6; }
3406 if ${ac_cv_path_EGREP+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3410 then ac_cv_path_EGREP="$GREP -E"
3411 else
3412 if test -z "$EGREP"; then
3413 ac_path_EGREP_found=false
3414 # Loop through the user's path and test for each of PROGNAME-LIST
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3417 do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_prog in egrep; do
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3423 as_fn_executable_p "$ac_path_EGREP" || continue
3424 # Check for GNU ac_path_EGREP and select it if it is found.
3425 # Check for GNU $ac_path_EGREP
3426 case `"$ac_path_EGREP" --version 2>&1` in
3427 *GNU*)
3428 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3429 *)
3430 ac_count=0
3431 $as_echo_n 0123456789 >"conftest.in"
3432 while :
3433 do
3434 cat "conftest.in" "conftest.in" >"conftest.tmp"
3435 mv "conftest.tmp" "conftest.in"
3436 cp "conftest.in" "conftest.nl"
3437 $as_echo 'EGREP' >> "conftest.nl"
3438 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3440 as_fn_arith $ac_count + 1 && ac_count=$as_val
3441 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3442 # Best one so far, save it but keep looking for a better one
3443 ac_cv_path_EGREP="$ac_path_EGREP"
3444 ac_path_EGREP_max=$ac_count
3445 fi
3446 # 10*(2^10) chars as input seems more than enough
3447 test $ac_count -gt 10 && break
3448 done
3449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3450 esac
3451
3452 $ac_path_EGREP_found && break 3
3453 done
3454 done
3455 done
3456 IFS=$as_save_IFS
3457 if test -z "$ac_cv_path_EGREP"; then
3458 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3459 fi
3460 else
3461 ac_cv_path_EGREP=$EGREP
3462 fi
3463
3464 fi
3465 fi
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3467 $as_echo "$ac_cv_path_EGREP" >&6; }
3468 EGREP="$ac_cv_path_EGREP"
3469
3470
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3472 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3473 if ${ac_cv_path_SED+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3477 for ac_i in 1 2 3 4 5 6 7; do
3478 ac_script="$ac_script$as_nl$ac_script"
3479 done
3480 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3481 { ac_script=; unset ac_script;}
3482 if test -z "$SED"; then
3483 ac_path_SED_found=false
3484 # Loop through the user's path and test for each of PROGNAME-LIST
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488 IFS=$as_save_IFS
3489 test -z "$as_dir" && as_dir=.
3490 for ac_prog in sed gsed; do
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3493 as_fn_executable_p "$ac_path_SED" || continue
3494 # Check for GNU ac_path_SED and select it if it is found.
3495 # Check for GNU $ac_path_SED
3496 case `"$ac_path_SED" --version 2>&1` in
3497 *GNU*)
3498 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3499 *)
3500 ac_count=0
3501 $as_echo_n 0123456789 >"conftest.in"
3502 while :
3503 do
3504 cat "conftest.in" "conftest.in" >"conftest.tmp"
3505 mv "conftest.tmp" "conftest.in"
3506 cp "conftest.in" "conftest.nl"
3507 $as_echo '' >> "conftest.nl"
3508 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3510 as_fn_arith $ac_count + 1 && ac_count=$as_val
3511 if test $ac_count -gt ${ac_path_SED_max-0}; then
3512 # Best one so far, save it but keep looking for a better one
3513 ac_cv_path_SED="$ac_path_SED"
3514 ac_path_SED_max=$ac_count
3515 fi
3516 # 10*(2^10) chars as input seems more than enough
3517 test $ac_count -gt 10 && break
3518 done
3519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3520 esac
3521
3522 $ac_path_SED_found && break 3
3523 done
3524 done
3525 done
3526 IFS=$as_save_IFS
3527 if test -z "$ac_cv_path_SED"; then
3528 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3529 fi
3530 else
3531 ac_cv_path_SED=$SED
3532 fi
3533
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3536 $as_echo "$ac_cv_path_SED" >&6; }
3537 SED="$ac_cv_path_SED"
3538 rm -f conftest.sed
3539
3540
3541
3542 unset gmp_lib_path GMP_CFLAGS GMP_CC
3543
3544
3545
3546 # Check whether --with-gmp_include was given.
3547 if test "${with_gmp_include+set}" = set; then :
3548 withval=$with_gmp_include;
3549 if test -d "$withval" ; then
3550 local_tmp=`realpath "$withval" 2>/dev/null`
3551 if test "$local_tmp" != "" ; then
3552 if test -d "$local_tmp" ; then
3553 withval="$local_tmp"
3554 else
3555 withval="$withval"
3556 fi
3557 else
3558 case "$withval" in
3559 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
3560 *) withval="$PWD"/"$withval" ;;
3561 esac
3562 fi
3563 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3564 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3565 fi
3566 else
3567 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3568 fi
3569
3570 CPPFLAGS="$CPPFLAGS -I$withval"
3571 fi
3572
3573
3574
3575 # Check whether --with-gmp_lib was given.
3576 if test "${with_gmp_lib+set}" = set; then :
3577 withval=$with_gmp_lib;
3578
3579 if test -d "$withval" ; then
3580 local_tmp=`realpath "$withval" 2>/dev/null`
3581 if test "$local_tmp" != "" ; then
3582 if test -d "$local_tmp" ; then
3583 withval="$local_tmp"
3584 else
3585 withval="$withval"
3586 fi
3587 else
3588 case "$withval" in
3589 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
3590 *) withval="$PWD"/"$withval" ;;
3591 esac
3592 fi
3593 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3594 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3595 fi
3596 else
3597 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3598 fi
3599
3600 LDFLAGS="$LDFLAGS -L$withval"
3601 gmp_lib_path="$withval"
3602
3603 fi
3604
3605
3606
3607 # Check whether --with-gmp was given.
3608 if test "${with_gmp+set}" = set; then :
3609 withval=$with_gmp;
3610
3611 if test -d "$withval" ; then
3612 local_tmp=`realpath "$withval" 2>/dev/null`
3613 if test "$local_tmp" != "" ; then
3614 if test -d "$local_tmp" ; then
3615 withval="$local_tmp"
3616 else
3617 withval="$withval"
3618 fi
3619 else
3620 case "$withval" in
3621 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
3622 *) withval="$PWD"/"$withval" ;;
3623 esac
3624 fi
3625 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3626 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3627 fi
3628 else
3629 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3630 fi
3631
3632 if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then
3633 CPPFLAGS="$CPPFLAGS -I$withval/include"
3634 LDFLAGS="$LDFLAGS -L$withval/lib"
3635 gmp_lib_path="$withval/lib"
3636 else
3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3640 See \`config.log' for more details" "$LINENO" 5; }
3641 fi
3642
3643 fi
3644
3645
3646
3647 # Check whether --with-gmp_build was given.
3648 if test "${with_gmp_build+set}" = set; then :
3649 withval=$with_gmp_build;
3650
3651 if test -d "$withval" ; then
3652 local_tmp=`realpath "$withval" 2>/dev/null`
3653 if test "$local_tmp" != "" ; then
3654 if test -d "$local_tmp" ; then
3655 withval="$local_tmp"
3656 else
3657 withval="$withval"
3658 fi
3659 else
3660 case "$withval" in
3661 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
3662 *) withval="$PWD"/"$withval" ;;
3663 esac
3664 fi
3665 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3666 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3667 fi
3668 else
3669 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3670 fi
3671
3672 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then
3673 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
3674 LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune"
3675 gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
3676 if test -r $withval/Makefile ; then
3677 GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile`
3678 GMP_CC=`$SED -n 's/^CC = //p' $withval/Makefile`
3679 GMP_SOURCE=`$SED -n 's/^srcdir = *//p' $withval/Makefile`
3680 case "$GMP_SOURCE" in
3681 .) GMP_SOURCE="" ;;
3682 /*) ;;
3683 ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;;
3684 esac
3685 if test -d "$GMP_SOURCE" ; then
3686 CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune"
3687 fi
3688 fi
3689 use_gmp_build=yes
3690 else
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously.
3694 See \`config.log' for more details" "$LINENO" 5; }
3695 fi
3696
3697 fi
3698
3699
3700
3701 # Check whether --with-mini_gmp was given.
3702 if test "${with_mini_gmp+set}" = set; then :
3703 withval=$with_mini_gmp;
3704
3705 if test -d "$withval" ; then
3706 local_tmp=`realpath "$withval" 2>/dev/null`
3707 if test "$local_tmp" != "" ; then
3708 if test -d "$local_tmp" ; then
3709 withval="$local_tmp"
3710 else
3711 withval="$withval"
3712 fi
3713 else
3714 case "$withval" in
3715 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
3716 *) withval="$PWD"/"$withval" ;;
3717 esac
3718 fi
3719 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3720 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3721 fi
3722 else
3723 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3724 fi
3725
3726 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" && \
3727 test -z "$use_gmp_build"; then
3728 if test -f "$withval/mini-gmp.c" && test -f "$withval/mini-gmp.h"; then
3729
3730 $as_echo "#define MPFR_USE_MINI_GMP 1" >>confdefs.h
3731
3732 mini_gmp_path="$withval"
3733
3734 else
3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737 as_fn_error $? "mini-gmp.{c,h} not found in $withval
3738 See \`config.log' for more details" "$LINENO" 5; }
3739 fi
3740 else
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "Do not use --with-mini-gmp and other --with-gmp options simultaneously.
3744 See \`config.log' for more details" "$LINENO" 5; }
3745 fi
3746
3747 fi
3748
3749
3750
3751 # Check whether --with-mulhigh_size was given.
3752 if test "${with_mulhigh_size+set}" = set; then :
3753 withval=$with_mulhigh_size;
3754 cat >>confdefs.h <<_ACEOF
3755 #define MPFR_MULHIGH_SIZE $withval
3756 _ACEOF
3757
3758 fi
3759
3760
3761 # Check whether --enable-gmp-internals was given.
3762 if test "${enable_gmp_internals+set}" = set; then :
3763 enableval=$enable_gmp_internals; case $enableval in
3764 yes)
3765 $as_echo "#define WANT_GMP_INTERNALS 1" >>confdefs.h
3766 ;;
3767 no) ;;
3768 *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;;
3769 esac
3770 fi
3771
3772
3773 # Check whether --enable-assert was given.
3774 if test "${enable_assert+set}" = set; then :
3775 enableval=$enable_assert; case $enableval in
3776 yes)
3777 $as_echo "#define MPFR_WANT_ASSERT 1" >>confdefs.h
3778 ;;
3779 none)
3780 $as_echo "#define MPFR_WANT_ASSERT -1" >>confdefs.h
3781 ;;
3782 no) ;;
3783 full)
3784 $as_echo "#define MPFR_WANT_ASSERT 2" >>confdefs.h
3785 ;;
3786 *) as_fn_error $? "bad value for --enable-assert: yes, no, none or full" "$LINENO" 5 ;;
3787 esac
3788 fi
3789
3790
3791 # Check whether --enable-logging was given.
3792 if test "${enable_logging+set}" = set; then :
3793 enableval=$enable_logging; case $enableval in
3794 yes)
3795 $as_echo "#define MPFR_USE_LOGGING 1" >>confdefs.h
3796 ;;
3797 no) ;;
3798 *) as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;;
3799 esac
3800 fi
3801
3802
3803 # Check whether --enable-thread-safe was given.
3804 if test "${enable_thread_safe+set}" = set; then :
3805 enableval=$enable_thread_safe; case $enableval in
3806 yes) ;;
3807 no) ;;
3808 *) as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;;
3809 esac
3810 fi
3811
3812
3813 # Check whether --enable-shared-cache was given.
3814 if test "${enable_shared_cache+set}" = set; then :
3815 enableval=$enable_shared_cache; case $enableval in
3816 yes)
3817
3818 $as_echo "#define MPFR_WANT_SHARED_CACHE 1" >>confdefs.h
3819 ;;
3820 no) ;;
3821 *) as_fn_error $? "bad value for --enable-shared-cache: yes or no" "$LINENO" 5 ;;
3822 esac
3823 fi
3824
3825
3826 # Check whether --enable-warnings was given.
3827 if test "${enable_warnings+set}" = set; then :
3828 enableval=$enable_warnings; case $enableval in
3829 yes)
3830 $as_echo "#define MPFR_USE_WARNINGS 1" >>confdefs.h
3831 ;;
3832 no) ;;
3833 *) as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;;
3834 esac
3835 fi
3836
3837
3838 # Check whether --enable-tests-timeout was given.
3839 if test "${enable_tests_timeout+set}" = set; then :
3840 enableval=$enable_tests_timeout; case $enableval in
3841 no) ;;
3842 yes)
3843 $as_echo "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
3844 ;;
3845 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
3846
3847 cat >>confdefs.h <<_ACEOF
3848 #define MPFR_TESTS_TIMEOUT $enableval
3849 _ACEOF
3850 ;;
3851 *) as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;;
3852 esac
3853 fi
3854
3855
3856 # Check whether --enable-tune-for-coverage was given.
3857 if test "${enable_tune_for_coverage+set}" = set; then :
3858 enableval=$enable_tune_for_coverage; case $enableval in
3859 no) ;;
3860 yes)
3861 $as_echo "#define MPFR_TUNE_COVERAGE 1" >>confdefs.h
3862 ;;
3863 *) as_fn_error $? "bad value for --enable-tune-for-coverage" "$LINENO" 5 ;;
3864 esac
3865 fi
3866
3867
3868 # Check whether --enable-decimal-float was given.
3869 if test "${enable_decimal_float+set}" = set; then :
3870 enableval=$enable_decimal_float; case $enableval in
3871 yes|no|auto|bid|dpd|generic) ;;
3872 *) as_fn_error $? "bad value for --enable-decimal-float" "$LINENO" 5 ;;
3873 esac
3874 fi
3875
3876
3877 # Check whether --enable-float128 was given.
3878 if test "${enable_float128+set}" = set; then :
3879 enableval=$enable_float128; case $enableval in
3880 yes) ;;
3881 no) ;;
3882 *) as_fn_error $? "bad value for --enable-float128: yes or no" "$LINENO" 5 ;;
3883 esac
3884 fi
3885
3886
3887 # Check whether --enable-debug-prediction was given.
3888 if test "${enable_debug_prediction+set}" = set; then :
3889 enableval=$enable_debug_prediction; case $enableval in
3890 yes) if test "$enable_shared" != no; then
3891 as_fn_error $? "--enable-debug-prediction can only work in static mode (--disable-shared)" "$LINENO" 5
3892 fi
3893
3894 $as_echo "#define MPFR_DEBUG_PREDICTION 1" >>confdefs.h
3895 ;;
3896 no) ;;
3897 *) as_fn_error $? "bad value for --enable-debug-prediction: yes or no" "$LINENO" 5 ;;
3898 esac
3899 fi
3900
3901
3902 # Check whether --enable-lto was given.
3903 if test "${enable_lto+set}" = set; then :
3904 enableval=$enable_lto; case $enableval in
3905 yes) if test "$enable_shared" != "no"; then
3906 as_fn_error $? "--enable-lto can only work in static mode (--disable-shared)" "$LINENO" 5
3907 fi
3908 enable_lto=yes
3909 ;;
3910 no) ;;
3911 *) as_fn_error $? "bad value for --enable-lto: yes or no" "$LINENO" 5 ;;
3912 esac
3913 fi
3914
3915
3916 # Check whether --enable-formally-proven-code was given.
3917 if test "${enable_formally_proven_code+set}" = set; then :
3918 enableval=$enable_formally_proven_code; case $enableval in
3919 yes)
3920 $as_echo "#define MPFR_WANT_PROVEN_CODE 1" >>confdefs.h
3921 ;;
3922 no) ;;
3923 *) as_fn_error $? "bad value for --enable-formally-proven-code: yes or no" "$LINENO" 5 ;;
3924 esac
3925 fi
3926
3927
3928 if test -n "$mini_gmp_path"; then
3929 MINI_GMP_TRUE=
3930 MINI_GMP_FALSE='#'
3931 else
3932 MINI_GMP_TRUE='#'
3933 MINI_GMP_FALSE=
3934 fi
3935
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether configure options are compatible" >&5
3938 $as_echo_n "checking whether configure options are compatible... " >&6; }
3939 if test "$enable_logging" = yes; then
3940 if test "$enable_thread_safe" = yes; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3943 as_fn_error $? "enable either logging or thread-safe, not both" "$LINENO" 5
3944 fi
3945 if test "$enable_shared_cache" = yes; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3948 as_fn_error $? "shared cache does not work with logging support" "$LINENO" 5
3949 fi
3950 enable_thread_safe=no
3951 fi
3952 if test "$enable_shared_cache" = yes; then
3953 if test "$enable_thread_safe" = no; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3956 as_fn_error $? "shared cache needs thread-safe support" "$LINENO" 5
3957 fi
3958 enable_thread_safe=yes
3959 fi
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3962
3963
3964
3965
3966
3967
3968 if test -z "$user_redefine_cc" && \
3969 test "$cross_compiling" != yes && \
3970 test "${with_mini_gmp+set}" != set ; then
3971
3972 if test -z "$GMP_CC$GMP_CFLAGS" ; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3974 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3975 GMP_CC=__GMP_CC
3976 GMP_CFLAGS=__GMP_CFLAGS
3977 # /lib/cpp under Solaris doesn't support some environment variables
3978 # used by GCC, such as C_INCLUDE_PATH. If the user has set up such
3979 # environment variables, he probably wants to use them. So, let us
3980 # prefer cpp and gcc to /lib/cpp. However, note that this won't
3981 # work if GCC has been installed with versioned names only (e.g.
3982 # with cpp-5 and gcc-5).
3983 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"
3984 do
3985 # Get CC
3986 echo "#include \"gmp.h\"" > conftest.c
3987 echo "MPFR_OPTION __GMP_CC" >> conftest.c
3988 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt
3989 test $? -ne 0 && continue
3990 GMP_CC=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
3991 # Get CFLAGS
3992 echo "#include \"gmp.h\"" > conftest.c
3993 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
3994 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt
3995 test $? -ne 0 && continue
3996 GMP_CFLAGS=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/[ "]-pedantic[ "]/ /g;s/MPFR_OPTION //g;s/ *" *//g'`
3997 break
3998 done
3999 rm -f conftest*
4000 if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4002 $as_echo "failed" >&6; }
4003 GMP_CFLAGS=
4004 GMP_CC=
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
4007 $as_echo "CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
4008 fi
4009 fi
4010
4011 if test -n "$GMP_CC$GMP_CFLAGS" ; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
4013 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
4014 echo "int main (void) { return 0; }" > conftest.c
4015 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4017 $as_echo "yes" >&6; }
4018 CFLAGS=$GMP_CFLAGS
4019 CC=$GMP_CC
4020 else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4023 fi
4024 rm -f conftest*
4025 fi
4026
4027 fi
4028
4029
4030 ac_ext=c
4031 ac_cpp='$CPP $CPPFLAGS'
4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035 if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if ${ac_cv_prog_CC+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if test -n "$CC"; then
4044 ac_cv_prog_CC="$CC" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 CC=$ac_cv_prog_CC
4064 if test -n "$CC"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066 $as_echo "$CC" >&6; }
4067 else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4070 fi
4071
4072
4073 fi
4074 if test -z "$ac_cv_prog_CC"; then
4075 ac_ct_CC=$CC
4076 # Extract the first word of "gcc", so it can be a program name with args.
4077 set dummy gcc; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -n "$ac_ct_CC"; then
4084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_ac_ct_CC="gcc"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097 done
4098 done
4099 IFS=$as_save_IFS
4100
4101 fi
4102 fi
4103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4104 if test -n "$ac_ct_CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4106 $as_echo "$ac_ct_CC" >&6; }
4107 else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110 fi
4111
4112 if test "x$ac_ct_CC" = x; then
4113 CC=""
4114 else
4115 case $cross_compiling:$ac_tool_warned in
4116 yes:)
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4119 ac_tool_warned=yes ;;
4120 esac
4121 CC=$ac_ct_CC
4122 fi
4123 else
4124 CC="$ac_cv_prog_CC"
4125 fi
4126
4127 if test -z "$CC"; then
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}cc; ac_word=$2
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132 $as_echo_n "checking for $ac_word... " >&6; }
4133 if ${ac_cv_prog_CC+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_CC="${ac_tool_prefix}cc"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150 done
4151 done
4152 IFS=$as_save_IFS
4153
4154 fi
4155 fi
4156 CC=$ac_cv_prog_CC
4157 if test -n "$CC"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4159 $as_echo "$CC" >&6; }
4160 else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165
4166 fi
4167 fi
4168 if test -z "$CC"; then
4169 # Extract the first word of "cc", so it can be a program name with args.
4170 set dummy cc; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if ${ac_cv_prog_CC+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178 else
4179 ac_prog_rejected=no
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4188 ac_prog_rejected=yes
4189 continue
4190 fi
4191 ac_cv_prog_CC="cc"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 if test $ac_prog_rejected = yes; then
4200 # We found a bogon in the path, so make sure we never use it.
4201 set dummy $ac_cv_prog_CC
4202 shift
4203 if test $# != 0; then
4204 # We chose a different compiler from the bogus one.
4205 # However, it has the same basename, so the bogon will be chosen
4206 # first if we set CC to just the basename; use the full file name.
4207 shift
4208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4209 fi
4210 fi
4211 fi
4212 fi
4213 CC=$ac_cv_prog_CC
4214 if test -n "$CC"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216 $as_echo "$CC" >&6; }
4217 else
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4220 fi
4221
4222
4223 fi
4224 if test -z "$CC"; then
4225 if test -n "$ac_tool_prefix"; then
4226 for ac_prog in cl.exe
4227 do
4228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_CC+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if test -n "$CC"; then
4236 ac_cv_prog_CC="$CC" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253 fi
4254 fi
4255 CC=$ac_cv_prog_CC
4256 if test -n "$CC"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258 $as_echo "$CC" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263
4264
4265 test -n "$CC" && break
4266 done
4267 fi
4268 if test -z "$CC"; then
4269 ac_ct_CC=$CC
4270 for ac_prog in cl.exe
4271 do
4272 # Extract the first word of "$ac_prog", so it can be a program name with args.
4273 set dummy $ac_prog; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$ac_ct_CC"; then
4280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_ac_ct_CC="$ac_prog"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4292 fi
4293 done
4294 done
4295 IFS=$as_save_IFS
4296
4297 fi
4298 fi
4299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4300 if test -n "$ac_ct_CC"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4302 $as_echo "$ac_ct_CC" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4306 fi
4307
4308
4309 test -n "$ac_ct_CC" && break
4310 done
4311
4312 if test "x$ac_ct_CC" = x; then
4313 CC=""
4314 else
4315 case $cross_compiling:$ac_tool_warned in
4316 yes:)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4319 ac_tool_warned=yes ;;
4320 esac
4321 CC=$ac_ct_CC
4322 fi
4323 fi
4324
4325 fi
4326
4327
4328 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330 as_fn_error $? "no acceptable C compiler found in \$PATH
4331 See \`config.log' for more details" "$LINENO" 5; }
4332
4333 # Provide some information about the compiler.
4334 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4335 set X $ac_compile
4336 ac_compiler=$2
4337 for ac_option in --version -v -V -qversion; do
4338 { { ac_try="$ac_compiler $ac_option >&5"
4339 case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344 $as_echo "$ac_try_echo"; } >&5
4345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4346 ac_status=$?
4347 if test -s conftest.err; then
4348 sed '10a\
4349 ... rest of stderr output deleted ...
4350 10q' conftest.err >conftest.er1
4351 cat conftest.er1 >&5
4352 fi
4353 rm -f conftest.er1 conftest.err
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }
4356 done
4357
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360
4361 int
4362 main (void)
4363 {
4364
4365 ;
4366 return 0;
4367 }
4368 _ACEOF
4369 ac_clean_files_save=$ac_clean_files
4370 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4371 # Try to create an executable without -o first, disregard a.out.
4372 # It will help us diagnose broken compilers, and finding out an intuition
4373 # of exeext.
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4375 $as_echo_n "checking whether the C compiler works... " >&6; }
4376 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4377
4378 # The possible output files:
4379 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4380
4381 ac_rmfiles=
4382 for ac_file in $ac_files
4383 do
4384 case $ac_file in
4385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4386 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4387 esac
4388 done
4389 rm -f $ac_rmfiles
4390
4391 if { { ac_try="$ac_link_default"
4392 case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395 esac
4396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397 $as_echo "$ac_try_echo"; } >&5
4398 (eval "$ac_link_default") 2>&5
4399 ac_status=$?
4400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4401 test $ac_status = 0; }; then :
4402 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4403 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4404 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4405 # so that the user can short-circuit this test for compilers unknown to
4406 # Autoconf.
4407 for ac_file in $ac_files ''
4408 do
4409 test -f "$ac_file" || continue
4410 case $ac_file in
4411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4412 ;;
4413 [ab].out )
4414 # We found the default executable, but exeext='' is most
4415 # certainly right.
4416 break;;
4417 *.* )
4418 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4419 then :; else
4420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4421 fi
4422 # We set ac_cv_exeext here because the later test for it is not
4423 # safe: cross compilers may not add the suffix if given an `-o'
4424 # argument, so we may need to know it at that point already.
4425 # Even if this section looks crufty: it has the advantage of
4426 # actually working.
4427 break;;
4428 * )
4429 break;;
4430 esac
4431 done
4432 test "$ac_cv_exeext" = no && ac_cv_exeext=
4433
4434 else
4435 ac_file=''
4436 fi
4437 if test -z "$ac_file"; then :
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4440 $as_echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445 as_fn_error 77 "C compiler cannot create executables
4446 See \`config.log' for more details" "$LINENO" 5; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4449 $as_echo "yes" >&6; }
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4452 $as_echo_n "checking for C compiler default output file name... " >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4454 $as_echo "$ac_file" >&6; }
4455 ac_exeext=$ac_cv_exeext
4456
4457 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4458 ac_clean_files=$ac_clean_files_save
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4460 $as_echo_n "checking for suffix of executables... " >&6; }
4461 if { { ac_try="$ac_link"
4462 case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468 (eval "$ac_link") 2>&5
4469 ac_status=$?
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }; then :
4472 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4473 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4474 # work properly (i.e., refer to `conftest.exe'), while it won't with
4475 # `rm'.
4476 for ac_file in conftest.exe conftest conftest.*; do
4477 test -f "$ac_file" || continue
4478 case $ac_file in
4479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4480 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4481 break;;
4482 * ) break;;
4483 esac
4484 done
4485 else
4486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4488 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4489 See \`config.log' for more details" "$LINENO" 5; }
4490 fi
4491 rm -f conftest conftest$ac_cv_exeext
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4493 $as_echo "$ac_cv_exeext" >&6; }
4494
4495 rm -f conftest.$ac_ext
4496 EXEEXT=$ac_cv_exeext
4497 ac_exeext=$EXEEXT
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <stdio.h>
4501 int
4502 main (void)
4503 {
4504 FILE *f = fopen ("conftest.out", "w");
4505 return ferror (f) || fclose (f) != 0;
4506
4507 ;
4508 return 0;
4509 }
4510 _ACEOF
4511 ac_clean_files="$ac_clean_files conftest.out"
4512 # Check that the compiler produces executables we can run. If not, either
4513 # the compiler is broken, or we cross compile.
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4515 $as_echo_n "checking whether we are cross compiling... " >&6; }
4516 if test "$cross_compiling" != yes; then
4517 { { ac_try="$ac_link"
4518 case "(($ac_try" in
4519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4520 *) ac_try_echo=$ac_try;;
4521 esac
4522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4523 $as_echo "$ac_try_echo"; } >&5
4524 (eval "$ac_link") 2>&5
4525 ac_status=$?
4526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4527 test $ac_status = 0; }
4528 if { ac_try='./conftest$ac_cv_exeext'
4529 { { case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 $as_echo "$ac_try_echo"; } >&5
4535 (eval "$ac_try") 2>&5
4536 ac_status=$?
4537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538 test $ac_status = 0; }; }; then
4539 cross_compiling=no
4540 else
4541 if test "$cross_compiling" = maybe; then
4542 cross_compiling=yes
4543 else
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $? "cannot run C compiled programs.
4547 If you meant to cross compile, use \`--host'.
4548 See \`config.log' for more details" "$LINENO" 5; }
4549 fi
4550 fi
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4553 $as_echo "$cross_compiling" >&6; }
4554
4555 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4556 ac_clean_files=$ac_clean_files_save
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4558 $as_echo_n "checking for suffix of object files... " >&6; }
4559 if ${ac_cv_objext+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564
4565 int
4566 main (void)
4567 {
4568
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.o conftest.obj
4574 if { { ac_try="$ac_compile"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580 $as_echo "$ac_try_echo"; } >&5
4581 (eval "$ac_compile") 2>&5
4582 ac_status=$?
4583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; }; then :
4585 for ac_file in conftest.o conftest.obj conftest.*; do
4586 test -f "$ac_file" || continue;
4587 case $ac_file in
4588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4590 break;;
4591 esac
4592 done
4593 else
4594 $as_echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599 as_fn_error $? "cannot compute suffix of object files: cannot compile
4600 See \`config.log' for more details" "$LINENO" 5; }
4601 fi
4602 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4605 $as_echo "$ac_cv_objext" >&6; }
4606 OBJEXT=$ac_cv_objext
4607 ac_objext=$OBJEXT
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4609 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4610 if ${ac_cv_c_compiler_gnu+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4615
4616 int
4617 main (void)
4618 {
4619 #ifndef __GNUC__
4620 choke me
4621 #endif
4622
4623 ;
4624 return 0;
4625 }
4626 _ACEOF
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_compiler_gnu=yes
4629 else
4630 ac_compiler_gnu=no
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4634
4635 fi
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4637 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4638 if test $ac_compiler_gnu = yes; then
4639 GCC=yes
4640 else
4641 GCC=
4642 fi
4643 ac_test_CFLAGS=${CFLAGS+set}
4644 ac_save_CFLAGS=$CFLAGS
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4646 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4647 if ${ac_cv_prog_cc_g+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 ac_save_c_werror_flag=$ac_c_werror_flag
4651 ac_c_werror_flag=yes
4652 ac_cv_prog_cc_g=no
4653 CFLAGS="-g"
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656
4657 int
4658 main (void)
4659 {
4660
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_cv_prog_cc_g=yes
4667 else
4668 CFLAGS=""
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671
4672 int
4673 main (void)
4674 {
4675
4676 ;
4677 return 0;
4678 }
4679 _ACEOF
4680 if ac_fn_c_try_compile "$LINENO"; then :
4681
4682 else
4683 ac_c_werror_flag=$ac_save_c_werror_flag
4684 CFLAGS="-g"
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687
4688 int
4689 main (void)
4690 {
4691
4692 ;
4693 return 0;
4694 }
4695 _ACEOF
4696 if ac_fn_c_try_compile "$LINENO"; then :
4697 ac_cv_prog_cc_g=yes
4698 fi
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 ac_c_werror_flag=$ac_save_c_werror_flag
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4707 $as_echo "$ac_cv_prog_cc_g" >&6; }
4708 if test "$ac_test_CFLAGS" = set; then
4709 CFLAGS=$ac_save_CFLAGS
4710 elif test $ac_cv_prog_cc_g = yes; then
4711 if test "$GCC" = yes; then
4712 CFLAGS="-g -O2"
4713 else
4714 CFLAGS="-g"
4715 fi
4716 else
4717 if test "$GCC" = yes; then
4718 CFLAGS="-O2"
4719 else
4720 CFLAGS=
4721 fi
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4724 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4725 if ${ac_cv_prog_cc_c89+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 ac_cv_prog_cc_c89=no
4729 ac_save_CC=$CC
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732 #include <stdarg.h>
4733 #include <stdio.h>
4734 struct stat;
4735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4736 struct buf { int x; };
4737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4738 static char *e (p, i)
4739 char **p;
4740 int i;
4741 {
4742 return p[i];
4743 }
4744 static char *f (char * (*g) (char **, int), char **p, ...)
4745 {
4746 char *s;
4747 va_list v;
4748 va_start (v,p);
4749 s = g (p, va_arg (v,int));
4750 va_end (v);
4751 return s;
4752 }
4753
4754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4755 function prototypes and stuff, but not '\xHH' hex character constants.
4756 These don't provoke an error unfortunately, instead are silently treated
4757 as 'x'. The following induces an error, until -std is added to get
4758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4759 array size at least. It's necessary to write '\x00'==0 to get something
4760 that's true only with -std. */
4761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4762
4763 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4764 inside strings and character constants. */
4765 #define FOO(x) 'x'
4766 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4767
4768 int test (int i, double x);
4769 struct s1 {int (*f) (int a);};
4770 struct s2 {int (*f) (double a);};
4771 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4772 int argc;
4773 char **argv;
4774 int
4775 main (void)
4776 {
4777 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4778 ;
4779 return 0;
4780 }
4781 _ACEOF
4782 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4783 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4784 do
4785 CC="$ac_save_CC $ac_arg"
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 ac_cv_prog_cc_c89=$ac_arg
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext
4790 test "x$ac_cv_prog_cc_c89" != "xno" && break
4791 done
4792 rm -f conftest.$ac_ext
4793 CC=$ac_save_CC
4794
4795 fi
4796 # AC_CACHE_VAL
4797 case "x$ac_cv_prog_cc_c89" in
4798 x)
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4800 $as_echo "none needed" >&6; } ;;
4801 xno)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4803 $as_echo "unsupported" >&6; } ;;
4804 *)
4805 CC="$CC $ac_cv_prog_cc_c89"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4807 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4808 esac
4809 if test "x$ac_cv_prog_cc_c89" != xno; then :
4810
4811 fi
4812
4813 ac_ext=c
4814 ac_cpp='$CPP $CPPFLAGS'
4815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4818
4819 ac_ext=c
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4825 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4826 if ${am_cv_prog_cc_c_o+:} false; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831
4832 int
4833 main (void)
4834 {
4835
4836 ;
4837 return 0;
4838 }
4839 _ACEOF
4840 # Make sure it works both with $CC and with simple cc.
4841 # Following AC_PROG_CC_C_O, we do the test twice because some
4842 # compilers refuse to overwrite an existing .o file with -o,
4843 # though they will create one.
4844 am_cv_prog_cc_c_o=yes
4845 for am_i in 1 2; do
4846 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4847 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4848 ac_status=$?
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } \
4851 && test -f conftest2.$ac_objext; then
4852 : OK
4853 else
4854 am_cv_prog_cc_c_o=no
4855 break
4856 fi
4857 done
4858 rm -f core conftest*
4859 unset am_i
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4862 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4863 if test "$am_cv_prog_cc_c_o" != yes; then
4864 # Losing compiler, so override with the script.
4865 # FIXME: It is wrong to rewrite CC.
4866 # But if we don't then we get into trouble of one sort or another.
4867 # A longer-term fix would be to have automake use am__CC in this case,
4868 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4869 CC="$am_aux_dir/compile $CC"
4870 fi
4871 ac_ext=c
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877 DEPDIR="${am__leading_dot}deps"
4878
4879 ac_config_commands="$ac_config_commands depfiles"
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4882 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4883 cat > confinc.mk << 'END'
4884 am__doit:
4885 @echo this is the am__doit target >confinc.out
4886 .PHONY: am__doit
4887 END
4888 am__include="#"
4889 am__quote=
4890 # BSD make does it like this.
4891 echo '.include "confinc.mk" # ignored' > confmf.BSD
4892 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4893 echo 'include confinc.mk # ignored' > confmf.GNU
4894 _am_result=no
4895 for s in GNU BSD; do
4896 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4897 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }
4901 case $?:`cat confinc.out 2>/dev/null` in #(
4902 '0:this is the am__doit target') :
4903 case $s in #(
4904 BSD) :
4905 am__include='.include' am__quote='"' ;; #(
4906 *) :
4907 am__include='include' am__quote='' ;;
4908 esac ;; #(
4909 *) :
4910 ;;
4911 esac
4912 if test "$am__include" != "#"; then
4913 _am_result="yes ($s style)"
4914 break
4915 fi
4916 done
4917 rm -f confinc.* confmf.*
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4919 $as_echo "${_am_result}" >&6; }
4920
4921 # Check whether --enable-dependency-tracking was given.
4922 if test "${enable_dependency_tracking+set}" = set; then :
4923 enableval=$enable_dependency_tracking;
4924 fi
4925
4926 if test "x$enable_dependency_tracking" != xno; then
4927 am_depcomp="$ac_aux_dir/depcomp"
4928 AMDEPBACKSLASH='\'
4929 am__nodep='_no'
4930 fi
4931 if test "x$enable_dependency_tracking" != xno; then
4932 AMDEP_TRUE=
4933 AMDEP_FALSE='#'
4934 else
4935 AMDEP_TRUE='#'
4936 AMDEP_FALSE=
4937 fi
4938
4939
4940
4941 depcc="$CC" am_compiler_list=
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4944 $as_echo_n "checking dependency style of $depcc... " >&6; }
4945 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4949 # We make a subdir and do the tests there. Otherwise we can end up
4950 # making bogus files that we don't know about and never remove. For
4951 # instance it was reported that on HP-UX the gcc test will end up
4952 # making a dummy file named 'D' -- because '-MD' means "put the output
4953 # in D".
4954 rm -rf conftest.dir
4955 mkdir conftest.dir
4956 # Copy depcomp to subdir because otherwise we won't find it if we're
4957 # using a relative directory.
4958 cp "$am_depcomp" conftest.dir
4959 cd conftest.dir
4960 # We will build objects and dependencies in a subdirectory because
4961 # it helps to detect inapplicable dependency modes. For instance
4962 # both Tru64's cc and ICC support -MD to output dependencies as a
4963 # side effect of compilation, but ICC will put the dependencies in
4964 # the current directory while Tru64 will put them in the object
4965 # directory.
4966 mkdir sub
4967
4968 am_cv_CC_dependencies_compiler_type=none
4969 if test "$am_compiler_list" = ""; then
4970 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4971 fi
4972 am__universal=false
4973 case " $depcc " in #(
4974 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4975 esac
4976
4977 for depmode in $am_compiler_list; do
4978 # Setup a source with many dependencies, because some compilers
4979 # like to wrap large dependency lists on column 80 (with \), and
4980 # we should not choose a depcomp mode which is confused by this.
4981 #
4982 # We need to recreate these files for each test, as the compiler may
4983 # overwrite some of them when testing with obscure command lines.
4984 # This happens at least with the AIX C compiler.
4985 : > sub/conftest.c
4986 for i in 1 2 3 4 5 6; do
4987 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4988 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4989 # Solaris 10 /bin/sh.
4990 echo '/* dummy */' > sub/conftst$i.h
4991 done
4992 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4993
4994 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4995 # mode. It turns out that the SunPro C++ compiler does not properly
4996 # handle '-M -o', and we need to detect this. Also, some Intel
4997 # versions had trouble with output in subdirs.
4998 am__obj=sub/conftest.${OBJEXT-o}
4999 am__minus_obj="-o $am__obj"
5000 case $depmode in
5001 gcc)
5002 # This depmode causes a compiler race in universal mode.
5003 test "$am__universal" = false || continue
5004 ;;
5005 nosideeffect)
5006 # After this tag, mechanisms are not by side-effect, so they'll
5007 # only be used when explicitly requested.
5008 if test "x$enable_dependency_tracking" = xyes; then
5009 continue
5010 else
5011 break
5012 fi
5013 ;;
5014 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5015 # This compiler won't grok '-c -o', but also, the minuso test has
5016 # not run yet. These depmodes are late enough in the game, and
5017 # so weak that their functioning should not be impacted.
5018 am__obj=conftest.${OBJEXT-o}
5019 am__minus_obj=
5020 ;;
5021 none) break ;;
5022 esac
5023 if depmode=$depmode \
5024 source=sub/conftest.c object=$am__obj \
5025 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5026 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5027 >/dev/null 2>conftest.err &&
5028 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5029 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5030 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5031 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5032 # icc doesn't choke on unknown options, it will just issue warnings
5033 # or remarks (even with -Werror). So we grep stderr for any message
5034 # that says an option was ignored or not supported.
5035 # When given -MP, icc 7.0 and 7.1 complain thusly:
5036 # icc: Command line warning: ignoring option '-M'; no argument required
5037 # The diagnosis changed in icc 8.0:
5038 # icc: Command line remark: option '-MP' not supported
5039 if (grep 'ignoring option' conftest.err ||
5040 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5041 am_cv_CC_dependencies_compiler_type=$depmode
5042 break
5043 fi
5044 fi
5045 done
5046
5047 cd ..
5048 rm -rf conftest.dir
5049 else
5050 am_cv_CC_dependencies_compiler_type=none
5051 fi
5052
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5055 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5056 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5057
5058 if
5059 test "x$enable_dependency_tracking" != xno \
5060 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5061 am__fastdepCC_TRUE=
5062 am__fastdepCC_FALSE='#'
5063 else
5064 am__fastdepCC_TRUE='#'
5065 am__fastdepCC_FALSE=
5066 fi
5067
5068
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5075 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5076 # On Suns, sometimes $CPP names a directory.
5077 if test -n "$CPP" && test -d "$CPP"; then
5078 CPP=
5079 fi
5080 if test -z "$CPP"; then
5081 if ${ac_cv_prog_CPP+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 # Double quotes because CPP needs to be expanded
5085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5086 do
5087 ac_preproc_ok=false
5088 for ac_c_preproc_warn_flag in '' yes
5089 do
5090 # Use a header file that comes with gcc, so configuring glibc
5091 # with a fresh cross-compiler works.
5092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5093 # <limits.h> exists even on freestanding compilers.
5094 # On the NeXT, cc -E runs the code through the compiler's parser,
5095 # not just through cpp. "Syntax error" is here to catch this case.
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #ifdef __STDC__
5099 # include <limits.h>
5100 #else
5101 # include <assert.h>
5102 #endif
5103 Syntax error
5104 _ACEOF
5105 if ac_fn_c_try_cpp "$LINENO"; then :
5106
5107 else
5108 # Broken: fails on valid input.
5109 continue
5110 fi
5111 rm -f conftest.err conftest.i conftest.$ac_ext
5112
5113 # OK, works on sane cases. Now check whether nonexistent headers
5114 # can be detected and how.
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 #include <ac_nonexistent.h>
5118 _ACEOF
5119 if ac_fn_c_try_cpp "$LINENO"; then :
5120 # Broken: success on invalid input.
5121 continue
5122 else
5123 # Passes both tests.
5124 ac_preproc_ok=:
5125 break
5126 fi
5127 rm -f conftest.err conftest.i conftest.$ac_ext
5128
5129 done
5130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131 rm -f conftest.i conftest.err conftest.$ac_ext
5132 if $ac_preproc_ok; then :
5133 break
5134 fi
5135
5136 done
5137 ac_cv_prog_CPP=$CPP
5138
5139 fi
5140 CPP=$ac_cv_prog_CPP
5141 else
5142 ac_cv_prog_CPP=$CPP
5143 fi
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5145 $as_echo "$CPP" >&6; }
5146 ac_preproc_ok=false
5147 for ac_c_preproc_warn_flag in '' yes
5148 do
5149 # Use a header file that comes with gcc, so configuring glibc
5150 # with a fresh cross-compiler works.
5151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152 # <limits.h> exists even on freestanding compilers.
5153 # On the NeXT, cc -E runs the code through the compiler's parser,
5154 # not just through cpp. "Syntax error" is here to catch this case.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #ifdef __STDC__
5158 # include <limits.h>
5159 #else
5160 # include <assert.h>
5161 #endif
5162 Syntax error
5163 _ACEOF
5164 if ac_fn_c_try_cpp "$LINENO"; then :
5165
5166 else
5167 # Broken: fails on valid input.
5168 continue
5169 fi
5170 rm -f conftest.err conftest.i conftest.$ac_ext
5171
5172 # OK, works on sane cases. Now check whether nonexistent headers
5173 # can be detected and how.
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 #include <ac_nonexistent.h>
5177 _ACEOF
5178 if ac_fn_c_try_cpp "$LINENO"; then :
5179 # Broken: success on invalid input.
5180 continue
5181 else
5182 # Passes both tests.
5183 ac_preproc_ok=:
5184 break
5185 fi
5186 rm -f conftest.err conftest.i conftest.$ac_ext
5187
5188 done
5189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190 rm -f conftest.i conftest.err conftest.$ac_ext
5191 if $ac_preproc_ok; then :
5192
5193 else
5194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5196 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5197 See \`config.log' for more details" "$LINENO" 5; }
5198 fi
5199
5200 ac_ext=c
5201 ac_cpp='$CPP $CPPFLAGS'
5202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205
5206 ac_ext=c
5207 ac_cpp='$CPP $CPPFLAGS'
5208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5211
5212
5213
5214 if test -n "$ac_tool_prefix"; then
5215 for ac_prog in ar lib "link -lib"
5216 do
5217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_AR+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$AR"; then
5225 ac_cv_prog_AR="$AR" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5241
5242 fi
5243 fi
5244 AR=$ac_cv_prog_AR
5245 if test -n "$AR"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5247 $as_echo "$AR" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253
5254 test -n "$AR" && break
5255 done
5256 fi
5257 if test -z "$AR"; then
5258 ac_ct_AR=$AR
5259 for ac_prog in ar lib "link -lib"
5260 do
5261 # Extract the first word of "$ac_prog", so it can be a program name with args.
5262 set dummy $ac_prog; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -n "$ac_ct_AR"; then
5269 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_ac_ct_AR="$ac_prog"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5289 if test -n "$ac_ct_AR"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5291 $as_echo "$ac_ct_AR" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297
5298 test -n "$ac_ct_AR" && break
5299 done
5300
5301 if test "x$ac_ct_AR" = x; then
5302 AR="false"
5303 else
5304 case $cross_compiling:$ac_tool_warned in
5305 yes:)
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5308 ac_tool_warned=yes ;;
5309 esac
5310 AR=$ac_ct_AR
5311 fi
5312 fi
5313
5314 : ${AR=ar}
5315
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5317 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5318 if ${am_cv_ar_interface+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326
5327 am_cv_ar_interface=ar
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330 int some_variable = 0;
5331 _ACEOF
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5335 (eval $am_ar_try) 2>&5
5336 ac_status=$?
5337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5338 test $ac_status = 0; }
5339 if test "$ac_status" -eq 0; then
5340 am_cv_ar_interface=ar
5341 else
5342 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5344 (eval $am_ar_try) 2>&5
5345 ac_status=$?
5346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5347 test $ac_status = 0; }
5348 if test "$ac_status" -eq 0; then
5349 am_cv_ar_interface=lib
5350 else
5351 am_cv_ar_interface=unknown
5352 fi
5353 fi
5354 rm -f conftest.lib libconftest.a
5355
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_ext=c
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364 fi
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5366 $as_echo "$am_cv_ar_interface" >&6; }
5367
5368 case $am_cv_ar_interface in
5369 ar)
5370 ;;
5371 lib)
5372 # Microsoft lib, so override with the ar-lib wrapper script.
5373 # FIXME: It is wrong to rewrite AR.
5374 # But if we don't then we get into trouble of one sort or another.
5375 # A longer-term fix would be to have automake use am__AR in this case,
5376 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5377 # similar.
5378 AR="$am_aux_dir/ar-lib $AR"
5379 ;;
5380 unknown)
5381 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5382 ;;
5383 esac
5384
5385
5386 case `pwd` in
5387 *\ * | *\ *)
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5389 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5390 esac
5391
5392
5393
5394 macro_version='2.4.6'
5395 macro_revision='2.4.6'
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409 ltmain=$ac_aux_dir/ltmain.sh
5410
5411 # Backslashify metacharacters that are still active within
5412 # double-quoted strings.
5413 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5414
5415 # Same as above, but do not quote variable references.
5416 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5417
5418 # Sed substitution to delay expansion of an escaped shell variable in a
5419 # double_quote_subst'ed string.
5420 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5421
5422 # Sed substitution to delay expansion of an escaped single quote.
5423 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5424
5425 # Sed substitution to avoid accidental globbing in evaled expressions
5426 no_glob_subst='s/\*/\\\*/g'
5427
5428 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5429 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5430 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5433 $as_echo_n "checking how to print strings... " >&6; }
5434 # Test print first, because it will be a builtin if present.
5435 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5436 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5437 ECHO='print -r --'
5438 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5439 ECHO='printf %s\n'
5440 else
5441 # Use this function as a fallback that always works.
5442 func_fallback_echo ()
5443 {
5444 eval 'cat <<_LTECHO_EOF
5445 $1
5446 _LTECHO_EOF'
5447 }
5448 ECHO='func_fallback_echo'
5449 fi
5450
5451 # func_echo_all arg...
5452 # Invoke $ECHO with all args, space-separated.
5453 func_echo_all ()
5454 {
5455 $ECHO ""
5456 }
5457
5458 case $ECHO in
5459 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5460 $as_echo "printf" >&6; } ;;
5461 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5462 $as_echo "print -r" >&6; } ;;
5463 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5464 $as_echo "cat" >&6; } ;;
5465 esac
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5481 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5482 if ${ac_cv_path_SED+:} false; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5486 for ac_i in 1 2 3 4 5 6 7; do
5487 ac_script="$ac_script$as_nl$ac_script"
5488 done
5489 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5490 { ac_script=; unset ac_script;}
5491 if test -z "$SED"; then
5492 ac_path_SED_found=false
5493 # Loop through the user's path and test for each of PROGNAME-LIST
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_prog in sed gsed; do
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5502 as_fn_executable_p "$ac_path_SED" || continue
5503 # Check for GNU ac_path_SED and select it if it is found.
5504 # Check for GNU $ac_path_SED
5505 case `"$ac_path_SED" --version 2>&1` in
5506 *GNU*)
5507 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5508 *)
5509 ac_count=0
5510 $as_echo_n 0123456789 >"conftest.in"
5511 while :
5512 do
5513 cat "conftest.in" "conftest.in" >"conftest.tmp"
5514 mv "conftest.tmp" "conftest.in"
5515 cp "conftest.in" "conftest.nl"
5516 $as_echo '' >> "conftest.nl"
5517 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5519 as_fn_arith $ac_count + 1 && ac_count=$as_val
5520 if test $ac_count -gt ${ac_path_SED_max-0}; then
5521 # Best one so far, save it but keep looking for a better one
5522 ac_cv_path_SED="$ac_path_SED"
5523 ac_path_SED_max=$ac_count
5524 fi
5525 # 10*(2^10) chars as input seems more than enough
5526 test $ac_count -gt 10 && break
5527 done
5528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5529 esac
5530
5531 $ac_path_SED_found && break 3
5532 done
5533 done
5534 done
5535 IFS=$as_save_IFS
5536 if test -z "$ac_cv_path_SED"; then
5537 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5538 fi
5539 else
5540 ac_cv_path_SED=$SED
5541 fi
5542
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5545 $as_echo "$ac_cv_path_SED" >&6; }
5546 SED="$ac_cv_path_SED"
5547 rm -f conftest.sed
5548
5549 test -z "$SED" && SED=sed
5550 Xsed="$SED -e 1s/^X//"
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5563 $as_echo_n "checking for fgrep... " >&6; }
5564 if ${ac_cv_path_FGREP+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5568 then ac_cv_path_FGREP="$GREP -F"
5569 else
5570 if test -z "$FGREP"; then
5571 ac_path_FGREP_found=false
5572 # Loop through the user's path and test for each of PROGNAME-LIST
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5575 do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_prog in fgrep; do
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5581 as_fn_executable_p "$ac_path_FGREP" || continue
5582 # Check for GNU ac_path_FGREP and select it if it is found.
5583 # Check for GNU $ac_path_FGREP
5584 case `"$ac_path_FGREP" --version 2>&1` in
5585 *GNU*)
5586 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5587 *)
5588 ac_count=0
5589 $as_echo_n 0123456789 >"conftest.in"
5590 while :
5591 do
5592 cat "conftest.in" "conftest.in" >"conftest.tmp"
5593 mv "conftest.tmp" "conftest.in"
5594 cp "conftest.in" "conftest.nl"
5595 $as_echo 'FGREP' >> "conftest.nl"
5596 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5598 as_fn_arith $ac_count + 1 && ac_count=$as_val
5599 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5600 # Best one so far, save it but keep looking for a better one
5601 ac_cv_path_FGREP="$ac_path_FGREP"
5602 ac_path_FGREP_max=$ac_count
5603 fi
5604 # 10*(2^10) chars as input seems more than enough
5605 test $ac_count -gt 10 && break
5606 done
5607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5608 esac
5609
5610 $ac_path_FGREP_found && break 3
5611 done
5612 done
5613 done
5614 IFS=$as_save_IFS
5615 if test -z "$ac_cv_path_FGREP"; then
5616 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5617 fi
5618 else
5619 ac_cv_path_FGREP=$FGREP
5620 fi
5621
5622 fi
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5625 $as_echo "$ac_cv_path_FGREP" >&6; }
5626 FGREP="$ac_cv_path_FGREP"
5627
5628
5629 test -z "$GREP" && GREP=grep
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649 # Check whether --with-gnu-ld was given.
5650 if test "${with_gnu_ld+set}" = set; then :
5651 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5652 else
5653 with_gnu_ld=no
5654 fi
5655
5656 ac_prog=ld
5657 if test yes = "$GCC"; then
5658 # Check if gcc -print-prog-name=ld gives a path.
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5660 $as_echo_n "checking for ld used by $CC... " >&6; }
5661 case $host in
5662 *-*-mingw*)
5663 # gcc leaves a trailing carriage return, which upsets mingw
5664 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5665 *)
5666 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5667 esac
5668 case $ac_prog in
5669 # Accept absolute paths.
5670 [\\/]* | ?:[\\/]*)
5671 re_direlt='/[^/][^/]*/\.\./'
5672 # Canonicalize the pathname of ld
5673 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5674 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5675 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5676 done
5677 test -z "$LD" && LD=$ac_prog
5678 ;;
5679 "")
5680 # If it fails, then pretend we aren't using GCC.
5681 ac_prog=ld
5682 ;;
5683 *)
5684 # If it is relative, then search for the first ld in PATH.
5685 with_gnu_ld=unknown
5686 ;;
5687 esac
5688 elif test yes = "$with_gnu_ld"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5690 $as_echo_n "checking for GNU ld... " >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5693 $as_echo_n "checking for non-GNU ld... " >&6; }
5694 fi
5695 if ${lt_cv_path_LD+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -z "$LD"; then
5699 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5700 for ac_dir in $PATH; do
5701 IFS=$lt_save_ifs
5702 test -z "$ac_dir" && ac_dir=.
5703 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5704 lt_cv_path_LD=$ac_dir/$ac_prog
5705 # Check to see if the program is GNU ld. I'd rather use --version,
5706 # but apparently some variants of GNU ld only accept -v.
5707 # Break only if it was the GNU/non-GNU ld that we prefer.
5708 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5709 *GNU* | *'with BFD'*)
5710 test no != "$with_gnu_ld" && break
5711 ;;
5712 *)
5713 test yes != "$with_gnu_ld" && break
5714 ;;
5715 esac
5716 fi
5717 done
5718 IFS=$lt_save_ifs
5719 else
5720 lt_cv_path_LD=$LD # Let the user override the test with a path.
5721 fi
5722 fi
5723
5724 LD=$lt_cv_path_LD
5725 if test -n "$LD"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5727 $as_echo "$LD" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5731 fi
5732 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5734 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5735 if ${lt_cv_prog_gnu_ld+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5739 case `$LD -v 2>&1 </dev/null` in
5740 *GNU* | *'with BFD'*)
5741 lt_cv_prog_gnu_ld=yes
5742 ;;
5743 *)
5744 lt_cv_prog_gnu_ld=no
5745 ;;
5746 esac
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5749 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5750 with_gnu_ld=$lt_cv_prog_gnu_ld
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5761 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5762 if ${lt_cv_path_NM+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 if test -n "$NM"; then
5766 # Let the user override the test.
5767 lt_cv_path_NM=$NM
5768 else
5769 lt_nm_to_check=${ac_tool_prefix}nm
5770 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5771 lt_nm_to_check="$lt_nm_to_check nm"
5772 fi
5773 for lt_tmp_nm in $lt_nm_to_check; do
5774 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5775 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5776 IFS=$lt_save_ifs
5777 test -z "$ac_dir" && ac_dir=.
5778 tmp_nm=$ac_dir/$lt_tmp_nm
5779 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5780 # Check to see if the nm accepts a BSD-compat flag.
5781 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5782 # nm: unknown option "B" ignored
5783 # Tru64's nm complains that /dev/null is an invalid object file
5784 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5785 case $build_os in
5786 mingw*) lt_bad_file=conftest.nm/nofile ;;
5787 *) lt_bad_file=/dev/null ;;
5788 esac
5789 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5790 *$lt_bad_file* | *'Invalid file or object type'*)
5791 lt_cv_path_NM="$tmp_nm -B"
5792 break 2
5793 ;;
5794 *)
5795 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5796 */dev/null*)
5797 lt_cv_path_NM="$tmp_nm -p"
5798 break 2
5799 ;;
5800 *)
5801 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5802 continue # so that we can try to find one that supports BSD flags
5803 ;;
5804 esac
5805 ;;
5806 esac
5807 fi
5808 done
5809 IFS=$lt_save_ifs
5810 done
5811 : ${lt_cv_path_NM=no}
5812 fi
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5815 $as_echo "$lt_cv_path_NM" >&6; }
5816 if test no != "$lt_cv_path_NM"; then
5817 NM=$lt_cv_path_NM
5818 else
5819 # Didn't find any BSD compatible name lister, look for dumpbin.
5820 if test -n "$DUMPBIN"; then :
5821 # Let the user override the test.
5822 else
5823 if test -n "$ac_tool_prefix"; then
5824 for ac_prog in dumpbin "link -dump"
5825 do
5826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if ${ac_cv_prog_DUMPBIN+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if test -n "$DUMPBIN"; then
5834 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847 done
5848 done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 DUMPBIN=$ac_cv_prog_DUMPBIN
5854 if test -n "$DUMPBIN"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5856 $as_echo "$DUMPBIN" >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862
5863 test -n "$DUMPBIN" && break
5864 done
5865 fi
5866 if test -z "$DUMPBIN"; then
5867 ac_ct_DUMPBIN=$DUMPBIN
5868 for ac_prog in dumpbin "link -dump"
5869 do
5870 # Extract the first word of "$ac_prog", so it can be a program name with args.
5871 set dummy $ac_prog; ac_word=$2
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873 $as_echo_n "checking for $ac_word... " >&6; }
5874 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 if test -n "$ac_ct_DUMPBIN"; then
5878 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5879 else
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
5886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891 done
5892 done
5893 IFS=$as_save_IFS
5894
5895 fi
5896 fi
5897 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5898 if test -n "$ac_ct_DUMPBIN"; then
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5900 $as_echo "$ac_ct_DUMPBIN" >&6; }
5901 else
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 $as_echo "no" >&6; }
5904 fi
5905
5906
5907 test -n "$ac_ct_DUMPBIN" && break
5908 done
5909
5910 if test "x$ac_ct_DUMPBIN" = x; then
5911 DUMPBIN=":"
5912 else
5913 case $cross_compiling:$ac_tool_warned in
5914 yes:)
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5917 ac_tool_warned=yes ;;
5918 esac
5919 DUMPBIN=$ac_ct_DUMPBIN
5920 fi
5921 fi
5922
5923 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5924 *COFF*)
5925 DUMPBIN="$DUMPBIN -symbols -headers"
5926 ;;
5927 *)
5928 DUMPBIN=:
5929 ;;
5930 esac
5931 fi
5932
5933 if test : != "$DUMPBIN"; then
5934 NM=$DUMPBIN
5935 fi
5936 fi
5937 test -z "$NM" && NM=nm
5938
5939
5940
5941
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5946 if ${lt_cv_nm_interface+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 lt_cv_nm_interface="BSD nm"
5950 echo "int some_variable = 0;" > conftest.$ac_ext
5951 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5952 (eval "$ac_compile" 2>conftest.err)
5953 cat conftest.err >&5
5954 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5955 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5956 cat conftest.err >&5
5957 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5958 cat conftest.out >&5
5959 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5960 lt_cv_nm_interface="MS dumpbin"
5961 fi
5962 rm -f conftest*
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5965 $as_echo "$lt_cv_nm_interface" >&6; }
5966
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5968 $as_echo_n "checking whether ln -s works... " >&6; }
5969 LN_S=$as_ln_s
5970 if test "$LN_S" = "ln -s"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5972 $as_echo "yes" >&6; }
5973 else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5975 $as_echo "no, using $LN_S" >&6; }
5976 fi
5977
5978 # find the maximum length of command line arguments
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5980 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5981 if ${lt_cv_sys_max_cmd_len+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 i=0
5985 teststring=ABCD
5986
5987 case $build_os in
5988 msdosdjgpp*)
5989 # On DJGPP, this test can blow up pretty badly due to problems in libc
5990 # (any single argument exceeding 2000 bytes causes a buffer overrun
5991 # during glob expansion). Even if it were fixed, the result of this
5992 # check would be larger than it should be.
5993 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5994 ;;
5995
5996 gnu*)
5997 # Under GNU Hurd, this test is not required because there is
5998 # no limit to the length of command line arguments.
5999 # Libtool will interpret -1 as no limit whatsoever
6000 lt_cv_sys_max_cmd_len=-1;
6001 ;;
6002
6003 cygwin* | mingw* | cegcc*)
6004 # On Win9x/ME, this test blows up -- it succeeds, but takes
6005 # about 5 minutes as the teststring grows exponentially.
6006 # Worse, since 9x/ME are not pre-emptively multitasking,
6007 # you end up with a "frozen" computer, even though with patience
6008 # the test eventually succeeds (with a max line length of 256k).
6009 # Instead, let's just punt: use the minimum linelength reported by
6010 # all of the supported platforms: 8192 (on NT/2K/XP).
6011 lt_cv_sys_max_cmd_len=8192;
6012 ;;
6013
6014 mint*)
6015 # On MiNT this can take a long time and run out of memory.
6016 lt_cv_sys_max_cmd_len=8192;
6017 ;;
6018
6019 amigaos*)
6020 # On AmigaOS with pdksh, this test takes hours, literally.
6021 # So we just punt and use a minimum line length of 8192.
6022 lt_cv_sys_max_cmd_len=8192;
6023 ;;
6024
6025 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6026 # This has been around since 386BSD, at least. Likely further.
6027 if test -x /sbin/sysctl; then
6028 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6029 elif test -x /usr/sbin/sysctl; then
6030 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6031 else
6032 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6033 fi
6034 # And add a safety zone
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6037 ;;
6038
6039 interix*)
6040 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6041 lt_cv_sys_max_cmd_len=196608
6042 ;;
6043
6044 os2*)
6045 # The test takes a long time on OS/2.
6046 lt_cv_sys_max_cmd_len=8192
6047 ;;
6048
6049 osf*)
6050 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6051 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6052 # nice to cause kernel panics so lets avoid the loop below.
6053 # First set a reasonable default.
6054 lt_cv_sys_max_cmd_len=16384
6055 #
6056 if test -x /sbin/sysconfig; then
6057 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6058 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6059 esac
6060 fi
6061 ;;
6062 sco3.2v5*)
6063 lt_cv_sys_max_cmd_len=102400
6064 ;;
6065 sysv5* | sco5v6* | sysv4.2uw2*)
6066 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6067 if test -n "$kargmax"; then
6068 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6069 else
6070 lt_cv_sys_max_cmd_len=32768
6071 fi
6072 ;;
6073 *)
6074 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6075 if test -n "$lt_cv_sys_max_cmd_len" && \
6076 test undefined != "$lt_cv_sys_max_cmd_len"; then
6077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079 else
6080 # Make teststring a little bigger before we do anything with it.
6081 # a 1K string should be a reasonable start.
6082 for i in 1 2 3 4 5 6 7 8; do
6083 teststring=$teststring$teststring
6084 done
6085 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6086 # If test is not a shell built-in, we'll probably end up computing a
6087 # maximum length that is only half of the actual maximum length, but
6088 # we can't tell.
6089 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6090 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6091 test 17 != "$i" # 1/2 MB should be enough
6092 do
6093 i=`expr $i + 1`
6094 teststring=$teststring$teststring
6095 done
6096 # Only check the string length outside the loop.
6097 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6098 teststring=
6099 # Add a significant safety factor because C++ compilers can tack on
6100 # massive amounts of additional arguments before passing them to the
6101 # linker. It appears as though 1/2 is a usable value.
6102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6103 fi
6104 ;;
6105 esac
6106
6107 fi
6108
6109 if test -n "$lt_cv_sys_max_cmd_len"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6111 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6112 else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6114 $as_echo "none" >&6; }
6115 fi
6116 max_cmd_len=$lt_cv_sys_max_cmd_len
6117
6118
6119
6120
6121
6122
6123 : ${CP="cp -f"}
6124 : ${MV="mv -f"}
6125 : ${RM="rm -f"}
6126
6127 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6128 lt_unset=unset
6129 else
6130 lt_unset=false
6131 fi
6132
6133
6134
6135
6136
6137 # test EBCDIC or ASCII
6138 case `echo X|tr X '\101'` in
6139 A) # ASCII based system
6140 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6141 lt_SP2NL='tr \040 \012'
6142 lt_NL2SP='tr \015\012 \040\040'
6143 ;;
6144 *) # EBCDIC based system
6145 lt_SP2NL='tr \100 \n'
6146 lt_NL2SP='tr \r\n \100\100'
6147 ;;
6148 esac
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6159 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6160 if ${lt_cv_to_host_file_cmd+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 case $host in
6164 *-*-mingw* )
6165 case $build in
6166 *-*-mingw* ) # actually msys
6167 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6168 ;;
6169 *-*-cygwin* )
6170 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6171 ;;
6172 * ) # otherwise, assume *nix
6173 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6174 ;;
6175 esac
6176 ;;
6177 *-*-cygwin* )
6178 case $build in
6179 *-*-mingw* ) # actually msys
6180 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6181 ;;
6182 *-*-cygwin* )
6183 lt_cv_to_host_file_cmd=func_convert_file_noop
6184 ;;
6185 * ) # otherwise, assume *nix
6186 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6187 ;;
6188 esac
6189 ;;
6190 * ) # unhandled hosts (and "normal" native builds)
6191 lt_cv_to_host_file_cmd=func_convert_file_noop
6192 ;;
6193 esac
6194
6195 fi
6196
6197 to_host_file_cmd=$lt_cv_to_host_file_cmd
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6199 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6200
6201
6202
6203
6204
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6206 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6207 if ${lt_cv_to_tool_file_cmd+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 #assume ordinary cross tools, or native build.
6211 lt_cv_to_tool_file_cmd=func_convert_file_noop
6212 case $host in
6213 *-*-mingw* )
6214 case $build in
6215 *-*-mingw* ) # actually msys
6216 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6217 ;;
6218 esac
6219 ;;
6220 esac
6221
6222 fi
6223
6224 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6226 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6227
6228
6229
6230
6231
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6233 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6234 if ${lt_cv_ld_reload_flag+:} false; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 lt_cv_ld_reload_flag='-r'
6238 fi
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6240 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6241 reload_flag=$lt_cv_ld_reload_flag
6242 case $reload_flag in
6243 "" | " "*) ;;
6244 *) reload_flag=" $reload_flag" ;;
6245 esac
6246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6247 case $host_os in
6248 cygwin* | mingw* | pw32* | cegcc*)
6249 if test yes != "$GCC"; then
6250 reload_cmds=false
6251 fi
6252 ;;
6253 darwin*)
6254 if test yes = "$GCC"; then
6255 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6256 else
6257 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6258 fi
6259 ;;
6260 esac
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270 if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6272 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if ${ac_cv_prog_OBJDUMP+:} false; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 if test -n "$OBJDUMP"; then
6279 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 OBJDUMP=$ac_cv_prog_OBJDUMP
6299 if test -n "$OBJDUMP"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6301 $as_echo "$OBJDUMP" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306
6307
6308 fi
6309 if test -z "$ac_cv_prog_OBJDUMP"; then
6310 ac_ct_OBJDUMP=$OBJDUMP
6311 # Extract the first word of "objdump", so it can be a program name with args.
6312 set dummy objdump; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 if test -n "$ac_ct_OBJDUMP"; then
6319 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6320 else
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332 done
6333 done
6334 IFS=$as_save_IFS
6335
6336 fi
6337 fi
6338 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6339 if test -n "$ac_ct_OBJDUMP"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6341 $as_echo "$ac_ct_OBJDUMP" >&6; }
6342 else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6345 fi
6346
6347 if test "x$ac_ct_OBJDUMP" = x; then
6348 OBJDUMP="false"
6349 else
6350 case $cross_compiling:$ac_tool_warned in
6351 yes:)
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354 ac_tool_warned=yes ;;
6355 esac
6356 OBJDUMP=$ac_ct_OBJDUMP
6357 fi
6358 else
6359 OBJDUMP="$ac_cv_prog_OBJDUMP"
6360 fi
6361
6362 test -z "$OBJDUMP" && OBJDUMP=objdump
6363
6364
6365
6366
6367
6368
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6370 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6371 if ${lt_cv_deplibs_check_method+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 lt_cv_file_magic_cmd='$MAGIC_CMD'
6375 lt_cv_file_magic_test_file=
6376 lt_cv_deplibs_check_method='unknown'
6377 # Need to set the preceding variable on all platforms that support
6378 # interlibrary dependencies.
6379 # 'none' -- dependencies not supported.
6380 # 'unknown' -- same as none, but documents that we really don't know.
6381 # 'pass_all' -- all dependencies passed with no checks.
6382 # 'test_compile' -- check by making test program.
6383 # 'file_magic [[regex]]' -- check by looking for files in library path
6384 # that responds to the $file_magic_cmd with a given extended regex.
6385 # If you have 'file' or equivalent on your system and you're not sure
6386 # whether 'pass_all' will *always* work, you probably want this one.
6387
6388 case $host_os in
6389 aix[4-9]*)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392
6393 beos*)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396
6397 bsdi[45]*)
6398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6399 lt_cv_file_magic_cmd='/usr/bin/file -L'
6400 lt_cv_file_magic_test_file=/shlib/libc.so
6401 ;;
6402
6403 cygwin*)
6404 # func_win32_libid is a shell function defined in ltmain.sh
6405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406 lt_cv_file_magic_cmd='func_win32_libid'
6407 ;;
6408
6409 mingw* | pw32*)
6410 # Base MSYS/MinGW do not provide the 'file' command needed by
6411 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6412 # unless we find 'file', for example because we are cross-compiling.
6413 if ( file / ) >/dev/null 2>&1; then
6414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6415 lt_cv_file_magic_cmd='func_win32_libid'
6416 else
6417 # Keep this pattern in sync with the one in func_win32_libid.
6418 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6419 lt_cv_file_magic_cmd='$OBJDUMP -f'
6420 fi
6421 ;;
6422
6423 cegcc*)
6424 # use the weaker test based on 'objdump'. See mingw*.
6425 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6426 lt_cv_file_magic_cmd='$OBJDUMP -f'
6427 ;;
6428
6429 darwin* | rhapsody*)
6430 lt_cv_deplibs_check_method=pass_all
6431 ;;
6432
6433 freebsd* | dragonfly*)
6434 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6435 case $host_cpu in
6436 i*86 )
6437 # Not sure whether the presence of OpenBSD here was a mistake.
6438 # Let's accept both of them until this is cleared up.
6439 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6440 lt_cv_file_magic_cmd=/usr/bin/file
6441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6442 ;;
6443 esac
6444 else
6445 lt_cv_deplibs_check_method=pass_all
6446 fi
6447 ;;
6448
6449 haiku*)
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452
6453 hpux10.20* | hpux11*)
6454 lt_cv_file_magic_cmd=/usr/bin/file
6455 case $host_cpu in
6456 ia64*)
6457 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6458 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6459 ;;
6460 hppa*64*)
6461 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]'
6462 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6463 ;;
6464 *)
6465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6466 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6467 ;;
6468 esac
6469 ;;
6470
6471 interix[3-9]*)
6472 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6474 ;;
6475
6476 irix5* | irix6* | nonstopux*)
6477 case $LD in
6478 *-32|*"-32 ") libmagic=32-bit;;
6479 *-n32|*"-n32 ") libmagic=N32;;
6480 *-64|*"-64 ") libmagic=64-bit;;
6481 *) libmagic=never-match;;
6482 esac
6483 lt_cv_deplibs_check_method=pass_all
6484 ;;
6485
6486 # This must be glibc/ELF.
6487 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490
6491 netbsd* | netbsdelf*-gnu)
6492 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6494 else
6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6496 fi
6497 ;;
6498
6499 newos6*)
6500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6501 lt_cv_file_magic_cmd=/usr/bin/file
6502 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6503 ;;
6504
6505 *nto* | *qnx*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508
6509 openbsd* | bitrig*)
6510 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6512 else
6513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6514 fi
6515 ;;
6516
6517 osf3* | osf4* | osf5*)
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520
6521 rdos*)
6522 lt_cv_deplibs_check_method=pass_all
6523 ;;
6524
6525 solaris*)
6526 lt_cv_deplibs_check_method=pass_all
6527 ;;
6528
6529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
6532
6533 sysv4 | sysv4.3*)
6534 case $host_vendor in
6535 motorola)
6536 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]'
6537 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6538 ;;
6539 ncr)
6540 lt_cv_deplibs_check_method=pass_all
6541 ;;
6542 sequent)
6543 lt_cv_file_magic_cmd='/bin/file'
6544 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6545 ;;
6546 sni)
6547 lt_cv_file_magic_cmd='/bin/file'
6548 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6549 lt_cv_file_magic_test_file=/lib/libc.so
6550 ;;
6551 siemens)
6552 lt_cv_deplibs_check_method=pass_all
6553 ;;
6554 pc)
6555 lt_cv_deplibs_check_method=pass_all
6556 ;;
6557 esac
6558 ;;
6559
6560 tpf*)
6561 lt_cv_deplibs_check_method=pass_all
6562 ;;
6563 os2*)
6564 lt_cv_deplibs_check_method=pass_all
6565 ;;
6566 esac
6567
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6570 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6571
6572 file_magic_glob=
6573 want_nocaseglob=no
6574 if test "$build" = "$host"; then
6575 case $host_os in
6576 mingw* | pw32*)
6577 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6578 want_nocaseglob=yes
6579 else
6580 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6581 fi
6582 ;;
6583 esac
6584 fi
6585
6586 file_magic_cmd=$lt_cv_file_magic_cmd
6587 deplibs_check_method=$lt_cv_deplibs_check_method
6588 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_DLLTOOL+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$DLLTOOL"; then
6620 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 DLLTOOL=$ac_cv_prog_DLLTOOL
6640 if test -n "$DLLTOOL"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6642 $as_echo "$DLLTOOL" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649 fi
6650 if test -z "$ac_cv_prog_DLLTOOL"; then
6651 ac_ct_DLLTOOL=$DLLTOOL
6652 # Extract the first word of "dlltool", so it can be a program name with args.
6653 set dummy dlltool; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$ac_ct_DLLTOOL"; then
6660 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6680 if test -n "$ac_ct_DLLTOOL"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6682 $as_echo "$ac_ct_DLLTOOL" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688 if test "x$ac_ct_DLLTOOL" = x; then
6689 DLLTOOL="false"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697 DLLTOOL=$ac_ct_DLLTOOL
6698 fi
6699 else
6700 DLLTOOL="$ac_cv_prog_DLLTOOL"
6701 fi
6702
6703 test -z "$DLLTOOL" && DLLTOOL=dlltool
6704
6705
6706
6707
6708
6709
6710
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6712 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6713 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 lt_cv_sharedlib_from_linklib_cmd='unknown'
6717
6718 case $host_os in
6719 cygwin* | mingw* | pw32* | cegcc*)
6720 # two different shell functions defined in ltmain.sh;
6721 # decide which one to use based on capabilities of $DLLTOOL
6722 case `$DLLTOOL --help 2>&1` in
6723 *--identify-strict*)
6724 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6725 ;;
6726 *)
6727 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6728 ;;
6729 esac
6730 ;;
6731 *)
6732 # fallback: assume linklib IS sharedlib
6733 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6734 ;;
6735 esac
6736
6737 fi
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6739 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6740 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6741 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6742
6743
6744
6745
6746
6747
6748
6749 if test -n "$ac_tool_prefix"; then
6750 for ac_prog in ar
6751 do
6752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_AR+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758 else
6759 if test -n "$AR"; then
6760 ac_cv_prog_AR="$AR" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773 done
6774 done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 AR=$ac_cv_prog_AR
6780 if test -n "$AR"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6782 $as_echo "$AR" >&6; }
6783 else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788
6789 test -n "$AR" && break
6790 done
6791 fi
6792 if test -z "$AR"; then
6793 ac_ct_AR=$AR
6794 for ac_prog in ar
6795 do
6796 # Extract the first word of "$ac_prog", so it can be a program name with args.
6797 set dummy $ac_prog; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802 else
6803 if test -n "$ac_ct_AR"; then
6804 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_AR="$ac_prog"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6824 if test -n "$ac_ct_AR"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6826 $as_echo "$ac_ct_AR" >&6; }
6827 else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832
6833 test -n "$ac_ct_AR" && break
6834 done
6835
6836 if test "x$ac_ct_AR" = x; then
6837 AR="false"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845 AR=$ac_ct_AR
6846 fi
6847 fi
6848
6849 : ${AR=ar}
6850 : ${AR_FLAGS=cr}
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6863 $as_echo_n "checking for archiver @FILE support... " >&6; }
6864 if ${lt_cv_ar_at_file+:} false; then :
6865 $as_echo_n "(cached) " >&6
6866 else
6867 lt_cv_ar_at_file=no
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870
6871 int
6872 main (void)
6873 {
6874
6875 ;
6876 return 0;
6877 }
6878 _ACEOF
6879 if ac_fn_c_try_compile "$LINENO"; then :
6880 echo conftest.$ac_objext > conftest.lst
6881 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6883 (eval $lt_ar_try) 2>&5
6884 ac_status=$?
6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; }
6887 if test 0 -eq "$ac_status"; then
6888 # Ensure the archiver fails upon bogus file names.
6889 rm -f conftest.$ac_objext libconftest.a
6890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6891 (eval $lt_ar_try) 2>&5
6892 ac_status=$?
6893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894 test $ac_status = 0; }
6895 if test 0 -ne "$ac_status"; then
6896 lt_cv_ar_at_file=@
6897 fi
6898 fi
6899 rm -f conftest.* libconftest.a
6900
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903
6904 fi
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6906 $as_echo "$lt_cv_ar_at_file" >&6; }
6907
6908 if test no = "$lt_cv_ar_at_file"; then
6909 archiver_list_spec=
6910 else
6911 archiver_list_spec=$lt_cv_ar_at_file
6912 fi
6913
6914
6915
6916
6917
6918
6919
6920 if test -n "$ac_tool_prefix"; then
6921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6922 set dummy ${ac_tool_prefix}strip; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_prog_STRIP+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 if test -n "$STRIP"; then
6929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934 IFS=$as_save_IFS
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 break 2
6941 fi
6942 done
6943 done
6944 IFS=$as_save_IFS
6945
6946 fi
6947 fi
6948 STRIP=$ac_cv_prog_STRIP
6949 if test -n "$STRIP"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6951 $as_echo "$STRIP" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6955 fi
6956
6957
6958 fi
6959 if test -z "$ac_cv_prog_STRIP"; then
6960 ac_ct_STRIP=$STRIP
6961 # Extract the first word of "strip", so it can be a program name with args.
6962 set dummy strip; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$ac_ct_STRIP"; then
6969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978 ac_cv_prog_ac_ct_STRIP="strip"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982 done
6983 done
6984 IFS=$as_save_IFS
6985
6986 fi
6987 fi
6988 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6989 if test -n "$ac_ct_STRIP"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6991 $as_echo "$ac_ct_STRIP" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6995 fi
6996
6997 if test "x$ac_ct_STRIP" = x; then
6998 STRIP=":"
6999 else
7000 case $cross_compiling:$ac_tool_warned in
7001 yes:)
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004 ac_tool_warned=yes ;;
7005 esac
7006 STRIP=$ac_ct_STRIP
7007 fi
7008 else
7009 STRIP="$ac_cv_prog_STRIP"
7010 fi
7011
7012 test -z "$STRIP" && STRIP=:
7013
7014
7015
7016
7017
7018
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_RANLIB+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 if test -n "$RANLIB"; then
7028 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7040 fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 RANLIB=$ac_cv_prog_RANLIB
7048 if test -n "$RANLIB"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7050 $as_echo "$RANLIB" >&6; }
7051 else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_prog_RANLIB"; then
7059 ac_ct_RANLIB=$RANLIB
7060 # Extract the first word of "ranlib", so it can be a program name with args.
7061 set dummy ranlib; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 if test -n "$ac_ct_RANLIB"; then
7068 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077 ac_cv_prog_ac_ct_RANLIB="ranlib"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081 done
7082 done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7088 if test -n "$ac_ct_RANLIB"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7090 $as_echo "$ac_ct_RANLIB" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7094 fi
7095
7096 if test "x$ac_ct_RANLIB" = x; then
7097 RANLIB=":"
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105 RANLIB=$ac_ct_RANLIB
7106 fi
7107 else
7108 RANLIB="$ac_cv_prog_RANLIB"
7109 fi
7110
7111 test -z "$RANLIB" && RANLIB=:
7112
7113
7114
7115
7116
7117
7118 # Determine commands to create old-style static archives.
7119 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7120 old_postinstall_cmds='chmod 644 $oldlib'
7121 old_postuninstall_cmds=
7122
7123 if test -n "$RANLIB"; then
7124 case $host_os in
7125 bitrig* | openbsd*)
7126 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7127 ;;
7128 *)
7129 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7130 ;;
7131 esac
7132 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7133 fi
7134
7135 case $host_os in
7136 darwin*)
7137 lock_old_archive_extraction=yes ;;
7138 *)
7139 lock_old_archive_extraction=no ;;
7140 esac
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 # If no C compiler was specified, use CC.
7181 LTCC=${LTCC-"$CC"}
7182
7183 # If no C compiler flags were specified, use CFLAGS.
7184 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7185
7186 # Allow CC to be a program name with arguments.
7187 compiler=$CC
7188
7189
7190 # Check for command to grab the raw symbol name followed by C symbol from nm.
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7192 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7193 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196
7197 # These are sane defaults that work on at least a few old systems.
7198 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7199
7200 # Character class describing NM global symbol codes.
7201 symcode='[BCDEGRST]'
7202
7203 # Regexp to match symbols that can be accessed directly from C.
7204 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7205
7206 # Define system-specific variables.
7207 case $host_os in
7208 aix*)
7209 symcode='[BCDT]'
7210 ;;
7211 cygwin* | mingw* | pw32* | cegcc*)
7212 symcode='[ABCDGISTW]'
7213 ;;
7214 hpux*)
7215 if test ia64 = "$host_cpu"; then
7216 symcode='[ABCDEGRST]'
7217 fi
7218 ;;
7219 irix* | nonstopux*)
7220 symcode='[BCDEGRST]'
7221 ;;
7222 osf*)
7223 symcode='[BCDEGQRST]'
7224 ;;
7225 solaris*)
7226 symcode='[BDRT]'
7227 ;;
7228 sco3.2v5*)
7229 symcode='[DT]'
7230 ;;
7231 sysv4.2uw2*)
7232 symcode='[DT]'
7233 ;;
7234 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7235 symcode='[ABDT]'
7236 ;;
7237 sysv4)
7238 symcode='[DFNSTU]'
7239 ;;
7240 esac
7241
7242 # If we're using GNU nm, then use its standard symbol codes.
7243 case `$NM -V 2>&1` in
7244 *GNU* | *'with BFD'*)
7245 symcode='[ABCDGIRSTW]' ;;
7246 esac
7247
7248 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7249 # Gets list of data symbols to import.
7250 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7251 # Adjust the below global symbol transforms to fixup imported variables.
7252 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7253 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7254 lt_c_name_lib_hook="\
7255 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7256 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7257 else
7258 # Disable hooks by default.
7259 lt_cv_sys_global_symbol_to_import=
7260 lt_cdecl_hook=
7261 lt_c_name_hook=
7262 lt_c_name_lib_hook=
7263 fi
7264
7265 # Transform an extracted symbol line into a proper C declaration.
7266 # Some systems (esp. on ia64) link data and code symbols differently,
7267 # so use this general approach.
7268 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7269 $lt_cdecl_hook\
7270 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7271 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7272
7273 # Transform an extracted symbol line into symbol name and symbol address
7274 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7275 $lt_c_name_hook\
7276 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7277 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7278
7279 # Transform an extracted symbol line into symbol name with lib prefix and
7280 # symbol address.
7281 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7282 $lt_c_name_lib_hook\
7283 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7284 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7285 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7286
7287 # Handle CRLF in mingw tool chain
7288 opt_cr=
7289 case $build_os in
7290 mingw*)
7291 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7292 ;;
7293 esac
7294
7295 # Try without a prefix underscore, then with it.
7296 for ac_symprfx in "" "_"; do
7297
7298 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7299 symxfrm="\\1 $ac_symprfx\\2 \\2"
7300
7301 # Write the raw and C identifiers.
7302 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7303 # Fake it for dumpbin and say T for any non-static function,
7304 # D for any global variable and I for any imported variable.
7305 # Also find C++ and __fastcall symbols from MSVC++,
7306 # which start with @ or ?.
7307 lt_cv_sys_global_symbol_pipe="$AWK '"\
7308 " {last_section=section; section=\$ 3};"\
7309 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7310 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7311 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7312 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7313 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7314 " \$ 0!~/External *\|/{next};"\
7315 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7316 " {if(hide[section]) next};"\
7317 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7318 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7319 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7320 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7321 " ' prfx=^$ac_symprfx"
7322 else
7323 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7324 fi
7325 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7326
7327 # Check to see that the pipe works correctly.
7328 pipe_works=no
7329
7330 rm -f conftest*
7331 cat > conftest.$ac_ext <<_LT_EOF
7332 #ifdef __cplusplus
7333 extern "C" {
7334 #endif
7335 char nm_test_var;
7336 void nm_test_func(void);
7337 void nm_test_func(void){}
7338 #ifdef __cplusplus
7339 }
7340 #endif
7341 int main(){nm_test_var='a';nm_test_func();return(0);}
7342 _LT_EOF
7343
7344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345 (eval $ac_compile) 2>&5
7346 ac_status=$?
7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348 test $ac_status = 0; }; then
7349 # Now try to grab the symbols.
7350 nlist=conftest.nm
7351 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7352 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7353 # Try sorting and uniquifying the output.
7354 if sort "$nlist" | uniq > "$nlist"T; then
7355 mv -f "$nlist"T "$nlist"
7356 else
7357 rm -f "$nlist"T
7358 fi
7359
7360 # Make sure that we snagged all the symbols we need.
7361 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7362 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7363 cat <<_LT_EOF > conftest.$ac_ext
7364 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7365 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7366 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7367 relocations are performed -- see ld's documentation on pseudo-relocs. */
7368 # define LT_DLSYM_CONST
7369 #elif defined __osf__
7370 /* This system does not cope well with relocations in const data. */
7371 # define LT_DLSYM_CONST
7372 #else
7373 # define LT_DLSYM_CONST const
7374 #endif
7375
7376 #ifdef __cplusplus
7377 extern "C" {
7378 #endif
7379
7380 _LT_EOF
7381 # Now generate the symbol file.
7382 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7383
7384 cat <<_LT_EOF >> conftest.$ac_ext
7385
7386 /* The mapping between symbol names and symbols. */
7387 LT_DLSYM_CONST struct {
7388 const char *name;
7389 void *address;
7390 }
7391 lt__PROGRAM__LTX_preloaded_symbols[] =
7392 {
7393 { "@PROGRAM@", (void *) 0 },
7394 _LT_EOF
7395 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7396 cat <<\_LT_EOF >> conftest.$ac_ext
7397 {0, (void *) 0}
7398 };
7399
7400 /* This works around a problem in FreeBSD linker */
7401 #ifdef FREEBSD_WORKAROUND
7402 static const void *lt_preloaded_setup() {
7403 return lt__PROGRAM__LTX_preloaded_symbols;
7404 }
7405 #endif
7406
7407 #ifdef __cplusplus
7408 }
7409 #endif
7410 _LT_EOF
7411 # Now try linking the two files.
7412 mv conftest.$ac_objext conftstm.$ac_objext
7413 lt_globsym_save_LIBS=$LIBS
7414 lt_globsym_save_CFLAGS=$CFLAGS
7415 LIBS=conftstm.$ac_objext
7416 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7418 (eval $ac_link) 2>&5
7419 ac_status=$?
7420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7422 pipe_works=yes
7423 fi
7424 LIBS=$lt_globsym_save_LIBS
7425 CFLAGS=$lt_globsym_save_CFLAGS
7426 else
7427 echo "cannot find nm_test_func in $nlist" >&5
7428 fi
7429 else
7430 echo "cannot find nm_test_var in $nlist" >&5
7431 fi
7432 else
7433 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7434 fi
7435 else
7436 echo "$progname: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7438 fi
7439 rm -rf conftest* conftst*
7440
7441 # Do not use the global_symbol_pipe unless it works.
7442 if test yes = "$pipe_works"; then
7443 break
7444 else
7445 lt_cv_sys_global_symbol_pipe=
7446 fi
7447 done
7448
7449 fi
7450
7451 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7452 lt_cv_sys_global_symbol_to_cdecl=
7453 fi
7454 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7456 $as_echo "failed" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7459 $as_echo "ok" >&6; }
7460 fi
7461
7462 # Response file support.
7463 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7464 nm_file_list_spec='@'
7465 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7466 nm_file_list_spec='@'
7467 fi
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7506 $as_echo_n "checking for sysroot... " >&6; }
7507
7508 # Check whether --with-sysroot was given.
7509 if test "${with_sysroot+set}" = set; then :
7510 withval=$with_sysroot;
7511 else
7512 with_sysroot=no
7513 fi
7514
7515
7516 lt_sysroot=
7517 case $with_sysroot in #(
7518 yes)
7519 if test yes = "$GCC"; then
7520 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7521 fi
7522 ;; #(
7523 /*)
7524 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7525 ;; #(
7526 no|'')
7527 ;; #(
7528 *)
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7530 $as_echo "$with_sysroot" >&6; }
7531 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7532 ;;
7533 esac
7534
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7536 $as_echo "${lt_sysroot:-no}" >&6; }
7537
7538
7539
7540
7541
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7543 $as_echo_n "checking for a working dd... " >&6; }
7544 if ${ac_cv_path_lt_DD+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 printf 0123456789abcdef0123456789abcdef >conftest.i
7548 cat conftest.i conftest.i >conftest2.i
7549 : ${lt_DD:=$DD}
7550 if test -z "$lt_DD"; then
7551 ac_path_lt_DD_found=false
7552 # Loop through the user's path and test for each of PROGNAME-LIST
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 for as_dir in $PATH
7555 do
7556 IFS=$as_save_IFS
7557 test -z "$as_dir" && as_dir=.
7558 for ac_prog in dd; do
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7561 as_fn_executable_p "$ac_path_lt_DD" || continue
7562 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7563 cmp -s conftest.i conftest.out \
7564 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7565 fi
7566 $ac_path_lt_DD_found && break 3
7567 done
7568 done
7569 done
7570 IFS=$as_save_IFS
7571 if test -z "$ac_cv_path_lt_DD"; then
7572 :
7573 fi
7574 else
7575 ac_cv_path_lt_DD=$lt_DD
7576 fi
7577
7578 rm -f conftest.i conftest2.i conftest.out
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7581 $as_echo "$ac_cv_path_lt_DD" >&6; }
7582
7583
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7585 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7586 if ${lt_cv_truncate_bin+:} false; then :
7587 $as_echo_n "(cached) " >&6
7588 else
7589 printf 0123456789abcdef0123456789abcdef >conftest.i
7590 cat conftest.i conftest.i >conftest2.i
7591 lt_cv_truncate_bin=
7592 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7593 cmp -s conftest.i conftest.out \
7594 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7595 fi
7596 rm -f conftest.i conftest2.i conftest.out
7597 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7600 $as_echo "$lt_cv_truncate_bin" >&6; }
7601
7602
7603
7604
7605
7606
7607
7608 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7609 func_cc_basename ()
7610 {
7611 for cc_temp in $*""; do
7612 case $cc_temp in
7613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7615 \-*) ;;
7616 *) break;;
7617 esac
7618 done
7619 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7620 }
7621
7622 # Check whether --enable-libtool-lock was given.
7623 if test "${enable_libtool_lock+set}" = set; then :
7624 enableval=$enable_libtool_lock;
7625 fi
7626
7627 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7628
7629 # Some flags need to be propagated to the compiler or linker for good
7630 # libtool support.
7631 case $host in
7632 ia64-*-hpux*)
7633 # Find out what ABI is being produced by ac_compile, and set mode
7634 # options accordingly.
7635 echo 'int i;' > conftest.$ac_ext
7636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7637 (eval $ac_compile) 2>&5
7638 ac_status=$?
7639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7640 test $ac_status = 0; }; then
7641 case `/usr/bin/file conftest.$ac_objext` in
7642 *ELF-32*)
7643 HPUX_IA64_MODE=32
7644 ;;
7645 *ELF-64*)
7646 HPUX_IA64_MODE=64
7647 ;;
7648 esac
7649 fi
7650 rm -rf conftest*
7651 ;;
7652 *-*-irix6*)
7653 # Find out what ABI is being produced by ac_compile, and set linker
7654 # options accordingly.
7655 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7657 (eval $ac_compile) 2>&5
7658 ac_status=$?
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; }; then
7661 if test yes = "$lt_cv_prog_gnu_ld"; then
7662 case `/usr/bin/file conftest.$ac_objext` in
7663 *32-bit*)
7664 LD="${LD-ld} -melf32bsmip"
7665 ;;
7666 *N32*)
7667 LD="${LD-ld} -melf32bmipn32"
7668 ;;
7669 *64-bit*)
7670 LD="${LD-ld} -melf64bmip"
7671 ;;
7672 esac
7673 else
7674 case `/usr/bin/file conftest.$ac_objext` in
7675 *32-bit*)
7676 LD="${LD-ld} -32"
7677 ;;
7678 *N32*)
7679 LD="${LD-ld} -n32"
7680 ;;
7681 *64-bit*)
7682 LD="${LD-ld} -64"
7683 ;;
7684 esac
7685 fi
7686 fi
7687 rm -rf conftest*
7688 ;;
7689
7690 mips64*-*linux*)
7691 # Find out what ABI is being produced by ac_compile, and set linker
7692 # options accordingly.
7693 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7695 (eval $ac_compile) 2>&5
7696 ac_status=$?
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; }; then
7699 emul=elf
7700 case `/usr/bin/file conftest.$ac_objext` in
7701 *32-bit*)
7702 emul="${emul}32"
7703 ;;
7704 *64-bit*)
7705 emul="${emul}64"
7706 ;;
7707 esac
7708 case `/usr/bin/file conftest.$ac_objext` in
7709 *MSB*)
7710 emul="${emul}btsmip"
7711 ;;
7712 *LSB*)
7713 emul="${emul}ltsmip"
7714 ;;
7715 esac
7716 case `/usr/bin/file conftest.$ac_objext` in
7717 *N32*)
7718 emul="${emul}n32"
7719 ;;
7720 esac
7721 LD="${LD-ld} -m $emul"
7722 fi
7723 rm -rf conftest*
7724 ;;
7725
7726 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7727 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7728 # Find out what ABI is being produced by ac_compile, and set linker
7729 # options accordingly. Note that the listed cases only cover the
7730 # situations where additional linker options are needed (such as when
7731 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7732 # vice versa); the common cases where no linker options are needed do
7733 # not appear in the list.
7734 echo 'int i;' > conftest.$ac_ext
7735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7736 (eval $ac_compile) 2>&5
7737 ac_status=$?
7738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7739 test $ac_status = 0; }; then
7740 case `/usr/bin/file conftest.o` in
7741 *32-bit*)
7742 case $host in
7743 x86_64-*kfreebsd*-gnu)
7744 LD="${LD-ld} -m elf_i386_fbsd"
7745 ;;
7746 x86_64-*linux*)
7747 case `/usr/bin/file conftest.o` in
7748 *x86-64*)
7749 LD="${LD-ld} -m elf32_x86_64"
7750 ;;
7751 *)
7752 LD="${LD-ld} -m elf_i386"
7753 ;;
7754 esac
7755 ;;
7756 powerpc64le-*linux*)
7757 LD="${LD-ld} -m elf32lppclinux"
7758 ;;
7759 powerpc64-*linux*)
7760 LD="${LD-ld} -m elf32ppclinux"
7761 ;;
7762 s390x-*linux*)
7763 LD="${LD-ld} -m elf_s390"
7764 ;;
7765 sparc64-*linux*)
7766 LD="${LD-ld} -m elf32_sparc"
7767 ;;
7768 esac
7769 ;;
7770 *64-bit*)
7771 case $host in
7772 x86_64-*kfreebsd*-gnu)
7773 LD="${LD-ld} -m elf_x86_64_fbsd"
7774 ;;
7775 x86_64-*linux*)
7776 LD="${LD-ld} -m elf_x86_64"
7777 ;;
7778 powerpcle-*linux*)
7779 LD="${LD-ld} -m elf64lppc"
7780 ;;
7781 powerpc-*linux*)
7782 LD="${LD-ld} -m elf64ppc"
7783 ;;
7784 s390*-*linux*|s390*-*tpf*)
7785 LD="${LD-ld} -m elf64_s390"
7786 ;;
7787 sparc*-*linux*)
7788 LD="${LD-ld} -m elf64_sparc"
7789 ;;
7790 esac
7791 ;;
7792 esac
7793 fi
7794 rm -rf conftest*
7795 ;;
7796
7797 *-*-sco3.2v5*)
7798 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7799 SAVE_CFLAGS=$CFLAGS
7800 CFLAGS="$CFLAGS -belf"
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7802 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7803 if ${lt_cv_cc_needs_belf+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 ac_ext=c
7807 ac_cpp='$CPP $CPPFLAGS'
7808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814
7815 int
7816 main (void)
7817 {
7818
7819 ;
7820 return 0;
7821 }
7822 _ACEOF
7823 if ac_fn_c_try_link "$LINENO"; then :
7824 lt_cv_cc_needs_belf=yes
7825 else
7826 lt_cv_cc_needs_belf=no
7827 fi
7828 rm -f core conftest.err conftest.$ac_objext \
7829 conftest$ac_exeext conftest.$ac_ext
7830 ac_ext=c
7831 ac_cpp='$CPP $CPPFLAGS'
7832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7835
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7838 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7839 if test yes != "$lt_cv_cc_needs_belf"; then
7840 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7841 CFLAGS=$SAVE_CFLAGS
7842 fi
7843 ;;
7844 *-*solaris*)
7845 # Find out what ABI is being produced by ac_compile, and set linker
7846 # options accordingly.
7847 echo 'int i;' > conftest.$ac_ext
7848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7849 (eval $ac_compile) 2>&5
7850 ac_status=$?
7851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7852 test $ac_status = 0; }; then
7853 case `/usr/bin/file conftest.o` in
7854 *64-bit*)
7855 case $lt_cv_prog_gnu_ld in
7856 yes*)
7857 case $host in
7858 i?86-*-solaris*|x86_64-*-solaris*)
7859 LD="${LD-ld} -m elf_x86_64"
7860 ;;
7861 sparc*-*-solaris*)
7862 LD="${LD-ld} -m elf64_sparc"
7863 ;;
7864 esac
7865 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7866 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7867 LD=${LD-ld}_sol2
7868 fi
7869 ;;
7870 *)
7871 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7872 LD="${LD-ld} -64"
7873 fi
7874 ;;
7875 esac
7876 ;;
7877 esac
7878 fi
7879 rm -rf conftest*
7880 ;;
7881 esac
7882
7883 need_locks=$enable_libtool_lock
7884
7885 if test -n "$ac_tool_prefix"; then
7886 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7887 set dummy ${ac_tool_prefix}mt; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 if test -n "$MANIFEST_TOOL"; then
7894 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907 done
7908 done
7909 IFS=$as_save_IFS
7910
7911 fi
7912 fi
7913 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7914 if test -n "$MANIFEST_TOOL"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7916 $as_echo "$MANIFEST_TOOL" >&6; }
7917 else
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920 fi
7921
7922
7923 fi
7924 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7925 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7926 # Extract the first word of "mt", so it can be a program name with args.
7927 set dummy mt; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 if test -n "$ac_ct_MANIFEST_TOOL"; then
7934 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7935 else
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937 for as_dir in $PATH
7938 do
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 break 2
7946 fi
7947 done
7948 done
7949 IFS=$as_save_IFS
7950
7951 fi
7952 fi
7953 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7954 if test -n "$ac_ct_MANIFEST_TOOL"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7956 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961
7962 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7963 MANIFEST_TOOL=":"
7964 else
7965 case $cross_compiling:$ac_tool_warned in
7966 yes:)
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7969 ac_tool_warned=yes ;;
7970 esac
7971 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7972 fi
7973 else
7974 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7975 fi
7976
7977 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7979 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7980 if ${lt_cv_path_mainfest_tool+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 lt_cv_path_mainfest_tool=no
7984 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7985 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7986 cat conftest.err >&5
7987 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7988 lt_cv_path_mainfest_tool=yes
7989 fi
7990 rm -f conftest*
7991 fi
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7993 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7994 if test yes != "$lt_cv_path_mainfest_tool"; then
7995 MANIFEST_TOOL=:
7996 fi
7997
7998
7999
8000
8001
8002
8003 case $host_os in
8004 rhapsody* | darwin*)
8005 if test -n "$ac_tool_prefix"; then
8006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 if test -n "$DSYMUTIL"; then
8014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8034 if test -n "$DSYMUTIL"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8036 $as_echo "$DSYMUTIL" >&6; }
8037 else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8040 fi
8041
8042
8043 fi
8044 if test -z "$ac_cv_prog_DSYMUTIL"; then
8045 ac_ct_DSYMUTIL=$DSYMUTIL
8046 # Extract the first word of "dsymutil", so it can be a program name with args.
8047 set dummy dsymutil; ac_word=$2
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 if test -n "$ac_ct_DSYMUTIL"; then
8054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 break 2
8066 fi
8067 done
8068 done
8069 IFS=$as_save_IFS
8070
8071 fi
8072 fi
8073 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8074 if test -n "$ac_ct_DSYMUTIL"; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8076 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8077 else
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 $as_echo "no" >&6; }
8080 fi
8081
8082 if test "x$ac_ct_DSYMUTIL" = x; then
8083 DSYMUTIL=":"
8084 else
8085 case $cross_compiling:$ac_tool_warned in
8086 yes:)
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089 ac_tool_warned=yes ;;
8090 esac
8091 DSYMUTIL=$ac_ct_DSYMUTIL
8092 fi
8093 else
8094 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8095 fi
8096
8097 if test -n "$ac_tool_prefix"; then
8098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8099 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if ${ac_cv_prog_NMEDIT+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 if test -n "$NMEDIT"; then
8106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8107 else
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 for as_dir in $PATH
8110 do
8111 IFS=$as_save_IFS
8112 test -z "$as_dir" && as_dir=.
8113 for ac_exec_ext in '' $ac_executable_extensions; do
8114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 break 2
8118 fi
8119 done
8120 done
8121 IFS=$as_save_IFS
8122
8123 fi
8124 fi
8125 NMEDIT=$ac_cv_prog_NMEDIT
8126 if test -n "$NMEDIT"; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8128 $as_echo "$NMEDIT" >&6; }
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8131 $as_echo "no" >&6; }
8132 fi
8133
8134
8135 fi
8136 if test -z "$ac_cv_prog_NMEDIT"; then
8137 ac_ct_NMEDIT=$NMEDIT
8138 # Extract the first word of "nmedit", so it can be a program name with args.
8139 set dummy nmedit; ac_word=$2
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144 else
8145 if test -n "$ac_ct_NMEDIT"; then
8146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8147 else
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8150 do
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8158 fi
8159 done
8160 done
8161 IFS=$as_save_IFS
8162
8163 fi
8164 fi
8165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8166 if test -n "$ac_ct_NMEDIT"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8168 $as_echo "$ac_ct_NMEDIT" >&6; }
8169 else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8172 fi
8173
8174 if test "x$ac_ct_NMEDIT" = x; then
8175 NMEDIT=":"
8176 else
8177 case $cross_compiling:$ac_tool_warned in
8178 yes:)
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8181 ac_tool_warned=yes ;;
8182 esac
8183 NMEDIT=$ac_ct_NMEDIT
8184 fi
8185 else
8186 NMEDIT="$ac_cv_prog_NMEDIT"
8187 fi
8188
8189 if test -n "$ac_tool_prefix"; then
8190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8191 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if ${ac_cv_prog_LIPO+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 if test -n "$LIPO"; then
8198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8199 else
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8202 do
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8210 fi
8211 done
8212 done
8213 IFS=$as_save_IFS
8214
8215 fi
8216 fi
8217 LIPO=$ac_cv_prog_LIPO
8218 if test -n "$LIPO"; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8220 $as_echo "$LIPO" >&6; }
8221 else
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 $as_echo "no" >&6; }
8224 fi
8225
8226
8227 fi
8228 if test -z "$ac_cv_prog_LIPO"; then
8229 ac_ct_LIPO=$LIPO
8230 # Extract the first word of "lipo", so it can be a program name with args.
8231 set dummy lipo; ac_word=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 if test -n "$ac_ct_LIPO"; then
8238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247 ac_cv_prog_ac_ct_LIPO="lipo"
8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8249 break 2
8250 fi
8251 done
8252 done
8253 IFS=$as_save_IFS
8254
8255 fi
8256 fi
8257 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8258 if test -n "$ac_ct_LIPO"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8260 $as_echo "$ac_ct_LIPO" >&6; }
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266 if test "x$ac_ct_LIPO" = x; then
8267 LIPO=":"
8268 else
8269 case $cross_compiling:$ac_tool_warned in
8270 yes:)
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8273 ac_tool_warned=yes ;;
8274 esac
8275 LIPO=$ac_ct_LIPO
8276 fi
8277 else
8278 LIPO="$ac_cv_prog_LIPO"
8279 fi
8280
8281 if test -n "$ac_tool_prefix"; then
8282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8283 set dummy ${ac_tool_prefix}otool; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if ${ac_cv_prog_OTOOL+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 if test -n "$OTOOL"; then
8290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295 IFS=$as_save_IFS
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 break 2
8302 fi
8303 done
8304 done
8305 IFS=$as_save_IFS
8306
8307 fi
8308 fi
8309 OTOOL=$ac_cv_prog_OTOOL
8310 if test -n "$OTOOL"; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8312 $as_echo "$OTOOL" >&6; }
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8316 fi
8317
8318
8319 fi
8320 if test -z "$ac_cv_prog_OTOOL"; then
8321 ac_ct_OTOOL=$OTOOL
8322 # Extract the first word of "otool", so it can be a program name with args.
8323 set dummy otool; ac_word=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8327 $as_echo_n "(cached) " >&6
8328 else
8329 if test -n "$ac_ct_OTOOL"; then
8330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8331 else
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333 for as_dir in $PATH
8334 do
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_ac_ct_OTOOL="otool"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8341 break 2
8342 fi
8343 done
8344 done
8345 IFS=$as_save_IFS
8346
8347 fi
8348 fi
8349 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8350 if test -n "$ac_ct_OTOOL"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8352 $as_echo "$ac_ct_OTOOL" >&6; }
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358 if test "x$ac_ct_OTOOL" = x; then
8359 OTOOL=":"
8360 else
8361 case $cross_compiling:$ac_tool_warned in
8362 yes:)
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8365 ac_tool_warned=yes ;;
8366 esac
8367 OTOOL=$ac_ct_OTOOL
8368 fi
8369 else
8370 OTOOL="$ac_cv_prog_OTOOL"
8371 fi
8372
8373 if test -n "$ac_tool_prefix"; then
8374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8375 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if ${ac_cv_prog_OTOOL64+:} false; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 if test -n "$OTOOL64"; then
8382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8383 else
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 for as_dir in $PATH
8386 do
8387 IFS=$as_save_IFS
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8393 break 2
8394 fi
8395 done
8396 done
8397 IFS=$as_save_IFS
8398
8399 fi
8400 fi
8401 OTOOL64=$ac_cv_prog_OTOOL64
8402 if test -n "$OTOOL64"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8404 $as_echo "$OTOOL64" >&6; }
8405 else
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 $as_echo "no" >&6; }
8408 fi
8409
8410
8411 fi
8412 if test -z "$ac_cv_prog_OTOOL64"; then
8413 ac_ct_OTOOL64=$OTOOL64
8414 # Extract the first word of "otool64", so it can be a program name with args.
8415 set dummy otool64; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 if test -n "$ac_ct_OTOOL64"; then
8422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8423 else
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8426 do
8427 IFS=$as_save_IFS
8428 test -z "$as_dir" && as_dir=.
8429 for ac_exec_ext in '' $ac_executable_extensions; do
8430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_ac_ct_OTOOL64="otool64"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 break 2
8434 fi
8435 done
8436 done
8437 IFS=$as_save_IFS
8438
8439 fi
8440 fi
8441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8442 if test -n "$ac_ct_OTOOL64"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8444 $as_echo "$ac_ct_OTOOL64" >&6; }
8445 else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 fi
8449
8450 if test "x$ac_ct_OTOOL64" = x; then
8451 OTOOL64=":"
8452 else
8453 case $cross_compiling:$ac_tool_warned in
8454 yes:)
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8457 ac_tool_warned=yes ;;
8458 esac
8459 OTOOL64=$ac_ct_OTOOL64
8460 fi
8461 else
8462 OTOOL64="$ac_cv_prog_OTOOL64"
8463 fi
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8492 $as_echo_n "checking for -single_module linker flag... " >&6; }
8493 if ${lt_cv_apple_cc_single_mod+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 lt_cv_apple_cc_single_mod=no
8497 if test -z "$LT_MULTI_MODULE"; then
8498 # By default we will add the -single_module flag. You can override
8499 # by either setting the environment variable LT_MULTI_MODULE
8500 # non-empty at configure time, or by adding -multi_module to the
8501 # link flags.
8502 rm -rf libconftest.dylib*
8503 echo "int foo(void){return 1;}" > conftest.c
8504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8505 -dynamiclib -Wl,-single_module conftest.c" >&5
8506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8508 _lt_result=$?
8509 # If there is a non-empty error log, and "single_module"
8510 # appears in it, assume the flag caused a linker warning
8511 if test -s conftest.err && $GREP single_module conftest.err; then
8512 cat conftest.err >&5
8513 # Otherwise, if the output was created with a 0 exit code from
8514 # the compiler, it worked.
8515 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8516 lt_cv_apple_cc_single_mod=yes
8517 else
8518 cat conftest.err >&5
8519 fi
8520 rm -rf libconftest.dylib*
8521 rm -f conftest.*
8522 fi
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8525 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8526
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8528 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8529 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8530 $as_echo_n "(cached) " >&6
8531 else
8532 lt_cv_ld_exported_symbols_list=no
8533 save_LDFLAGS=$LDFLAGS
8534 echo "_main" > conftest.sym
8535 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8538
8539 int
8540 main (void)
8541 {
8542
8543 ;
8544 return 0;
8545 }
8546 _ACEOF
8547 if ac_fn_c_try_link "$LINENO"; then :
8548 lt_cv_ld_exported_symbols_list=yes
8549 else
8550 lt_cv_ld_exported_symbols_list=no
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554 LDFLAGS=$save_LDFLAGS
8555
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8558 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8561 $as_echo_n "checking for -force_load linker flag... " >&6; }
8562 if ${lt_cv_ld_force_load+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 lt_cv_ld_force_load=no
8566 cat > conftest.c << _LT_EOF
8567 int forced_loaded() { return 2;}
8568 _LT_EOF
8569 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8570 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8571 echo "$AR cr libconftest.a conftest.o" >&5
8572 $AR cr libconftest.a conftest.o 2>&5
8573 echo "$RANLIB libconftest.a" >&5
8574 $RANLIB libconftest.a 2>&5
8575 cat > conftest.c << _LT_EOF
8576 int main() { return 0;}
8577 _LT_EOF
8578 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8579 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8580 _lt_result=$?
8581 if test -s conftest.err && $GREP force_load conftest.err; then
8582 cat conftest.err >&5
8583 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8584 lt_cv_ld_force_load=yes
8585 else
8586 cat conftest.err >&5
8587 fi
8588 rm -f conftest.err libconftest.a conftest conftest.c
8589 rm -rf conftest.dSYM
8590
8591 fi
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8593 $as_echo "$lt_cv_ld_force_load" >&6; }
8594 case $host_os in
8595 rhapsody* | darwin1.[012])
8596 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8597 darwin1.*)
8598 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8599 darwin*) # darwin 5.x on
8600 # if running on 10.5 or later, the deployment target defaults
8601 # to the OS version, if on x86, and 10.4, the deployment
8602 # target defaults to 10.4. Don't you love it?
8603 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8604 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8605 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8606 10.[012][,.]*)
8607 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8608 10.*)
8609 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8610 esac
8611 ;;
8612 esac
8613 if test yes = "$lt_cv_apple_cc_single_mod"; then
8614 _lt_dar_single_mod='$single_module'
8615 fi
8616 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8617 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8618 else
8619 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8620 fi
8621 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8622 _lt_dsymutil='~$DSYMUTIL $lib || :'
8623 else
8624 _lt_dsymutil=
8625 fi
8626 ;;
8627 esac
8628
8629 # func_munge_path_list VARIABLE PATH
8630 # -----------------------------------
8631 # VARIABLE is name of variable containing _space_ separated list of
8632 # directories to be munged by the contents of PATH, which is string
8633 # having a format:
8634 # "DIR[:DIR]:"
8635 # string "DIR[ DIR]" will be prepended to VARIABLE
8636 # ":DIR[:DIR]"
8637 # string "DIR[ DIR]" will be appended to VARIABLE
8638 # "DIRP[:DIRP]::[DIRA:]DIRA"
8639 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8640 # "DIRA[ DIRA]" will be appended to VARIABLE
8641 # "DIR[:DIR]"
8642 # VARIABLE will be replaced by "DIR[ DIR]"
8643 func_munge_path_list ()
8644 {
8645 case x$2 in
8646 x)
8647 ;;
8648 *:)
8649 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8650 ;;
8651 x:*)
8652 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8653 ;;
8654 *::*)
8655 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8656 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8657 ;;
8658 *)
8659 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8660 ;;
8661 esac
8662 }
8663
8664
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8666 $as_echo_n "checking for ANSI C header files... " >&6; }
8667 if ${ac_cv_header_stdc+:} false; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 #include <stdlib.h>
8673 #include <stdarg.h>
8674 #include <string.h>
8675 #include <float.h>
8676
8677 int
8678 main (void)
8679 {
8680
8681 ;
8682 return 0;
8683 }
8684 _ACEOF
8685 if ac_fn_c_try_compile "$LINENO"; then :
8686 ac_cv_header_stdc=yes
8687 else
8688 ac_cv_header_stdc=no
8689 fi
8690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8691
8692 if test $ac_cv_header_stdc = yes; then
8693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 #include <string.h>
8697
8698 _ACEOF
8699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8700 $EGREP "memchr" >/dev/null 2>&1; then :
8701
8702 else
8703 ac_cv_header_stdc=no
8704 fi
8705 rm -f conftest*
8706
8707 fi
8708
8709 if test $ac_cv_header_stdc = yes; then
8710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8713 #include <stdlib.h>
8714
8715 _ACEOF
8716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8717 $EGREP "free" >/dev/null 2>&1; then :
8718
8719 else
8720 ac_cv_header_stdc=no
8721 fi
8722 rm -f conftest*
8723
8724 fi
8725
8726 if test $ac_cv_header_stdc = yes; then
8727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8728 if test "$cross_compiling" = yes; then :
8729 :
8730 else
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 #include <ctype.h>
8734 #include <stdlib.h>
8735 #if ((' ' & 0x0FF) == 0x020)
8736 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8737 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8738 #else
8739 # define ISLOWER(c) \
8740 (('a' <= (c) && (c) <= 'i') \
8741 || ('j' <= (c) && (c) <= 'r') \
8742 || ('s' <= (c) && (c) <= 'z'))
8743 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8744 #endif
8745
8746 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8747 int
8748 main ()
8749 {
8750 int i;
8751 for (i = 0; i < 256; i++)
8752 if (XOR (islower (i), ISLOWER (i))
8753 || toupper (i) != TOUPPER (i))
8754 return 2;
8755 return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_run "$LINENO"; then :
8759
8760 else
8761 ac_cv_header_stdc=no
8762 fi
8763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8764 conftest.$ac_objext conftest.beam conftest.$ac_ext
8765 fi
8766
8767 fi
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8770 $as_echo "$ac_cv_header_stdc" >&6; }
8771 if test $ac_cv_header_stdc = yes; then
8772
8773 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8774
8775 fi
8776
8777 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8778 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8779 inttypes.h stdint.h unistd.h
8780 do :
8781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8782 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8783 "
8784 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8785 cat >>confdefs.h <<_ACEOF
8786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8787 _ACEOF
8788
8789 fi
8790
8791 done
8792
8793
8794 for ac_header in dlfcn.h
8795 do :
8796 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8797 "
8798 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8799 cat >>confdefs.h <<_ACEOF
8800 #define HAVE_DLFCN_H 1
8801 _ACEOF
8802
8803 fi
8804
8805 done
8806
8807
8808
8809
8810
8811 # Set options
8812 enable_win32_dll=yes
8813
8814 case $host in
8815 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8816 if test -n "$ac_tool_prefix"; then
8817 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8818 set dummy ${ac_tool_prefix}as; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_prog_AS+:} false; then :
8822 $as_echo_n "(cached) " >&6
8823 else
8824 if test -n "$AS"; then
8825 ac_cv_prog_AS="$AS" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8829 do
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_AS="${ac_tool_prefix}as"
8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8837 fi
8838 done
8839 done
8840 IFS=$as_save_IFS
8841
8842 fi
8843 fi
8844 AS=$ac_cv_prog_AS
8845 if test -n "$AS"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8847 $as_echo "$AS" >&6; }
8848 else
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8851 fi
8852
8853
8854 fi
8855 if test -z "$ac_cv_prog_AS"; then
8856 ac_ct_AS=$AS
8857 # Extract the first word of "as", so it can be a program name with args.
8858 set dummy as; ac_word=$2
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860 $as_echo_n "checking for $ac_word... " >&6; }
8861 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 if test -n "$ac_ct_AS"; then
8865 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8866 else
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8869 do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_ac_ct_AS="as"
8875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878 done
8879 done
8880 IFS=$as_save_IFS
8881
8882 fi
8883 fi
8884 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8885 if test -n "$ac_ct_AS"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8887 $as_echo "$ac_ct_AS" >&6; }
8888 else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890 $as_echo "no" >&6; }
8891 fi
8892
8893 if test "x$ac_ct_AS" = x; then
8894 AS="false"
8895 else
8896 case $cross_compiling:$ac_tool_warned in
8897 yes:)
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8900 ac_tool_warned=yes ;;
8901 esac
8902 AS=$ac_ct_AS
8903 fi
8904 else
8905 AS="$ac_cv_prog_AS"
8906 fi
8907
8908 if test -n "$ac_tool_prefix"; then
8909 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8910 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912 $as_echo_n "checking for $ac_word... " >&6; }
8913 if ${ac_cv_prog_DLLTOOL+:} false; then :
8914 $as_echo_n "(cached) " >&6
8915 else
8916 if test -n "$DLLTOOL"; then
8917 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8918 else
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in $PATH
8921 do
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8926 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8929 fi
8930 done
8931 done
8932 IFS=$as_save_IFS
8933
8934 fi
8935 fi
8936 DLLTOOL=$ac_cv_prog_DLLTOOL
8937 if test -n "$DLLTOOL"; then
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8939 $as_echo "$DLLTOOL" >&6; }
8940 else
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8943 fi
8944
8945
8946 fi
8947 if test -z "$ac_cv_prog_DLLTOOL"; then
8948 ac_ct_DLLTOOL=$DLLTOOL
8949 # Extract the first word of "dlltool", so it can be a program name with args.
8950 set dummy dlltool; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 if test -n "$ac_ct_DLLTOOL"; then
8957 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8958 else
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8960 for as_dir in $PATH
8961 do
8962 IFS=$as_save_IFS
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8966 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 break 2
8969 fi
8970 done
8971 done
8972 IFS=$as_save_IFS
8973
8974 fi
8975 fi
8976 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8977 if test -n "$ac_ct_DLLTOOL"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8979 $as_echo "$ac_ct_DLLTOOL" >&6; }
8980 else
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8983 fi
8984
8985 if test "x$ac_ct_DLLTOOL" = x; then
8986 DLLTOOL="false"
8987 else
8988 case $cross_compiling:$ac_tool_warned in
8989 yes:)
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8992 ac_tool_warned=yes ;;
8993 esac
8994 DLLTOOL=$ac_ct_DLLTOOL
8995 fi
8996 else
8997 DLLTOOL="$ac_cv_prog_DLLTOOL"
8998 fi
8999
9000 if test -n "$ac_tool_prefix"; then
9001 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9002 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004 $as_echo_n "checking for $ac_word... " >&6; }
9005 if ${ac_cv_prog_OBJDUMP+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 if test -n "$OBJDUMP"; then
9009 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9010 else
9011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012 for as_dir in $PATH
9013 do
9014 IFS=$as_save_IFS
9015 test -z "$as_dir" && as_dir=.
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_OBJDUMP="${ac_tool_prefix}objdump"
9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 break 2
9021 fi
9022 done
9023 done
9024 IFS=$as_save_IFS
9025
9026 fi
9027 fi
9028 OBJDUMP=$ac_cv_prog_OBJDUMP
9029 if test -n "$OBJDUMP"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9031 $as_echo "$OBJDUMP" >&6; }
9032 else
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9035 fi
9036
9037
9038 fi
9039 if test -z "$ac_cv_prog_OBJDUMP"; then
9040 ac_ct_OBJDUMP=$OBJDUMP
9041 # Extract the first word of "objdump", so it can be a program name with args.
9042 set dummy objdump; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 if test -n "$ac_ct_OBJDUMP"; then
9049 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9050 else
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052 for as_dir in $PATH
9053 do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9058 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9060 break 2
9061 fi
9062 done
9063 done
9064 IFS=$as_save_IFS
9065
9066 fi
9067 fi
9068 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9069 if test -n "$ac_ct_OBJDUMP"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9071 $as_echo "$ac_ct_OBJDUMP" >&6; }
9072 else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9075 fi
9076
9077 if test "x$ac_ct_OBJDUMP" = x; then
9078 OBJDUMP="false"
9079 else
9080 case $cross_compiling:$ac_tool_warned in
9081 yes:)
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9084 ac_tool_warned=yes ;;
9085 esac
9086 OBJDUMP=$ac_ct_OBJDUMP
9087 fi
9088 else
9089 OBJDUMP="$ac_cv_prog_OBJDUMP"
9090 fi
9091
9092 ;;
9093 esac
9094
9095 test -z "$AS" && AS=as
9096
9097
9098
9099
9100
9101 test -z "$DLLTOOL" && DLLTOOL=dlltool
9102
9103
9104
9105
9106
9107 test -z "$OBJDUMP" && OBJDUMP=objdump
9108
9109
9110
9111
9112
9113
9114
9115 enable_dlopen=no
9116
9117
9118
9119 # Check whether --enable-shared was given.
9120 if test "${enable_shared+set}" = set; then :
9121 enableval=$enable_shared; p=${PACKAGE-default}
9122 case $enableval in
9123 yes) enable_shared=yes ;;
9124 no) enable_shared=no ;;
9125 *)
9126 enable_shared=no
9127 # Look at the argument we got. We use all the common list separators.
9128 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9129 for pkg in $enableval; do
9130 IFS=$lt_save_ifs
9131 if test "X$pkg" = "X$p"; then
9132 enable_shared=yes
9133 fi
9134 done
9135 IFS=$lt_save_ifs
9136 ;;
9137 esac
9138 else
9139 enable_shared=yes
9140 fi
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150 # Check whether --enable-static was given.
9151 if test "${enable_static+set}" = set; then :
9152 enableval=$enable_static; p=${PACKAGE-default}
9153 case $enableval in
9154 yes) enable_static=yes ;;
9155 no) enable_static=no ;;
9156 *)
9157 enable_static=no
9158 # Look at the argument we got. We use all the common list separators.
9159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9160 for pkg in $enableval; do
9161 IFS=$lt_save_ifs
9162 if test "X$pkg" = "X$p"; then
9163 enable_static=yes
9164 fi
9165 done
9166 IFS=$lt_save_ifs
9167 ;;
9168 esac
9169 else
9170 enable_static=yes
9171 fi
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182 # Check whether --with-pic was given.
9183 if test "${with_pic+set}" = set; then :
9184 withval=$with_pic; lt_p=${PACKAGE-default}
9185 case $withval in
9186 yes|no) pic_mode=$withval ;;
9187 *)
9188 pic_mode=default
9189 # Look at the argument we got. We use all the common list separators.
9190 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9191 for lt_pkg in $withval; do
9192 IFS=$lt_save_ifs
9193 if test "X$lt_pkg" = "X$lt_p"; then
9194 pic_mode=yes
9195 fi
9196 done
9197 IFS=$lt_save_ifs
9198 ;;
9199 esac
9200 else
9201 pic_mode=default
9202 fi
9203
9204
9205
9206
9207
9208
9209
9210
9211 # Check whether --enable-fast-install was given.
9212 if test "${enable_fast_install+set}" = set; then :
9213 enableval=$enable_fast_install; p=${PACKAGE-default}
9214 case $enableval in
9215 yes) enable_fast_install=yes ;;
9216 no) enable_fast_install=no ;;
9217 *)
9218 enable_fast_install=no
9219 # Look at the argument we got. We use all the common list separators.
9220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9221 for pkg in $enableval; do
9222 IFS=$lt_save_ifs
9223 if test "X$pkg" = "X$p"; then
9224 enable_fast_install=yes
9225 fi
9226 done
9227 IFS=$lt_save_ifs
9228 ;;
9229 esac
9230 else
9231 enable_fast_install=yes
9232 fi
9233
9234
9235
9236
9237
9238
9239
9240
9241 shared_archive_member_spec=
9242 case $host,$enable_shared in
9243 power*-*-aix[5-9]*,yes)
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9245 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9246
9247 # Check whether --with-aix-soname was given.
9248 if test "${with_aix_soname+set}" = set; then :
9249 withval=$with_aix_soname; case $withval in
9250 aix|svr4|both)
9251 ;;
9252 *)
9253 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9254 ;;
9255 esac
9256 lt_cv_with_aix_soname=$with_aix_soname
9257 else
9258 if ${lt_cv_with_aix_soname+:} false; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 lt_cv_with_aix_soname=aix
9262 fi
9263
9264 with_aix_soname=$lt_cv_with_aix_soname
9265 fi
9266
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9268 $as_echo "$with_aix_soname" >&6; }
9269 if test aix != "$with_aix_soname"; then
9270 # For the AIX way of multilib, we name the shared archive member
9271 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9272 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9273 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9274 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9275 if test 64 = "${OBJECT_MODE-32}"; then
9276 shared_archive_member_spec=shr_64
9277 else
9278 shared_archive_member_spec=shr
9279 fi
9280 fi
9281 ;;
9282 *)
9283 with_aix_soname=aix
9284 ;;
9285 esac
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296 # This can be used to rebuild libtool when needed
9297 LIBTOOL_DEPS=$ltmain
9298
9299 # Always use our own libtool.
9300 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331 test -z "$LN_S" && LN_S="ln -s"
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346 if test -n "${ZSH_VERSION+set}"; then
9347 setopt NO_GLOB_SUBST
9348 fi
9349
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9351 $as_echo_n "checking for objdir... " >&6; }
9352 if ${lt_cv_objdir+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 rm -f .libs 2>/dev/null
9356 mkdir .libs 2>/dev/null
9357 if test -d .libs; then
9358 lt_cv_objdir=.libs
9359 else
9360 # MS-DOS does not allow filenames that begin with a dot.
9361 lt_cv_objdir=_libs
9362 fi
9363 rmdir .libs 2>/dev/null
9364 fi
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9366 $as_echo "$lt_cv_objdir" >&6; }
9367 objdir=$lt_cv_objdir
9368
9369
9370
9371
9372
9373 cat >>confdefs.h <<_ACEOF
9374 #define LT_OBJDIR "$lt_cv_objdir/"
9375 _ACEOF
9376
9377
9378
9379
9380 case $host_os in
9381 aix3*)
9382 # AIX sometimes has problems with the GCC collect2 program. For some
9383 # reason, if we set the COLLECT_NAMES environment variable, the problems
9384 # vanish in a puff of smoke.
9385 if test set != "${COLLECT_NAMES+set}"; then
9386 COLLECT_NAMES=
9387 export COLLECT_NAMES
9388 fi
9389 ;;
9390 esac
9391
9392 # Global variables:
9393 ofile=libtool
9394 can_build_shared=yes
9395
9396 # All known linkers require a '.a' archive for static linking (except MSVC,
9397 # which needs '.lib').
9398 libext=a
9399
9400 with_gnu_ld=$lt_cv_prog_gnu_ld
9401
9402 old_CC=$CC
9403 old_CFLAGS=$CFLAGS
9404
9405 # Set sane defaults for various variables
9406 test -z "$CC" && CC=cc
9407 test -z "$LTCC" && LTCC=$CC
9408 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9409 test -z "$LD" && LD=ld
9410 test -z "$ac_objext" && ac_objext=o
9411
9412 func_cc_basename $compiler
9413 cc_basename=$func_cc_basename_result
9414
9415
9416 # Only perform the check for file, if the check method requires it
9417 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9418 case $deplibs_check_method in
9419 file_magic*)
9420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9422 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9423 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
9426 case $MAGIC_CMD in
9427 [\\/*] | ?:[\\/]*)
9428 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9429 ;;
9430 *)
9431 lt_save_MAGIC_CMD=$MAGIC_CMD
9432 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9434 for ac_dir in $ac_dummy; do
9435 IFS=$lt_save_ifs
9436 test -z "$ac_dir" && ac_dir=.
9437 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9438 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9439 if test -n "$file_magic_test_file"; then
9440 case $deplibs_check_method in
9441 "file_magic "*)
9442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9443 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9445 $EGREP "$file_magic_regex" > /dev/null; then
9446 :
9447 else
9448 cat <<_LT_EOF 1>&2
9449
9450 *** Warning: the command libtool uses to detect shared libraries,
9451 *** $file_magic_cmd, produces output that libtool cannot recognize.
9452 *** The result is that libtool may fail to recognize shared libraries
9453 *** as such. This will affect the creation of libtool libraries that
9454 *** depend on shared libraries, but programs linked with such libtool
9455 *** libraries will work regardless of this problem. Nevertheless, you
9456 *** may want to report the problem to your system manager and/or to
9457 *** bug-libtool (at] gnu.org
9458
9459 _LT_EOF
9460 fi ;;
9461 esac
9462 fi
9463 break
9464 fi
9465 done
9466 IFS=$lt_save_ifs
9467 MAGIC_CMD=$lt_save_MAGIC_CMD
9468 ;;
9469 esac
9470 fi
9471
9472 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9473 if test -n "$MAGIC_CMD"; then
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9475 $as_echo "$MAGIC_CMD" >&6; }
9476 else
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 $as_echo "no" >&6; }
9479 fi
9480
9481
9482
9483
9484
9485 if test -z "$lt_cv_path_MAGIC_CMD"; then
9486 if test -n "$ac_tool_prefix"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9488 $as_echo_n "checking for file... " >&6; }
9489 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 case $MAGIC_CMD in
9493 [\\/*] | ?:[\\/]*)
9494 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9495 ;;
9496 *)
9497 lt_save_MAGIC_CMD=$MAGIC_CMD
9498 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9500 for ac_dir in $ac_dummy; do
9501 IFS=$lt_save_ifs
9502 test -z "$ac_dir" && ac_dir=.
9503 if test -f "$ac_dir/file"; then
9504 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9505 if test -n "$file_magic_test_file"; then
9506 case $deplibs_check_method in
9507 "file_magic "*)
9508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9509 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9511 $EGREP "$file_magic_regex" > /dev/null; then
9512 :
9513 else
9514 cat <<_LT_EOF 1>&2
9515
9516 *** Warning: the command libtool uses to detect shared libraries,
9517 *** $file_magic_cmd, produces output that libtool cannot recognize.
9518 *** The result is that libtool may fail to recognize shared libraries
9519 *** as such. This will affect the creation of libtool libraries that
9520 *** depend on shared libraries, but programs linked with such libtool
9521 *** libraries will work regardless of this problem. Nevertheless, you
9522 *** may want to report the problem to your system manager and/or to
9523 *** bug-libtool (at] gnu.org
9524
9525 _LT_EOF
9526 fi ;;
9527 esac
9528 fi
9529 break
9530 fi
9531 done
9532 IFS=$lt_save_ifs
9533 MAGIC_CMD=$lt_save_MAGIC_CMD
9534 ;;
9535 esac
9536 fi
9537
9538 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9539 if test -n "$MAGIC_CMD"; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9541 $as_echo "$MAGIC_CMD" >&6; }
9542 else
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545 fi
9546
9547
9548 else
9549 MAGIC_CMD=:
9550 fi
9551 fi
9552
9553 fi
9554 ;;
9555 esac
9556
9557 # Use C for the default configuration in the libtool script
9558
9559 lt_save_CC=$CC
9560 ac_ext=c
9561 ac_cpp='$CPP $CPPFLAGS'
9562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9565
9566
9567 # Source file extension for C test sources.
9568 ac_ext=c
9569
9570 # Object file extension for compiled C test sources.
9571 objext=o
9572 objext=$objext
9573
9574 # Code to be used in simple compile tests
9575 lt_simple_compile_test_code="int some_variable = 0;"
9576
9577 # Code to be used in simple link tests
9578 lt_simple_link_test_code='int main(){return(0);}'
9579
9580
9581
9582
9583
9584
9585
9586 # If no C compiler was specified, use CC.
9587 LTCC=${LTCC-"$CC"}
9588
9589 # If no C compiler flags were specified, use CFLAGS.
9590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9591
9592 # Allow CC to be a program name with arguments.
9593 compiler=$CC
9594
9595 # Save the default compiler, since it gets overwritten when the other
9596 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9597 compiler_DEFAULT=$CC
9598
9599 # save warnings/boilerplate of simple test code
9600 ac_outfile=conftest.$ac_objext
9601 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9602 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9603 _lt_compiler_boilerplate=`cat conftest.err`
9604 $RM conftest*
9605
9606 ac_outfile=conftest.$ac_objext
9607 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9608 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9609 _lt_linker_boilerplate=`cat conftest.err`
9610 $RM -r conftest*
9611
9612
9613 ## CAVEAT EMPTOR:
9614 ## There is no encapsulation within the following macros, do not change
9615 ## the running order or otherwise move them around unless you know exactly
9616 ## what you are doing...
9617 if test -n "$compiler"; then
9618
9619 lt_prog_compiler_no_builtin_flag=
9620
9621 if test yes = "$GCC"; then
9622 case $cc_basename in
9623 nvcc*)
9624 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9625 *)
9626 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9627 esac
9628
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9630 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9631 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 lt_cv_prog_compiler_rtti_exceptions=no
9635 ac_outfile=conftest.$ac_objext
9636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9637 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9638 # Insert the option either (1) after the last *FLAGS variable, or
9639 # (2) before a word containing "conftest.", or (3) at the end.
9640 # Note that $ac_compile itself does not contain backslashes and begins
9641 # with a dollar sign (not a hyphen), so the echo should work correctly.
9642 # The option is referenced via a variable to avoid confusing sed.
9643 lt_compile=`echo "$ac_compile" | $SED \
9644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9646 -e 's:$: $lt_compiler_flag:'`
9647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9648 (eval "$lt_compile" 2>conftest.err)
9649 ac_status=$?
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 if (exit $ac_status) && test -s "$ac_outfile"; then
9653 # The compiler can only warn and ignore the option if not recognized
9654 # So say no if there are warnings other than the usual output.
9655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9658 lt_cv_prog_compiler_rtti_exceptions=yes
9659 fi
9660 fi
9661 $RM conftest*
9662
9663 fi
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9665 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9666
9667 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9668 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9669 else
9670 :
9671 fi
9672
9673 fi
9674
9675
9676
9677
9678
9679
9680 lt_prog_compiler_wl=
9681 lt_prog_compiler_pic=
9682 lt_prog_compiler_static=
9683
9684
9685 if test yes = "$GCC"; then
9686 lt_prog_compiler_wl='-Wl,'
9687 lt_prog_compiler_static='-static'
9688
9689 case $host_os in
9690 aix*)
9691 # All AIX code is PIC.
9692 if test ia64 = "$host_cpu"; then
9693 # AIX 5 now supports IA64 processor
9694 lt_prog_compiler_static='-Bstatic'
9695 fi
9696 lt_prog_compiler_pic='-fPIC'
9697 ;;
9698
9699 amigaos*)
9700 case $host_cpu in
9701 powerpc)
9702 # see comment about AmigaOS4 .so support
9703 lt_prog_compiler_pic='-fPIC'
9704 ;;
9705 m68k)
9706 # FIXME: we need at least 68020 code to build shared libraries, but
9707 # adding the '-m68020' flag to GCC prevents building anything better,
9708 # like '-m68040'.
9709 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9710 ;;
9711 esac
9712 ;;
9713
9714 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9715 # PIC is the default for these OSes.
9716 ;;
9717
9718 mingw* | cygwin* | pw32* | os2* | cegcc*)
9719 # This hack is so that the source file can tell whether it is being
9720 # built for inclusion in a dll (and should export symbols for example).
9721 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9722 # (--disable-auto-import) libraries
9723 lt_prog_compiler_pic='-DDLL_EXPORT'
9724 case $host_os in
9725 os2*)
9726 lt_prog_compiler_static='$wl-static'
9727 ;;
9728 esac
9729 ;;
9730
9731 darwin* | rhapsody*)
9732 # PIC is the default on this platform
9733 # Common symbols not allowed in MH_DYLIB files
9734 lt_prog_compiler_pic='-fno-common'
9735 ;;
9736
9737 haiku*)
9738 # PIC is the default for Haiku.
9739 # The "-static" flag exists, but is broken.
9740 lt_prog_compiler_static=
9741 ;;
9742
9743 hpux*)
9744 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9745 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9746 # sets the default TLS model and affects inlining.
9747 case $host_cpu in
9748 hppa*64*)
9749 # +Z the default
9750 ;;
9751 *)
9752 lt_prog_compiler_pic='-fPIC'
9753 ;;
9754 esac
9755 ;;
9756
9757 interix[3-9]*)
9758 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9759 # Instead, we relocate shared libraries at runtime.
9760 ;;
9761
9762 msdosdjgpp*)
9763 # Just because we use GCC doesn't mean we suddenly get shared libraries
9764 # on systems that don't support them.
9765 lt_prog_compiler_can_build_shared=no
9766 enable_shared=no
9767 ;;
9768
9769 *nto* | *qnx*)
9770 # QNX uses GNU C++, but need to define -shared option too, otherwise
9771 # it will coredump.
9772 lt_prog_compiler_pic='-fPIC -shared'
9773 ;;
9774
9775 sysv4*MP*)
9776 if test -d /usr/nec; then
9777 lt_prog_compiler_pic=-Kconform_pic
9778 fi
9779 ;;
9780
9781 *)
9782 lt_prog_compiler_pic='-fPIC'
9783 ;;
9784 esac
9785
9786 case $cc_basename in
9787 nvcc*) # Cuda Compiler Driver 2.2
9788 lt_prog_compiler_wl='-Xlinker '
9789 if test -n "$lt_prog_compiler_pic"; then
9790 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9791 fi
9792 ;;
9793 esac
9794 else
9795 # PORTME Check for flag to pass linker flags through the system compiler.
9796 case $host_os in
9797 aix*)
9798 lt_prog_compiler_wl='-Wl,'
9799 if test ia64 = "$host_cpu"; then
9800 # AIX 5 now supports IA64 processor
9801 lt_prog_compiler_static='-Bstatic'
9802 else
9803 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9804 fi
9805 ;;
9806
9807 darwin* | rhapsody*)
9808 # PIC is the default on this platform
9809 # Common symbols not allowed in MH_DYLIB files
9810 lt_prog_compiler_pic='-fno-common'
9811 case $cc_basename in
9812 nagfor*)
9813 # NAG Fortran compiler
9814 lt_prog_compiler_wl='-Wl,-Wl,,'
9815 lt_prog_compiler_pic='-PIC'
9816 lt_prog_compiler_static='-Bstatic'
9817 ;;
9818 esac
9819 ;;
9820
9821 mingw* | cygwin* | pw32* | os2* | cegcc*)
9822 # This hack is so that the source file can tell whether it is being
9823 # built for inclusion in a dll (and should export symbols for example).
9824 lt_prog_compiler_pic='-DDLL_EXPORT'
9825 case $host_os in
9826 os2*)
9827 lt_prog_compiler_static='$wl-static'
9828 ;;
9829 esac
9830 ;;
9831
9832 hpux9* | hpux10* | hpux11*)
9833 lt_prog_compiler_wl='-Wl,'
9834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9835 # not for PA HP-UX.
9836 case $host_cpu in
9837 hppa*64*|ia64*)
9838 # +Z the default
9839 ;;
9840 *)
9841 lt_prog_compiler_pic='+Z'
9842 ;;
9843 esac
9844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9845 lt_prog_compiler_static='$wl-a ${wl}archive'
9846 ;;
9847
9848 irix5* | irix6* | nonstopux*)
9849 lt_prog_compiler_wl='-Wl,'
9850 # PIC (with -KPIC) is the default.
9851 lt_prog_compiler_static='-non_shared'
9852 ;;
9853
9854 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9855 case $cc_basename in
9856 # old Intel for x86_64, which still supported -KPIC.
9857 ecc*)
9858 lt_prog_compiler_wl='-Wl,'
9859 lt_prog_compiler_pic='-KPIC'
9860 lt_prog_compiler_static='-static'
9861 ;;
9862 # flang / f18. f95 an alias for gfortran or flang on Debian
9863 flang* | f18* | f95*)
9864 lt_prog_compiler_wl='-Wl,'
9865 lt_prog_compiler_pic='-fPIC'
9866 lt_prog_compiler_static='-static'
9867 ;;
9868 # icc used to be incompatible with GCC.
9869 # ICC 10 doesn't accept -KPIC any more.
9870 icc* | ifort*)
9871 lt_prog_compiler_wl='-Wl,'
9872 lt_prog_compiler_pic='-fPIC'
9873 lt_prog_compiler_static='-static'
9874 ;;
9875 # Lahey Fortran 8.1.
9876 lf95*)
9877 lt_prog_compiler_wl='-Wl,'
9878 lt_prog_compiler_pic='--shared'
9879 lt_prog_compiler_static='--static'
9880 ;;
9881 nagfor*)
9882 # NAG Fortran compiler
9883 lt_prog_compiler_wl='-Wl,-Wl,,'
9884 lt_prog_compiler_pic='-PIC'
9885 lt_prog_compiler_static='-Bstatic'
9886 ;;
9887 tcc*)
9888 # Fabrice Bellard et al's Tiny C Compiler
9889 lt_prog_compiler_wl='-Wl,'
9890 lt_prog_compiler_pic='-fPIC'
9891 lt_prog_compiler_static='-static'
9892 ;;
9893 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9894 # Portland Group compilers (*not* the Pentium gcc compiler,
9895 # which looks to be a dead project)
9896 lt_prog_compiler_wl='-Wl,'
9897 lt_prog_compiler_pic='-fpic'
9898 lt_prog_compiler_static='-Bstatic'
9899 ;;
9900 ccc*)
9901 lt_prog_compiler_wl='-Wl,'
9902 # All Alpha code is PIC.
9903 lt_prog_compiler_static='-non_shared'
9904 ;;
9905 xl* | bgxl* | bgf* | mpixl*)
9906 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9907 lt_prog_compiler_wl='-Wl,'
9908 lt_prog_compiler_pic='-qpic'
9909 lt_prog_compiler_static='-qstaticlink'
9910 ;;
9911 *)
9912 case `$CC -V 2>&1 | sed 5q` in
9913 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9914 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9915 lt_prog_compiler_pic='-KPIC'
9916 lt_prog_compiler_static='-Bstatic'
9917 lt_prog_compiler_wl=''
9918 ;;
9919 *Sun\ F* | *Sun*Fortran*)
9920 lt_prog_compiler_pic='-KPIC'
9921 lt_prog_compiler_static='-Bstatic'
9922 lt_prog_compiler_wl='-Qoption ld '
9923 ;;
9924 *Sun\ C*)
9925 # Sun C 5.9
9926 lt_prog_compiler_pic='-KPIC'
9927 lt_prog_compiler_static='-Bstatic'
9928 lt_prog_compiler_wl='-Wl,'
9929 ;;
9930 *Intel*\ [CF]*Compiler*)
9931 lt_prog_compiler_wl='-Wl,'
9932 lt_prog_compiler_pic='-fPIC'
9933 lt_prog_compiler_static='-static'
9934 ;;
9935 *Portland\ Group*)
9936 lt_prog_compiler_wl='-Wl,'
9937 lt_prog_compiler_pic='-fpic'
9938 lt_prog_compiler_static='-Bstatic'
9939 ;;
9940 esac
9941 ;;
9942 esac
9943 ;;
9944
9945 newsos6)
9946 lt_prog_compiler_pic='-KPIC'
9947 lt_prog_compiler_static='-Bstatic'
9948 ;;
9949
9950 *nto* | *qnx*)
9951 # QNX uses GNU C++, but need to define -shared option too, otherwise
9952 # it will coredump.
9953 lt_prog_compiler_pic='-fPIC -shared'
9954 ;;
9955
9956 osf3* | osf4* | osf5*)
9957 lt_prog_compiler_wl='-Wl,'
9958 # All OSF/1 code is PIC.
9959 lt_prog_compiler_static='-non_shared'
9960 ;;
9961
9962 rdos*)
9963 lt_prog_compiler_static='-non_shared'
9964 ;;
9965
9966 solaris*)
9967 lt_prog_compiler_pic='-KPIC'
9968 lt_prog_compiler_static='-Bstatic'
9969 case $cc_basename in
9970 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9971 lt_prog_compiler_wl='-Qoption ld ';;
9972 *)
9973 lt_prog_compiler_wl='-Wl,';;
9974 esac
9975 ;;
9976
9977 sunos4*)
9978 lt_prog_compiler_wl='-Qoption ld '
9979 lt_prog_compiler_pic='-PIC'
9980 lt_prog_compiler_static='-Bstatic'
9981 ;;
9982
9983 sysv4 | sysv4.2uw2* | sysv4.3*)
9984 lt_prog_compiler_wl='-Wl,'
9985 lt_prog_compiler_pic='-KPIC'
9986 lt_prog_compiler_static='-Bstatic'
9987 ;;
9988
9989 sysv4*MP*)
9990 if test -d /usr/nec; then
9991 lt_prog_compiler_pic='-Kconform_pic'
9992 lt_prog_compiler_static='-Bstatic'
9993 fi
9994 ;;
9995
9996 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9997 lt_prog_compiler_wl='-Wl,'
9998 lt_prog_compiler_pic='-KPIC'
9999 lt_prog_compiler_static='-Bstatic'
10000 ;;
10001
10002 unicos*)
10003 lt_prog_compiler_wl='-Wl,'
10004 lt_prog_compiler_can_build_shared=no
10005 ;;
10006
10007 uts4*)
10008 lt_prog_compiler_pic='-pic'
10009 lt_prog_compiler_static='-Bstatic'
10010 ;;
10011
10012 *)
10013 lt_prog_compiler_can_build_shared=no
10014 ;;
10015 esac
10016 fi
10017
10018 case $host_os in
10019 # For platforms that do not support PIC, -DPIC is meaningless:
10020 *djgpp*)
10021 lt_prog_compiler_pic=
10022 ;;
10023 *)
10024 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10025 ;;
10026 esac
10027
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10029 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10030 if ${lt_cv_prog_compiler_pic+:} false; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10034 fi
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10036 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10037 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10038
10039 #
10040 # Check to make sure the PIC flag actually works.
10041 #
10042 if test -n "$lt_prog_compiler_pic"; then
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10044 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10045 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10046 $as_echo_n "(cached) " >&6
10047 else
10048 lt_cv_prog_compiler_pic_works=no
10049 ac_outfile=conftest.$ac_objext
10050 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10051 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10052 # Insert the option either (1) after the last *FLAGS variable, or
10053 # (2) before a word containing "conftest.", or (3) at the end.
10054 # Note that $ac_compile itself does not contain backslashes and begins
10055 # with a dollar sign (not a hyphen), so the echo should work correctly.
10056 # The option is referenced via a variable to avoid confusing sed.
10057 lt_compile=`echo "$ac_compile" | $SED \
10058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10060 -e 's:$: $lt_compiler_flag:'`
10061 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10062 (eval "$lt_compile" 2>conftest.err)
10063 ac_status=$?
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 if (exit $ac_status) && test -s "$ac_outfile"; then
10067 # The compiler can only warn and ignore the option if not recognized
10068 # So say no if there are warnings other than the usual output.
10069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10071 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10072 lt_cv_prog_compiler_pic_works=yes
10073 fi
10074 fi
10075 $RM conftest*
10076
10077 fi
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10079 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10080
10081 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10082 case $lt_prog_compiler_pic in
10083 "" | " "*) ;;
10084 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10085 esac
10086 else
10087 lt_prog_compiler_pic=
10088 lt_prog_compiler_can_build_shared=no
10089 fi
10090
10091 fi
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103 #
10104 # Check to make sure the static flag actually works.
10105 #
10106 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10108 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10109 if ${lt_cv_prog_compiler_static_works+:} false; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 lt_cv_prog_compiler_static_works=no
10113 save_LDFLAGS=$LDFLAGS
10114 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10115 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10116 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10117 # The linker can only warn and ignore the option if not recognized
10118 # So say no if there are warnings
10119 if test -s conftest.err; then
10120 # Append any errors to the config.log.
10121 cat conftest.err 1>&5
10122 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10124 if diff conftest.exp conftest.er2 >/dev/null; then
10125 lt_cv_prog_compiler_static_works=yes
10126 fi
10127 else
10128 lt_cv_prog_compiler_static_works=yes
10129 fi
10130 fi
10131 $RM -r conftest*
10132 LDFLAGS=$save_LDFLAGS
10133
10134 fi
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10136 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10137
10138 if test yes = "$lt_cv_prog_compiler_static_works"; then
10139 :
10140 else
10141 lt_prog_compiler_static=
10142 fi
10143
10144
10145
10146
10147
10148
10149
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10151 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10152 if ${lt_cv_prog_compiler_c_o+:} false; then :
10153 $as_echo_n "(cached) " >&6
10154 else
10155 lt_cv_prog_compiler_c_o=no
10156 $RM -r conftest 2>/dev/null
10157 mkdir conftest
10158 cd conftest
10159 mkdir out
10160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10161
10162 lt_compiler_flag="-o out/conftest2.$ac_objext"
10163 # Insert the option either (1) after the last *FLAGS variable, or
10164 # (2) before a word containing "conftest.", or (3) at the end.
10165 # Note that $ac_compile itself does not contain backslashes and begins
10166 # with a dollar sign (not a hyphen), so the echo should work correctly.
10167 lt_compile=`echo "$ac_compile" | $SED \
10168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10170 -e 's:$: $lt_compiler_flag:'`
10171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10172 (eval "$lt_compile" 2>out/conftest.err)
10173 ac_status=$?
10174 cat out/conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10177 then
10178 # The compiler can only warn and ignore the option if not recognized
10179 # So say no if there are warnings
10180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10183 lt_cv_prog_compiler_c_o=yes
10184 fi
10185 fi
10186 chmod u+w . 2>&5
10187 $RM conftest*
10188 # SGI C++ compiler will create directory out/ii_files/ for
10189 # template instantiation
10190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10191 $RM out/* && rmdir out
10192 cd ..
10193 $RM -r conftest
10194 $RM conftest*
10195
10196 fi
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10198 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10199
10200
10201
10202
10203
10204
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10207 if ${lt_cv_prog_compiler_c_o+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 lt_cv_prog_compiler_c_o=no
10211 $RM -r conftest 2>/dev/null
10212 mkdir conftest
10213 cd conftest
10214 mkdir out
10215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10216
10217 lt_compiler_flag="-o out/conftest2.$ac_objext"
10218 # Insert the option either (1) after the last *FLAGS variable, or
10219 # (2) before a word containing "conftest.", or (3) at the end.
10220 # Note that $ac_compile itself does not contain backslashes and begins
10221 # with a dollar sign (not a hyphen), so the echo should work correctly.
10222 lt_compile=`echo "$ac_compile" | $SED \
10223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10225 -e 's:$: $lt_compiler_flag:'`
10226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10227 (eval "$lt_compile" 2>out/conftest.err)
10228 ac_status=$?
10229 cat out/conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10232 then
10233 # The compiler can only warn and ignore the option if not recognized
10234 # So say no if there are warnings
10235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10236 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10237 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10238 lt_cv_prog_compiler_c_o=yes
10239 fi
10240 fi
10241 chmod u+w . 2>&5
10242 $RM conftest*
10243 # SGI C++ compiler will create directory out/ii_files/ for
10244 # template instantiation
10245 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10246 $RM out/* && rmdir out
10247 cd ..
10248 $RM -r conftest
10249 $RM conftest*
10250
10251 fi
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10254
10255
10256
10257
10258 hard_links=nottested
10259 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10260 # do not overwrite the value of need_locks provided by the user
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10262 $as_echo_n "checking if we can lock with hard links... " >&6; }
10263 hard_links=yes
10264 $RM conftest*
10265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10266 touch conftest.a
10267 ln conftest.a conftest.b 2>&5 || hard_links=no
10268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10270 $as_echo "$hard_links" >&6; }
10271 if test no = "$hard_links"; then
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10273 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10274 need_locks=warn
10275 fi
10276 else
10277 need_locks=no
10278 fi
10279
10280
10281
10282
10283
10284
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10286 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10287
10288 runpath_var=
10289 allow_undefined_flag=
10290 always_export_symbols=no
10291 archive_cmds=
10292 archive_expsym_cmds=
10293 compiler_needs_object=no
10294 enable_shared_with_static_runtimes=no
10295 export_dynamic_flag_spec=
10296 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10297 hardcode_automatic=no
10298 hardcode_direct=no
10299 hardcode_direct_absolute=no
10300 hardcode_libdir_flag_spec=
10301 hardcode_libdir_separator=
10302 hardcode_minus_L=no
10303 hardcode_shlibpath_var=unsupported
10304 inherit_rpath=no
10305 link_all_deplibs=unknown
10306 module_cmds=
10307 module_expsym_cmds=
10308 old_archive_from_new_cmds=
10309 old_archive_from_expsyms_cmds=
10310 thread_safe_flag_spec=
10311 whole_archive_flag_spec=
10312 # include_expsyms should be a list of space-separated symbols to be *always*
10313 # included in the symbol list
10314 include_expsyms=
10315 # exclude_expsyms can be an extended regexp of symbols to exclude
10316 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10317 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10318 # as well as any symbol that contains 'd'.
10319 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10320 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10321 # platforms (ab)use it in PIC code, but their linkers get confused if
10322 # the symbol is explicitly referenced. Since portable code cannot
10323 # rely on this symbol name, it's probably fine to never include it in
10324 # preloaded symbol tables.
10325 # Exclude shared library initialization/finalization symbols.
10326 extract_expsyms_cmds=
10327
10328 case $host_os in
10329 cygwin* | mingw* | pw32* | cegcc*)
10330 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10331 # When not using gcc, we currently assume that we are using
10332 # Microsoft Visual C++.
10333 if test yes != "$GCC"; then
10334 with_gnu_ld=no
10335 fi
10336 ;;
10337 interix*)
10338 # we just hope/assume this is gcc and not c89 (= MSVC++)
10339 with_gnu_ld=yes
10340 ;;
10341 openbsd* | bitrig*)
10342 with_gnu_ld=no
10343 ;;
10344 linux* | k*bsd*-gnu | gnu*)
10345 link_all_deplibs=no
10346 ;;
10347 esac
10348
10349 ld_shlibs=yes
10350
10351 # On some targets, GNU ld is compatible enough with the native linker
10352 # that we're better off using the native interface for both.
10353 lt_use_gnu_ld_interface=no
10354 if test yes = "$with_gnu_ld"; then
10355 case $host_os in
10356 aix*)
10357 # The AIX port of GNU ld has always aspired to compatibility
10358 # with the native linker. However, as the warning in the GNU ld
10359 # block says, versions before 2.19.5* couldn't really create working
10360 # shared libraries, regardless of the interface used.
10361 case `$LD -v 2>&1` in
10362 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10363 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10364 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10365 *)
10366 lt_use_gnu_ld_interface=yes
10367 ;;
10368 esac
10369 ;;
10370 *)
10371 lt_use_gnu_ld_interface=yes
10372 ;;
10373 esac
10374 fi
10375
10376 if test yes = "$lt_use_gnu_ld_interface"; then
10377 # If archive_cmds runs LD, not CC, wlarc should be empty
10378 wlarc='$wl'
10379
10380 # Set some defaults for GNU ld with shared library support. These
10381 # are reset later if shared libraries are not supported. Putting them
10382 # here allows them to be overridden if necessary.
10383 runpath_var=LD_RUN_PATH
10384 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10385 export_dynamic_flag_spec='$wl--export-dynamic'
10386 # ancient GNU ld didn't support --whole-archive et. al.
10387 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10388 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10389 else
10390 whole_archive_flag_spec=
10391 fi
10392 supports_anon_versioning=no
10393 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10394 *GNU\ gold*) supports_anon_versioning=yes ;;
10395 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10396 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10397 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10398 *\ 2.11.*) ;; # other 2.11 versions
10399 *) supports_anon_versioning=yes ;;
10400 esac
10401
10402 # See if GNU ld supports shared libraries.
10403 case $host_os in
10404 aix[3-9]*)
10405 # On AIX/PPC, the GNU linker is very broken
10406 if test ia64 != "$host_cpu"; then
10407 ld_shlibs=no
10408 cat <<_LT_EOF 1>&2
10409
10410 *** Warning: the GNU linker, at least up to release 2.19, is reported
10411 *** to be unable to reliably create shared libraries on AIX.
10412 *** Therefore, libtool is disabling shared libraries support. If you
10413 *** really care for shared libraries, you may want to install binutils
10414 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10415 *** You will then need to restart the configuration process.
10416
10417 _LT_EOF
10418 fi
10419 ;;
10420
10421 amigaos*)
10422 case $host_cpu in
10423 powerpc)
10424 # see comment about AmigaOS4 .so support
10425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10426 archive_expsym_cmds=''
10427 ;;
10428 m68k)
10429 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)'
10430 hardcode_libdir_flag_spec='-L$libdir'
10431 hardcode_minus_L=yes
10432 ;;
10433 esac
10434 ;;
10435
10436 beos*)
10437 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10438 allow_undefined_flag=unsupported
10439 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10440 # support --undefined. This deserves some investigation. FIXME
10441 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10442 else
10443 ld_shlibs=no
10444 fi
10445 ;;
10446
10447 cygwin* | mingw* | pw32* | cegcc*)
10448 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10449 # as there is no search path for DLLs.
10450 hardcode_libdir_flag_spec='-L$libdir'
10451 export_dynamic_flag_spec='$wl--export-all-symbols'
10452 allow_undefined_flag=unsupported
10453 always_export_symbols=no
10454 enable_shared_with_static_runtimes=yes
10455 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'
10456 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10457
10458 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10460 # If the export-symbols file already is a .def file, use it as
10461 # is; otherwise, prepend EXPORTS...
10462 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10463 cp $export_symbols $output_objdir/$soname.def;
10464 else
10465 echo EXPORTS > $output_objdir/$soname.def;
10466 cat $export_symbols >> $output_objdir/$soname.def;
10467 fi~
10468 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10469 else
10470 ld_shlibs=no
10471 fi
10472 ;;
10473
10474 haiku*)
10475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10476 link_all_deplibs=yes
10477 ;;
10478
10479 os2*)
10480 hardcode_libdir_flag_spec='-L$libdir'
10481 hardcode_minus_L=yes
10482 allow_undefined_flag=unsupported
10483 shrext_cmds=.dll
10484 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10485 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10486 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10487 $ECHO EXPORTS >> $output_objdir/$libname.def~
10488 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10489 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10490 emximp -o $lib $output_objdir/$libname.def'
10491 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10492 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10493 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10494 $ECHO EXPORTS >> $output_objdir/$libname.def~
10495 prefix_cmds="$SED"~
10496 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10497 prefix_cmds="$prefix_cmds -e 1d";
10498 fi~
10499 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10500 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10501 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10502 emximp -o $lib $output_objdir/$libname.def'
10503 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10504 enable_shared_with_static_runtimes=yes
10505 ;;
10506
10507 interix[3-9]*)
10508 hardcode_direct=no
10509 hardcode_shlibpath_var=no
10510 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10511 export_dynamic_flag_spec='$wl-E'
10512 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10513 # Instead, shared libraries are loaded at an image base (0x10000000 by
10514 # default) and relocated if they conflict, which is a slow very memory
10515 # consuming and fragmenting process. To avoid this, we pick a random,
10516 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10517 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10518 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10519 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'
10520 ;;
10521
10522 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10523 tmp_diet=no
10524 if test linux-dietlibc = "$host_os"; then
10525 case $cc_basename in
10526 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10527 esac
10528 fi
10529 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10530 && test no = "$tmp_diet"
10531 then
10532 tmp_addflag=' $pic_flag'
10533 tmp_sharedflag='-shared'
10534 case $cc_basename,$host_cpu in
10535 pgcc*) # Portland Group C compiler
10536 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'
10537 tmp_addflag=' $pic_flag'
10538 ;;
10539 pgf77* | pgf90* | pgf95* | pgfortran*)
10540 # Portland Group f77 and f90 compilers
10541 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'
10542 tmp_addflag=' $pic_flag -Mnomain' ;;
10543 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10544 tmp_addflag=' -i_dynamic' ;;
10545 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10546 tmp_addflag=' -i_dynamic -nofor_main' ;;
10547 ifc* | ifort*) # Intel Fortran compiler
10548 tmp_addflag=' -nofor_main' ;;
10549 lf95*) # Lahey Fortran 8.1
10550 whole_archive_flag_spec=
10551 tmp_sharedflag='--shared' ;;
10552 nagfor*) # NAGFOR 5.3
10553 tmp_sharedflag='-Wl,-shared' ;;
10554 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10555 tmp_sharedflag='-qmkshrobj'
10556 tmp_addflag= ;;
10557 nvcc*) # Cuda Compiler Driver 2.2
10558 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'
10559 compiler_needs_object=yes
10560 ;;
10561 esac
10562 case `$CC -V 2>&1 | sed 5q` in
10563 *Sun\ C*) # Sun C 5.9
10564 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'
10565 compiler_needs_object=yes
10566 tmp_sharedflag='-G' ;;
10567 *Sun\ F*) # Sun Fortran 8.3
10568 tmp_sharedflag='-G' ;;
10569 esac
10570 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10571
10572 if test yes = "$supports_anon_versioning"; then
10573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10575 echo "local: *; };" >> $output_objdir/$libname.ver~
10576 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10577 fi
10578
10579 case $cc_basename in
10580 tcc*)
10581 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10582 export_dynamic_flag_spec='-rdynamic'
10583 ;;
10584 xlf* | bgf* | bgxlf* | mpixlf*)
10585 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10586 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10587 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10588 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10589 if test yes = "$supports_anon_versioning"; then
10590 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10592 echo "local: *; };" >> $output_objdir/$libname.ver~
10593 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10594 fi
10595 ;;
10596 esac
10597 else
10598 ld_shlibs=no
10599 fi
10600 ;;
10601
10602 netbsd* | netbsdelf*-gnu)
10603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10604 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10605 wlarc=
10606 else
10607 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10608 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10609 fi
10610 ;;
10611
10612 solaris*)
10613 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10614 ld_shlibs=no
10615 cat <<_LT_EOF 1>&2
10616
10617 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10618 *** create shared libraries on Solaris systems. Therefore, libtool
10619 *** is disabling shared libraries support. We urge you to upgrade GNU
10620 *** binutils to release 2.9.1 or newer. Another option is to modify
10621 *** your PATH or compiler configuration so that the native linker is
10622 *** used, and then restart.
10623
10624 _LT_EOF
10625 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10626 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10627 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10628 else
10629 ld_shlibs=no
10630 fi
10631 ;;
10632
10633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10634 case `$LD -v 2>&1` in
10635 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10636 ld_shlibs=no
10637 cat <<_LT_EOF 1>&2
10638
10639 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10640 *** reliably create shared libraries on SCO systems. Therefore, libtool
10641 *** is disabling shared libraries support. We urge you to upgrade GNU
10642 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10643 *** your PATH or compiler configuration so that the native linker is
10644 *** used, and then restart.
10645
10646 _LT_EOF
10647 ;;
10648 *)
10649 # For security reasons, it is highly recommended that you always
10650 # use absolute paths for naming shared libraries, and exclude the
10651 # DT_RUNPATH tag from executables and libraries. But doing so
10652 # requires that you compile everything twice, which is a pain.
10653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10654 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10657 else
10658 ld_shlibs=no
10659 fi
10660 ;;
10661 esac
10662 ;;
10663
10664 sunos4*)
10665 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10666 wlarc=
10667 hardcode_direct=yes
10668 hardcode_shlibpath_var=no
10669 ;;
10670
10671 *)
10672 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10675 else
10676 ld_shlibs=no
10677 fi
10678 ;;
10679 esac
10680
10681 if test no = "$ld_shlibs"; then
10682 runpath_var=
10683 hardcode_libdir_flag_spec=
10684 export_dynamic_flag_spec=
10685 whole_archive_flag_spec=
10686 fi
10687 else
10688 # PORTME fill in a description of your system's linker (not GNU ld)
10689 case $host_os in
10690 aix3*)
10691 allow_undefined_flag=unsupported
10692 always_export_symbols=yes
10693 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'
10694 # Note: this linker hardcodes the directories in LIBPATH if there
10695 # are no directories specified by -L.
10696 hardcode_minus_L=yes
10697 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10698 # Neither direct hardcoding nor static linking is supported with a
10699 # broken collect2.
10700 hardcode_direct=unsupported
10701 fi
10702 ;;
10703
10704 aix[4-9]*)
10705 if test ia64 = "$host_cpu"; then
10706 # On IA64, the linker does run time linking by default, so we don't
10707 # have to do anything special.
10708 aix_use_runtimelinking=no
10709 exp_sym_flag='-Bexport'
10710 no_entry_flag=
10711 else
10712 # If we're using GNU nm, then we don't want the "-C" option.
10713 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10714 # Without the "-l" option, or with the "-B" option, AIX nm treats
10715 # weak defined symbols like other global defined symbols, whereas
10716 # GNU nm marks them as "W".
10717 # While the 'weak' keyword is ignored in the Export File, we need
10718 # it in the Import File for the 'aix-soname' feature, so we have
10719 # to replace the "-B" option with "-P" for AIX nm.
10720 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10721 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'
10722 else
10723 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 == "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'
10724 fi
10725 aix_use_runtimelinking=no
10726
10727 # Test if we are trying to use run time linking or normal
10728 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10729 # have runtime linking enabled, and use it for executables.
10730 # For shared libraries, we enable/disable runtime linking
10731 # depending on the kind of the shared library created -
10732 # when "with_aix_soname,aix_use_runtimelinking" is:
10733 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10734 # "aix,yes" lib.so shared, rtl:yes, for executables
10735 # lib.a static archive
10736 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10737 # lib.a(lib.so.V) shared, rtl:no, for executables
10738 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10739 # lib.a(lib.so.V) shared, rtl:no
10740 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10741 # lib.a static archive
10742 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10743 for ld_flag in $LDFLAGS; do
10744 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10745 aix_use_runtimelinking=yes
10746 break
10747 fi
10748 done
10749 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10750 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10751 # so we don't have lib.a shared libs to link our executables.
10752 # We have to force runtime linking in this case.
10753 aix_use_runtimelinking=yes
10754 LDFLAGS="$LDFLAGS -Wl,-brtl"
10755 fi
10756 ;;
10757 esac
10758
10759 exp_sym_flag='-bexport'
10760 no_entry_flag='-bnoentry'
10761 fi
10762
10763 # When large executables or shared objects are built, AIX ld can
10764 # have problems creating the table of contents. If linking a library
10765 # or program results in "error TOC overflow" add -mminimal-toc to
10766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10768
10769 archive_cmds=''
10770 hardcode_direct=yes
10771 hardcode_direct_absolute=yes
10772 hardcode_libdir_separator=':'
10773 link_all_deplibs=yes
10774 file_list_spec='$wl-f,'
10775 case $with_aix_soname,$aix_use_runtimelinking in
10776 aix,*) ;; # traditional, no import file
10777 svr4,* | *,yes) # use import file
10778 # The Import File defines what to hardcode.
10779 hardcode_direct=no
10780 hardcode_direct_absolute=no
10781 ;;
10782 esac
10783
10784 if test yes = "$GCC"; then
10785 case $host_os in aix4.[012]|aix4.[012].*)
10786 # We only want to do this on AIX 4.2 and lower, the check
10787 # below for broken collect2 doesn't work under 4.3+
10788 collect2name=`$CC -print-prog-name=collect2`
10789 if test -f "$collect2name" &&
10790 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10791 then
10792 # We have reworked collect2
10793 :
10794 else
10795 # We have old collect2
10796 hardcode_direct=unsupported
10797 # It fails to find uninstalled libraries when the uninstalled
10798 # path is not listed in the libpath. Setting hardcode_minus_L
10799 # to unsupported forces relinking
10800 hardcode_minus_L=yes
10801 hardcode_libdir_flag_spec='-L$libdir'
10802 hardcode_libdir_separator=
10803 fi
10804 ;;
10805 esac
10806 shared_flag='-shared'
10807 if test yes = "$aix_use_runtimelinking"; then
10808 shared_flag="$shared_flag "'$wl-G'
10809 fi
10810 # Need to ensure runtime linking is disabled for the traditional
10811 # shared library, or the linker may eventually find shared libraries
10812 # /with/ Import File - we do not want to mix them.
10813 shared_flag_aix='-shared'
10814 shared_flag_svr4='-shared $wl-G'
10815 else
10816 # not using gcc
10817 if test ia64 = "$host_cpu"; then
10818 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10819 # chokes on -Wl,-G. The following line is correct:
10820 shared_flag='-G'
10821 else
10822 if test yes = "$aix_use_runtimelinking"; then
10823 shared_flag='$wl-G'
10824 else
10825 shared_flag='$wl-bM:SRE'
10826 fi
10827 shared_flag_aix='$wl-bM:SRE'
10828 shared_flag_svr4='$wl-G'
10829 fi
10830 fi
10831
10832 export_dynamic_flag_spec='$wl-bexpall'
10833 # It seems that -bexpall does not export symbols beginning with
10834 # underscore (_), so it is better to generate a list of symbols to export.
10835 always_export_symbols=yes
10836 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10837 # Warning - without using the other runtime loading flags (-brtl),
10838 # -berok will link without error, but may produce a broken library.
10839 allow_undefined_flag='-berok'
10840 # Determine the default libpath from the value encoded in an
10841 # empty executable.
10842 if test set = "${lt_cv_aix_libpath+set}"; then
10843 aix_libpath=$lt_cv_aix_libpath
10844 else
10845 if ${lt_cv_aix_libpath_+:} false; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850
10851 int
10852 main (void)
10853 {
10854
10855 ;
10856 return 0;
10857 }
10858 _ACEOF
10859 if ac_fn_c_try_link "$LINENO"; then :
10860
10861 lt_aix_libpath_sed='
10862 /Import File Strings/,/^$/ {
10863 /^0/ {
10864 s/^0 *\([^ ]*\) *$/\1/
10865 p
10866 }
10867 }'
10868 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10869 # Check for a 64-bit object if we didn't find anything.
10870 if test -z "$lt_cv_aix_libpath_"; then
10871 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10872 fi
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 if test -z "$lt_cv_aix_libpath_"; then
10877 lt_cv_aix_libpath_=/usr/lib:/lib
10878 fi
10879
10880 fi
10881
10882 aix_libpath=$lt_cv_aix_libpath_
10883 fi
10884
10885 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10886 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
10887 else
10888 if test ia64 = "$host_cpu"; then
10889 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10890 allow_undefined_flag="-z nodefs"
10891 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"
10892 else
10893 # Determine the default libpath from the value encoded in an
10894 # empty executable.
10895 if test set = "${lt_cv_aix_libpath+set}"; then
10896 aix_libpath=$lt_cv_aix_libpath
10897 else
10898 if ${lt_cv_aix_libpath_+:} false; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10903
10904 int
10905 main (void)
10906 {
10907
10908 ;
10909 return 0;
10910 }
10911 _ACEOF
10912 if ac_fn_c_try_link "$LINENO"; then :
10913
10914 lt_aix_libpath_sed='
10915 /Import File Strings/,/^$/ {
10916 /^0/ {
10917 s/^0 *\([^ ]*\) *$/\1/
10918 p
10919 }
10920 }'
10921 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10922 # Check for a 64-bit object if we didn't find anything.
10923 if test -z "$lt_cv_aix_libpath_"; then
10924 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10925 fi
10926 fi
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 if test -z "$lt_cv_aix_libpath_"; then
10930 lt_cv_aix_libpath_=/usr/lib:/lib
10931 fi
10932
10933 fi
10934
10935 aix_libpath=$lt_cv_aix_libpath_
10936 fi
10937
10938 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10939 # Warning - without using the other run time loading flags,
10940 # -berok will link without error, but may produce a broken library.
10941 no_undefined_flag=' $wl-bernotok'
10942 allow_undefined_flag=' $wl-berok'
10943 if test yes = "$with_gnu_ld"; then
10944 # We only use this code for GNU lds that support --whole-archive.
10945 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10946 else
10947 # Exported symbols can be pulled into shared objects from archives
10948 whole_archive_flag_spec='$convenience'
10949 fi
10950 archive_cmds_need_lc=yes
10951 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10952 # -brtl affects multiple linker settings, -berok does not and is overridden later
10953 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10954 if test svr4 != "$with_aix_soname"; then
10955 # This is similar to how AIX traditionally builds its shared libraries.
10956 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'
10957 fi
10958 if test aix != "$with_aix_soname"; then
10959 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'
10960 else
10961 # used by -dlpreopen to get the symbols
10962 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10963 fi
10964 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10965 fi
10966 fi
10967 ;;
10968
10969 amigaos*)
10970 case $host_cpu in
10971 powerpc)
10972 # see comment about AmigaOS4 .so support
10973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10974 archive_expsym_cmds=''
10975 ;;
10976 m68k)
10977 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)'
10978 hardcode_libdir_flag_spec='-L$libdir'
10979 hardcode_minus_L=yes
10980 ;;
10981 esac
10982 ;;
10983
10984 bsdi[45]*)
10985 export_dynamic_flag_spec=-rdynamic
10986 ;;
10987
10988 cygwin* | mingw* | pw32* | cegcc*)
10989 # When not using gcc, we currently assume that we are using
10990 # Microsoft Visual C++.
10991 # hardcode_libdir_flag_spec is actually meaningless, as there is
10992 # no search path for DLLs.
10993 case $cc_basename in
10994 cl*)
10995 # Native MSVC
10996 hardcode_libdir_flag_spec=' '
10997 allow_undefined_flag=unsupported
10998 always_export_symbols=yes
10999 file_list_spec='@'
11000 # Tell ltmain to make .lib files, not .a files.
11001 libext=lib
11002 # Tell ltmain to make .dll files, not .so files.
11003 shrext_cmds=.dll
11004 # FIXME: Setting linknames here is a bad hack.
11005 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11006 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11007 cp "$export_symbols" "$output_objdir/$soname.def";
11008 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11009 else
11010 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11011 fi~
11012 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11013 linknames='
11014 # The linker will not automatically build a static lib if we build a DLL.
11015 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11016 enable_shared_with_static_runtimes=yes
11017 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11019 # Don't use ranlib
11020 old_postinstall_cmds='chmod 644 $oldlib'
11021 postlink_cmds='lt_outputfile="@OUTPUT@"~
11022 lt_tool_outputfile="@TOOL_OUTPUT@"~
11023 case $lt_outputfile in
11024 *.exe|*.EXE) ;;
11025 *)
11026 lt_outputfile=$lt_outputfile.exe
11027 lt_tool_outputfile=$lt_tool_outputfile.exe
11028 ;;
11029 esac~
11030 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11031 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11032 $RM "$lt_outputfile.manifest";
11033 fi'
11034 ;;
11035 *)
11036 # Assume MSVC wrapper
11037 hardcode_libdir_flag_spec=' '
11038 allow_undefined_flag=unsupported
11039 # Tell ltmain to make .lib files, not .a files.
11040 libext=lib
11041 # Tell ltmain to make .dll files, not .so files.
11042 shrext_cmds=.dll
11043 # FIXME: Setting linknames here is a bad hack.
11044 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11045 # The linker will automatically build a .lib file if we build a DLL.
11046 old_archive_from_new_cmds='true'
11047 # FIXME: Should let the user specify the lib program.
11048 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11049 enable_shared_with_static_runtimes=yes
11050 ;;
11051 esac
11052 ;;
11053
11054 darwin* | rhapsody*)
11055
11056
11057 archive_cmds_need_lc=no
11058 hardcode_direct=no
11059 hardcode_automatic=yes
11060 hardcode_shlibpath_var=unsupported
11061 if test yes = "$lt_cv_ld_force_load"; then
11062 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\"`'
11063
11064 else
11065 whole_archive_flag_spec=''
11066 fi
11067 link_all_deplibs=yes
11068 allow_undefined_flag=$_lt_dar_allow_undefined
11069 case $cc_basename in
11070 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11071 *) _lt_dar_can_shared=$GCC ;;
11072 esac
11073 if test yes = "$_lt_dar_can_shared"; then
11074 output_verbose_link_cmd=func_echo_all
11075 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11076 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11077 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"
11078 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"
11079
11080 else
11081 ld_shlibs=no
11082 fi
11083
11084 ;;
11085
11086 dgux*)
11087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11088 hardcode_libdir_flag_spec='-L$libdir'
11089 hardcode_shlibpath_var=no
11090 ;;
11091
11092 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11093 # support. Future versions do this automatically, but an explicit c++rt0.o
11094 # does not break anything, and helps significantly (at the cost of a little
11095 # extra space).
11096 freebsd2.2*)
11097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11098 hardcode_libdir_flag_spec='-R$libdir'
11099 hardcode_direct=yes
11100 hardcode_shlibpath_var=no
11101 ;;
11102
11103 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11104 freebsd2.*)
11105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11106 hardcode_direct=yes
11107 hardcode_minus_L=yes
11108 hardcode_shlibpath_var=no
11109 ;;
11110
11111 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11112 freebsd* | dragonfly*)
11113 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11114 hardcode_libdir_flag_spec='-R$libdir'
11115 hardcode_direct=yes
11116 hardcode_shlibpath_var=no
11117 ;;
11118
11119 hpux9*)
11120 if test yes = "$GCC"; then
11121 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'
11122 else
11123 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'
11124 fi
11125 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11126 hardcode_libdir_separator=:
11127 hardcode_direct=yes
11128
11129 # hardcode_minus_L: Not really in the search PATH,
11130 # but as the default location of the library.
11131 hardcode_minus_L=yes
11132 export_dynamic_flag_spec='$wl-E'
11133 ;;
11134
11135 hpux10*)
11136 if test yes,no = "$GCC,$with_gnu_ld"; then
11137 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11138 else
11139 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11140 fi
11141 if test no = "$with_gnu_ld"; then
11142 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11143 hardcode_libdir_separator=:
11144 hardcode_direct=yes
11145 hardcode_direct_absolute=yes
11146 export_dynamic_flag_spec='$wl-E'
11147 # hardcode_minus_L: Not really in the search PATH,
11148 # but as the default location of the library.
11149 hardcode_minus_L=yes
11150 fi
11151 ;;
11152
11153 hpux11*)
11154 if test yes,no = "$GCC,$with_gnu_ld"; then
11155 case $host_cpu in
11156 hppa*64*)
11157 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11158 ;;
11159 ia64*)
11160 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11161 ;;
11162 *)
11163 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11164 ;;
11165 esac
11166 else
11167 case $host_cpu in
11168 hppa*64*)
11169 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11170 ;;
11171 ia64*)
11172 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11173 ;;
11174 *)
11175
11176 # Older versions of the 11.00 compiler do not understand -b yet
11177 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11179 $as_echo_n "checking if $CC understands -b... " >&6; }
11180 if ${lt_cv_prog_compiler__b+:} false; then :
11181 $as_echo_n "(cached) " >&6
11182 else
11183 lt_cv_prog_compiler__b=no
11184 save_LDFLAGS=$LDFLAGS
11185 LDFLAGS="$LDFLAGS -b"
11186 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11188 # The linker can only warn and ignore the option if not recognized
11189 # So say no if there are warnings
11190 if test -s conftest.err; then
11191 # Append any errors to the config.log.
11192 cat conftest.err 1>&5
11193 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11195 if diff conftest.exp conftest.er2 >/dev/null; then
11196 lt_cv_prog_compiler__b=yes
11197 fi
11198 else
11199 lt_cv_prog_compiler__b=yes
11200 fi
11201 fi
11202 $RM -r conftest*
11203 LDFLAGS=$save_LDFLAGS
11204
11205 fi
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11207 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11208
11209 if test yes = "$lt_cv_prog_compiler__b"; then
11210 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11211 else
11212 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11213 fi
11214
11215 ;;
11216 esac
11217 fi
11218 if test no = "$with_gnu_ld"; then
11219 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11220 hardcode_libdir_separator=:
11221
11222 case $host_cpu in
11223 hppa*64*|ia64*)
11224 hardcode_direct=no
11225 hardcode_shlibpath_var=no
11226 ;;
11227 *)
11228 hardcode_direct=yes
11229 hardcode_direct_absolute=yes
11230 export_dynamic_flag_spec='$wl-E'
11231
11232 # hardcode_minus_L: Not really in the search PATH,
11233 # but as the default location of the library.
11234 hardcode_minus_L=yes
11235 ;;
11236 esac
11237 fi
11238 ;;
11239
11240 irix5* | irix6* | nonstopux*)
11241 if test yes = "$GCC"; then
11242 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'
11243 # Try to use the -exported_symbol ld option, if it does not
11244 # work, assume that -exports_file does not work either and
11245 # implicitly export all symbols.
11246 # This should be the same for all languages, so no per-tag cache variable.
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11248 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11249 if ${lt_cv_irix_exported_symbol+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 save_LDFLAGS=$LDFLAGS
11253 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11256 int foo (void) { return 0; }
11257 _ACEOF
11258 if ac_fn_c_try_link "$LINENO"; then :
11259 lt_cv_irix_exported_symbol=yes
11260 else
11261 lt_cv_irix_exported_symbol=no
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265 LDFLAGS=$save_LDFLAGS
11266 fi
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11268 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11269 if test yes = "$lt_cv_irix_exported_symbol"; then
11270 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'
11271 fi
11272 link_all_deplibs=no
11273 else
11274 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'
11275 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'
11276 fi
11277 archive_cmds_need_lc='no'
11278 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11279 hardcode_libdir_separator=:
11280 inherit_rpath=yes
11281 link_all_deplibs=yes
11282 ;;
11283
11284 linux*)
11285 case $cc_basename in
11286 tcc*)
11287 # Fabrice Bellard et al's Tiny C Compiler
11288 ld_shlibs=yes
11289 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11290 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11291 ;;
11292 esac
11293 ;;
11294
11295 netbsd* | netbsdelf*-gnu)
11296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11298 else
11299 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11300 fi
11301 hardcode_libdir_flag_spec='-R$libdir'
11302 hardcode_direct=yes
11303 hardcode_shlibpath_var=no
11304 ;;
11305
11306 newsos6)
11307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11308 hardcode_direct=yes
11309 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11310 hardcode_libdir_separator=:
11311 hardcode_shlibpath_var=no
11312 ;;
11313
11314 *nto* | *qnx*)
11315 ;;
11316
11317 openbsd* | bitrig*)
11318 if test -f /usr/libexec/ld.so; then
11319 hardcode_direct=yes
11320 hardcode_shlibpath_var=no
11321 hardcode_direct_absolute=yes
11322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11324 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11325 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11326 export_dynamic_flag_spec='$wl-E'
11327 else
11328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11329 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11330 fi
11331 else
11332 ld_shlibs=no
11333 fi
11334 ;;
11335
11336 os2*)
11337 hardcode_libdir_flag_spec='-L$libdir'
11338 hardcode_minus_L=yes
11339 allow_undefined_flag=unsupported
11340 shrext_cmds=.dll
11341 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11342 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11343 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11344 $ECHO EXPORTS >> $output_objdir/$libname.def~
11345 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11346 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11347 emximp -o $lib $output_objdir/$libname.def'
11348 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11349 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11350 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11351 $ECHO EXPORTS >> $output_objdir/$libname.def~
11352 prefix_cmds="$SED"~
11353 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11354 prefix_cmds="$prefix_cmds -e 1d";
11355 fi~
11356 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11357 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11358 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11359 emximp -o $lib $output_objdir/$libname.def'
11360 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11361 enable_shared_with_static_runtimes=yes
11362 ;;
11363
11364 osf3*)
11365 if test yes = "$GCC"; then
11366 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11367 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'
11368 else
11369 allow_undefined_flag=' -expect_unresolved \*'
11370 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'
11371 fi
11372 archive_cmds_need_lc='no'
11373 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11374 hardcode_libdir_separator=:
11375 ;;
11376
11377 osf4* | osf5*) # as osf3* with the addition of -msym flag
11378 if test yes = "$GCC"; then
11379 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11380 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'
11381 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11382 else
11383 allow_undefined_flag=' -expect_unresolved \*'
11384 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'
11385 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~
11386 $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'
11387
11388 # Both c and cxx compiler support -rpath directly
11389 hardcode_libdir_flag_spec='-rpath $libdir'
11390 fi
11391 archive_cmds_need_lc='no'
11392 hardcode_libdir_separator=:
11393 ;;
11394
11395 solaris*)
11396 no_undefined_flag=' -z defs'
11397 if test yes = "$GCC"; then
11398 wlarc='$wl'
11399 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11401 $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'
11402 else
11403 case `$CC -V 2>&1` in
11404 *"Compilers 5.0"*)
11405 wlarc=''
11406 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11408 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11409 ;;
11410 *)
11411 wlarc='$wl'
11412 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11413 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11414 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11415 ;;
11416 esac
11417 fi
11418 hardcode_libdir_flag_spec='-R$libdir'
11419 hardcode_shlibpath_var=no
11420 case $host_os in
11421 solaris2.[0-5] | solaris2.[0-5].*) ;;
11422 *)
11423 # The compiler driver will combine and reorder linker options,
11424 # but understands '-z linker_flag'. GCC discards it without '$wl',
11425 # but is careful enough not to reorder.
11426 # Supported since Solaris 2.6 (maybe 2.5.1?)
11427 if test yes = "$GCC"; then
11428 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11429 else
11430 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11431 fi
11432 ;;
11433 esac
11434 link_all_deplibs=yes
11435 ;;
11436
11437 sunos4*)
11438 if test sequent = "$host_vendor"; then
11439 # Use $CC to link under sequent, because it throws in some extra .o
11440 # files that make .init and .fini sections work.
11441 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11442 else
11443 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11444 fi
11445 hardcode_libdir_flag_spec='-L$libdir'
11446 hardcode_direct=yes
11447 hardcode_minus_L=yes
11448 hardcode_shlibpath_var=no
11449 ;;
11450
11451 sysv4)
11452 case $host_vendor in
11453 sni)
11454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11455 hardcode_direct=yes # is this really true???
11456 ;;
11457 siemens)
11458 ## LD is ld it makes a PLAMLIB
11459 ## CC just makes a GrossModule.
11460 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11461 reload_cmds='$CC -r -o $output$reload_objs'
11462 hardcode_direct=no
11463 ;;
11464 motorola)
11465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11466 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11467 ;;
11468 esac
11469 runpath_var='LD_RUN_PATH'
11470 hardcode_shlibpath_var=no
11471 ;;
11472
11473 sysv4.3*)
11474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11475 hardcode_shlibpath_var=no
11476 export_dynamic_flag_spec='-Bexport'
11477 ;;
11478
11479 sysv4*MP*)
11480 if test -d /usr/nec; then
11481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11482 hardcode_shlibpath_var=no
11483 runpath_var=LD_RUN_PATH
11484 hardcode_runpath_var=yes
11485 ld_shlibs=yes
11486 fi
11487 ;;
11488
11489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11490 no_undefined_flag='$wl-z,text'
11491 archive_cmds_need_lc=no
11492 hardcode_shlibpath_var=no
11493 runpath_var='LD_RUN_PATH'
11494
11495 if test yes = "$GCC"; then
11496 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11497 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11498 else
11499 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11500 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11501 fi
11502 ;;
11503
11504 sysv5* | sco3.2v5* | sco5v6*)
11505 # Note: We CANNOT use -z defs as we might desire, because we do not
11506 # link with -lc, and that would cause any symbols used from libc to
11507 # always be unresolved, which means just about no library would
11508 # ever link correctly. If we're not using GNU ld we use -z text
11509 # though, which does catch some bad symbols but isn't as heavy-handed
11510 # as -z defs.
11511 no_undefined_flag='$wl-z,text'
11512 allow_undefined_flag='$wl-z,nodefs'
11513 archive_cmds_need_lc=no
11514 hardcode_shlibpath_var=no
11515 hardcode_libdir_flag_spec='$wl-R,$libdir'
11516 hardcode_libdir_separator=':'
11517 link_all_deplibs=yes
11518 export_dynamic_flag_spec='$wl-Bexport'
11519 runpath_var='LD_RUN_PATH'
11520
11521 if test yes = "$GCC"; then
11522 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11523 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11524 else
11525 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11526 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11527 fi
11528 ;;
11529
11530 uts4*)
11531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11532 hardcode_libdir_flag_spec='-L$libdir'
11533 hardcode_shlibpath_var=no
11534 ;;
11535
11536 *)
11537 ld_shlibs=no
11538 ;;
11539 esac
11540
11541 if test sni = "$host_vendor"; then
11542 case $host in
11543 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11544 export_dynamic_flag_spec='$wl-Blargedynsym'
11545 ;;
11546 esac
11547 fi
11548 fi
11549
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11551 $as_echo "$ld_shlibs" >&6; }
11552 test no = "$ld_shlibs" && can_build_shared=no
11553
11554 with_gnu_ld=$with_gnu_ld
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570 #
11571 # Do we need to explicitly link libc?
11572 #
11573 case "x$archive_cmds_need_lc" in
11574 x|xyes)
11575 # Assume -lc should be added
11576 archive_cmds_need_lc=yes
11577
11578 if test yes,yes = "$GCC,$enable_shared"; then
11579 case $archive_cmds in
11580 *'~'*)
11581 # FIXME: we may have to deal with multi-command sequences.
11582 ;;
11583 '$CC '*)
11584 # Test whether the compiler implicitly links with -lc since on some
11585 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11586 # to ld, don't add -lc before -lgcc.
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11588 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11589 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591 else
11592 $RM conftest*
11593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11594
11595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11596 (eval $ac_compile) 2>&5
11597 ac_status=$?
11598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11599 test $ac_status = 0; } 2>conftest.err; then
11600 soname=conftest
11601 lib=conftest
11602 libobjs=conftest.$ac_objext
11603 deplibs=
11604 wl=$lt_prog_compiler_wl
11605 pic_flag=$lt_prog_compiler_pic
11606 compiler_flags=-v
11607 linker_flags=-v
11608 verstring=
11609 output_objdir=.
11610 libname=conftest
11611 lt_save_allow_undefined_flag=$allow_undefined_flag
11612 allow_undefined_flag=
11613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11614 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11615 ac_status=$?
11616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11617 test $ac_status = 0; }
11618 then
11619 lt_cv_archive_cmds_need_lc=no
11620 else
11621 lt_cv_archive_cmds_need_lc=yes
11622 fi
11623 allow_undefined_flag=$lt_save_allow_undefined_flag
11624 else
11625 cat conftest.err 1>&5
11626 fi
11627 $RM conftest*
11628
11629 fi
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11631 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11632 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11633 ;;
11634 esac
11635 fi
11636 ;;
11637 esac
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11791 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11792
11793 if test yes = "$GCC"; then
11794 case $host_os in
11795 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11796 *) lt_awk_arg='/^libraries:/' ;;
11797 esac
11798 case $host_os in
11799 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11800 *) lt_sed_strip_eq='s|=/|/|g' ;;
11801 esac
11802 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11803 case $lt_search_path_spec in
11804 *\;*)
11805 # if the path contains ";" then we assume it to be the separator
11806 # otherwise default to the standard path separator (i.e. ":") - it is
11807 # assumed that no part of a normal pathname contains ";" but that should
11808 # okay in the real world where ";" in dirpaths is itself problematic.
11809 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11810 ;;
11811 *)
11812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11813 ;;
11814 esac
11815 # Ok, now we have the path, separated by spaces, we can step through it
11816 # and add multilib dir if necessary...
11817 lt_tmp_lt_search_path_spec=
11818 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11819 # ...but if some path component already ends with the multilib dir we assume
11820 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11821 case "$lt_multi_os_dir; $lt_search_path_spec " in
11822 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11823 lt_multi_os_dir=
11824 ;;
11825 esac
11826 for lt_sys_path in $lt_search_path_spec; do
11827 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11828 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11829 elif test -n "$lt_multi_os_dir"; then
11830 test -d "$lt_sys_path" && \
11831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11832 fi
11833 done
11834 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11835 BEGIN {RS = " "; FS = "/|\n";} {
11836 lt_foo = "";
11837 lt_count = 0;
11838 for (lt_i = NF; lt_i > 0; lt_i--) {
11839 if ($lt_i != "" && $lt_i != ".") {
11840 if ($lt_i == "..") {
11841 lt_count++;
11842 } else {
11843 if (lt_count == 0) {
11844 lt_foo = "/" $lt_i lt_foo;
11845 } else {
11846 lt_count--;
11847 }
11848 }
11849 }
11850 }
11851 if (lt_foo != "") { lt_freq[lt_foo]++; }
11852 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11853 }'`
11854 # AWK program above erroneously prepends '/' to C:/dos/paths
11855 # for these hosts.
11856 case $host_os in
11857 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11858 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11859 esac
11860 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11861 else
11862 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11863 fi
11864 library_names_spec=
11865 libname_spec='lib$name'
11866 soname_spec=
11867 shrext_cmds=.so
11868 postinstall_cmds=
11869 postuninstall_cmds=
11870 finish_cmds=
11871 finish_eval=
11872 shlibpath_var=
11873 shlibpath_overrides_runpath=unknown
11874 version_type=none
11875 dynamic_linker="$host_os ld.so"
11876 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11877 need_lib_prefix=unknown
11878 hardcode_into_libs=no
11879
11880 # when you set need_version to no, make sure it does not cause -set_version
11881 # flags to be left without arguments
11882 need_version=unknown
11883
11884
11885
11886 case $host_os in
11887 aix3*)
11888 version_type=linux # correct to gnu/linux during the next big refactor
11889 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11890 shlibpath_var=LIBPATH
11891
11892 # AIX 3 has no versioning support, so we append a major version to the name.
11893 soname_spec='$libname$release$shared_ext$major'
11894 ;;
11895
11896 aix[4-9]*)
11897 version_type=linux # correct to gnu/linux during the next big refactor
11898 need_lib_prefix=no
11899 need_version=no
11900 hardcode_into_libs=yes
11901 if test ia64 = "$host_cpu"; then
11902 # AIX 5 supports IA64
11903 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11904 shlibpath_var=LD_LIBRARY_PATH
11905 else
11906 # With GCC up to 2.95.x, collect2 would create an import file
11907 # for dependence libraries. The import file would start with
11908 # the line '#! .'. This would cause the generated library to
11909 # depend on '.', always an invalid library. This was fixed in
11910 # development snapshots of GCC prior to 3.0.
11911 case $host_os in
11912 aix4 | aix4.[01] | aix4.[01].*)
11913 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11914 echo ' yes '
11915 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11916 :
11917 else
11918 can_build_shared=no
11919 fi
11920 ;;
11921 esac
11922 # Using Import Files as archive members, it is possible to support
11923 # filename-based versioning of shared library archives on AIX. While
11924 # this would work for both with and without runtime linking, it will
11925 # prevent static linking of such archives. So we do filename-based
11926 # shared library versioning with .so extension only, which is used
11927 # when both runtime linking and shared linking is enabled.
11928 # Unfortunately, runtime linking may impact performance, so we do
11929 # not want this to be the default eventually. Also, we use the
11930 # versioned .so libs for executables only if there is the -brtl
11931 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11932 # To allow for filename-based versioning support, we need to create
11933 # libNAME.so.V as an archive file, containing:
11934 # *) an Import File, referring to the versioned filename of the
11935 # archive as well as the shared archive member, telling the
11936 # bitwidth (32 or 64) of that shared object, and providing the
11937 # list of exported symbols of that shared object, eventually
11938 # decorated with the 'weak' keyword
11939 # *) the shared object with the F_LOADONLY flag set, to really avoid
11940 # it being seen by the linker.
11941 # At run time we better use the real file rather than another symlink,
11942 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11943
11944 case $with_aix_soname,$aix_use_runtimelinking in
11945 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11946 # soname into executable. Probably we can add versioning support to
11947 # collect2, so additional links can be useful in future.
11948 aix,yes) # traditional libtool
11949 dynamic_linker='AIX unversionable lib.so'
11950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11951 # instead of lib<name>.a to let people know that these are not
11952 # typical AIX shared libraries.
11953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11954 ;;
11955 aix,no) # traditional AIX only
11956 dynamic_linker='AIX lib.a(lib.so.V)'
11957 # We preserve .a as extension for shared libraries through AIX4.2
11958 # and later when we are not doing run time linking.
11959 library_names_spec='$libname$release.a $libname.a'
11960 soname_spec='$libname$release$shared_ext$major'
11961 ;;
11962 svr4,*) # full svr4 only
11963 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11964 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11965 # We do not specify a path in Import Files, so LIBPATH fires.
11966 shlibpath_overrides_runpath=yes
11967 ;;
11968 *,yes) # both, prefer svr4
11969 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11970 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11971 # unpreferred sharedlib libNAME.a needs extra handling
11972 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"'
11973 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"'
11974 # We do not specify a path in Import Files, so LIBPATH fires.
11975 shlibpath_overrides_runpath=yes
11976 ;;
11977 *,no) # both, prefer aix
11978 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11979 library_names_spec='$libname$release.a $libname.a'
11980 soname_spec='$libname$release$shared_ext$major'
11981 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11982 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)'
11983 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"'
11984 ;;
11985 esac
11986 shlibpath_var=LIBPATH
11987 fi
11988 ;;
11989
11990 amigaos*)
11991 case $host_cpu in
11992 powerpc)
11993 # Since July 2007 AmigaOS4 officially supports .so libraries.
11994 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11996 ;;
11997 m68k)
11998 library_names_spec='$libname.ixlibrary $libname.a'
11999 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12000 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'
12001 ;;
12002 esac
12003 ;;
12004
12005 beos*)
12006 library_names_spec='$libname$shared_ext'
12007 dynamic_linker="$host_os ld.so"
12008 shlibpath_var=LIBRARY_PATH
12009 ;;
12010
12011 bsdi[45]*)
12012 version_type=linux # correct to gnu/linux during the next big refactor
12013 need_version=no
12014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12015 soname_spec='$libname$release$shared_ext$major'
12016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12017 shlibpath_var=LD_LIBRARY_PATH
12018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12020 # the default ld.so.conf also contains /usr/contrib/lib and
12021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12022 # libtool to hard-code these into programs
12023 ;;
12024
12025 cygwin* | mingw* | pw32* | cegcc*)
12026 version_type=windows
12027 shrext_cmds=.dll
12028 need_version=no
12029 need_lib_prefix=no
12030
12031 case $GCC,$cc_basename in
12032 yes,*)
12033 # gcc
12034 library_names_spec='$libname.dll.a'
12035 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12036 postinstall_cmds='base_file=`basename \$file`~
12037 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12038 dldir=$destdir/`dirname \$dlpath`~
12039 test -d \$dldir || mkdir -p \$dldir~
12040 $install_prog $dir/$dlname \$dldir/$dlname~
12041 chmod a+x \$dldir/$dlname~
12042 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12043 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12044 fi'
12045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12046 dlpath=$dir/\$dldll~
12047 $RM \$dlpath'
12048 shlibpath_overrides_runpath=yes
12049
12050 case $host_os in
12051 cygwin*)
12052 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12053 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12054
12055 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12056 ;;
12057 mingw* | cegcc*)
12058 # MinGW DLLs use traditional 'lib' prefix
12059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12060 ;;
12061 pw32*)
12062 # pw32 DLLs use 'pw' prefix rather than 'lib'
12063 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12064 ;;
12065 esac
12066 dynamic_linker='Win32 ld.exe'
12067 ;;
12068
12069 *,cl*)
12070 # Native MSVC
12071 libname_spec='$name'
12072 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12073 library_names_spec='$libname.dll.lib'
12074
12075 case $build_os in
12076 mingw*)
12077 sys_lib_search_path_spec=
12078 lt_save_ifs=$IFS
12079 IFS=';'
12080 for lt_path in $LIB
12081 do
12082 IFS=$lt_save_ifs
12083 # Let DOS variable expansion print the short 8.3 style file name.
12084 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12085 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12086 done
12087 IFS=$lt_save_ifs
12088 # Convert to MSYS style.
12089 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12090 ;;
12091 cygwin*)
12092 # Convert to unix form, then to dos form, then back to unix form
12093 # but this time dos style (no spaces!) so that the unix form looks
12094 # like /cygdrive/c/PROGRA~1:/cygdr...
12095 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12096 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12097 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12098 ;;
12099 *)
12100 sys_lib_search_path_spec=$LIB
12101 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12102 # It is most probably a Windows format PATH.
12103 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12104 else
12105 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12106 fi
12107 # FIXME: find the short name or the path components, as spaces are
12108 # common. (e.g. "Program Files" -> "PROGRA~1")
12109 ;;
12110 esac
12111
12112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12113 postinstall_cmds='base_file=`basename \$file`~
12114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12115 dldir=$destdir/`dirname \$dlpath`~
12116 test -d \$dldir || mkdir -p \$dldir~
12117 $install_prog $dir/$dlname \$dldir/$dlname'
12118 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12119 dlpath=$dir/\$dldll~
12120 $RM \$dlpath'
12121 shlibpath_overrides_runpath=yes
12122 dynamic_linker='Win32 link.exe'
12123 ;;
12124
12125 *)
12126 # Assume MSVC wrapper
12127 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12128 dynamic_linker='Win32 ld.exe'
12129 ;;
12130 esac
12131 # FIXME: first we should search . and the directory the executable is in
12132 shlibpath_var=PATH
12133 ;;
12134
12135 darwin* | rhapsody*)
12136 dynamic_linker="$host_os dyld"
12137 version_type=darwin
12138 need_lib_prefix=no
12139 need_version=no
12140 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12141 soname_spec='$libname$release$major$shared_ext'
12142 shlibpath_overrides_runpath=yes
12143 shlibpath_var=DYLD_LIBRARY_PATH
12144 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12145
12146 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12147 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12148 ;;
12149
12150 dgux*)
12151 version_type=linux # correct to gnu/linux during the next big refactor
12152 need_lib_prefix=no
12153 need_version=no
12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12155 soname_spec='$libname$release$shared_ext$major'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 ;;
12158
12159 freebsd* | dragonfly*)
12160 # DragonFly does not have aout. When/if they implement a new
12161 # versioning mechanism, adjust this.
12162 if test -x /usr/bin/objformat; then
12163 objformat=`/usr/bin/objformat`
12164 else
12165 case $host_os in
12166 freebsd[23].*) objformat=aout ;;
12167 *) objformat=elf ;;
12168 esac
12169 fi
12170 version_type=freebsd-$objformat
12171 case $version_type in
12172 freebsd-elf*)
12173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12174 soname_spec='$libname$release$shared_ext$major'
12175 need_version=no
12176 need_lib_prefix=no
12177 ;;
12178 freebsd-*)
12179 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12180 need_version=yes
12181 ;;
12182 esac
12183 shlibpath_var=LD_LIBRARY_PATH
12184 case $host_os in
12185 freebsd2.*)
12186 shlibpath_overrides_runpath=yes
12187 ;;
12188 freebsd3.[01]* | freebsdelf3.[01]*)
12189 shlibpath_overrides_runpath=yes
12190 hardcode_into_libs=yes
12191 ;;
12192 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12193 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12194 shlibpath_overrides_runpath=no
12195 hardcode_into_libs=yes
12196 ;;
12197 *) # from 4.6 on, and DragonFly
12198 shlibpath_overrides_runpath=yes
12199 hardcode_into_libs=yes
12200 ;;
12201 esac
12202 ;;
12203
12204 haiku*)
12205 version_type=linux # correct to gnu/linux during the next big refactor
12206 need_lib_prefix=no
12207 need_version=no
12208 dynamic_linker="$host_os runtime_loader"
12209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12210 soname_spec='$libname$release$shared_ext$major'
12211 shlibpath_var=LIBRARY_PATH
12212 shlibpath_overrides_runpath=no
12213 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12214 hardcode_into_libs=yes
12215 ;;
12216
12217 hpux9* | hpux10* | hpux11*)
12218 # Give a soname corresponding to the major version so that dld.sl refuses to
12219 # link against other versions.
12220 version_type=sunos
12221 need_lib_prefix=no
12222 need_version=no
12223 case $host_cpu in
12224 ia64*)
12225 shrext_cmds='.so'
12226 hardcode_into_libs=yes
12227 dynamic_linker="$host_os dld.so"
12228 shlibpath_var=LD_LIBRARY_PATH
12229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12231 soname_spec='$libname$release$shared_ext$major'
12232 if test 32 = "$HPUX_IA64_MODE"; then
12233 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12234 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12235 else
12236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12237 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12238 fi
12239 ;;
12240 hppa*64*)
12241 shrext_cmds='.sl'
12242 hardcode_into_libs=yes
12243 dynamic_linker="$host_os dld.sl"
12244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12247 soname_spec='$libname$release$shared_ext$major'
12248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12250 ;;
12251 *)
12252 shrext_cmds='.sl'
12253 dynamic_linker="$host_os dld.sl"
12254 shlibpath_var=SHLIB_PATH
12255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12257 soname_spec='$libname$release$shared_ext$major'
12258 ;;
12259 esac
12260 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12261 postinstall_cmds='chmod 555 $lib'
12262 # or fails outright, so override atomically:
12263 install_override_mode=555
12264 ;;
12265
12266 interix[3-9]*)
12267 version_type=linux # correct to gnu/linux during the next big refactor
12268 need_lib_prefix=no
12269 need_version=no
12270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12271 soname_spec='$libname$release$shared_ext$major'
12272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 shlibpath_overrides_runpath=no
12275 hardcode_into_libs=yes
12276 ;;
12277
12278 irix5* | irix6* | nonstopux*)
12279 case $host_os in
12280 nonstopux*) version_type=nonstopux ;;
12281 *)
12282 if test yes = "$lt_cv_prog_gnu_ld"; then
12283 version_type=linux # correct to gnu/linux during the next big refactor
12284 else
12285 version_type=irix
12286 fi ;;
12287 esac
12288 need_lib_prefix=no
12289 need_version=no
12290 soname_spec='$libname$release$shared_ext$major'
12291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12292 case $host_os in
12293 irix5* | nonstopux*)
12294 libsuff= shlibsuff=
12295 ;;
12296 *)
12297 case $LD in # libtool.m4 will add one of these switches to LD
12298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12299 libsuff= shlibsuff= libmagic=32-bit;;
12300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12301 libsuff=32 shlibsuff=N32 libmagic=N32;;
12302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12304 *) libsuff= shlibsuff= libmagic=never-match;;
12305 esac
12306 ;;
12307 esac
12308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12309 shlibpath_overrides_runpath=no
12310 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12311 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12312 hardcode_into_libs=yes
12313 ;;
12314
12315 # No shared lib support for Linux oldld, aout, or coff.
12316 linux*oldld* | linux*aout* | linux*coff*)
12317 dynamic_linker=no
12318 ;;
12319
12320 linux*android*)
12321 version_type=none # Android doesn't support versioned libraries.
12322 need_lib_prefix=no
12323 need_version=no
12324 library_names_spec='$libname$release$shared_ext'
12325 soname_spec='$libname$release$shared_ext'
12326 finish_cmds=
12327 shlibpath_var=LD_LIBRARY_PATH
12328 shlibpath_overrides_runpath=yes
12329
12330 # This implies no fast_install, which is unacceptable.
12331 # Some rework will be needed to allow for fast_install
12332 # before this can be enabled.
12333 hardcode_into_libs=yes
12334
12335 dynamic_linker='Android linker'
12336 # Don't embed -rpath directories since the linker doesn't support them.
12337 hardcode_libdir_flag_spec='-L$libdir'
12338 ;;
12339
12340 # This must be glibc/ELF.
12341 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12342 version_type=linux # correct to gnu/linux during the next big refactor
12343 need_lib_prefix=no
12344 need_version=no
12345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12346 soname_spec='$libname$release$shared_ext$major'
12347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12348 shlibpath_var=LD_LIBRARY_PATH
12349 shlibpath_overrides_runpath=no
12350
12351 # Some binutils ld are patched to set DT_RUNPATH
12352 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 lt_cv_shlibpath_overrides_runpath=no
12356 save_LDFLAGS=$LDFLAGS
12357 save_libdir=$libdir
12358 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12359 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12362
12363 int
12364 main (void)
12365 {
12366
12367 ;
12368 return 0;
12369 }
12370 _ACEOF
12371 if ac_fn_c_try_link "$LINENO"; then :
12372 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12373 lt_cv_shlibpath_overrides_runpath=yes
12374 fi
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 LDFLAGS=$save_LDFLAGS
12379 libdir=$save_libdir
12380
12381 fi
12382
12383 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12384
12385 # This implies no fast_install, which is unacceptable.
12386 # Some rework will be needed to allow for fast_install
12387 # before this can be enabled.
12388 hardcode_into_libs=yes
12389
12390 # Ideally, we could use ldconfig to report *all* directores which are
12391 # searched for libraries, however this is still not possible. Aside from not
12392 # being certain /sbin/ldconfig is available, command
12393 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12394 # even though it is searched at run-time. Try to do the best guess by
12395 # appending ld.so.conf contents (and includes) to the search path.
12396 if test -f /etc/ld.so.conf; then
12397 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' ' '`
12398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12399 fi
12400
12401 # We used to test for /lib/ld.so.1 and disable shared libraries on
12402 # powerpc, because MkLinux only supported shared libraries with the
12403 # GNU dynamic linker. Since this was broken with cross compilers,
12404 # most powerpc-linux boxes support dynamic linking these days and
12405 # people can always --disable-shared, the test was removed, and we
12406 # assume the GNU/Linux dynamic linker is in use.
12407 dynamic_linker='GNU/Linux ld.so'
12408 ;;
12409
12410 netbsdelf*-gnu)
12411 version_type=linux
12412 need_lib_prefix=no
12413 need_version=no
12414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12415 soname_spec='${libname}${release}${shared_ext}$major'
12416 shlibpath_var=LD_LIBRARY_PATH
12417 shlibpath_overrides_runpath=no
12418 hardcode_into_libs=yes
12419 dynamic_linker='NetBSD ld.elf_so'
12420 ;;
12421
12422 netbsd*)
12423 version_type=sunos
12424 need_lib_prefix=no
12425 need_version=no
12426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12427 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12429 dynamic_linker='NetBSD (a.out) ld.so'
12430 else
12431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12432 soname_spec='$libname$release$shared_ext$major'
12433 dynamic_linker='NetBSD ld.elf_so'
12434 fi
12435 shlibpath_var=LD_LIBRARY_PATH
12436 shlibpath_overrides_runpath=yes
12437 hardcode_into_libs=yes
12438 ;;
12439
12440 newsos6)
12441 version_type=linux # correct to gnu/linux during the next big refactor
12442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 shlibpath_overrides_runpath=yes
12445 ;;
12446
12447 *nto* | *qnx*)
12448 version_type=qnx
12449 need_lib_prefix=no
12450 need_version=no
12451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12452 soname_spec='$libname$release$shared_ext$major'
12453 shlibpath_var=LD_LIBRARY_PATH
12454 shlibpath_overrides_runpath=no
12455 hardcode_into_libs=yes
12456 dynamic_linker='ldqnx.so'
12457 ;;
12458
12459 openbsd* | bitrig*)
12460 version_type=sunos
12461 sys_lib_dlsearch_path_spec=/usr/lib
12462 need_lib_prefix=no
12463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12464 need_version=no
12465 else
12466 need_version=yes
12467 fi
12468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12470 shlibpath_var=LD_LIBRARY_PATH
12471 shlibpath_overrides_runpath=yes
12472 ;;
12473
12474 os2*)
12475 libname_spec='$name'
12476 version_type=windows
12477 shrext_cmds=.dll
12478 need_version=no
12479 need_lib_prefix=no
12480 # OS/2 can only load a DLL with a base name of 8 characters or less.
12481 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12482 v=$($ECHO $release$versuffix | tr -d .-);
12483 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12484 $ECHO $n$v`$shared_ext'
12485 library_names_spec='${libname}_dll.$libext'
12486 dynamic_linker='OS/2 ld.exe'
12487 shlibpath_var=BEGINLIBPATH
12488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12490 postinstall_cmds='base_file=`basename \$file`~
12491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12492 dldir=$destdir/`dirname \$dlpath`~
12493 test -d \$dldir || mkdir -p \$dldir~
12494 $install_prog $dir/$dlname \$dldir/$dlname~
12495 chmod a+x \$dldir/$dlname~
12496 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12497 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12498 fi'
12499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12500 dlpath=$dir/\$dldll~
12501 $RM \$dlpath'
12502 ;;
12503
12504 osf3* | osf4* | osf5*)
12505 version_type=osf
12506 need_lib_prefix=no
12507 need_version=no
12508 soname_spec='$libname$release$shared_ext$major'
12509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12510 shlibpath_var=LD_LIBRARY_PATH
12511 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12513 ;;
12514
12515 rdos*)
12516 dynamic_linker=no
12517 ;;
12518
12519 solaris*)
12520 version_type=linux # correct to gnu/linux during the next big refactor
12521 need_lib_prefix=no
12522 need_version=no
12523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12524 soname_spec='$libname$release$shared_ext$major'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 shlibpath_overrides_runpath=yes
12527 hardcode_into_libs=yes
12528 # ldd complains unless libraries are executable
12529 postinstall_cmds='chmod +x $lib'
12530 ;;
12531
12532 sunos4*)
12533 version_type=sunos
12534 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12536 shlibpath_var=LD_LIBRARY_PATH
12537 shlibpath_overrides_runpath=yes
12538 if test yes = "$with_gnu_ld"; then
12539 need_lib_prefix=no
12540 fi
12541 need_version=yes
12542 ;;
12543
12544 sysv4 | sysv4.3*)
12545 version_type=linux # correct to gnu/linux during the next big refactor
12546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12547 soname_spec='$libname$release$shared_ext$major'
12548 shlibpath_var=LD_LIBRARY_PATH
12549 case $host_vendor in
12550 sni)
12551 shlibpath_overrides_runpath=no
12552 need_lib_prefix=no
12553 runpath_var=LD_RUN_PATH
12554 ;;
12555 siemens)
12556 need_lib_prefix=no
12557 ;;
12558 motorola)
12559 need_lib_prefix=no
12560 need_version=no
12561 shlibpath_overrides_runpath=no
12562 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12563 ;;
12564 esac
12565 ;;
12566
12567 sysv4*MP*)
12568 if test -d /usr/nec; then
12569 version_type=linux # correct to gnu/linux during the next big refactor
12570 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12571 soname_spec='$libname$shared_ext.$major'
12572 shlibpath_var=LD_LIBRARY_PATH
12573 fi
12574 ;;
12575
12576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12577 version_type=sco
12578 need_lib_prefix=no
12579 need_version=no
12580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12581 soname_spec='$libname$release$shared_ext$major'
12582 shlibpath_var=LD_LIBRARY_PATH
12583 shlibpath_overrides_runpath=yes
12584 hardcode_into_libs=yes
12585 if test yes = "$with_gnu_ld"; then
12586 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12587 else
12588 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12589 case $host_os in
12590 sco3.2v5*)
12591 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12592 ;;
12593 esac
12594 fi
12595 sys_lib_dlsearch_path_spec='/usr/lib'
12596 ;;
12597
12598 tpf*)
12599 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12600 version_type=linux # correct to gnu/linux during the next big refactor
12601 need_lib_prefix=no
12602 need_version=no
12603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12604 shlibpath_var=LD_LIBRARY_PATH
12605 shlibpath_overrides_runpath=no
12606 hardcode_into_libs=yes
12607 ;;
12608
12609 uts4*)
12610 version_type=linux # correct to gnu/linux during the next big refactor
12611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12612 soname_spec='$libname$release$shared_ext$major'
12613 shlibpath_var=LD_LIBRARY_PATH
12614 ;;
12615
12616 *)
12617 dynamic_linker=no
12618 ;;
12619 esac
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12621 $as_echo "$dynamic_linker" >&6; }
12622 test no = "$dynamic_linker" && can_build_shared=no
12623
12624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12625 if test yes = "$GCC"; then
12626 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12627 fi
12628
12629 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12630 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12631 fi
12632
12633 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12634 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12635 fi
12636
12637 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12638 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12639
12640 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12641 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12642
12643 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12644 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12743 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12744 hardcode_action=
12745 if test -n "$hardcode_libdir_flag_spec" ||
12746 test -n "$runpath_var" ||
12747 test yes = "$hardcode_automatic"; then
12748
12749 # We can hardcode non-existent directories.
12750 if test no != "$hardcode_direct" &&
12751 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12752 # have to relink, otherwise we might link with an installed library
12753 # when we should be linking with a yet-to-be-installed one
12754 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12755 test no != "$hardcode_minus_L"; then
12756 # Linking always hardcodes the temporary library directory.
12757 hardcode_action=relink
12758 else
12759 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12760 hardcode_action=immediate
12761 fi
12762 else
12763 # We cannot hardcode anything, or else we can only hardcode existing
12764 # directories.
12765 hardcode_action=unsupported
12766 fi
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12768 $as_echo "$hardcode_action" >&6; }
12769
12770 if test relink = "$hardcode_action" ||
12771 test yes = "$inherit_rpath"; then
12772 # Fast installation is not supported
12773 enable_fast_install=no
12774 elif test yes = "$shlibpath_overrides_runpath" ||
12775 test no = "$enable_shared"; then
12776 # Fast installation is not necessary
12777 enable_fast_install=needless
12778 fi
12779
12780
12781
12782
12783
12784
12785 if test yes != "$enable_dlopen"; then
12786 enable_dlopen=unknown
12787 enable_dlopen_self=unknown
12788 enable_dlopen_self_static=unknown
12789 else
12790 lt_cv_dlopen=no
12791 lt_cv_dlopen_libs=
12792
12793 case $host_os in
12794 beos*)
12795 lt_cv_dlopen=load_add_on
12796 lt_cv_dlopen_libs=
12797 lt_cv_dlopen_self=yes
12798 ;;
12799
12800 mingw* | pw32* | cegcc*)
12801 lt_cv_dlopen=LoadLibrary
12802 lt_cv_dlopen_libs=
12803 ;;
12804
12805 cygwin*)
12806 lt_cv_dlopen=dlopen
12807 lt_cv_dlopen_libs=
12808 ;;
12809
12810 darwin*)
12811 # if libdl is installed we need to link against it
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12813 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12814 if ${ac_cv_lib_dl_dlopen+:} false; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 ac_check_lib_save_LIBS=$LIBS
12818 LIBS="-ldl $LIBS"
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821
12822 /* Override any GCC internal prototype to avoid an error.
12823 Use char because int might match the return type of a GCC
12824 builtin and then its argument prototype would still apply. */
12825 #ifdef __cplusplus
12826 extern "C"
12827 #endif
12828 char dlopen ();
12829 int
12830 main (void)
12831 {
12832 return dlopen ();
12833 ;
12834 return 0;
12835 }
12836 _ACEOF
12837 if ac_fn_c_try_link "$LINENO"; then :
12838 ac_cv_lib_dl_dlopen=yes
12839 else
12840 ac_cv_lib_dl_dlopen=no
12841 fi
12842 rm -f core conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext
12844 LIBS=$ac_check_lib_save_LIBS
12845 fi
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12847 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12848 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12849 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12850 else
12851
12852 lt_cv_dlopen=dyld
12853 lt_cv_dlopen_libs=
12854 lt_cv_dlopen_self=yes
12855
12856 fi
12857
12858 ;;
12859
12860 tpf*)
12861 # Don't try to run any link tests for TPF. We know it's impossible
12862 # because TPF is a cross-compiler, and we know how we open DSOs.
12863 lt_cv_dlopen=dlopen
12864 lt_cv_dlopen_libs=
12865 lt_cv_dlopen_self=no
12866 ;;
12867
12868 *)
12869 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12870 if test "x$ac_cv_func_shl_load" = xyes; then :
12871 lt_cv_dlopen=shl_load
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12874 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12875 if ${ac_cv_lib_dld_shl_load+:} false; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 ac_check_lib_save_LIBS=$LIBS
12879 LIBS="-ldld $LIBS"
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12886 #ifdef __cplusplus
12887 extern "C"
12888 #endif
12889 char shl_load ();
12890 int
12891 main (void)
12892 {
12893 return shl_load ();
12894 ;
12895 return 0;
12896 }
12897 _ACEOF
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 ac_cv_lib_dld_shl_load=yes
12900 else
12901 ac_cv_lib_dld_shl_load=no
12902 fi
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12908 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12909 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12910 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12911 else
12912 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12913 if test "x$ac_cv_func_dlopen" = xyes; then :
12914 lt_cv_dlopen=dlopen
12915 else
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12917 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12918 if ${ac_cv_lib_dl_dlopen+:} false; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 ac_check_lib_save_LIBS=$LIBS
12922 LIBS="-ldl $LIBS"
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925
12926 /* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
12929 #ifdef __cplusplus
12930 extern "C"
12931 #endif
12932 char dlopen ();
12933 int
12934 main (void)
12935 {
12936 return dlopen ();
12937 ;
12938 return 0;
12939 }
12940 _ACEOF
12941 if ac_fn_c_try_link "$LINENO"; then :
12942 ac_cv_lib_dl_dlopen=yes
12943 else
12944 ac_cv_lib_dl_dlopen=no
12945 fi
12946 rm -f core conftest.err conftest.$ac_objext \
12947 conftest$ac_exeext conftest.$ac_ext
12948 LIBS=$ac_check_lib_save_LIBS
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12951 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12952 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12953 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12954 else
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12956 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12957 if ${ac_cv_lib_svld_dlopen+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960 ac_check_lib_save_LIBS=$LIBS
12961 LIBS="-lsvld $LIBS"
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968 #ifdef __cplusplus
12969 extern "C"
12970 #endif
12971 char dlopen ();
12972 int
12973 main (void)
12974 {
12975 return dlopen ();
12976 ;
12977 return 0;
12978 }
12979 _ACEOF
12980 if ac_fn_c_try_link "$LINENO"; then :
12981 ac_cv_lib_svld_dlopen=yes
12982 else
12983 ac_cv_lib_svld_dlopen=no
12984 fi
12985 rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987 LIBS=$ac_check_lib_save_LIBS
12988 fi
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12990 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12991 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12992 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12993 else
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12995 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12996 if ${ac_cv_lib_dld_dld_link+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 ac_check_lib_save_LIBS=$LIBS
13000 LIBS="-ldld $LIBS"
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003
13004 /* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
13007 #ifdef __cplusplus
13008 extern "C"
13009 #endif
13010 char dld_link ();
13011 int
13012 main (void)
13013 {
13014 return dld_link ();
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 if ac_fn_c_try_link "$LINENO"; then :
13020 ac_cv_lib_dld_dld_link=yes
13021 else
13022 ac_cv_lib_dld_dld_link=no
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext \
13025 conftest$ac_exeext conftest.$ac_ext
13026 LIBS=$ac_check_lib_save_LIBS
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13029 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13030 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13031 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13032 fi
13033
13034
13035 fi
13036
13037
13038 fi
13039
13040
13041 fi
13042
13043
13044 fi
13045
13046
13047 fi
13048
13049 ;;
13050 esac
13051
13052 if test no = "$lt_cv_dlopen"; then
13053 enable_dlopen=no
13054 else
13055 enable_dlopen=yes
13056 fi
13057
13058 case $lt_cv_dlopen in
13059 dlopen)
13060 save_CPPFLAGS=$CPPFLAGS
13061 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13062
13063 save_LDFLAGS=$LDFLAGS
13064 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13065
13066 save_LIBS=$LIBS
13067 LIBS="$lt_cv_dlopen_libs $LIBS"
13068
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13070 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13071 if ${lt_cv_dlopen_self+:} false; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 if test yes = "$cross_compiling"; then :
13075 lt_cv_dlopen_self=cross
13076 else
13077 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13078 lt_status=$lt_dlunknown
13079 cat > conftest.$ac_ext <<_LT_EOF
13080 #line $LINENO "configure"
13081 #include "confdefs.h"
13082
13083 #if HAVE_DLFCN_H
13084 #include <dlfcn.h>
13085 #endif
13086
13087 #include <stdio.h>
13088
13089 #ifdef RTLD_GLOBAL
13090 # define LT_DLGLOBAL RTLD_GLOBAL
13091 #else
13092 # ifdef DL_GLOBAL
13093 # define LT_DLGLOBAL DL_GLOBAL
13094 # else
13095 # define LT_DLGLOBAL 0
13096 # endif
13097 #endif
13098
13099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13100 find out it does not work in some platform. */
13101 #ifndef LT_DLLAZY_OR_NOW
13102 # ifdef RTLD_LAZY
13103 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13104 # else
13105 # ifdef DL_LAZY
13106 # define LT_DLLAZY_OR_NOW DL_LAZY
13107 # else
13108 # ifdef RTLD_NOW
13109 # define LT_DLLAZY_OR_NOW RTLD_NOW
13110 # else
13111 # ifdef DL_NOW
13112 # define LT_DLLAZY_OR_NOW DL_NOW
13113 # else
13114 # define LT_DLLAZY_OR_NOW 0
13115 # endif
13116 # endif
13117 # endif
13118 # endif
13119 #endif
13120
13121 /* When -fvisibility=hidden is used, assume the code has been annotated
13122 correspondingly for the symbols needed. */
13123 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13124 int fnord () __attribute__((visibility("default")));
13125 #endif
13126
13127 int fnord () { return 42; }
13128 int main ()
13129 {
13130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13131 int status = $lt_dlunknown;
13132
13133 if (self)
13134 {
13135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13136 else
13137 {
13138 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13139 else puts (dlerror ());
13140 }
13141 /* dlclose (self); */
13142 }
13143 else
13144 puts (dlerror ());
13145
13146 return status;
13147 }
13148 _LT_EOF
13149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13150 (eval $ac_link) 2>&5
13151 ac_status=$?
13152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13153 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13154 (./conftest; exit; ) >&5 2>/dev/null
13155 lt_status=$?
13156 case x$lt_status in
13157 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13158 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13159 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13160 esac
13161 else :
13162 # compilation failed
13163 lt_cv_dlopen_self=no
13164 fi
13165 fi
13166 rm -fr conftest*
13167
13168
13169 fi
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13171 $as_echo "$lt_cv_dlopen_self" >&6; }
13172
13173 if test yes = "$lt_cv_dlopen_self"; then
13174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13176 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13177 if ${lt_cv_dlopen_self_static+:} false; then :
13178 $as_echo_n "(cached) " >&6
13179 else
13180 if test yes = "$cross_compiling"; then :
13181 lt_cv_dlopen_self_static=cross
13182 else
13183 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13184 lt_status=$lt_dlunknown
13185 cat > conftest.$ac_ext <<_LT_EOF
13186 #line $LINENO "configure"
13187 #include "confdefs.h"
13188
13189 #if HAVE_DLFCN_H
13190 #include <dlfcn.h>
13191 #endif
13192
13193 #include <stdio.h>
13194
13195 #ifdef RTLD_GLOBAL
13196 # define LT_DLGLOBAL RTLD_GLOBAL
13197 #else
13198 # ifdef DL_GLOBAL
13199 # define LT_DLGLOBAL DL_GLOBAL
13200 # else
13201 # define LT_DLGLOBAL 0
13202 # endif
13203 #endif
13204
13205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13206 find out it does not work in some platform. */
13207 #ifndef LT_DLLAZY_OR_NOW
13208 # ifdef RTLD_LAZY
13209 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13210 # else
13211 # ifdef DL_LAZY
13212 # define LT_DLLAZY_OR_NOW DL_LAZY
13213 # else
13214 # ifdef RTLD_NOW
13215 # define LT_DLLAZY_OR_NOW RTLD_NOW
13216 # else
13217 # ifdef DL_NOW
13218 # define LT_DLLAZY_OR_NOW DL_NOW
13219 # else
13220 # define LT_DLLAZY_OR_NOW 0
13221 # endif
13222 # endif
13223 # endif
13224 # endif
13225 #endif
13226
13227 /* When -fvisibility=hidden is used, assume the code has been annotated
13228 correspondingly for the symbols needed. */
13229 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13230 int fnord () __attribute__((visibility("default")));
13231 #endif
13232
13233 int fnord () { return 42; }
13234 int main ()
13235 {
13236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13237 int status = $lt_dlunknown;
13238
13239 if (self)
13240 {
13241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13242 else
13243 {
13244 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13245 else puts (dlerror ());
13246 }
13247 /* dlclose (self); */
13248 }
13249 else
13250 puts (dlerror ());
13251
13252 return status;
13253 }
13254 _LT_EOF
13255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13256 (eval $ac_link) 2>&5
13257 ac_status=$?
13258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13259 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13260 (./conftest; exit; ) >&5 2>/dev/null
13261 lt_status=$?
13262 case x$lt_status in
13263 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13264 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13265 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13266 esac
13267 else :
13268 # compilation failed
13269 lt_cv_dlopen_self_static=no
13270 fi
13271 fi
13272 rm -fr conftest*
13273
13274
13275 fi
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13277 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13278 fi
13279
13280 CPPFLAGS=$save_CPPFLAGS
13281 LDFLAGS=$save_LDFLAGS
13282 LIBS=$save_LIBS
13283 ;;
13284 esac
13285
13286 case $lt_cv_dlopen_self in
13287 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13288 *) enable_dlopen_self=unknown ;;
13289 esac
13290
13291 case $lt_cv_dlopen_self_static in
13292 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13293 *) enable_dlopen_self_static=unknown ;;
13294 esac
13295 fi
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313 striplib=
13314 old_striplib=
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13316 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13317 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13318 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13319 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13321 $as_echo "yes" >&6; }
13322 else
13323 # FIXME - insert some real tests, host_os isn't really good enough
13324 case $host_os in
13325 darwin*)
13326 if test -n "$STRIP"; then
13327 striplib="$STRIP -x"
13328 old_striplib="$STRIP -S"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13330 $as_echo "yes" >&6; }
13331 else
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333 $as_echo "no" >&6; }
13334 fi
13335 ;;
13336 *)
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13339 ;;
13340 esac
13341 fi
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354 # Report what library types will actually be built
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13356 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13358 $as_echo "$can_build_shared" >&6; }
13359
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13361 $as_echo_n "checking whether to build shared libraries... " >&6; }
13362 test no = "$can_build_shared" && enable_shared=no
13363
13364 # On AIX, shared libraries and static libraries use the same namespace, and
13365 # are all built from PIC.
13366 case $host_os in
13367 aix3*)
13368 test yes = "$enable_shared" && enable_static=no
13369 if test -n "$RANLIB"; then
13370 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13371 postinstall_cmds='$RANLIB $lib'
13372 fi
13373 ;;
13374
13375 aix[4-9]*)
13376 if test ia64 != "$host_cpu"; then
13377 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13378 yes,aix,yes) ;; # shared object as lib.so file only
13379 yes,svr4,*) ;; # shared object as lib.so archive member only
13380 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13381 esac
13382 fi
13383 ;;
13384 esac
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13386 $as_echo "$enable_shared" >&6; }
13387
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13389 $as_echo_n "checking whether to build static libraries... " >&6; }
13390 # Make sure either enable_shared or enable_static is yes.
13391 test yes = "$enable_shared" || enable_static=yes
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13393 $as_echo "$enable_static" >&6; }
13394
13395
13396
13397
13398 fi
13399 ac_ext=c
13400 ac_cpp='$CPP $CPPFLAGS'
13401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13404
13405 CC=$lt_save_CC
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421 ac_config_commands="$ac_config_commands libtool"
13422
13423
13424
13425
13426 # Only expand once:
13427
13428
13429
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-MS-Windows ICC" >&5
13431 $as_echo_n "checking for non-MS-Windows ICC... " >&6; }
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13434
13435 #if (!defined(__ICC) && !defined(__INTEL_COMPILER)) || defined(_WIN32)
13436 # error "Not a non-MS-Windows ICC"
13437 error
13438 #endif
13439
13440 int
13441 main (void)
13442 {
13443
13444 ;
13445 return 0;
13446 }
13447 _ACEOF
13448 if ac_fn_c_try_compile "$LINENO"; then :
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13451 $as_echo "yes" >&6; }
13452 CFLAGS="-fp_port -mieee-fp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
13453
13454 else
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456 $as_echo "no" >&6; }
13457 fi
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459
13460 if test "$test_CFLAGS" != set && test -n "$GCC"; then
13461 CFLAGS="-Wpointer-arith $CFLAGS"
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the selected language is C++" >&5
13463 $as_echo_n "checking whether the selected language is C++... " >&6; }
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13466
13467 #if defined (__cplusplus)
13468 # error "C++"
13469 error
13470 #endif
13471
13472 int
13473 main (void)
13474 {
13475
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_compile "$LINENO"; then :
13481
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483 $as_echo "no" >&6; }
13484 CFLAGS="-Wmissing-prototypes $CFLAGS"
13485
13486 else
13487
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13489 $as_echo "yes" >&6; }
13490 CFLAGS="-Wmissing-declarations -Wno-sign-compare $CFLAGS"
13491
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494 CFLAGS="-Wall $CFLAGS"
13495 fi
13496
13497
13498
13499 case $host in
13500 *-apple-darwin*)
13501 case "$LD $LDFLAGS" in
13502 *-Wl,-search_paths_first*) ;;
13503 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
13504 $as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
13505 saved_LDFLAGS="$LDFLAGS"
13506 LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13509
13510 int
13511 main (void)
13512 {
13513
13514 ;
13515 return 0;
13516 }
13517 _ACEOF
13518 if ac_fn_c_try_link "$LINENO"; then :
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13520 $as_echo "yes" >&6; }
13521 else
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523 $as_echo "no" >&6; }
13524 LDFLAGS="$saved_LDFLAGS"
13525 fi
13526 rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 ;;
13529 esac
13530 ;;
13531 esac
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13534 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13535 if ${ac_cv_c_const+:} false; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540
13541 int
13542 main (void)
13543 {
13544
13545 #ifndef __cplusplus
13546 /* Ultrix mips cc rejects this sort of thing. */
13547 typedef int charset[2];
13548 const charset cs = { 0, 0 };
13549 /* SunOS 4.1.1 cc rejects this. */
13550 char const *const *pcpcc;
13551 char **ppc;
13552 /* NEC SVR4.0.2 mips cc rejects this. */
13553 struct point {int x, y;};
13554 static struct point const zero = {0,0};
13555 /* AIX XL C 1.02.0.0 rejects this.
13556 It does not let you subtract one const X* pointer from another in
13557 an arm of an if-expression whose if-part is not a constant
13558 expression */
13559 const char *g = "string";
13560 pcpcc = &g + (g ? g-g : 0);
13561 /* HPUX 7.0 cc rejects these. */
13562 ++pcpcc;
13563 ppc = (char**) pcpcc;
13564 pcpcc = (char const *const *) ppc;
13565 { /* SCO 3.2v4 cc rejects this sort of thing. */
13566 char tx;
13567 char *t = &tx;
13568 char const *s = 0 ? (char *) 0 : (char const *) 0;
13569
13570 *t++ = 0;
13571 if (s) return 0;
13572 }
13573 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13574 int x[] = {25, 17};
13575 const int *foo = &x[0];
13576 ++foo;
13577 }
13578 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13579 typedef const int *iptr;
13580 iptr p = 0;
13581 ++p;
13582 }
13583 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13584 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13585 struct s { int j; const int *ap[3]; } bx;
13586 struct s *b = &bx; b->j = 5;
13587 }
13588 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13589 const int foo = 10;
13590 if (!foo) return 0;
13591 }
13592 return !cs[0] && !zero.x;
13593 #endif
13594
13595 ;
13596 return 0;
13597 }
13598 _ACEOF
13599 if ac_fn_c_try_compile "$LINENO"; then :
13600 ac_cv_c_const=yes
13601 else
13602 ac_cv_c_const=no
13603 fi
13604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 fi
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13607 $as_echo "$ac_cv_c_const" >&6; }
13608 if test $ac_cv_c_const = no; then
13609
13610 $as_echo "#define const /**/" >>confdefs.h
13611
13612 fi
13613
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13615 $as_echo_n "checking for working volatile... " >&6; }
13616 if ${ac_cv_c_volatile+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621
13622 int
13623 main (void)
13624 {
13625
13626 volatile int x;
13627 int * volatile y = (int *) 0;
13628 return !x && !y;
13629 ;
13630 return 0;
13631 }
13632 _ACEOF
13633 if ac_fn_c_try_compile "$LINENO"; then :
13634 ac_cv_c_volatile=yes
13635 else
13636 ac_cv_c_volatile=no
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 fi
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13641 $as_echo "$ac_cv_c_volatile" >&6; }
13642 if test $ac_cv_c_volatile = no; then
13643
13644 $as_echo "#define volatile /**/" >>confdefs.h
13645
13646 fi
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13649 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13650 if ${ac_cv_c_bigendian+:} false; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 ac_cv_c_bigendian=unknown
13654 # See if we're dealing with a universal compiler.
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13657 #ifndef __APPLE_CC__
13658 not a universal capable compiler
13659 #endif
13660 typedef int dummy;
13661
13662 _ACEOF
13663 if ac_fn_c_try_compile "$LINENO"; then :
13664
13665 # Check for potential -arch flags. It is not universal unless
13666 # there are at least two -arch flags with different values.
13667 ac_arch=
13668 ac_prev=
13669 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13670 if test -n "$ac_prev"; then
13671 case $ac_word in
13672 i?86 | x86_64 | ppc | ppc64)
13673 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13674 ac_arch=$ac_word
13675 else
13676 ac_cv_c_bigendian=universal
13677 break
13678 fi
13679 ;;
13680 esac
13681 ac_prev=
13682 elif test "x$ac_word" = "x-arch"; then
13683 ac_prev=arch
13684 fi
13685 done
13686 fi
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688 if test $ac_cv_c_bigendian = unknown; then
13689 # See if sys/param.h defines the BYTE_ORDER macro.
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692 #include <sys/types.h>
13693 #include <sys/param.h>
13694
13695 int
13696 main (void)
13697 {
13698 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13699 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13700 && LITTLE_ENDIAN)
13701 bogus endian macros
13702 #endif
13703
13704 ;
13705 return 0;
13706 }
13707 _ACEOF
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 # It does; now see whether it defined to BIG_ENDIAN or not.
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 #include <sys/types.h>
13713 #include <sys/param.h>
13714
13715 int
13716 main (void)
13717 {
13718 #if BYTE_ORDER != BIG_ENDIAN
13719 not big endian
13720 #endif
13721
13722 ;
13723 return 0;
13724 }
13725 _ACEOF
13726 if ac_fn_c_try_compile "$LINENO"; then :
13727 ac_cv_c_bigendian=yes
13728 else
13729 ac_cv_c_bigendian=no
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 fi
13735 if test $ac_cv_c_bigendian = unknown; then
13736 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13739 #include <limits.h>
13740
13741 int
13742 main (void)
13743 {
13744 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13745 bogus endian macros
13746 #endif
13747
13748 ;
13749 return 0;
13750 }
13751 _ACEOF
13752 if ac_fn_c_try_compile "$LINENO"; then :
13753 # It does; now see whether it defined to _BIG_ENDIAN or not.
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756 #include <limits.h>
13757
13758 int
13759 main (void)
13760 {
13761 #ifndef _BIG_ENDIAN
13762 not big endian
13763 #endif
13764
13765 ;
13766 return 0;
13767 }
13768 _ACEOF
13769 if ac_fn_c_try_compile "$LINENO"; then :
13770 ac_cv_c_bigendian=yes
13771 else
13772 ac_cv_c_bigendian=no
13773 fi
13774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 fi
13778 if test $ac_cv_c_bigendian = unknown; then
13779 # Compile a test program.
13780 if test "$cross_compiling" = yes; then :
13781 # Try to guess by grepping values from an object file.
13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13784 short int ascii_mm[] =
13785 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13786 short int ascii_ii[] =
13787 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13788 int use_ascii (int i) {
13789 return ascii_mm[i] + ascii_ii[i];
13790 }
13791 short int ebcdic_ii[] =
13792 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13793 short int ebcdic_mm[] =
13794 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13795 int use_ebcdic (int i) {
13796 return ebcdic_mm[i] + ebcdic_ii[i];
13797 }
13798 extern int foo;
13799
13800 int
13801 main (void)
13802 {
13803 return use_ascii (foo) == use_ebcdic (foo);
13804 ;
13805 return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_compile "$LINENO"; then :
13809 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13810 ac_cv_c_bigendian=yes
13811 fi
13812 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13813 if test "$ac_cv_c_bigendian" = unknown; then
13814 ac_cv_c_bigendian=no
13815 else
13816 # finding both strings is unlikely to happen, but who knows?
13817 ac_cv_c_bigendian=unknown
13818 fi
13819 fi
13820 fi
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822 else
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13825 $ac_includes_default
13826 int
13827 main (void)
13828 {
13829
13830 /* Are we little or big endian? From Harbison&Steele. */
13831 union
13832 {
13833 long int l;
13834 char c[sizeof (long int)];
13835 } u;
13836 u.l = 1;
13837 return u.c[sizeof (long int) - 1] == 1;
13838
13839 ;
13840 return 0;
13841 }
13842 _ACEOF
13843 if ac_fn_c_try_run "$LINENO"; then :
13844 ac_cv_c_bigendian=no
13845 else
13846 ac_cv_c_bigendian=yes
13847 fi
13848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13849 conftest.$ac_objext conftest.beam conftest.$ac_ext
13850 fi
13851
13852 fi
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13855 $as_echo "$ac_cv_c_bigendian" >&6; }
13856 case $ac_cv_c_bigendian in #(
13857 yes)
13858 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
13859 ;; #(
13860 no)
13861 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
13862 ;; #(
13863 universal)
13864 true
13865 ;; #(
13866 *)
13867 true ;;
13868 esac
13869
13870
13871 # (Based on GMP 5.1)
13872 # clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt to
13873 # TUNE_LIBS if needed (e.g. if clock_gettime is not already in the C library).
13874 # On linux (tested on x86_32, 2.6.26), clock_getres reports ns accuracy,
13875 # while in a quick test on osf, clock_getres said only 1 millisecond.
13876 old_LIBS="$LIBS"
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13878 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13879 if ${ac_cv_search_clock_gettime+:} false; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 ac_func_search_save_LIBS=$LIBS
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13885
13886 /* Override any GCC internal prototype to avoid an error.
13887 Use char because int might match the return type of a GCC
13888 builtin and then its argument prototype would still apply. */
13889 #ifdef __cplusplus
13890 extern "C"
13891 #endif
13892 char clock_gettime ();
13893 int
13894 main (void)
13895 {
13896 return clock_gettime ();
13897 ;
13898 return 0;
13899 }
13900 _ACEOF
13901 for ac_lib in '' rt; do
13902 if test -z "$ac_lib"; then
13903 ac_res="none required"
13904 else
13905 ac_res=-l$ac_lib
13906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13907 fi
13908 if ac_fn_c_try_link "$LINENO"; then :
13909 ac_cv_search_clock_gettime=$ac_res
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext
13913 if ${ac_cv_search_clock_gettime+:} false; then :
13914 break
13915 fi
13916 done
13917 if ${ac_cv_search_clock_gettime+:} false; then :
13918
13919 else
13920 ac_cv_search_clock_gettime=no
13921 fi
13922 rm conftest.$ac_ext
13923 LIBS=$ac_func_search_save_LIBS
13924 fi
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13926 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13927 ac_res=$ac_cv_search_clock_gettime
13928 if test "$ac_res" != no; then :
13929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13930
13931
13932 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13933
13934 fi
13935
13936 TUNE_LIBS="$LIBS"
13937 LIBS="$old_LIBS"
13938
13939
13940 case $host in
13941 *-*-linux*)
13942 if test -n "$LD_LIBRARY_PATH"; then
13943 saved_LDFLAGS="$LDFLAGS"
13944 LDFLAGS="$LDFLAGS -Wl,--disable-new-dtags"
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
13946 $as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13949
13950 int main (void) { return 0; }
13951
13952 _ACEOF
13953 if ac_fn_c_try_link "$LINENO"; then :
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
13955 $as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
13956 else
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958 $as_echo "no" >&6; }
13959 LDFLAGS="$saved_LDFLAGS"
13960
13961 fi
13962 rm -f core conftest.err conftest.$ac_objext \
13963 conftest$ac_exeext conftest.$ac_ext
13964 fi
13965 ;;
13966 esac
13967
13968
13969
13970 MPFR_LIBM=''
13971
13972 case $host in
13973 *-*-beos* | *-*-cygwin* | *-*-pw32*)
13974 # According to libtool AC CHECK LIBM, these systems don't have libm
13975 ;;
13976 *-*-solaris*)
13977 # On Solaris the math functions new in C99 are in -lm9x.
13978 # FIXME: Do we need -lm9x as well as -lm, or just instead of?
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm9x" >&5
13980 $as_echo_n "checking for main in -lm9x... " >&6; }
13981 if ${ac_cv_lib_m9x_main+:} false; then :
13982 $as_echo_n "(cached) " >&6
13983 else
13984 ac_check_lib_save_LIBS=$LIBS
13985 LIBS="-lm9x $LIBS"
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13988
13989
13990 int
13991 main (void)
13992 {
13993 return main ();
13994 ;
13995 return 0;
13996 }
13997 _ACEOF
13998 if ac_fn_c_try_link "$LINENO"; then :
13999 ac_cv_lib_m9x_main=yes
14000 else
14001 ac_cv_lib_m9x_main=no
14002 fi
14003 rm -f core conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14005 LIBS=$ac_check_lib_save_LIBS
14006 fi
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m9x_main" >&5
14008 $as_echo "$ac_cv_lib_m9x_main" >&6; }
14009 if test "x$ac_cv_lib_m9x_main" = xyes; then :
14010 MPFR_LIBM="-lm9x"
14011 fi
14012
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
14014 $as_echo_n "checking for main in -lm... " >&6; }
14015 if ${ac_cv_lib_m_main+:} false; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 ac_check_lib_save_LIBS=$LIBS
14019 LIBS="-lm $LIBS"
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14022
14023
14024 int
14025 main (void)
14026 {
14027 return main ();
14028 ;
14029 return 0;
14030 }
14031 _ACEOF
14032 if ac_fn_c_try_link "$LINENO"; then :
14033 ac_cv_lib_m_main=yes
14034 else
14035 ac_cv_lib_m_main=no
14036 fi
14037 rm -f core conftest.err conftest.$ac_objext \
14038 conftest$ac_exeext conftest.$ac_ext
14039 LIBS=$ac_check_lib_save_LIBS
14040 fi
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
14042 $as_echo "$ac_cv_lib_m_main" >&6; }
14043 if test "x$ac_cv_lib_m_main" = xyes; then :
14044 MPFR_LIBM="$MPFR_LIBM -lm"
14045 fi
14046
14047 ;;
14048 *-ncr-sysv4.3*)
14049 # FIXME: What does -lmw mean? Libtool AC CHECK LIBM does it this way.
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14051 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14052 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 ac_check_lib_save_LIBS=$LIBS
14056 LIBS="-lmw $LIBS"
14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14059
14060 /* Override any GCC internal prototype to avoid an error.
14061 Use char because int might match the return type of a GCC
14062 builtin and then its argument prototype would still apply. */
14063 #ifdef __cplusplus
14064 extern "C"
14065 #endif
14066 char _mwvalidcheckl ();
14067 int
14068 main (void)
14069 {
14070 return _mwvalidcheckl ();
14071 ;
14072 return 0;
14073 }
14074 _ACEOF
14075 if ac_fn_c_try_link "$LINENO"; then :
14076 ac_cv_lib_mw__mwvalidcheckl=yes
14077 else
14078 ac_cv_lib_mw__mwvalidcheckl=no
14079 fi
14080 rm -f core conftest.err conftest.$ac_objext \
14081 conftest$ac_exeext conftest.$ac_ext
14082 LIBS=$ac_check_lib_save_LIBS
14083 fi
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14085 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14086 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
14087 MPFR_LIBM="-lmw"
14088 fi
14089
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
14091 $as_echo_n "checking for main in -lm... " >&6; }
14092 if ${ac_cv_lib_m_main+:} false; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 ac_check_lib_save_LIBS=$LIBS
14096 LIBS="-lm $LIBS"
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099
14100
14101 int
14102 main (void)
14103 {
14104 return main ();
14105 ;
14106 return 0;
14107 }
14108 _ACEOF
14109 if ac_fn_c_try_link "$LINENO"; then :
14110 ac_cv_lib_m_main=yes
14111 else
14112 ac_cv_lib_m_main=no
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext \
14115 conftest$ac_exeext conftest.$ac_ext
14116 LIBS=$ac_check_lib_save_LIBS
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
14119 $as_echo "$ac_cv_lib_m_main" >&6; }
14120 if test "x$ac_cv_lib_m_main" = xyes; then :
14121 MPFR_LIBM="$MPFR_LIBM -lm"
14122 fi
14123
14124 ;;
14125 *)
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
14127 $as_echo_n "checking for main in -lm... " >&6; }
14128 if ${ac_cv_lib_m_main+:} false; then :
14129 $as_echo_n "(cached) " >&6
14130 else
14131 ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-lm $LIBS"
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14135
14136
14137 int
14138 main (void)
14139 {
14140 return main ();
14141 ;
14142 return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_link "$LINENO"; then :
14146 ac_cv_lib_m_main=yes
14147 else
14148 ac_cv_lib_m_main=no
14149 fi
14150 rm -f core conftest.err conftest.$ac_objext \
14151 conftest$ac_exeext conftest.$ac_ext
14152 LIBS=$ac_check_lib_save_LIBS
14153 fi
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
14155 $as_echo "$ac_cv_lib_m_main" >&6; }
14156 if test "x$ac_cv_lib_m_main" = xyes; then :
14157 MPFR_LIBM="-lm"
14158 fi
14159
14160 ;;
14161 esac
14162
14163
14164 MPFR_LIBQUADMATH=''
14165
14166 case $host in
14167 *)
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lquadmath" >&5
14169 $as_echo_n "checking for main in -lquadmath... " >&6; }
14170 if ${ac_cv_lib_quadmath_main+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 ac_check_lib_save_LIBS=$LIBS
14174 LIBS="-lquadmath $LIBS"
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14177
14178
14179 int
14180 main (void)
14181 {
14182 return main ();
14183 ;
14184 return 0;
14185 }
14186 _ACEOF
14187 if ac_fn_c_try_link "$LINENO"; then :
14188 ac_cv_lib_quadmath_main=yes
14189 else
14190 ac_cv_lib_quadmath_main=no
14191 fi
14192 rm -f core conftest.err conftest.$ac_objext \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS
14195 fi
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_main" >&5
14197 $as_echo "$ac_cv_lib_quadmath_main" >&6; }
14198 if test "x$ac_cv_lib_quadmath_main" = xyes; then :
14199 MPFR_LIBQUADMATH="-lquadmath"
14200 fi
14201
14202 ;;
14203 esac
14204
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14206 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14207 if ${ac_cv_header_time+:} false; then :
14208 $as_echo_n "(cached) " >&6
14209 else
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212 #include <sys/types.h>
14213 #include <sys/time.h>
14214 #include <time.h>
14215
14216 int
14217 main (void)
14218 {
14219 if ((struct tm *) 0)
14220 return 0;
14221 ;
14222 return 0;
14223 }
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226 ac_cv_header_time=yes
14227 else
14228 ac_cv_header_time=no
14229 fi
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 fi
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14233 $as_echo "$ac_cv_header_time" >&6; }
14234 if test $ac_cv_header_time = yes; then
14235
14236 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14237
14238 fi
14239
14240 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14241 if test "x$ac_cv_type_size_t" = xyes; then :
14242
14243 else
14244
14245 cat >>confdefs.h <<_ACEOF
14246 #define size_t unsigned int
14247 _ACEOF
14248
14249 fi
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259 if test "$enable_shared_cache" = yes; then
14260
14261
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C11 thread support" >&5
14263 $as_echo_n "checking for ISO C11 thread support... " >&6; }
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14266
14267 #include <assert.h>
14268 #include <threads.h>
14269 mtx_t lock;
14270 once_flag once = ONCE_FLAG_INIT;
14271 thrd_t thd_idx;
14272 int x = 0;
14273 void once_call (void) { x = 1; }
14274
14275 int
14276 main (void)
14277 {
14278
14279 int err;
14280 err = mtx_init(&lock, mtx_plain);
14281 assert(err == thrd_success);
14282 err = mtx_lock(&lock);
14283 assert(err == thrd_success);
14284 err = mtx_unlock(&lock);
14285 assert(err == thrd_success);
14286 mtx_destroy(&lock);
14287 once_call(&once, once_call);
14288 return x == 1 ? 0 : -1;
14289
14290 ;
14291 return 0;
14292 }
14293 _ACEOF
14294 if ac_fn_c_try_link "$LINENO"; then :
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14296 $as_echo "yes" >&6; }
14297 mpfr_c11_thread_ok=yes
14298 else
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 $as_echo "no" >&6; }
14301
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext \
14304 conftest$ac_exeext conftest.$ac_ext
14305
14306 if test "$mpfr_c11_thread_ok" = "yes"; then
14307
14308 $as_echo "#define MPFR_HAVE_C11_LOCK 1" >>confdefs.h
14309
14310 fi
14311
14312
14313 if test "$mpfr_c11_thread_ok" != yes; then
14314
14315
14316
14317
14318
14319 ac_ext=c
14320 ac_cpp='$CPP $CPPFLAGS'
14321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14324
14325 ax_pthread_ok=no
14326
14327 # We used to check for pthread.h first, but this fails if pthread.h
14328 # requires special compiler flags (e.g. on Tru64 or Sequent).
14329 # It gets checked for in the link test anyway.
14330
14331 # First of all, check if the user has set any of the PTHREAD_LIBS,
14332 # etcetera environment variables, and if threads linking works using
14333 # them:
14334 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14335 ax_pthread_save_CC="$CC"
14336 ax_pthread_save_CFLAGS="$CFLAGS"
14337 ax_pthread_save_LIBS="$LIBS"
14338 if test "x$PTHREAD_CC" != "x"; then :
14339 CC="$PTHREAD_CC"
14340 fi
14341 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14342 LIBS="$PTHREAD_LIBS $LIBS"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14344 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14347
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14351 #ifdef __cplusplus
14352 extern "C"
14353 #endif
14354 char pthread_join ();
14355 int
14356 main (void)
14357 {
14358 return pthread_join ();
14359 ;
14360 return 0;
14361 }
14362 _ACEOF
14363 if ac_fn_c_try_link "$LINENO"; then :
14364 ax_pthread_ok=yes
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14369 $as_echo "$ax_pthread_ok" >&6; }
14370 if test "x$ax_pthread_ok" = "xno"; then
14371 PTHREAD_LIBS=""
14372 PTHREAD_CFLAGS=""
14373 fi
14374 CC="$ax_pthread_save_CC"
14375 CFLAGS="$ax_pthread_save_CFLAGS"
14376 LIBS="$ax_pthread_save_LIBS"
14377 fi
14378
14379 # We must check for the threads library under a number of different
14380 # names; the ordering is very important because some systems
14381 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14382 # libraries is broken (non-POSIX).
14383
14384 # Create a list of thread flags to try. Items starting with a "-" are
14385 # C compiler flags, and other items are library names, except for "none"
14386 # which indicates that we try without any flags at all, and "pthread-config"
14387 # which is a program returning the flags for the Pth emulation library.
14388
14389 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14390
14391 # The ordering *is* (sometimes) important. Some notes on the
14392 # individual items follow:
14393
14394 # pthreads: AIX (must check this before -lpthread)
14395 # none: in case threads are in libc; should be tried before -Kthread and
14396 # other compiler flags to prevent continual compiler warnings
14397 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14398 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14399 # (Note: HP C rejects this with "bad form for `-t' option")
14400 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14401 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14402 # doesn't hurt to check since this sometimes defines pthreads and
14403 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14404 # is present but should not be used directly; and before -mthreads,
14405 # because the compiler interprets this as "-mt" + "-hreads")
14406 # -mthreads: Mingw32/gcc, Lynx/gcc
14407 # pthread: Linux, etcetera
14408 # --thread-safe: KAI C++
14409 # pthread-config: use pthread-config program (for GNU Pth library)
14410
14411 case $host_os in
14412
14413 freebsd*)
14414
14415 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14416 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14417
14418 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
14419 ;;
14420
14421 hpux*)
14422
14423 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14424 # multi-threading and also sets -lpthread."
14425
14426 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
14427 ;;
14428
14429 openedition*)
14430
14431 # IBM z/OS requires a feature-test macro to be defined in order to
14432 # enable POSIX threads at all, so give the user a hint if this is
14433 # not set. (We don't define these ourselves, as they can affect
14434 # other portions of the system API in unpredictable ways.)
14435
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14438
14439 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14440 AX_PTHREAD_ZOS_MISSING
14441 # endif
14442
14443 _ACEOF
14444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14445 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14447 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14448 fi
14449 rm -f conftest*
14450
14451 ;;
14452
14453 solaris*)
14454
14455 # On Solaris (at least, for some versions), libc contains stubbed
14456 # (non-functional) versions of the pthreads routines, so link-based
14457 # tests will erroneously succeed. (N.B.: The stubs are missing
14458 # pthread_cleanup_push, or rather a function called by this macro,
14459 # so we could check for that, but who knows whether they'll stub
14460 # that too in a future libc.) So we'll check first for the
14461 # standard Solaris way of linking pthreads (-mt -lpthread).
14462
14463 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
14464 ;;
14465 esac
14466
14467 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14468
14469 if test "x$GCC" = "xyes"; then :
14470 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
14471 fi
14472
14473 # The presence of a feature test macro requesting re-entrant function
14474 # definitions is, on some systems, a strong hint that pthreads support is
14475 # correctly enabled
14476
14477 case $host_os in
14478 darwin* | hpux* | linux* | osf* | solaris*)
14479 ax_pthread_check_macro="_REENTRANT"
14480 ;;
14481
14482 aix*)
14483 ax_pthread_check_macro="_THREAD_SAFE"
14484 ;;
14485
14486 *)
14487 ax_pthread_check_macro="--"
14488 ;;
14489 esac
14490 if test "x$ax_pthread_check_macro" = "x--"; then :
14491 ax_pthread_check_cond=0
14492 else
14493 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
14494 fi
14495
14496 # Are we compiling with Clang?
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14499 $as_echo_n "checking whether $CC is Clang... " >&6; }
14500 if ${ax_cv_PTHREAD_CLANG+:} false; then :
14501 $as_echo_n "(cached) " >&6
14502 else
14503 ax_cv_PTHREAD_CLANG=no
14504 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14505 if test "x$GCC" = "xyes"; then
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14508 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14509 # if defined(__clang__) && defined(__llvm__)
14510 AX_PTHREAD_CC_IS_CLANG
14511 # endif
14512
14513 _ACEOF
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
14516 ax_cv_PTHREAD_CLANG=yes
14517 fi
14518 rm -f conftest*
14519
14520 fi
14521
14522 fi
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14524 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14525 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
14526
14527 ax_pthread_clang_warning=no
14528
14529 # Clang needs special handling, because older versions handle the -pthread
14530 # option in a rather... idiosyncratic way
14531
14532 if test "x$ax_pthread_clang" = "xyes"; then
14533
14534 # Clang takes -pthread; it has never supported any other flag
14535
14536 # (Note 1: This will need to be revisited if a system that Clang
14537 # supports has POSIX threads in a separate library. This tends not
14538 # to be the way of modern systems, but it's conceivable.)
14539
14540 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14541 # to get POSIX threads support; the API is always present and
14542 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14543 # -pthread does define _REENTRANT, and while the Darwin headers
14544 # ignore this macro, third-party headers might not.)
14545
14546 PTHREAD_CFLAGS="-pthread"
14547 PTHREAD_LIBS=
14548
14549 ax_pthread_ok=yes
14550
14551 # However, older versions of Clang make a point of warning the user
14552 # that, in an invocation where only linking and no compilation is
14553 # taking place, the -pthread option has no effect ("argument unused
14554 # during compilation"). They expect -pthread to be passed in only
14555 # when source code is being compiled.
14556 #
14557 # Problem is, this is at odds with the way Automake and most other
14558 # C build frameworks function, which is that the same flags used in
14559 # compilation (CFLAGS) are also used in linking. Many systems
14560 # supported by AX_PTHREAD require exactly this for POSIX threads
14561 # support, and in fact it is often not straightforward to specify a
14562 # flag that is used only in the compilation phase and not in
14563 # linking. Such a scenario is extremely rare in practice.
14564 #
14565 # Even though use of the -pthread flag in linking would only print
14566 # a warning, this can be a nuisance for well-run software projects
14567 # that build with -Werror. So if the active version of Clang has
14568 # this misfeature, we search for an option to squash it.
14569
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14571 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14572 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
14576 # Create an alternate version of $ac_link that compiles and
14577 # links in two steps (.c -> .o, .o -> exe) instead of one
14578 # (.c -> exe), because the warning occurs only in the second
14579 # step
14580 ax_pthread_save_ac_link="$ac_link"
14581 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14582 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14583 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14584 ax_pthread_save_CFLAGS="$CFLAGS"
14585 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
14586 if test "x$ax_pthread_try" = "xunknown"; then :
14587 break
14588 fi
14589 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14590 ac_link="$ax_pthread_save_ac_link"
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14593 int main(void){return 0;}
14594 _ACEOF
14595 if ac_fn_c_try_link "$LINENO"; then :
14596 ac_link="$ax_pthread_2step_ac_link"
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 int main(void){return 0;}
14600 _ACEOF
14601 if ac_fn_c_try_link "$LINENO"; then :
14602 break
14603 fi
14604 rm -f core conftest.err conftest.$ac_objext \
14605 conftest$ac_exeext conftest.$ac_ext
14606
14607 fi
14608 rm -f core conftest.err conftest.$ac_objext \
14609 conftest$ac_exeext conftest.$ac_ext
14610 done
14611 ac_link="$ax_pthread_save_ac_link"
14612 CFLAGS="$ax_pthread_save_CFLAGS"
14613 if test "x$ax_pthread_try" = "x"; then :
14614 ax_pthread_try=no
14615 fi
14616 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
14617
14618 fi
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14620 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14621
14622 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14623 no | unknown) ;;
14624 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14625 esac
14626
14627 fi # $ax_pthread_clang = yes
14628
14629 if test "x$ax_pthread_ok" = "xno"; then
14630 for ax_pthread_try_flag in $ax_pthread_flags; do
14631
14632 case $ax_pthread_try_flag in
14633 none)
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14635 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14636 ;;
14637
14638 -mt,pthread)
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14640 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14641 PTHREAD_CFLAGS="-mt"
14642 PTHREAD_LIBS="-lpthread"
14643 ;;
14644
14645 -*)
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14647 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14648 PTHREAD_CFLAGS="$ax_pthread_try_flag"
14649 ;;
14650
14651 pthread-config)
14652 # Extract the first word of "pthread-config", so it can be a program name with args.
14653 set dummy pthread-config; ac_word=$2
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14655 $as_echo_n "checking for $ac_word... " >&6; }
14656 if ${ac_cv_prog_ax_pthread_config+:} false; then :
14657 $as_echo_n "(cached) " >&6
14658 else
14659 if test -n "$ax_pthread_config"; then
14660 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14661 else
14662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663 for as_dir in $PATH
14664 do
14665 IFS=$as_save_IFS
14666 test -z "$as_dir" && as_dir=.
14667 for ac_exec_ext in '' $ac_executable_extensions; do
14668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14669 ac_cv_prog_ax_pthread_config="yes"
14670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14671 break 2
14672 fi
14673 done
14674 done
14675 IFS=$as_save_IFS
14676
14677 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14678 fi
14679 fi
14680 ax_pthread_config=$ac_cv_prog_ax_pthread_config
14681 if test -n "$ax_pthread_config"; then
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14683 $as_echo "$ax_pthread_config" >&6; }
14684 else
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686 $as_echo "no" >&6; }
14687 fi
14688
14689
14690 if test "x$ax_pthread_config" = "xno"; then :
14691 continue
14692 fi
14693 PTHREAD_CFLAGS="`pthread-config --cflags`"
14694 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14695 ;;
14696
14697 *)
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14699 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14700 PTHREAD_LIBS="-l$ax_pthread_try_flag"
14701 ;;
14702 esac
14703
14704 ax_pthread_save_CFLAGS="$CFLAGS"
14705 ax_pthread_save_LIBS="$LIBS"
14706 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14707 LIBS="$PTHREAD_LIBS $LIBS"
14708
14709 # Check for various functions. We must include pthread.h,
14710 # since some functions may be macros. (On the Sequent, we
14711 # need a special flag -Kthread to make this header compile.)
14712 # We check for pthread_join because it is in -lpthread on IRIX
14713 # while pthread_create is in libc. We check for pthread_attr_init
14714 # due to DEC craziness with -lpthreads. We check for
14715 # pthread_cleanup_push because it is one of the few pthread
14716 # functions on Solaris that doesn't have a non-functional libc stub.
14717 # We try pthread_create on general principles.
14718
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721 #include <pthread.h>
14722 # if $ax_pthread_check_cond
14723 # error "$ax_pthread_check_macro must be defined"
14724 # endif
14725 static void routine(void *a) { a = 0; }
14726 static void *start_routine(void *a) { return a; }
14727 int
14728 main (void)
14729 {
14730 pthread_t th; pthread_attr_t attr;
14731 pthread_create(&th, 0, start_routine, 0);
14732 pthread_join(th, 0);
14733 pthread_attr_init(&attr);
14734 pthread_cleanup_push(routine, 0);
14735 pthread_cleanup_pop(0) /* ; */
14736 ;
14737 return 0;
14738 }
14739 _ACEOF
14740 if ac_fn_c_try_link "$LINENO"; then :
14741 ax_pthread_ok=yes
14742 fi
14743 rm -f core conftest.err conftest.$ac_objext \
14744 conftest$ac_exeext conftest.$ac_ext
14745
14746 CFLAGS="$ax_pthread_save_CFLAGS"
14747 LIBS="$ax_pthread_save_LIBS"
14748
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14750 $as_echo "$ax_pthread_ok" >&6; }
14751 if test "x$ax_pthread_ok" = "xyes"; then :
14752 break
14753 fi
14754
14755 PTHREAD_LIBS=""
14756 PTHREAD_CFLAGS=""
14757 done
14758 fi
14759
14760 # Various other checks:
14761 if test "x$ax_pthread_ok" = "xyes"; then
14762 ax_pthread_save_CFLAGS="$CFLAGS"
14763 ax_pthread_save_LIBS="$LIBS"
14764 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14765 LIBS="$PTHREAD_LIBS $LIBS"
14766
14767 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14769 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14770 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
14771 $as_echo_n "(cached) " >&6
14772 else
14773 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
14774 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14777 #include <pthread.h>
14778 int
14779 main (void)
14780 {
14781 int attr = $ax_pthread_attr; return attr /* ; */
14782 ;
14783 return 0;
14784 }
14785 _ACEOF
14786 if ac_fn_c_try_link "$LINENO"; then :
14787 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
14788 fi
14789 rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14791 done
14792
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14795 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14796 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14797 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14798 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14799
14800 cat >>confdefs.h <<_ACEOF
14801 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14802 _ACEOF
14803
14804 ax_pthread_joinable_attr_defined=yes
14805
14806 fi
14807
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14809 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14810 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
14811 $as_echo_n "(cached) " >&6
14812 else
14813 ax_cv_PTHREAD_SPECIAL_FLAGS=no
14814 case $host_os in
14815 solaris*)
14816 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
14817 ;;
14818 esac
14819
14820 fi
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14822 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14823 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14824 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14825 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14826 ax_pthread_special_flags_added=yes
14827 fi
14828
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14830 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14831 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
14832 $as_echo_n "(cached) " >&6
14833 else
14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h. */
14836 #include <pthread.h>
14837 int
14838 main (void)
14839 {
14840 int i = PTHREAD_PRIO_INHERIT;
14841 return i;
14842 ;
14843 return 0;
14844 }
14845 _ACEOF
14846 if ac_fn_c_try_link "$LINENO"; then :
14847 ax_cv_PTHREAD_PRIO_INHERIT=yes
14848 else
14849 ax_cv_PTHREAD_PRIO_INHERIT=no
14850 fi
14851 rm -f core conftest.err conftest.$ac_objext \
14852 conftest$ac_exeext conftest.$ac_ext
14853
14854 fi
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14856 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14857 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14858 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14859
14860 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14861
14862 ax_pthread_prio_inherit_defined=yes
14863
14864 fi
14865
14866 CFLAGS="$ax_pthread_save_CFLAGS"
14867 LIBS="$ax_pthread_save_LIBS"
14868
14869 # More AIX lossage: compile with *_r variant
14870 if test "x$GCC" != "xyes"; then
14871 case $host_os in
14872 aix*)
14873 case "x/$CC" in #(
14874 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
14875 #handle absolute path differently from PATH based program lookup
14876 case "x$CC" in #(
14877 x/*) :
14878 if as_fn_executable_p ${CC}_r; then :
14879 PTHREAD_CC="${CC}_r"
14880 fi ;; #(
14881 *) :
14882 for ac_prog in ${CC}_r
14883 do
14884 # Extract the first word of "$ac_prog", so it can be a program name with args.
14885 set dummy $ac_prog; ac_word=$2
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14887 $as_echo_n "checking for $ac_word... " >&6; }
14888 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14889 $as_echo_n "(cached) " >&6
14890 else
14891 if test -n "$PTHREAD_CC"; then
14892 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14893 else
14894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14895 for as_dir in $PATH
14896 do
14897 IFS=$as_save_IFS
14898 test -z "$as_dir" && as_dir=.
14899 for ac_exec_ext in '' $ac_executable_extensions; do
14900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14901 ac_cv_prog_PTHREAD_CC="$ac_prog"
14902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14903 break 2
14904 fi
14905 done
14906 done
14907 IFS=$as_save_IFS
14908
14909 fi
14910 fi
14911 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14912 if test -n "$PTHREAD_CC"; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14914 $as_echo "$PTHREAD_CC" >&6; }
14915 else
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14917 $as_echo "no" >&6; }
14918 fi
14919
14920
14921 test -n "$PTHREAD_CC" && break
14922 done
14923 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14924 ;;
14925 esac ;; #(
14926 *) :
14927 ;;
14928 esac
14929 ;;
14930 esac
14931 fi
14932 fi
14933
14934 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14935
14936
14937
14938
14939
14940 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14941 if test "x$ax_pthread_ok" = "xyes"; then
14942
14943 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14944
14945 :
14946 else
14947 ax_pthread_ok=no
14948
14949 fi
14950 ac_ext=c
14951 ac_cpp='$CPP $CPPFLAGS'
14952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14955
14956
14957 if test "$ax_pthread_ok" = yes; then
14958 CC="$PTHREAD_CC"
14959 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14960 LIBS="$LIBS $PTHREAD_LIBS"
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
14962 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14965
14966 #include <pthread.h>
14967
14968 int
14969 main (void)
14970 {
14971
14972 pthread_rwlock_t lock; (void) lock;
14973
14974 ;
14975 return 0;
14976 }
14977 _ACEOF
14978 if ac_fn_c_try_compile "$LINENO"; then :
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14980 $as_echo "yes" >&6; }
14981 mpfr_pthread_ok=yes
14982 else
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14984 $as_echo "no" >&6; }
14985 mpfr_pthread_ok=no
14986 fi
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 else
14989 mpfr_pthread_ok=no
14990 fi
14991 fi
14992
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared cache can be supported" >&5
14994 $as_echo_n "checking if shared cache can be supported... " >&6; }
14995 if test "$mpfr_c11_thread_ok" = yes; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with ISO C11 threads" >&5
14997 $as_echo "yes, with ISO C11 threads" >&6; }
14998 elif test "$mpfr_pthread_ok" = yes; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with pthread" >&5
15000 $as_echo "yes, with pthread" >&6; }
15001 else
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15003 $as_echo "no" >&6; }
15004 as_fn_error $? "shared cache needs C11 threads or pthread support" "$LINENO" 5
15005 fi
15006
15007 fi
15008
15009
15010 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
15011 if test "x$ac_cv_header_limits_h" = xyes; then :
15012
15013 else
15014 as_fn_error $? "limits.h not found" "$LINENO" 5
15015 fi
15016
15017
15018 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
15019 if test "x$ac_cv_header_float_h" = xyes; then :
15020
15021 else
15022 as_fn_error $? "float.h not found" "$LINENO" 5
15023 fi
15024
15025
15026 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
15027 if test "x$ac_cv_header_string_h" = xyes; then :
15028
15029 else
15030 as_fn_error $? "string.h not found" "$LINENO" 5
15031 fi
15032
15033
15034
15035 for ac_header in locale.h
15036 do :
15037 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15038 if test "x$ac_cv_header_locale_h" = xyes; then :
15039 cat >>confdefs.h <<_ACEOF
15040 #define HAVE_LOCALE_H 1
15041 _ACEOF
15042
15043 fi
15044
15045 done
15046
15047
15048 for ac_header in wchar.h
15049 do :
15050 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
15051 if test "x$ac_cv_header_wchar_h" = xyes; then :
15052 cat >>confdefs.h <<_ACEOF
15053 #define HAVE_WCHAR_H 1
15054 _ACEOF
15055
15056 fi
15057
15058 done
15059
15060
15061 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
15062 if test "x$ac_cv_header_stdarg_h" = xyes; then :
15063
15064 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
15065
15066 else
15067 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
15068 if test "x$ac_cv_header_varargs_h" = xyes; then :
15069
15070 else
15071 as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5
15072 fi
15073
15074
15075 fi
15076
15077
15078
15079 for ac_header in sys/time.h sys/fpu.h
15080 do :
15081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15082 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15084 cat >>confdefs.h <<_ACEOF
15085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15086 _ACEOF
15087
15088 fi
15089
15090 done
15091
15092
15093 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
15094 "
15095 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
15096
15097 cat >>confdefs.h <<_ACEOF
15098 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
15099 _ACEOF
15100
15101
15102 fi
15103 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
15104 "
15105 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
15106
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
15109 _ACEOF
15110
15111
15112 fi
15113
15114
15115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15116 # for constant arguments. Useless!
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15118 $as_echo_n "checking for working alloca.h... " >&6; }
15119 if ${ac_cv_working_alloca_h+:} false; then :
15120 $as_echo_n "(cached) " >&6
15121 else
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15124 #include <alloca.h>
15125 int
15126 main (void)
15127 {
15128 char *p = (char *) alloca (2 * sizeof (int));
15129 if (p) return 0;
15130 ;
15131 return 0;
15132 }
15133 _ACEOF
15134 if ac_fn_c_try_link "$LINENO"; then :
15135 ac_cv_working_alloca_h=yes
15136 else
15137 ac_cv_working_alloca_h=no
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext \
15140 conftest$ac_exeext conftest.$ac_ext
15141 fi
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15143 $as_echo "$ac_cv_working_alloca_h" >&6; }
15144 if test $ac_cv_working_alloca_h = yes; then
15145
15146 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15147
15148 fi
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15151 $as_echo_n "checking for alloca... " >&6; }
15152 if ${ac_cv_func_alloca_works+:} false; then :
15153 $as_echo_n "(cached) " >&6
15154 else
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157 #ifdef __GNUC__
15158 # define alloca __builtin_alloca
15159 #else
15160 # ifdef _MSC_VER
15161 # include <malloc.h>
15162 # define alloca _alloca
15163 # else
15164 # ifdef HAVE_ALLOCA_H
15165 # include <alloca.h>
15166 # else
15167 # ifdef _AIX
15168 #pragma alloca
15169 # else
15170 # ifndef alloca /* predefined by HP cc +Olibcalls */
15171 void *alloca (size_t);
15172 # endif
15173 # endif
15174 # endif
15175 # endif
15176 #endif
15177
15178 int
15179 main (void)
15180 {
15181 char *p = (char *) alloca (1);
15182 if (p) return 0;
15183 ;
15184 return 0;
15185 }
15186 _ACEOF
15187 if ac_fn_c_try_link "$LINENO"; then :
15188 ac_cv_func_alloca_works=yes
15189 else
15190 ac_cv_func_alloca_works=no
15191 fi
15192 rm -f core conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
15194 fi
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15196 $as_echo "$ac_cv_func_alloca_works" >&6; }
15197
15198 if test $ac_cv_func_alloca_works = yes; then
15199
15200 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15201
15202 else
15203 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15204 # that cause trouble. Some versions do not even contain alloca or
15205 # contain a buggy version. If you still want to use their alloca,
15206 # use ar to extract alloca.o from them instead of compiling alloca.c.
15207
15208 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15209
15210 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15211
15212
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15214 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15215 if ${ac_cv_os_cray+:} false; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 #if defined CRAY && ! defined CRAY2
15221 webecray
15222 #else
15223 wenotbecray
15224 #endif
15225
15226 _ACEOF
15227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15228 $EGREP "webecray" >/dev/null 2>&1; then :
15229 ac_cv_os_cray=yes
15230 else
15231 ac_cv_os_cray=no
15232 fi
15233 rm -f conftest*
15234
15235 fi
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15237 $as_echo "$ac_cv_os_cray" >&6; }
15238 if test $ac_cv_os_cray = yes; then
15239 for ac_func in _getb67 GETB67 getb67; do
15240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15242 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15243
15244 cat >>confdefs.h <<_ACEOF
15245 #define CRAY_STACKSEG_END $ac_func
15246 _ACEOF
15247
15248 break
15249 fi
15250
15251 done
15252 fi
15253
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15255 $as_echo_n "checking stack direction for C alloca... " >&6; }
15256 if ${ac_cv_c_stack_direction+:} false; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15259 if test "$cross_compiling" = yes; then :
15260 ac_cv_c_stack_direction=0
15261 else
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264 $ac_includes_default
15265 int
15266 find_stack_direction (int *addr, int depth)
15267 {
15268 int dir, dummy = 0;
15269 if (! addr)
15270 addr = &dummy;
15271 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15272 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15273 return dir + dummy;
15274 }
15275
15276 int
15277 main (int argc, char **argv)
15278 {
15279 return find_stack_direction (0, argc + !argv + 20) < 0;
15280 }
15281 _ACEOF
15282 if ac_fn_c_try_run "$LINENO"; then :
15283 ac_cv_c_stack_direction=1
15284 else
15285 ac_cv_c_stack_direction=-1
15286 fi
15287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15288 conftest.$ac_objext conftest.beam conftest.$ac_ext
15289 fi
15290
15291 fi
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15293 $as_echo "$ac_cv_c_stack_direction" >&6; }
15294 cat >>confdefs.h <<_ACEOF
15295 #define STACK_DIRECTION $ac_cv_c_stack_direction
15296 _ACEOF
15297
15298
15299 fi
15300
15301
15302
15303 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15304 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15305
15306 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15307
15308 else
15309 for ac_type in 'unsigned int' 'unsigned long int' \
15310 'unsigned long long int'; do
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 $ac_includes_default
15314 int
15315 main (void)
15316 {
15317 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15318 test_array [0] = 0;
15319 return test_array [0];
15320
15321 ;
15322 return 0;
15323 }
15324 _ACEOF
15325 if ac_fn_c_try_compile "$LINENO"; then :
15326
15327 cat >>confdefs.h <<_ACEOF
15328 #define uintptr_t $ac_type
15329 _ACEOF
15330
15331 ac_type=
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 test -z "$ac_type" && break
15335 done
15336 fi
15337
15338
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
15341 $as_echo_n "checking how to copy va_list... " >&6; }
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344
15345 #include <stdarg.h>
15346
15347 int
15348 main (void)
15349 {
15350
15351 va_list ap1, ap2;
15352 va_copy(ap1, ap2);
15353
15354 ;
15355 return 0;
15356 }
15357 _ACEOF
15358 if ac_fn_c_try_link "$LINENO"; then :
15359
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
15361 $as_echo "va_copy" >&6; }
15362 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
15363
15364
15365 else
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368
15369 #include <stdarg.h>
15370
15371 int
15372 main (void)
15373 {
15374
15375 va_list ap1, ap2;
15376 __va_copy(ap1, ap2);
15377
15378 ;
15379 return 0;
15380 }
15381 _ACEOF
15382 if ac_fn_c_try_link "$LINENO"; then :
15383 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
15385 $as_echo "__va_copy" >&6; }
15386 else
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
15388 $as_echo "memcpy" >&6; }
15389 fi
15390 rm -f core conftest.err conftest.$ac_objext \
15391 conftest$ac_exeext conftest.$ac_ext
15392 fi
15393 rm -f core conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15395
15396 saved_CFLAGS="$CFLAGS"
15397 CFLAGS=`echo " $CFLAGS" | $SED 's/ -Werror[^ ]*//g'`
15398 for ac_func in setlocale gettimeofday signal
15399 do :
15400 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15401 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15402 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15403 cat >>confdefs.h <<_ACEOF
15404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15405 _ACEOF
15406
15407 fi
15408 done
15409
15410 CFLAGS="$saved_CFLAGS"
15411
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaction and its associated structure" >&5
15413 $as_echo_n "checking for sigaction and its associated structure... " >&6; }
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15416
15417 #include <signal.h>
15418 static int f (int (*func)(int, const struct sigaction *, struct sigaction *))
15419 { return 0; }
15420
15421 int
15422 main (void)
15423 {
15424
15425 return f(sigaction);
15426
15427 ;
15428 return 0;
15429 }
15430 _ACEOF
15431 if ac_fn_c_try_link "$LINENO"; then :
15432
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15434 $as_echo "yes" >&6; }
15435
15436 $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
15437
15438
15439 else
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15441 $as_echo "no" >&6; }
15442 fi
15443 rm -f core conftest.err conftest.$ac_objext \
15444 conftest$ac_exeext conftest.$ac_ext
15445
15446 ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
15447 if test "x$ac_cv_type_long_long_int" = xyes; then :
15448
15449 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
15450
15451 fi
15452
15453
15454 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
15455 if test "x$ac_cv_type_intmax_t" = xyes; then :
15456
15457 cat >>confdefs.h <<_ACEOF
15458 #define HAVE_INTMAX_T 1
15459 _ACEOF
15460
15461
15462 fi
15463
15464 if test "$ac_cv_type_intmax_t" = yes; then
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5
15466 $as_echo_n "checking for working INTMAX_MAX... " >&6; }
15467 if ${mpfr_cv_have_intmax_max+:} false; then :
15468 $as_echo_n "(cached) " >&6
15469 else
15470
15471 saved_CPPFLAGS="$CPPFLAGS"
15472 CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H"
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475 #include "mpfr-intmax.h"
15476 int
15477 main (void)
15478 {
15479 intmax_t x = INTMAX_MAX; (void) x;
15480
15481 ;
15482 return 0;
15483 }
15484 _ACEOF
15485 if ac_fn_c_try_compile "$LINENO"; then :
15486 mpfr_cv_have_intmax_max=yes
15487 else
15488 mpfr_cv_have_intmax_max=no
15489 fi
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491 CPPFLAGS="$saved_CPPFLAGS"
15492
15493 fi
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5
15495 $as_echo "$mpfr_cv_have_intmax_max" >&6; }
15496 if test "$mpfr_cv_have_intmax_max" = "yes"; then
15497
15498 $as_echo "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h
15499
15500 fi
15501 fi
15502
15503 ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
15504 #if HAVE_SYS_FPU_H
15505 # include <sys/fpu.h>
15506 #endif
15507
15508 "
15509 if test "x$ac_cv_type_union_fpc_csr" = xyes; then :
15510
15511 $as_echo "#define HAVE_FPC_CSR 1" >>confdefs.h
15512
15513 fi
15514
15515
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Noreturn" >&5
15517 $as_echo_n "checking for _Noreturn... " >&6; }
15518 if ${mpfr_cv_have_noreturn+:} false; then :
15519 $as_echo_n "(cached) " >&6
15520 else
15521
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15524 _Noreturn void foo(int);
15525 _ACEOF
15526 if ac_fn_c_try_compile "$LINENO"; then :
15527 mpfr_cv_have_noreturn=yes
15528 else
15529 mpfr_cv_have_noreturn=no
15530 fi
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532
15533 fi
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_noreturn" >&5
15535 $as_echo "$mpfr_cv_have_noreturn" >&6; }
15536 if test "$mpfr_cv_have_noreturn" = "yes"; then
15537
15538 $as_echo "#define MPFR_HAVE_NORETURN 1" >>confdefs.h
15539
15540 fi
15541
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
15543 $as_echo_n "checking for __builtin_unreachable... " >&6; }
15544 if ${mpfr_cv_have_builtin_unreachable+:} false; then :
15545 $as_echo_n "(cached) " >&6
15546 else
15547
15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549 /* end confdefs.h. */
15550 int x;
15551 int
15552 main (void)
15553 {
15554 if (x) __builtin_unreachable();
15555
15556 ;
15557 return 0;
15558 }
15559 _ACEOF
15560 if ac_fn_c_try_link "$LINENO"; then :
15561 mpfr_cv_have_builtin_unreachable=yes
15562 else
15563 mpfr_cv_have_builtin_unreachable=no
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext \
15566 conftest$ac_exeext conftest.$ac_ext
15567
15568 fi
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_builtin_unreachable" >&5
15570 $as_echo "$mpfr_cv_have_builtin_unreachable" >&6; }
15571 if test "$mpfr_cv_have_builtin_unreachable" = "yes"; then
15572
15573 $as_echo "#define MPFR_HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
15574
15575 fi
15576
15577
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for constructor and destructor attributes" >&5
15579 $as_echo_n "checking for constructor and destructor attributes... " >&6; }
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15582
15583 #include <stdlib.h>
15584 int x = 0;
15585 __attribute__((constructor)) static void
15586 call_f(void) { x = 1742; }
15587 __attribute__((destructor)) static void
15588 call_g(void) { x = 1448; }
15589
15590 int
15591 main (void)
15592 {
15593
15594 return (x == 1742) ? 0 : 1;
15595
15596 ;
15597 return 0;
15598 }
15599 _ACEOF
15600 if ac_fn_c_try_link "$LINENO"; then :
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15602 $as_echo "yes" >&6; }
15603 mpfr_have_constructor_destructor_attributes=yes
15604 else
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15606 $as_echo "no" >&6; }
15607
15608 fi
15609 rm -f core conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
15611
15612 if test "$mpfr_have_constructor_destructor_attributes" = "yes"; then
15613
15614 $as_echo "#define MPFR_HAVE_CONSTRUCTOR_ATTR 1" >>confdefs.h
15615
15616 fi
15617
15618
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
15620 $as_echo_n "checking for fesetround... " >&6; }
15621 if ${mpfr_cv_have_fesetround+:} false; then :
15622 $as_echo_n "(cached) " >&6
15623 else
15624
15625 saved_LIBS="$LIBS"
15626 LIBS="$LIBS $MPFR_LIBM"
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15629 #include <fenv.h>
15630 int
15631 main (void)
15632 {
15633 fesetround(FE_TONEAREST);
15634 ;
15635 return 0;
15636 }
15637 _ACEOF
15638 if ac_fn_c_try_link "$LINENO"; then :
15639 mpfr_cv_have_fesetround=yes
15640 else
15641 mpfr_cv_have_fesetround=no
15642 fi
15643 rm -f core conftest.err conftest.$ac_objext \
15644 conftest$ac_exeext conftest.$ac_ext
15645 LIBS="$saved_LIBS"
15646
15647 fi
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
15649 $as_echo "$mpfr_cv_have_fesetround" >&6; }
15650 if test "$mpfr_cv_have_fesetround" = "yes"; then
15651
15652 $as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
15653
15654 fi
15655
15656 if test -n "$GCC"; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
15658 $as_echo_n "checking for gcc float-conversion bug... " >&6; }
15659 if ${mpfr_cv_gcc_floatconv_bug+:} false; then :
15660 $as_echo_n "(cached) " >&6
15661 else
15662
15663 saved_LIBS="$LIBS"
15664 LIBS="$LIBS $MPFR_LIBM"
15665 if test "$cross_compiling" = yes; then :
15666 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
15667 else
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670
15671 #include <float.h>
15672 #ifdef MPFR_HAVE_FESETROUND
15673 #include <fenv.h>
15674 #endif
15675 static double get_max (void);
15676 int main (void) {
15677 double x = 0.5;
15678 double y;
15679 int i;
15680 for (i = 1; i <= 11; i++)
15681 x *= x;
15682 if (x != 0)
15683 return 1;
15684 #ifdef MPFR_HAVE_FESETROUND
15685 /* Useful test for the G4 PowerPC */
15686 fesetround(FE_TOWARDZERO);
15687 x = y = get_max ();
15688 x *= 2.0;
15689 if (x != y)
15690 return 1;
15691 #endif
15692 return 0;
15693 }
15694 static double get_max (void) { static volatile double d = DBL_MAX; return d; }
15695
15696 _ACEOF
15697 if ac_fn_c_try_run "$LINENO"; then :
15698 mpfr_cv_gcc_floatconv_bug="no"
15699 else
15700 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
15701 fi
15702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15703 conftest.$ac_objext conftest.beam conftest.$ac_ext
15704 fi
15705
15706 LIBS="$saved_LIBS"
15707
15708 fi
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
15710 $as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
15711 if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
15712 CFLAGS="$CFLAGS -ffloat-store"
15713 fi
15714 fi
15715
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for subnormal double-precision numbers" >&5
15717 $as_echo_n "checking for subnormal double-precision numbers... " >&6; }
15718 if ${mpfr_cv_have_subnorm_dbl+:} false; then :
15719 $as_echo_n "(cached) " >&6
15720 else
15721
15722 if test "$cross_compiling" = yes; then :
15723 mpfr_cv_have_subnorm_dbl="cannot test, assume no"
15724 else
15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15727
15728 #include <stdio.h>
15729 int main (void) {
15730 double x = 2.22507385850720138309e-308;
15731 fprintf (stderr, "%e\n", x / 2.0);
15732 return 2.0 * (double) (x / 2.0) != x;
15733 }
15734
15735 _ACEOF
15736 if ac_fn_c_try_run "$LINENO"; then :
15737 mpfr_cv_have_subnorm_dbl="yes"
15738 else
15739 mpfr_cv_have_subnorm_dbl="no"
15740 fi
15741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15742 conftest.$ac_objext conftest.beam conftest.$ac_ext
15743 fi
15744
15745
15746 fi
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_dbl" >&5
15748 $as_echo "$mpfr_cv_have_subnorm_dbl" >&6; }
15749 if test "$mpfr_cv_have_subnorm_dbl" = "yes"; then
15750
15751 $as_echo "#define HAVE_SUBNORM_DBL 1" >>confdefs.h
15752
15753 fi
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for subnormal single-precision numbers" >&5
15755 $as_echo_n "checking for subnormal single-precision numbers... " >&6; }
15756 if ${mpfr_cv_have_subnorm_flt+:} false; then :
15757 $as_echo_n "(cached) " >&6
15758 else
15759
15760 if test "$cross_compiling" = yes; then :
15761 mpfr_cv_have_subnorm_flt="cannot test, assume no"
15762 else
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765
15766 #include <stdio.h>
15767 int main (void) {
15768 float x = 1.17549435082229e-38;
15769 fprintf (stderr, "%e\n", x / 2.0);
15770 return 2.0 * (float) (x / 2.0) != x;
15771 }
15772
15773 _ACEOF
15774 if ac_fn_c_try_run "$LINENO"; then :
15775 mpfr_cv_have_subnorm_flt="yes"
15776 else
15777 mpfr_cv_have_subnorm_flt="no"
15778 fi
15779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15780 conftest.$ac_objext conftest.beam conftest.$ac_ext
15781 fi
15782
15783
15784 fi
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_flt" >&5
15786 $as_echo "$mpfr_cv_have_subnorm_flt" >&6; }
15787 if test "$mpfr_cv_have_subnorm_flt" = "yes"; then
15788
15789 $as_echo "#define HAVE_SUBNORM_FLT 1" >>confdefs.h
15790
15791 fi
15792
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed zeros" >&5
15794 $as_echo_n "checking for signed zeros... " >&6; }
15795 if ${mpfr_cv_have_signedz+:} false; then :
15796 $as_echo_n "(cached) " >&6
15797 else
15798
15799 if test "$cross_compiling" = yes; then :
15800 mpfr_cv_have_signedz="cannot test, assume no"
15801 else
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804
15805 int main (void) {
15806 return 1.0 / 0.0 == 1.0 / -0.0;
15807 }
15808
15809 _ACEOF
15810 if ac_fn_c_try_run "$LINENO"; then :
15811 mpfr_cv_have_signedz="yes"
15812 else
15813 mpfr_cv_have_signedz="no"
15814 fi
15815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15816 conftest.$ac_objext conftest.beam conftest.$ac_ext
15817 fi
15818
15819
15820 fi
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_signedz" >&5
15822 $as_echo "$mpfr_cv_have_signedz" >&6; }
15823 if test "$mpfr_cv_have_signedz" = "yes"; then
15824
15825 $as_echo "#define HAVE_SIGNEDZ 1" >>confdefs.h
15826
15827 fi
15828
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5
15830 $as_echo_n "checking if the FP division by 0 fails... " >&6; }
15831 if ${mpfr_cv_errdivzero+:} false; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834
15835 if test "$cross_compiling" = yes; then :
15836 mpfr_cv_errdivzero="cannot test, assume no"
15837 else
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15840
15841 int main (void) {
15842 volatile double d = 0.0, x;
15843 x = 0.0 / d;
15844 x = 1.0 / d;
15845 (void) x;
15846 return 0;
15847 }
15848
15849 _ACEOF
15850 if ac_fn_c_try_run "$LINENO"; then :
15851 mpfr_cv_errdivzero="no"
15852 else
15853 mpfr_cv_errdivzero="yes"
15854 fi
15855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15856 conftest.$ac_objext conftest.beam conftest.$ac_ext
15857 fi
15858
15859
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5
15862 $as_echo "$mpfr_cv_errdivzero" >&6; }
15863 if test "$mpfr_cv_errdivzero" = "yes"; then
15864
15865 $as_echo "#define MPFR_ERRDIVZERO 1" >>confdefs.h
15866
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5
15868 $as_echo "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;}
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5
15870 $as_echo "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;}
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5
15872 $as_echo "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;}
15873 fi
15874
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
15876 $as_echo_n "checking if NAN == NAN... " >&6; }
15877 if ${mpfr_cv_nanisnan+:} false; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880
15881 if test "$cross_compiling" = yes; then :
15882 mpfr_cv_nanisnan="cannot test, assume no"
15883 else
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15886
15887 #include <stdio.h>
15888 #include <math.h>
15889 #ifndef NAN
15890 # define NAN (0.0/0.0)
15891 #endif
15892 int main (void) {
15893 double d;
15894 d = NAN;
15895 return d != d;
15896 }
15897
15898 _ACEOF
15899 if ac_fn_c_try_run "$LINENO"; then :
15900 mpfr_cv_nanisnan="yes"
15901 else
15902 mpfr_cv_nanisnan="no"
15903 fi
15904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15905 conftest.$ac_objext conftest.beam conftest.$ac_ext
15906 fi
15907
15908
15909 fi
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
15911 $as_echo "$mpfr_cv_nanisnan" >&6; }
15912 if test "$mpfr_cv_nanisnan" = "yes"; then
15913
15914 $as_echo "#define MPFR_NANISNAN 1" >>confdefs.h
15915
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
15917 $as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
15919 $as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
15921 $as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used. You" >&5
15923 $as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;}
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
15925 $as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
15927 $as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
15929 $as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
15931 $as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
15933 $as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
15935 $as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
15936 fi
15937
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
15939 $as_echo_n "checking if charset has consecutive values... " >&6; }
15940 if test "$cross_compiling" = yes; then :
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
15942 $as_echo "cannot test" >&6; }
15943 else
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15946
15947 const char *number = "0123456789";
15948 const char *lower = "abcdefghijklmnopqrstuvwxyz";
15949 const char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
15950
15951 int
15952 main (void)
15953 {
15954
15955 int i;
15956 unsigned char *p;
15957 for (p = (unsigned char*) number, i = 0; i < 9; i++)
15958 if ( (*p)+1 != *(p+1) ) return 1;
15959 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
15960 if ( (*p)+1 != *(p+1) ) return 1;
15961 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
15962 if ( (*p)+1 != *(p+1) ) return 1;
15963
15964 ;
15965 return 0;
15966 }
15967 _ACEOF
15968 if ac_fn_c_try_run "$LINENO"; then :
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15970 $as_echo "yes" >&6; }
15971 else
15972
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974 $as_echo "no" >&6; }
15975
15976 $as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
15977
15978
15979 fi
15980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15981 conftest.$ac_objext conftest.beam conftest.$ac_ext
15982 fi
15983
15984
15985 saved_LIBS="$LIBS"
15986 LIBS="$LIBS $MPFR_LIBM"
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5
15988 $as_echo_n "checking for math/round... " >&6; }
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15991
15992 #include <math.h>
15993 static int f (double (*func)(double)) { return 0; }
15994
15995 int
15996 main (void)
15997 {
15998
15999 return f(round);
16000
16001 ;
16002 return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_link "$LINENO"; then :
16006
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16008 $as_echo "yes" >&6; }
16009
16010 $as_echo "#define HAVE_ROUND 1" >>confdefs.h
16011
16012
16013 else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16015 $as_echo "no" >&6; }
16016 fi
16017 rm -f core conftest.err conftest.$ac_objext \
16018 conftest$ac_exeext conftest.$ac_ext
16019
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5
16021 $as_echo_n "checking for math/trunc... " >&6; }
16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023 /* end confdefs.h. */
16024
16025 #include <math.h>
16026 static int f (double (*func)(double)) { return 0; }
16027
16028 int
16029 main (void)
16030 {
16031
16032 return f(trunc);
16033
16034 ;
16035 return 0;
16036 }
16037 _ACEOF
16038 if ac_fn_c_try_link "$LINENO"; then :
16039
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16041 $as_echo "yes" >&6; }
16042
16043 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
16044
16045
16046 else
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048 $as_echo "no" >&6; }
16049 fi
16050 rm -f core conftest.err conftest.$ac_objext \
16051 conftest$ac_exeext conftest.$ac_ext
16052
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5
16054 $as_echo_n "checking for math/floor... " >&6; }
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057
16058 #include <math.h>
16059 static int f (double (*func)(double)) { return 0; }
16060
16061 int
16062 main (void)
16063 {
16064
16065 return f(floor);
16066
16067 ;
16068 return 0;
16069 }
16070 _ACEOF
16071 if ac_fn_c_try_link "$LINENO"; then :
16072
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16074 $as_echo "yes" >&6; }
16075
16076 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
16077
16078
16079 else
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16082 fi
16083 rm -f core conftest.err conftest.$ac_objext \
16084 conftest$ac_exeext conftest.$ac_ext
16085
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5
16087 $as_echo_n "checking for math/ceil... " >&6; }
16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16089 /* end confdefs.h. */
16090
16091 #include <math.h>
16092 static int f (double (*func)(double)) { return 0; }
16093
16094 int
16095 main (void)
16096 {
16097
16098 return f(ceil);
16099
16100 ;
16101 return 0;
16102 }
16103 _ACEOF
16104 if ac_fn_c_try_link "$LINENO"; then :
16105
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16107 $as_echo "yes" >&6; }
16108
16109 $as_echo "#define HAVE_CEIL 1" >>confdefs.h
16110
16111
16112 else
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16114 $as_echo "no" >&6; }
16115 fi
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16118
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/nearbyint" >&5
16120 $as_echo_n "checking for math/nearbyint... " >&6; }
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16123
16124 #include <math.h>
16125 static int f (double (*func)(double)) { return 0; }
16126
16127 int
16128 main (void)
16129 {
16130
16131 return f(nearbyint);
16132
16133 ;
16134 return 0;
16135 }
16136 _ACEOF
16137 if ac_fn_c_try_link "$LINENO"; then :
16138
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16140 $as_echo "yes" >&6; }
16141
16142 $as_echo "#define HAVE_NEARBYINT 1" >>confdefs.h
16143
16144
16145 else
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147 $as_echo "no" >&6; }
16148 fi
16149 rm -f core conftest.err conftest.$ac_objext \
16150 conftest$ac_exeext conftest.$ac_ext
16151
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mulx_u64" >&5
16153 $as_echo_n "checking for _mulx_u64... " >&6; }
16154 if test "$cross_compiling" = yes; then :
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
16156 $as_echo "cannot test, assume no" >&6; }
16157
16158 else
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161
16162 #include <immintrin.h>
16163
16164 int
16165 main (void)
16166 {
16167
16168 unsigned long long h1, h2;
16169 _mulx_u64(17, 42, &h1);
16170 _mulx_u64(-1, -1, &h2);
16171 return h1 == 0 && h2 == -2 ? 0 : 1;
16172
16173 ;
16174 return 0;
16175 }
16176 _ACEOF
16177 if ac_fn_c_try_run "$LINENO"; then :
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16179 $as_echo "yes" >&6; }
16180
16181 $as_echo "#define HAVE_MULX_U64 1" >>confdefs.h
16182
16183
16184 else
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16186 $as_echo "no" >&6; }
16187
16188 fi
16189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16190 conftest.$ac_objext conftest.beam conftest.$ac_ext
16191 fi
16192
16193
16194 LIBS="$saved_LIBS"
16195
16196
16197
16198
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`double'" >&5
16200 $as_echo_n "checking format of floating-point type \`double'... " >&6; }
16201 if ${mpfr_cv_c_double_format+:} false; then :
16202 $as_echo_n "(cached) " >&6
16203 else
16204 mpfr_cv_c_double_format=unknown
16205 cat >conftest.c <<\EOF
16206
16207 #include <stdio.h>
16208 /* "before" is 16 bytes to ensure there's no padding between it and "x".
16209 We're not expecting any type bigger than 16 bytes or with
16210 alignment requirements stricter than 16 bytes. */
16211 typedef struct {
16212 char before[16];
16213 double x;
16214 char after[8];
16215 } foo_t;
16216
16217 foo_t foo = {
16218 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
16219 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
16220 -123456789.0,
16221 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
16222 };
16223
16224 int main (void) {
16225 int i;
16226 for (i = 0; i < 8; i++)
16227 printf ("%d %f\n", foo.before[i] + foo.after[i], foo.x);
16228 return 0;
16229 }
16230
16231 EOF
16232 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1"
16233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
16234 (eval $mpfr_compile) 2>&5
16235 ac_status=$?
16236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237 test $ac_status = 0; }; then
16238 cat >conftest.awk <<\EOF
16239
16240 BEGIN {
16241 found = 0
16242 }
16243
16244 # got[] holds a sliding window of bytes read the input. got[0] is the most
16245 # recent byte read, and got[31] the oldest byte read, so when looking to
16246 # match some data the indices are "reversed".
16247 #
16248 {
16249 for (f = 2; f <= NF; f++)
16250 {
16251 # new byte, shift others up
16252 for (i = 31; i >= 0; i--)
16253 got[i+1] = got[i];
16254 got[0] = $f;
16255
16256 # end sequence
16257 if (got[7] != "376") continue
16258 if (got[6] != "334") continue
16259 if (got[5] != "272") continue
16260 if (got[4] != "230") continue
16261 if (got[3] != "166") continue
16262 if (got[2] != "124") continue
16263 if (got[1] != "062") continue
16264 if (got[0] != "020") continue
16265
16266 # start sequence, with 8-byte body
16267 if (got[23] == "001" && \
16268 got[22] == "043" && \
16269 got[21] == "105" && \
16270 got[20] == "147" && \
16271 got[19] == "211" && \
16272 got[18] == "253" && \
16273 got[17] == "315" && \
16274 got[16] == "357")
16275 {
16276 saw = " (" got[15] \
16277 " " got[14] \
16278 " " got[13] \
16279 " " got[12] \
16280 " " got[11] \
16281 " " got[10] \
16282 " " got[9] \
16283 " " got[8] ")"
16284
16285 if (got[15] == "301" && \
16286 got[14] == "235" && \
16287 got[13] == "157" && \
16288 got[12] == "064" && \
16289 got[11] == "124" && \
16290 got[10] == "000" && \
16291 got[9] == "000" && \
16292 got[8] == "000")
16293 {
16294 print "IEEE double, big endian"
16295 found = 1
16296 exit
16297 }
16298
16299 if (got[15] == "000" && \
16300 got[14] == "000" && \
16301 got[13] == "000" && \
16302 got[12] == "124" && \
16303 got[11] == "064" && \
16304 got[10] == "157" && \
16305 got[9] == "235" && \
16306 got[8] == "301")
16307 {
16308 print "IEEE double, little endian"
16309 found = 1
16310 exit
16311 }
16312 }
16313
16314 # start sequence, with 12-byte body
16315 if (got[27] == "001" && \
16316 got[26] == "043" && \
16317 got[25] == "105" && \
16318 got[24] == "147" && \
16319 got[23] == "211" && \
16320 got[22] == "253" && \
16321 got[21] == "315" && \
16322 got[20] == "357")
16323 {
16324 saw = " (" got[19] \
16325 " " got[18] \
16326 " " got[17] \
16327 " " got[16] \
16328 " " got[15] \
16329 " " got[14] \
16330 " " got[13] \
16331 " " got[12] \
16332 " " got[11] \
16333 " " got[10] \
16334 " " got[9] \
16335 " " got[8] ")"
16336
16337 if (got[19] == "000" && \
16338 got[18] == "000" && \
16339 got[17] == "000" && \
16340 got[16] == "000" && \
16341 got[15] == "240" && \
16342 got[14] == "242" && \
16343 got[13] == "171" && \
16344 got[12] == "353" && \
16345 got[11] == "031" && \
16346 got[10] == "300")
16347 {
16348 print "IEEE extended, little endian (12 bytes)"
16349 found = 1
16350 exit
16351 }
16352
16353 if (got[19] == "300" && \
16354 got[18] == "031" && \
16355 got[17] == "000" && \
16356 got[16] == "000" && \
16357 got[15] == "353" && \
16358 got[14] == "171" && \
16359 got[13] == "242" && \
16360 got[12] == "240" && \
16361 got[11] == "000" && \
16362 got[10] == "000" && \
16363 got[09] == "000" && \
16364 got[08] == "000")
16365 {
16366 # format found on m68k
16367 print "IEEE extended, big endian (12 bytes)"
16368 found = 1
16369 exit
16370 }
16371 }
16372
16373 # start sequence, with 16-byte body
16374 if (got[31] == "001" && \
16375 got[30] == "043" && \
16376 got[29] == "105" && \
16377 got[28] == "147" && \
16378 got[27] == "211" && \
16379 got[26] == "253" && \
16380 got[25] == "315" && \
16381 got[24] == "357")
16382 {
16383 saw = " (" got[23] \
16384 " " got[22] \
16385 " " got[21] \
16386 " " got[20] \
16387 " " got[19] \
16388 " " got[18] \
16389 " " got[17] \
16390 " " got[16] \
16391 " " got[15] \
16392 " " got[14] \
16393 " " got[13] \
16394 " " got[12] \
16395 " " got[11] \
16396 " " got[10] \
16397 " " got[9] \
16398 " " got[8] ")"
16399
16400 if (got[23] == "000" && \
16401 got[22] == "000" && \
16402 got[21] == "000" && \
16403 got[20] == "000" && \
16404 got[19] == "240" && \
16405 got[18] == "242" && \
16406 got[17] == "171" && \
16407 got[16] == "353" && \
16408 got[15] == "031" && \
16409 got[14] == "300")
16410 {
16411 print "IEEE extended, little endian (16 bytes)"
16412 found = 1
16413 exit
16414 }
16415
16416 if (got[23] == "300" && \
16417 got[22] == "031" && \
16418 got[21] == "326" && \
16419 got[20] == "363" && \
16420 got[19] == "105" && \
16421 got[18] == "100" && \
16422 got[17] == "000" && \
16423 got[16] == "000" && \
16424 got[15] == "000" && \
16425 got[14] == "000" && \
16426 got[13] == "000" && \
16427 got[12] == "000" && \
16428 got[11] == "000" && \
16429 got[10] == "000" && \
16430 got[9] == "000" && \
16431 got[8] == "000")
16432 {
16433 # format used on HP 9000/785 under HP-UX
16434 print "IEEE quad, big endian"
16435 found = 1
16436 exit
16437 }
16438
16439 if (got[23] == "000" && \
16440 got[22] == "000" && \
16441 got[21] == "000" && \
16442 got[20] == "000" && \
16443 got[19] == "000" && \
16444 got[18] == "000" && \
16445 got[17] == "000" && \
16446 got[16] == "000" && \
16447 got[15] == "000" && \
16448 got[14] == "000" && \
16449 got[13] == "100" && \
16450 got[12] == "105" && \
16451 got[11] == "363" && \
16452 got[10] == "326" && \
16453 got[9] == "031" && \
16454 got[8] == "300")
16455 {
16456 print "IEEE quad, little endian"
16457 found = 1
16458 exit
16459 }
16460
16461 if (got[23] == "301" && \
16462 got[22] == "235" && \
16463 got[21] == "157" && \
16464 got[20] == "064" && \
16465 got[19] == "124" && \
16466 got[18] == "000" && \
16467 got[17] == "000" && \
16468 got[16] == "000" && \
16469 got[15] == "000" && \
16470 got[14] == "000" && \
16471 got[13] == "000" && \
16472 got[12] == "000" && \
16473 got[11] == "000" && \
16474 got[10] == "000" && \
16475 got[9] == "000" && \
16476 got[8] == "000")
16477 {
16478 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
16479 print "possibly double-double, big endian"
16480 found = 1
16481 exit
16482 }
16483
16484 if (got[23] == "000" && \
16485 got[22] == "000" && \
16486 got[21] == "000" && \
16487 got[20] == "124" && \
16488 got[19] == "064" && \
16489 got[18] == "157" && \
16490 got[17] == "235" && \
16491 got[16] == "301" && \
16492 got[15] == "000" && \
16493 got[14] == "000" && \
16494 got[13] == "000" && \
16495 got[12] == "000" && \
16496 got[11] == "000" && \
16497 got[10] == "000" && \
16498 got[9] == "000" && \
16499 got[8] == "000")
16500 {
16501 # format used on ppc64le
16502 print "possibly double-double, little endian"
16503 found = 1
16504 exit
16505 }
16506 }
16507 }
16508 }
16509
16510 END {
16511 if (! found)
16512 print "unknown", saw
16513 }
16514
16515 EOF
16516 mpfr_cv_c_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk`
16517 case $mpfr_cv_c_double_format in
16518 unknown*)
16519 echo "cannot match anything, conftest$EXEEXT contains" >&5
16520 od -b conftest$EXEEXT >&5
16521 ;;
16522 esac
16523 else
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
16525 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
16526 fi
16527 rm -f conftest*
16528
16529 fi
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_double_format" >&5
16531 $as_echo "$mpfr_cv_c_double_format" >&6; }
16532 case $mpfr_cv_c_double_format in
16533 "IEEE double, big endian"*)
16534 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
16535
16536 ;;
16537 "IEEE double, little endian"*)
16538 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
16539
16540 ;;
16541 unknown*)
16542 ;;
16543 *)
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&5
16545 $as_echo "$as_me: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&2;}
16546 ;;
16547 esac
16548
16549
16550
16551
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`long double'" >&5
16553 $as_echo_n "checking format of floating-point type \`long double'... " >&6; }
16554 if ${mpfr_cv_c_long_double_format+:} false; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16557 mpfr_cv_c_long_double_format=unknown
16558 cat >conftest.c <<\EOF
16559
16560 #include <stdio.h>
16561 /* "before" is 16 bytes to ensure there's no padding between it and "x".
16562 We're not expecting any type bigger than 16 bytes or with
16563 alignment requirements stricter than 16 bytes. */
16564 typedef struct {
16565 char before[16];
16566 long double x;
16567 char after[8];
16568 } foo_t;
16569
16570 foo_t foo = {
16571 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
16572 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
16573 -123456789.0,
16574 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
16575 };
16576
16577 int main (void) {
16578 int i;
16579 for (i = 0; i < 8; i++)
16580 printf ("%d %Lf\n", foo.before[i] + foo.after[i], foo.x);
16581 return 0;
16582 }
16583
16584 EOF
16585 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1"
16586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
16587 (eval $mpfr_compile) 2>&5
16588 ac_status=$?
16589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16590 test $ac_status = 0; }; then
16591 cat >conftest.awk <<\EOF
16592
16593 BEGIN {
16594 found = 0
16595 }
16596
16597 # got[] holds a sliding window of bytes read the input. got[0] is the most
16598 # recent byte read, and got[31] the oldest byte read, so when looking to
16599 # match some data the indices are "reversed".
16600 #
16601 {
16602 for (f = 2; f <= NF; f++)
16603 {
16604 # new byte, shift others up
16605 for (i = 31; i >= 0; i--)
16606 got[i+1] = got[i];
16607 got[0] = $f;
16608
16609 # end sequence
16610 if (got[7] != "376") continue
16611 if (got[6] != "334") continue
16612 if (got[5] != "272") continue
16613 if (got[4] != "230") continue
16614 if (got[3] != "166") continue
16615 if (got[2] != "124") continue
16616 if (got[1] != "062") continue
16617 if (got[0] != "020") continue
16618
16619 # start sequence, with 8-byte body
16620 if (got[23] == "001" && \
16621 got[22] == "043" && \
16622 got[21] == "105" && \
16623 got[20] == "147" && \
16624 got[19] == "211" && \
16625 got[18] == "253" && \
16626 got[17] == "315" && \
16627 got[16] == "357")
16628 {
16629 saw = " (" got[15] \
16630 " " got[14] \
16631 " " got[13] \
16632 " " got[12] \
16633 " " got[11] \
16634 " " got[10] \
16635 " " got[9] \
16636 " " got[8] ")"
16637
16638 if (got[15] == "301" && \
16639 got[14] == "235" && \
16640 got[13] == "157" && \
16641 got[12] == "064" && \
16642 got[11] == "124" && \
16643 got[10] == "000" && \
16644 got[9] == "000" && \
16645 got[8] == "000")
16646 {
16647 print "IEEE double, big endian"
16648 found = 1
16649 exit
16650 }
16651
16652 if (got[15] == "000" && \
16653 got[14] == "000" && \
16654 got[13] == "000" && \
16655 got[12] == "124" && \
16656 got[11] == "064" && \
16657 got[10] == "157" && \
16658 got[9] == "235" && \
16659 got[8] == "301")
16660 {
16661 print "IEEE double, little endian"
16662 found = 1
16663 exit
16664 }
16665 }
16666
16667 # start sequence, with 12-byte body
16668 if (got[27] == "001" && \
16669 got[26] == "043" && \
16670 got[25] == "105" && \
16671 got[24] == "147" && \
16672 got[23] == "211" && \
16673 got[22] == "253" && \
16674 got[21] == "315" && \
16675 got[20] == "357")
16676 {
16677 saw = " (" got[19] \
16678 " " got[18] \
16679 " " got[17] \
16680 " " got[16] \
16681 " " got[15] \
16682 " " got[14] \
16683 " " got[13] \
16684 " " got[12] \
16685 " " got[11] \
16686 " " got[10] \
16687 " " got[9] \
16688 " " got[8] ")"
16689
16690 if (got[19] == "000" && \
16691 got[18] == "000" && \
16692 got[17] == "000" && \
16693 got[16] == "000" && \
16694 got[15] == "240" && \
16695 got[14] == "242" && \
16696 got[13] == "171" && \
16697 got[12] == "353" && \
16698 got[11] == "031" && \
16699 got[10] == "300")
16700 {
16701 print "IEEE extended, little endian (12 bytes)"
16702 found = 1
16703 exit
16704 }
16705
16706 if (got[19] == "300" && \
16707 got[18] == "031" && \
16708 got[17] == "000" && \
16709 got[16] == "000" && \
16710 got[15] == "353" && \
16711 got[14] == "171" && \
16712 got[13] == "242" && \
16713 got[12] == "240" && \
16714 got[11] == "000" && \
16715 got[10] == "000" && \
16716 got[09] == "000" && \
16717 got[08] == "000")
16718 {
16719 # format found on m68k
16720 print "IEEE extended, big endian (12 bytes)"
16721 found = 1
16722 exit
16723 }
16724 }
16725
16726 # start sequence, with 16-byte body
16727 if (got[31] == "001" && \
16728 got[30] == "043" && \
16729 got[29] == "105" && \
16730 got[28] == "147" && \
16731 got[27] == "211" && \
16732 got[26] == "253" && \
16733 got[25] == "315" && \
16734 got[24] == "357")
16735 {
16736 saw = " (" got[23] \
16737 " " got[22] \
16738 " " got[21] \
16739 " " got[20] \
16740 " " got[19] \
16741 " " got[18] \
16742 " " got[17] \
16743 " " got[16] \
16744 " " got[15] \
16745 " " got[14] \
16746 " " got[13] \
16747 " " got[12] \
16748 " " got[11] \
16749 " " got[10] \
16750 " " got[9] \
16751 " " got[8] ")"
16752
16753 if (got[23] == "000" && \
16754 got[22] == "000" && \
16755 got[21] == "000" && \
16756 got[20] == "000" && \
16757 got[19] == "240" && \
16758 got[18] == "242" && \
16759 got[17] == "171" && \
16760 got[16] == "353" && \
16761 got[15] == "031" && \
16762 got[14] == "300")
16763 {
16764 print "IEEE extended, little endian (16 bytes)"
16765 found = 1
16766 exit
16767 }
16768
16769 if (got[23] == "300" && \
16770 got[22] == "031" && \
16771 got[21] == "326" && \
16772 got[20] == "363" && \
16773 got[19] == "105" && \
16774 got[18] == "100" && \
16775 got[17] == "000" && \
16776 got[16] == "000" && \
16777 got[15] == "000" && \
16778 got[14] == "000" && \
16779 got[13] == "000" && \
16780 got[12] == "000" && \
16781 got[11] == "000" && \
16782 got[10] == "000" && \
16783 got[9] == "000" && \
16784 got[8] == "000")
16785 {
16786 # format used on HP 9000/785 under HP-UX
16787 print "IEEE quad, big endian"
16788 found = 1
16789 exit
16790 }
16791
16792 if (got[23] == "000" && \
16793 got[22] == "000" && \
16794 got[21] == "000" && \
16795 got[20] == "000" && \
16796 got[19] == "000" && \
16797 got[18] == "000" && \
16798 got[17] == "000" && \
16799 got[16] == "000" && \
16800 got[15] == "000" && \
16801 got[14] == "000" && \
16802 got[13] == "100" && \
16803 got[12] == "105" && \
16804 got[11] == "363" && \
16805 got[10] == "326" && \
16806 got[9] == "031" && \
16807 got[8] == "300")
16808 {
16809 print "IEEE quad, little endian"
16810 found = 1
16811 exit
16812 }
16813
16814 if (got[23] == "301" && \
16815 got[22] == "235" && \
16816 got[21] == "157" && \
16817 got[20] == "064" && \
16818 got[19] == "124" && \
16819 got[18] == "000" && \
16820 got[17] == "000" && \
16821 got[16] == "000" && \
16822 got[15] == "000" && \
16823 got[14] == "000" && \
16824 got[13] == "000" && \
16825 got[12] == "000" && \
16826 got[11] == "000" && \
16827 got[10] == "000" && \
16828 got[9] == "000" && \
16829 got[8] == "000")
16830 {
16831 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
16832 print "possibly double-double, big endian"
16833 found = 1
16834 exit
16835 }
16836
16837 if (got[23] == "000" && \
16838 got[22] == "000" && \
16839 got[21] == "000" && \
16840 got[20] == "124" && \
16841 got[19] == "064" && \
16842 got[18] == "157" && \
16843 got[17] == "235" && \
16844 got[16] == "301" && \
16845 got[15] == "000" && \
16846 got[14] == "000" && \
16847 got[13] == "000" && \
16848 got[12] == "000" && \
16849 got[11] == "000" && \
16850 got[10] == "000" && \
16851 got[9] == "000" && \
16852 got[8] == "000")
16853 {
16854 # format used on ppc64le
16855 print "possibly double-double, little endian"
16856 found = 1
16857 exit
16858 }
16859 }
16860 }
16861 }
16862
16863 END {
16864 if (! found)
16865 print "unknown", saw
16866 }
16867
16868 EOF
16869 mpfr_cv_c_long_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk`
16870 case $mpfr_cv_c_long_double_format in
16871 unknown*)
16872 echo "cannot match anything, conftest$EXEEXT contains" >&5
16873 od -b conftest$EXEEXT >&5
16874 ;;
16875 esac
16876 else
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
16878 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
16879 fi
16880 rm -f conftest*
16881
16882 fi
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
16884 $as_echo "$mpfr_cv_c_long_double_format" >&6; }
16885 case $mpfr_cv_c_long_double_format in
16886 "IEEE double, big endian"*)
16887 $as_echo "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h
16888
16889 ;;
16890 "IEEE double, little endian"*)
16891 $as_echo "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h
16892
16893 ;;
16894 "IEEE extended, little endian"*)
16895 $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
16896
16897 ;;
16898 "IEEE extended, big endian"*)
16899 $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_BIG 1" >>confdefs.h
16900
16901 ;;
16902 "IEEE quad, big endian"*)
16903 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
16904
16905 ;;
16906 "IEEE quad, little endian"*)
16907 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h
16908
16909 ;;
16910 "possibly double-double, big endian"*)
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
16912 $as_echo "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
16914 $as_echo "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
16916 $as_echo "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
16917 $as_echo "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h
16918
16919 ;;
16920 "possibly double-double, little endian"*)
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
16922 $as_echo "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
16924 $as_echo "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
16926 $as_echo "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
16927 $as_echo "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h
16928
16929 ;;
16930 unknown*)
16931 ;;
16932 *)
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&5
16934 $as_echo "$as_me: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&2;}
16935 ;;
16936 esac
16937
16938 if test "$enable_thread_safe" != no; then
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support using C11" >&5
16940 $as_echo_n "checking for TLS support using C11... " >&6; }
16941 saved_CPPFLAGS="$CPPFLAGS"
16942 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
16943 if test "$cross_compiling" = yes; then :
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
16945 $as_echo "cannot test, assume no" >&6; }
16946
16947 else
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h. */
16950
16951 #define MPFR_USE_THREAD_SAFE 1
16952 #define MPFR_USE_C11_THREAD_SAFE 1
16953 #include "mpfr-thread.h"
16954 MPFR_THREAD_ATTR int x = 17;
16955 int main (void) {
16956 return x != 17;
16957 }
16958
16959 _ACEOF
16960 if ac_fn_c_try_run "$LINENO"; then :
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16962 $as_echo "yes" >&6; }
16963
16964 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
16965
16966
16967 $as_echo "#define MPFR_USE_C11_THREAD_SAFE 1" >>confdefs.h
16968
16969 tls_c11_support=yes
16970 enable_thread_safe=yes
16971
16972 else
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16974 $as_echo "no" >&6; }
16975
16976 fi
16977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16978 conftest.$ac_objext conftest.beam conftest.$ac_ext
16979 fi
16980
16981 CPPFLAGS="$saved_CPPFLAGS"
16982
16983 if test "$tls_c11_support" != "yes"
16984 then
16985
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
16987 $as_echo_n "checking for TLS support... " >&6; }
16988 saved_CPPFLAGS="$CPPFLAGS"
16989 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
16990 if test "$cross_compiling" = yes; then :
16991 if test "$enable_thread_safe" = yes; then
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume yes" >&5
16993 $as_echo "cannot test, assume yes" >&6; }
16994
16995 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
16996
16997 else
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
16999 $as_echo "cannot test, assume no" >&6; }
17000 fi
17001
17002 else
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17005
17006 #define MPFR_USE_THREAD_SAFE 1
17007 #include "mpfr-thread.h"
17008 MPFR_THREAD_ATTR int x = 17;
17009 int main (void) {
17010 return x != 17;
17011 }
17012
17013 _ACEOF
17014 if ac_fn_c_try_run "$LINENO"; then :
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17016 $as_echo "yes" >&6; }
17017
17018 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
17019
17020 enable_thread_safe=yes
17021
17022 else
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024 $as_echo "no" >&6; }
17025 if test "$enable_thread_safe" = yes; then
17026 as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5
17027 fi
17028
17029 fi
17030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17031 conftest.$ac_objext conftest.beam conftest.$ac_ext
17032 fi
17033
17034 CPPFLAGS="$saved_CPPFLAGS"
17035 fi
17036 fi
17037
17038 if test "$enable_decimal_float" != no; then
17039
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5
17041 $as_echo_n "checking if compiler knows _Decimal64... " >&6; }
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17044 _Decimal64 x;
17045 int
17046 main (void)
17047 {
17048
17049 ;
17050 return 0;
17051 }
17052 _ACEOF
17053 if ac_fn_c_try_compile "$LINENO"; then :
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17055 $as_echo "yes" >&6; }
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5
17057 $as_echo_n "checking decimal float format... " >&6; }
17058 if test "$cross_compiling" = yes; then :
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
17060 $as_echo "cannot test" >&6; }
17061 enable_decimal_float=compile-time
17062 else
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17065
17066 #include <stdlib.h>
17067
17068 int
17069 main (void)
17070 {
17071
17072 volatile _Decimal64 x = 1;
17073 union { double d; _Decimal64 d64; } y;
17074 if (x != x) return 83;
17075 y.d64 = 1234567890123456.0dd;
17076 return y.d == 0.14894469406741037E-123 ? 80 :
17077 y.d == 0.59075095508629822E-68 ? 81 : 82;
17078
17079 ;
17080 return 0;
17081 }
17082 _ACEOF
17083 if ac_fn_c_try_run "$LINENO"; then :
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal error" >&5
17085 $as_echo "internal error" >&6; }
17086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17088 as_fn_error $? "unexpected exit status 0
17089 See \`config.log' for more details" "$LINENO" 5; }
17090 else
17091 d64_exit_status=$?
17092 case "$d64_exit_status" in
17093 80) { $as_echo "$as_me:${as_lineno-$LINENO}: result: DPD" >&5
17094 $as_echo "DPD" >&6; }
17095 if test "$enable_decimal_float" = bid; then
17096 as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5
17097 fi
17098 if test "$enable_decimal_float" != generic; then
17099 enable_decimal_float=dpd
17100 fi ;;
17101 81) { $as_echo "$as_me:${as_lineno-$LINENO}: result: BID" >&5
17102 $as_echo "BID" >&6; }
17103 if test "$enable_decimal_float" = dpd; then
17104 as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5
17105 fi
17106 if test "$enable_decimal_float" != generic; then
17107 enable_decimal_float=bid
17108 fi ;;
17109 82) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither DPD nor BID" >&5
17110 $as_echo "neither DPD nor BID" >&6; }
17111 if test "$enable_decimal_float" = dpd; then
17112 as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5
17113 fi
17114 if test "$enable_decimal_float" = bid; then
17115 as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5
17116 fi
17117 enable_decimal_float=generic
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The _Decimal64 encoding is non-standard or there was an" >&5
17119 $as_echo "$as_me: WARNING: The _Decimal64 encoding is non-standard or there was an" >&2;}
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: issue with its detection. The generic code will be used." >&5
17121 $as_echo "$as_me: WARNING: issue with its detection. The generic code will be used." >&2;}
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not forget to test with \`make check'." >&5
17123 $as_echo "$as_me: WARNING: Please do not forget to test with \`make check'." >&2;}
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: In case of failure of a decimal test, you should rebuild" >&5
17125 $as_echo "$as_me: WARNING: In case of failure of a decimal test, you should rebuild" >&2;}
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR without --enable-decimal-float." >&5
17127 $as_echo "$as_me: WARNING: MPFR without --enable-decimal-float." >&2;} ;;
17128 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: error (exit status $d64_exit_status)" >&5
17129 $as_echo "error (exit status $d64_exit_status)" >&6; }
17130 case "$enable_decimal_float" in
17131 yes|bid|dpd|generic) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17133 as_fn_error $? "internal or link error.
17134 Please build MPFR without --enable-decimal-float.
17135 See \`config.log' for more details" "$LINENO" 5; } ;;
17136 *) enable_decimal_float=no ;;
17137 esac ;;
17138 esac
17139 fi
17140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17141 conftest.$ac_objext conftest.beam conftest.$ac_ext
17142 fi
17143
17144
17145 else
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17147 $as_echo "no" >&6; }
17148 case "$enable_decimal_float" in
17149 yes|bid|dpd|generic)
17150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17152 as_fn_error $? "compiler doesn't know _Decimal64 (ISO/IEC TR 24732).
17153 Please use another compiler or build MPFR without --enable-decimal-float.
17154 See \`config.log' for more details" "$LINENO" 5; } ;;
17155 *) enable_decimal_float=no ;;
17156 esac
17157 fi
17158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17159 if test "$enable_decimal_float" != no; then
17160
17161 $as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
17162
17163 case "$enable_decimal_float" in
17164 dpd) $as_echo "#define DECIMAL_DPD_FORMAT 1" >>confdefs.h
17165 ;;
17166 bid) $as_echo "#define DECIMAL_BID_FORMAT 1" >>confdefs.h
17167 ;;
17168 generic) $as_echo "#define DECIMAL_GENERIC_CODE 1" >>confdefs.h
17169 ;;
17170 compile-time) ;;
17171 *) as_fn_error $? "internal error" "$LINENO" 5 ;;
17172 esac
17173 fi
17174
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bit-field ordering for _Decimal128" >&5
17176 $as_echo_n "checking bit-field ordering for _Decimal128... " >&6; }
17177 if test "$cross_compiling" = yes; then :
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
17179 $as_echo "cannot test" >&6; }
17180 else
17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17182 /* end confdefs.h. */
17183
17184
17185 int
17186 main (void)
17187 {
17188
17189 union ieee_decimal128
17190 {
17191 struct
17192 {
17193 unsigned int t3:32;
17194 unsigned int t2:32;
17195 unsigned int t1:32;
17196 unsigned int t0:14;
17197 unsigned int comb:17;
17198 unsigned int sig:1;
17199 } s;
17200 _Decimal128 d128;
17201 } x;
17202
17203 x.d128 = 1.0dl;
17204 if (x.s.sig == 0 && x.s.comb == 49400 &&
17205 x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 10)
17206 return 80; /* little endian */
17207 else if (x.s.sig == 0 && x.s.comb == 8 &&
17208 x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 570933248)
17209 return 81; /* big endian */
17210 else
17211 return 82; /* unknown encoding */
17212
17213 ;
17214 return 0;
17215 }
17216 _ACEOF
17217 if ac_fn_c_try_run "$LINENO"; then :
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal error" >&5
17219 $as_echo "internal error" >&6; }
17220 else
17221 d128_exit_status=$?
17222 case "$d128_exit_status" in
17223 80) { $as_echo "$as_me:${as_lineno-$LINENO}: result: little endian" >&5
17224 $as_echo "little endian" >&6; }
17225 $as_echo "#define HAVE_DECIMAL128_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
17226 ;;
17227 81) { $as_echo "$as_me:${as_lineno-$LINENO}: result: big endian" >&5
17228 $as_echo "big endian" >&6; }
17229 $as_echo "#define HAVE_DECIMAL128_IEEE_BIG_ENDIAN 1" >>confdefs.h
17230 ;;
17231 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable or unknown" >&5
17232 $as_echo "unavailable or unknown" >&6; } ;;
17233 esac
17234 fi
17235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17236 conftest.$ac_objext conftest.beam conftest.$ac_ext
17237 fi
17238
17239
17240 fi
17241 # End of decimal float checks
17242
17243 if test "$enable_float128" != no; then
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _Float128 with hex constants is supported" >&5
17245 $as_echo_n "checking if _Float128 with hex constants is supported... " >&6; }
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17248
17249 int
17250 main (void)
17251 {
17252
17253 volatile _Float128 x = 0x1.fp+16383f128;
17254 return x == 0;
17255
17256 ;
17257 return 0;
17258 }
17259 _ACEOF
17260 if ac_fn_c_try_link "$LINENO"; then :
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17262 $as_echo "yes" >&6; }
17263
17264 $as_echo "#define MPFR_WANT_FLOAT128 1" >>confdefs.h
17265
17266 else
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268 $as_echo "no" >&6; }
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __float128 can be used as a fallback" >&5
17270 $as_echo_n "checking if __float128 can be used as a fallback... " >&6; }
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17273
17274 #define _Float128 __float128
17275
17276 int
17277 main (void)
17278 {
17279
17280 volatile _Float128 x = 0x1.fp+16383q;
17281 return x == 0;
17282
17283 ;
17284 return 0;
17285 }
17286 _ACEOF
17287 if ac_fn_c_try_link "$LINENO"; then :
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17289 $as_echo "yes" >&6; }
17290
17291 $as_echo "#define MPFR_WANT_FLOAT128 2" >>confdefs.h
17292
17293
17294 $as_echo "#define _Float128 __float128" >>confdefs.h
17295
17296 else
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17298 $as_echo "no" >&6; }
17299 if test "$enable_float128" = yes; then
17300 as_fn_error $? "compiler doesn't know _Float128 or __float128 with hex constants.
17301 Please use another compiler or build MPFR without --enable-float128." "$LINENO" 5
17302 fi
17303 fi
17304 rm -f core conftest.err conftest.$ac_objext \
17305 conftest$ac_exeext conftest.$ac_ext
17306
17307 fi
17308 rm -f core conftest.err conftest.$ac_objext \
17309 conftest$ac_exeext conftest.$ac_ext
17310 fi
17311
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Static Assertion support" >&5
17313 $as_echo_n "checking for Static Assertion support... " >&6; }
17314 saved_CPPFLAGS="$CPPFLAGS"
17315 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
17316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317 /* end confdefs.h. */
17318
17319 #define MPFR_USE_STATIC_ASSERT 1
17320 #include "mpfr-sassert.h"
17321
17322 /* Test if Static Assertions work */
17323
17324 int main (void) {
17325 int x;
17326 (void) (x = 1); /* cast to void: avoid a warning, at least with GCC */
17327 /* Test of the macro after a declaraction and a statement. */
17328 MPFR_STAT_STATIC_ASSERT(sizeof(short) <= sizeof(int));
17329 return 0;
17330 }
17331
17332 _ACEOF
17333 if ac_fn_c_try_compile "$LINENO"; then :
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17335 $as_echo "yes" >&6; }
17336
17337 $as_echo "#define MPFR_USE_STATIC_ASSERT 1" >>confdefs.h
17338
17339
17340 else
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17342 $as_echo "no" >&6; }
17343
17344 fi
17345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346 CPPFLAGS="$saved_CPPFLAGS"
17347
17348 if test "$enable_lto" = "yes" ; then
17349
17350 CFLAGS="$CFLAGS -flto"
17351
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation flag '-flto' is supported..." >&5
17353 $as_echo_n "checking if Link Time Optimisation flag '-flto' is supported...... " >&6; }
17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355 /* end confdefs.h. */
17356
17357 int main(void) { return 0; }
17358
17359 _ACEOF
17360 if ac_fn_c_try_compile "$LINENO"; then :
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362 $as_echo "yes" >&6; }
17363
17364 else
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17366 $as_echo "no" >&6; }
17367 as_fn_error $? "Link Time Optimisation flag '-flto' is not supported." "$LINENO" 5
17368
17369 fi
17370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17371
17372 mpfr_compile_and_link()
17373 {
17374 echo "int f(int); int f(int n) { return n; }" > conftest-f.c
17375 echo "int f(int); int main() { return f(0); }" > conftest-m.c
17376 echo "$CC $CFLAGS -c -o conftest-f.o conftest-f.c" >&2
17377 $CC $CFLAGS -c -o conftest-f.o conftest-f.c || return 1
17378 echo "$AR cru conftest-lib.a conftest-f.o" >&2
17379 $AR cru conftest-lib.a conftest-f.o || return 1
17380 echo "$RANLIB conftest-lib.a" >&2
17381 $RANLIB conftest-lib.a || return 1
17382 echo "$CC $CFLAGS conftest-m.c conftest-lib.a" >&2
17383 $CC $CFLAGS conftest-m.c conftest-lib.a || return 1
17384 return 0
17385 }
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5
17387 $as_echo_n "checking if Link Time Optimisation works with AR=$AR... " >&6; }
17388 if mpfr_compile_and_link 2> conftest-log1.txt ; then
17389 cat conftest-log1.txt >&5
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17391 $as_echo "yes" >&6; }
17392 else
17393 cat conftest-log1.txt >&5
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17395 $as_echo "no" >&6; }
17396 AR=gcc-ar
17397 RANLIB=gcc-ranlib
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5
17399 $as_echo_n "checking if Link Time Optimisation works with AR=$AR... " >&6; }
17400 if mpfr_compile_and_link 2> conftest-log2.txt; then
17401 cat conftest-log2.txt >&5
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17403 $as_echo "yes" >&6; }
17404 else
17405 cat conftest-log2.txt >&5
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17407 $as_echo "no" >&6; }
17408 as_fn_error $? "Link Time Optimisation is not supported (see config.log for details)." "$LINENO" 5
17409 fi
17410 fi
17411 rm -f conftest*
17412
17413 fi
17414
17415 if test "$enable_logging" = yes; then
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nested functions and 'cleanup' attribute" >&5
17417 $as_echo_n "checking for nested functions and 'cleanup' attribute... " >&6; }
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17420
17421 int main (void) {
17422 auto void f_cleanup (int *p);
17423 void f_cleanup (int *p) { int v = *p; (void) v; }
17424 int v __attribute__ ((cleanup (f_cleanup)));
17425 v = 0;
17426 return 0;
17427 }
17428
17429 _ACEOF
17430 if ac_fn_c_try_compile "$LINENO"; then :
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17432 $as_echo "yes" >&6; }
17433 else
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17435 $as_echo "no" >&6; }
17436 as_fn_error $? "logging support needs nested functions and the 'cleanup' attribute" "$LINENO" 5
17437
17438 fi
17439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17440 fi
17441
17442
17443
17444
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
17446 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
17447 if ${gmp_cv_c_attribute_mode+:} false; then :
17448 $as_echo_n "(cached) " >&6
17449 else
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 typedef int SItype __attribute__ ((mode (SI)));
17453 int
17454 main (void)
17455 {
17456
17457 ;
17458 return 0;
17459 }
17460 _ACEOF
17461 if ac_fn_c_try_compile "$LINENO"; then :
17462 gmp_cv_c_attribute_mode=yes
17463 else
17464 gmp_cv_c_attribute_mode=no
17465 fi
17466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17467
17468 fi
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
17470 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
17471 if test $gmp_cv_c_attribute_mode = yes; then
17472
17473 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
17474
17475 fi
17476
17477
17478
17479
17480 if test -z "$mini_gmp_path" ; then
17481
17482
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
17484 $as_echo_n "checking for gmp.h... " >&6; }
17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17487
17488 #include "gmp.h"
17489
17490 _ACEOF
17491 if ac_fn_c_try_compile "$LINENO"; then :
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17493 $as_echo "yes" >&6; }
17494 else
17495
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17497 $as_echo "no" >&6; }
17498 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5
17499
17500 fi
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502
17503
17504
17505 case $host in
17506 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
17508 $as_echo_n "checking for DLL/static GMP... " >&6; }
17509 if test "$enable_shared" = yes; then
17510 MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined"
17511 LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-6.dll.def"
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17514
17515 #include "gmp.h"
17516 #if !__GMP_LIBGMP_DLL
17517 # error "Dead man"
17518 error
17519 #endif
17520
17521 int
17522 main (void)
17523 {
17524
17525 ;
17526 return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_compile "$LINENO"; then :
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
17531 $as_echo "DLL" >&6; }
17532 else
17533
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
17535 $as_echo "static" >&6; }
17536 as_fn_error $? "libgmp isn't provided as a DLL: use --enable-static --disable-shared" "$LINENO" 5
17537 fi
17538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17539 else
17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h. */
17542
17543 #include "gmp.h"
17544 #if __GMP_LIBGMP_DLL
17545 # error "Dead man"
17546 error
17547 #endif
17548
17549 int
17550 main (void)
17551 {
17552
17553 ;
17554 return 0;
17555 }
17556 _ACEOF
17557 if ac_fn_c_try_compile "$LINENO"; then :
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
17559 $as_echo "static" >&6; }
17560 else
17561
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
17563 $as_echo "DLL" >&6; }
17564 as_fn_error $? "libgmp is provided as a DLL: use --disable-static --enable-shared" "$LINENO" 5
17565 fi
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567 fi
17568 ;;
17569 esac
17570
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
17572 $as_echo_n "checking for recent GMP... " >&6; }
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17575
17576 #include "gmp.h"
17577 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 500)
17578 # error "GMP 5.0.0 or newer is required"
17579 error
17580 #endif
17581
17582 _ACEOF
17583 if ac_fn_c_try_compile "$LINENO"; then :
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17585 $as_echo "yes" >&6; }
17586 else
17587
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17589 $as_echo "no" >&6; }
17590 as_fn_error $? "GMP 5.0.0 or newer is required" "$LINENO" 5
17591
17592 fi
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking usable gmp.h at link time" >&5
17596 $as_echo_n "checking usable gmp.h at link time... " >&6; }
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17599
17600 #include "gmp.h"
17601
17602 int
17603 main (void)
17604 {
17605
17606 ;
17607 return 0;
17608 }
17609 _ACEOF
17610 if ac_fn_c_try_link "$LINENO"; then :
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17612 $as_echo "yes" >&6; }
17613 else
17614
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17616 $as_echo "no" >&6; }
17617 as_fn_error $? "there is an incompatibility between gmp.h and the compiler.
17618 See 'config.log' for details." "$LINENO" 5
17619
17620 fi
17621 rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17623
17624 if test "$use_gmp_build" = yes ; then
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5
17626 $as_echo_n "checking for gmp internal files... " >&6; }
17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628 /* end confdefs.h. */
17629
17630 #include "gmp.h"
17631 #include "gmp-impl.h"
17632 #include "longlong.h"
17633
17634 _ACEOF
17635 if ac_fn_c_try_compile "$LINENO"; then :
17636
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17638 $as_echo "yes" >&6; }
17639
17640 $as_echo "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
17641
17642
17643 else
17644
17645 as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5
17646
17647 fi
17648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649 fi
17650
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency" >&5
17652 $as_echo_n "checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... " >&6; }
17653 if test "$cross_compiling" = yes; then :
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
17655 $as_echo "cannot test" >&6; }
17656 else
17657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659
17660 #include <stdio.h>
17661 #include <limits.h>
17662 #include "gmp.h"
17663
17664 int
17665 main (void)
17666 {
17667
17668 if (GMP_NUMB_BITS == sizeof(mp_limb_t) * CHAR_BIT)
17669 return 0;
17670 fprintf (stderr, "GMP_NUMB_BITS = %ld\n", (long) GMP_NUMB_BITS);
17671 fprintf (stderr, "sizeof(mp_limb_t) = %ld\n", (long) sizeof(mp_limb_t));
17672 fprintf (stderr, "sizeof(mp_limb_t) * CHAR_BIT = %ld != GMP_NUMB_BITS\n",
17673 (long) (sizeof(mp_limb_t) * CHAR_BIT));
17674 return 1;
17675
17676 ;
17677 return 0;
17678 }
17679 _ACEOF
17680 if ac_fn_c_try_run "$LINENO"; then :
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17682 $as_echo "yes" >&6; }
17683 else
17684
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17686 $as_echo "no" >&6; }
17687 as_fn_error $? "GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent.
17688 You probably need to change some of the GMP or MPFR compile options.
17689 See 'config.log' for details (search for GMP_NUMB_BITS)." "$LINENO" 5
17690 fi
17691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17692 conftest.$ac_objext conftest.beam conftest.$ac_ext
17693 fi
17694
17695
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
17697 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
17698 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
17699 $as_echo_n "(cached) " >&6
17700 else
17701 ac_check_lib_save_LIBS=$LIBS
17702 LIBS="-lgmp $LIBS"
17703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17705
17706 /* Override any GCC internal prototype to avoid an error.
17707 Use char because int might match the return type of a GCC
17708 builtin and then its argument prototype would still apply. */
17709 #ifdef __cplusplus
17710 extern "C"
17711 #endif
17712 char __gmpz_init ();
17713 int
17714 main (void)
17715 {
17716 return __gmpz_init ();
17717 ;
17718 return 0;
17719 }
17720 _ACEOF
17721 if ac_fn_c_try_link "$LINENO"; then :
17722 ac_cv_lib_gmp___gmpz_init=yes
17723 else
17724 ac_cv_lib_gmp___gmpz_init=no
17725 fi
17726 rm -f core conftest.err conftest.$ac_objext \
17727 conftest$ac_exeext conftest.$ac_ext
17728 LIBS=$ac_check_lib_save_LIBS
17729 fi
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
17731 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
17732 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
17733 LIBS="-lgmp $LIBS"
17734 else
17735 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared).
17736 Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5
17737 fi
17738
17739
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
17741 $as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
17742 saved_LD_RUN_PATH="$LD_RUN_PATH"
17743 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
17744 export LD_RUN_PATH
17745 if test "$cross_compiling" = yes; then :
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
17747 $as_echo "cannot test" >&6; }
17748
17749 else
17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751 /* end confdefs.h. */
17752
17753 #include <stdio.h>
17754 #include <string.h>
17755 #include "gmp.h"
17756
17757 int
17758 main (void)
17759 {
17760
17761 char buffer[100];
17762 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
17763 __GNU_MP_VERSION_PATCHLEVEL);
17764 printf ("(%s/%s) ", buffer, gmp_version);
17765 fflush (stdout);
17766 /* Also put information in config.log (stderr) */
17767 fprintf (stderr, "gmp.h: %s / libgmp: %s\n", buffer, gmp_version);
17768 if (strcmp (buffer, gmp_version) == 0)
17769 return 0;
17770 if (__GNU_MP_VERSION_PATCHLEVEL != 0)
17771 return 1;
17772 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
17773 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
17774
17775 ;
17776 return 0;
17777 }
17778 _ACEOF
17779 if ac_fn_c_try_run "$LINENO"; then :
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17781 $as_echo "yes" >&6; }
17782
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP library vs header correctness" >&5
17784 $as_echo_n "checking for GMP library vs header correctness... " >&6; }
17785 if ${mpfr_cv_check_gmp+:} false; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788
17789 if test "$cross_compiling" = yes; then :
17790 mpfr_cv_check_gmp="cannot test, assume yes"
17791 else
17792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17794
17795 #include <stdio.h>
17796 #include <limits.h>
17797 #include <gmp.h>
17798
17799 int
17800 main (void)
17801 {
17802
17803 fprintf (stderr, "GMP_NAIL_BITS = %d\n", (int) GMP_NAIL_BITS);
17804 fprintf (stderr, "GMP_NUMB_BITS = %d\n", (int) GMP_NUMB_BITS);
17805 fprintf (stderr, "mp_bits_per_limb = %d\n", (int) mp_bits_per_limb);
17806 fprintf (stderr, "sizeof(mp_limb_t) = %d\n", (int) sizeof(mp_limb_t));
17807 if (GMP_NAIL_BITS != 0)
17808 {
17809 fprintf (stderr, "GMP_NAIL_BITS != 0\n");
17810 return 81;
17811 }
17812 if (GMP_NUMB_BITS != mp_bits_per_limb)
17813 {
17814 fprintf (stderr, "GMP_NUMB_BITS != mp_bits_per_limb\n");
17815 return 82;
17816 }
17817 if (GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT)
17818 {
17819 fprintf (stderr, "GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT\n");
17820 return 83;
17821 }
17822 return 0;
17823
17824 ;
17825 return 0;
17826 }
17827 _ACEOF
17828 if ac_fn_c_try_run "$LINENO"; then :
17829 mpfr_cv_check_gmp="yes"
17830 else
17831 mpfr_cv_check_gmp="no (exit status is $?)"
17832 fi
17833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17834 conftest.$ac_objext conftest.beam conftest.$ac_ext
17835 fi
17836
17837
17838 fi
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_check_gmp" >&5
17840 $as_echo "$mpfr_cv_check_gmp" >&6; }
17841 case $mpfr_cv_check_gmp in
17842 no*)
17843 as_fn_error $? "bad GMP library or header - ABI problem?
17844 See 'config.log' for details." "$LINENO" 5 ;;
17845 esac
17846
17847
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for double-to-integer conversion bug" >&5
17849 $as_echo_n "checking for double-to-integer conversion bug... " >&6; }
17850 if ${mpfr_cv_dbl_int_bug+:} false; then :
17851 $as_echo_n "(cached) " >&6
17852 else
17853
17854 if test "$cross_compiling" = yes; then :
17855 mpfr_cv_dbl_int_bug="cannot test, assume not present"
17856 else
17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h. */
17859
17860 #include <stdio.h>
17861 #include <gmp.h>
17862
17863 int
17864 main (void)
17865 {
17866
17867 double d;
17868 mp_limb_t u;
17869 int i;
17870
17871 d = 1.0;
17872 for (i = 0; i < GMP_NUMB_BITS - 1; i++)
17873 d = d + d;
17874 u = (mp_limb_t) d;
17875 for (; i > 0; i--)
17876 {
17877 if (u & 1)
17878 break;
17879 u = u >> 1;
17880 }
17881 if (i == 0 && u == 1UL)
17882 return 0;
17883 fprintf (stderr, "Failure: i = %d, (unsigned long) u = %lu\n",
17884 i, (unsigned long) u);
17885 return 1;
17886
17887 ;
17888 return 0;
17889 }
17890 _ACEOF
17891 if ac_fn_c_try_run "$LINENO"; then :
17892 mpfr_cv_dbl_int_bug="no"
17893 else
17894 mpfr_cv_dbl_int_bug="yes or failed to exec (exit status is $?)"
17895 fi
17896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17897 conftest.$ac_objext conftest.beam conftest.$ac_ext
17898 fi
17899
17900
17901 fi
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_dbl_int_bug" >&5
17903 $as_echo "$mpfr_cv_dbl_int_bug" >&6; }
17904 case $mpfr_cv_dbl_int_bug in
17905 yes*)
17906 as_fn_error $? "double-to-integer conversion is incorrect.
17907 You need to use another compiler (or lower the optimization level)." "$LINENO" 5 ;;
17908 esac
17909
17910
17911 if test "$ac_cv_type_intmax_t" = yes; then
17912
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
17914 $as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
17915 if test "$cross_compiling" = yes; then :
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
17917 $as_echo "cross-compiling" >&6; }
17918
17919 else
17920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921 /* end confdefs.h. */
17922
17923 #include <stdio.h>
17924 #include <string.h>
17925
17926 #ifdef HAVE_INTTYPES_H
17927 # include <inttypes.h>
17928 #endif
17929 #ifdef HAVE_STDINT_H
17930 # include <stdint.h>
17931 #endif
17932
17933 #include <gmp.h>
17934
17935 int
17936 main (void)
17937 {
17938
17939 char s[256];
17940 intmax_t a = 17;
17941
17942 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
17943 precision, as -Werror=format yields an error, even though this
17944 flag is allowed by the ISO C standard (it is just ignored).
17945 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
17946 if (sprintf (s, "(%.0jd)(%d)", a, 42) != 8 ||
17947 strcmp (s, "(17)(42)") != 0)
17948 return 1;
17949
17950 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1 ||
17951 strcmp (s, "(17)(42)") != 0)
17952 return 1;
17953
17954 return 0;
17955
17956 ;
17957 return 0;
17958 }
17959 _ACEOF
17960 if ac_fn_c_try_run "$LINENO"; then :
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17962 $as_echo "yes" >&6; }
17963
17964 else
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17966 $as_echo "no" >&6; }
17967
17968 $as_echo "#define NPRINTF_J 1" >>confdefs.h
17969
17970 fi
17971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17972 conftest.$ac_objext conftest.beam conftest.$ac_ext
17973 fi
17974
17975
17976 fi
17977
17978
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
17980 $as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
17981 if test "$cross_compiling" = yes; then :
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
17983 $as_echo "cross-compiling" >&6; }
17984
17985 else
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17988
17989 #include <stdio.h>
17990 #include <string.h>
17991
17992 #include <gmp.h>
17993
17994 #include <gmp.h>
17995
17996 int
17997 main (void)
17998 {
17999
18000 char s[256];
18001 char a = 17;
18002
18003 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
18004 precision, as -Werror=format yields an error, even though this
18005 flag is allowed by the ISO C standard (it is just ignored).
18006 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
18007 if (sprintf (s, "(%.0hhd)(%d)", a, 42) != 8 ||
18008 strcmp (s, "(17)(42)") != 0)
18009 return 1;
18010
18011 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1 ||
18012 strcmp (s, "(17)(42)") != 0)
18013 return 1;
18014
18015 return 0;
18016
18017 ;
18018 return 0;
18019 }
18020 _ACEOF
18021 if ac_fn_c_try_run "$LINENO"; then :
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18023 $as_echo "yes" >&6; }
18024
18025 else
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18027 $as_echo "no" >&6; }
18028
18029 $as_echo "#define NPRINTF_HH 1" >>confdefs.h
18030
18031 fi
18032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18033 conftest.$ac_objext conftest.beam conftest.$ac_ext
18034 fi
18035
18036
18037
18038
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
18040 $as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
18041 if test "$cross_compiling" = yes; then :
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
18043 $as_echo "cross-compiling" >&6; }
18044
18045 else
18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18048
18049 #include <stdio.h>
18050 #include <string.h>
18051
18052 #include <gmp.h>
18053
18054 #include <gmp.h>
18055
18056 int
18057 main (void)
18058 {
18059
18060 char s[256];
18061 long long int a = 17;
18062
18063 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
18064 precision, as -Werror=format yields an error, even though this
18065 flag is allowed by the ISO C standard (it is just ignored).
18066 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
18067 if (sprintf (s, "(%.0lld)(%d)", a, 42) != 8 ||
18068 strcmp (s, "(17)(42)") != 0)
18069 return 1;
18070
18071 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1 ||
18072 strcmp (s, "(17)(42)") != 0)
18073 return 1;
18074
18075 return 0;
18076
18077 ;
18078 return 0;
18079 }
18080 _ACEOF
18081 if ac_fn_c_try_run "$LINENO"; then :
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18083 $as_echo "yes" >&6; }
18084
18085 else
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18087 $as_echo "no" >&6; }
18088
18089 $as_echo "#define NPRINTF_LL 1" >>confdefs.h
18090
18091 fi
18092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18093 conftest.$ac_objext conftest.beam conftest.$ac_ext
18094 fi
18095
18096
18097
18098
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
18100 $as_echo_n "checking if gmp_printf supports \"%Lf\"... " >&6; }
18101 if test "$cross_compiling" = yes; then :
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
18103 $as_echo "cross-compiling" >&6; }
18104
18105 $as_echo "#define PRINTF_L 1" >>confdefs.h
18106
18107 else
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h. */
18110
18111 #include <stdio.h>
18112 #include <string.h>
18113
18114 #include <gmp.h>
18115
18116 #include <gmp.h>
18117
18118 int
18119 main (void)
18120 {
18121
18122 char s[256];
18123 long double a = 17;
18124
18125 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
18126 precision, as -Werror=format yields an error, even though this
18127 flag is allowed by the ISO C standard (it is just ignored).
18128 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
18129 if (sprintf (s, "(%.0Lf)(%d)", a, 42) != 8 ||
18130 strcmp (s, "(17)(42)") != 0)
18131 return 1;
18132
18133 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1 ||
18134 strcmp (s, "(17)(42)") != 0)
18135 return 1;
18136
18137 return 0;
18138
18139 ;
18140 return 0;
18141 }
18142 _ACEOF
18143 if ac_fn_c_try_run "$LINENO"; then :
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18145 $as_echo "yes" >&6; }
18146
18147 $as_echo "#define PRINTF_L 1" >>confdefs.h
18148
18149 else
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18151 $as_echo "no" >&6; }
18152
18153 $as_echo "#define NPRINTF_L 1" >>confdefs.h
18154
18155 fi
18156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18157 conftest.$ac_objext conftest.beam conftest.$ac_ext
18158 fi
18159
18160
18161
18162
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
18164 $as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
18165 if test "$cross_compiling" = yes; then :
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
18167 $as_echo "cross-compiling" >&6; }
18168
18169 $as_echo "#define PRINTF_T 1" >>confdefs.h
18170
18171 else
18172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h. */
18174
18175 #include <stdio.h>
18176 #include <string.h>
18177
18178 #if defined (__cplusplus)
18179 #include <cstddef>
18180 #else
18181 #include <stddef.h>
18182 #endif
18183 #include <gmp.h>
18184
18185 #include <gmp.h>
18186
18187 int
18188 main (void)
18189 {
18190
18191 char s[256];
18192 ptrdiff_t a = 17;
18193
18194 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
18195 precision, as -Werror=format yields an error, even though this
18196 flag is allowed by the ISO C standard (it is just ignored).
18197 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
18198 if (sprintf (s, "(%.0td)(%d)", a, 42) != 8 ||
18199 strcmp (s, "(17)(42)") != 0)
18200 return 1;
18201
18202 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1 ||
18203 strcmp (s, "(17)(42)") != 0)
18204 return 1;
18205
18206 return 0;
18207
18208 ;
18209 return 0;
18210 }
18211 _ACEOF
18212 if ac_fn_c_try_run "$LINENO"; then :
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18214 $as_echo "yes" >&6; }
18215
18216 $as_echo "#define PRINTF_T 1" >>confdefs.h
18217
18218 else
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220 $as_echo "no" >&6; }
18221
18222 $as_echo "#define NPRINTF_T 1" >>confdefs.h
18223
18224 fi
18225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18226 conftest.$ac_objext conftest.beam conftest.$ac_ext
18227 fi
18228
18229
18230
18231
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports the ' group flag" >&5
18233 $as_echo_n "checking if gmp_printf supports the ' group flag... " >&6; }
18234 if test "$cross_compiling" = yes; then :
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
18236 $as_echo "cannot test" >&6; }
18237 else
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18240
18241 #include <string.h>
18242 #include <gmp.h>
18243
18244 int
18245 main (void)
18246 {
18247
18248 char s[256];
18249
18250 if (gmp_sprintf (s, "%'d", 17) == -1) return 1;
18251 return (strcmp (s, "17") != 0);
18252
18253 ;
18254 return 0;
18255 }
18256 _ACEOF
18257 if ac_fn_c_try_run "$LINENO"; then :
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18259 $as_echo "yes" >&6; }
18260
18261 $as_echo "#define PRINTF_GROUPFLAG 1" >>confdefs.h
18262
18263 else
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18265 $as_echo "no" >&6; }
18266 fi
18267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18268 conftest.$ac_objext conftest.beam conftest.$ac_ext
18269 fi
18270
18271
18272 else
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274 $as_echo "no" >&6; }
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
18276 $as_echo "$as_me: WARNING: ==========================================================" >&2;}
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5
18278 $as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;}
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
18280 $as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5
18282 $as_echo "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;}
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&5
18284 $as_echo "$as_me: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&2;}
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or --with-gmp-include with a system include directory" >&5
18286 $as_echo "$as_me: WARNING: or --with-gmp-include with a system include directory" >&2;}
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (such as /usr/include or /usr/local/include). Another" >&5
18288 $as_echo "$as_me: WARNING: (such as /usr/include or /usr/local/include). Another" >&2;}
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&5
18290 $as_echo "$as_me: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&2;}
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: seen under OpenBSD 6.6)." >&5
18292 $as_echo "$as_me: WARNING: seen under OpenBSD 6.6)." >&2;}
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: However since we can't use 'libtool' inside the configure," >&5
18294 $as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;}
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5
18296 $as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC=\"$CC\"" >&5
18298 $as_echo "$as_me: WARNING: CC=\"$CC\"" >&2;}
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CFLAGS=\"$CFLAGS\"" >&5
18300 $as_echo "$as_me: WARNING: CFLAGS=\"$CFLAGS\"" >&2;}
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&5
18302 $as_echo "$as_me: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&2;}
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LDFLAGS=\"$LDFLAGS\"" >&5
18304 $as_echo "$as_me: WARNING: LDFLAGS=\"$LDFLAGS\"" >&2;}
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBS=\"$LIBS\"" >&5
18306 $as_echo "$as_me: WARNING: LIBS=\"$LIBS\"" >&2;}
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&5
18308 $as_echo "$as_me: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&2;}
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
18310 $as_echo "$as_me: WARNING: ==========================================================" >&2;}
18311
18312 fi
18313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18314 conftest.$ac_objext conftest.beam conftest.$ac_ext
18315 fi
18316
18317 LD_RUN_PATH="$saved_LD_RUN_PATH"
18318
18319 for ac_func in __gmpn_sbpi1_divappr_q
18320 do :
18321 ac_fn_c_check_func "$LINENO" "__gmpn_sbpi1_divappr_q" "ac_cv_func___gmpn_sbpi1_divappr_q"
18322 if test "x$ac_cv_func___gmpn_sbpi1_divappr_q" = xyes; then :
18323 cat >>confdefs.h <<_ACEOF
18324 #define HAVE___GMPN_SBPI1_DIVAPPR_Q 1
18325 _ACEOF
18326
18327 fi
18328 done
18329
18330 for ac_func in __gmpn_invert_limb
18331 do :
18332 ac_fn_c_check_func "$LINENO" "__gmpn_invert_limb" "ac_cv_func___gmpn_invert_limb"
18333 if test "x$ac_cv_func___gmpn_invert_limb" = xyes; then :
18334 cat >>confdefs.h <<_ACEOF
18335 #define HAVE___GMPN_INVERT_LIMB 1
18336 _ACEOF
18337
18338 fi
18339 done
18340
18341 for ac_func in __gmpn_rsblsh1_n
18342 do :
18343 ac_fn_c_check_func "$LINENO" "__gmpn_rsblsh1_n" "ac_cv_func___gmpn_rsblsh1_n"
18344 if test "x$ac_cv_func___gmpn_rsblsh1_n" = xyes; then :
18345 cat >>confdefs.h <<_ACEOF
18346 #define HAVE___GMPN_RSBLSH1_N 1
18347 _ACEOF
18348
18349 fi
18350 done
18351
18352
18353
18354
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long to fit in mp_limb_t" >&5
18356 $as_echo_n "checking for long to fit in mp_limb_t... " >&6; }
18357 if ${mpfr_cv_long_within_limb+:} false; then :
18358 $as_echo_n "(cached) " >&6
18359 else
18360
18361 saved_CPPFLAGS="$CPPFLAGS"
18362 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18365
18366 #include <gmp.h>
18367 /* Make sure that a static assertion is used (not MPFR_ASSERTN). */
18368 #undef MPFR_USE_STATIC_ASSERT
18369 #define MPFR_USE_STATIC_ASSERT 1
18370 #include "mpfr-sassert.h"
18371
18372 int
18373 main (void)
18374 {
18375
18376 MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (unsigned long) -1);
18377 return 0;
18378
18379 ;
18380 return 0;
18381 }
18382 _ACEOF
18383 if ac_fn_c_try_link "$LINENO"; then :
18384 mpfr_cv_long_within_limb="yes"
18385 else
18386 mpfr_cv_long_within_limb="no"
18387 fi
18388 rm -f core conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18390
18391 fi
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_long_within_limb" >&5
18393 $as_echo "$mpfr_cv_long_within_limb" >&6; }
18394 case $mpfr_cv_long_within_limb in
18395 yes*)
18396
18397 $as_echo "#define MPFR_LONG_WITHIN_LIMB 1" >>confdefs.h
18398 ;;
18399 esac
18400 CPPFLAGS="$saved_CPPFLAGS"
18401
18402
18403
18404 if test "$ac_cv_type_intmax_t" = yes; then
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t to fit in mp_limb_t" >&5
18406 $as_echo_n "checking for intmax_t to fit in mp_limb_t... " >&6; }
18407 if ${mpfr_cv_intmax_within_limb+:} false; then :
18408 $as_echo_n "(cached) " >&6
18409 else
18410
18411 saved_CPPFLAGS="$CPPFLAGS"
18412 CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H"
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18415
18416 #include <gmp.h>
18417 /* Make sure that a static assertion is used (not MPFR_ASSERTN). */
18418 #undef MPFR_USE_STATIC_ASSERT
18419 #define MPFR_USE_STATIC_ASSERT 1
18420 #include "mpfr-sassert.h"
18421 #include "mpfr-intmax.h"
18422
18423 int
18424 main (void)
18425 {
18426
18427 MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (uintmax_t) -1);
18428 return 0;
18429
18430 ;
18431 return 0;
18432 }
18433 _ACEOF
18434 if ac_fn_c_try_link "$LINENO"; then :
18435 mpfr_cv_intmax_within_limb="yes"
18436 else
18437 mpfr_cv_intmax_within_limb="no"
18438 fi
18439 rm -f core conftest.err conftest.$ac_objext \
18440 conftest$ac_exeext conftest.$ac_ext
18441
18442 fi
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_intmax_within_limb" >&5
18444 $as_echo "$mpfr_cv_intmax_within_limb" >&6; }
18445 case $mpfr_cv_intmax_within_limb in
18446 yes*)
18447
18448 $as_echo "#define MPFR_INTMAX_WITHIN_LIMB 1" >>confdefs.h
18449 ;;
18450 esac
18451 CPPFLAGS="$saved_CPPFLAGS"
18452 fi
18453
18454
18455 else
18456
18457
18458 mpfr_build_src="${ac_top_build_prefix}src"
18459 mkdir -p "$mpfr_build_src"
18460 rm -f -- "$mpfr_build_src"/mini-gmp.*
18461 for i in c h
18462 do
18463 ln -s -- "$mini_gmp_path/mini-gmp.$i" "$mpfr_build_src/mini-gmp.$i"
18464 done
18465
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS" >&5
18467 $as_echo_n "checking for GMP_NUMB_BITS... " >&6; }
18468 how="from mini-gmp.h"
18469 saved_CPPFLAGS="$CPPFLAGS"
18470 CPPFLAGS="$CPPFLAGS -I$mpfr_build_src"
18471 if ac_fn_c_compute_int "$LINENO" "(GMP_NUMB_BITS)" "mini_gmp_numb_bits" "#include <mini-gmp.h>"; then :
18472
18473 else
18474 how="not in mini-gmp.h; guessed"
18475 if ac_fn_c_compute_int "$LINENO" "(sizeof(mp_limb_t) * CHAR_BIT)" "mini_gmp_numb_bits" "#include <limits.h>
18476 #include <mini-gmp.h>"; then :
18477
18478 else
18479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18481 as_fn_error $? "cannot define GMP_NUMB_BITS
18482 See \`config.log' for more details" "$LINENO" 5; }
18483 fi
18484
18485
18486 cat >>confdefs.h <<_ACEOF
18487 #define GMP_NUMB_BITS $mini_gmp_numb_bits
18488 _ACEOF
18489
18490
18491 fi
18492
18493 CPPFLAGS="$saved_CPPFLAGS"
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mini_gmp_numb_bits bits ($how)" >&5
18495 $as_echo "$mini_gmp_numb_bits bits ($how)" >&6; }
18496
18497 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
18498 if test "x$ac_cv_func_lrand48" = xyes; then :
18499
18500 else
18501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18503 as_fn_error $? "MPFR + mini-gmp requires lrand48
18504 See \`config.log' for more details" "$LINENO" 5; }
18505 fi
18506
18507 ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48"
18508 if test "x$ac_cv_func_srand48" = xyes; then :
18509
18510 else
18511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18513 as_fn_error $? "MPFR + mini-gmp requires srand48
18514 See \`config.log' for more details" "$LINENO" 5; }
18515 fi
18516
18517
18518 fi
18519
18520
18521 for ac_func in getrusage
18522 do :
18523 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
18524 if test "x$ac_cv_func_getrusage" = xyes; then :
18525 cat >>confdefs.h <<_ACEOF
18526 #define HAVE_GETRUSAGE 1
18527 _ACEOF
18528
18529 fi
18530 done
18531
18532
18533 if test -f confdefs.h; then
18534 for i in PACKAGE_ HAVE_STRING HAVE_DLFCN_H HAVE_MEM STDC_HEADERS \
18535 HAVE_STDLIB_H HAVE_UNISTD_H HAVE_STDC_HEADERS \
18536 HAVE_SYS_STAT_H HAVE_SYS_TYPES_H PROTOTYPES __PROTOTYPES
18537 do
18538 $SED "/#define $i/d" < confdefs.h > confdefs.tmp
18539 mv confdefs.tmp confdefs.h
18540 done
18541 fi
18542
18543 if $EGREP -q -e '-dev$' $srcdir/VERSION; then
18544 DATAFILES=`echo \`$SED -n \
18545 's/^ *data_check *("\(data\/[^"]*\)".*/tests\/\1/p' \
18546 $srcdir/tests/*.c\``
18547 fi
18548
18549 ac_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"
18550
18551 cat >confcache <<\_ACEOF
18552 # This file is a shell script that caches the results of configure
18553 # tests run on this system so they can be shared between configure
18554 # scripts and configure runs, see configure's option --config-cache.
18555 # It is not useful on other systems. If it contains results you don't
18556 # want to keep, you may remove or edit it.
18557 #
18558 # config.status only pays attention to the cache file if you give it
18559 # the --recheck option to rerun configure.
18560 #
18561 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18562 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18563 # following values.
18564
18565 _ACEOF
18566
18567 # The following way of writing the cache mishandles newlines in values,
18568 # but we know of no workaround that is simple, portable, and efficient.
18569 # So, we kill variables containing newlines.
18570 # Ultrix sh set writes to stderr and can't be redirected directly,
18571 # and sets the high bit in the cache file unless we assign to the vars.
18572 (
18573 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18574 eval ac_val=\$$ac_var
18575 case $ac_val in #(
18576 *${as_nl}*)
18577 case $ac_var in #(
18578 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18580 esac
18581 case $ac_var in #(
18582 _ | IFS | as_nl) ;; #(
18583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18584 *) { eval $ac_var=; unset $ac_var;} ;;
18585 esac ;;
18586 esac
18587 done
18588
18589 (set) 2>&1 |
18590 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18591 *${as_nl}ac_space=\ *)
18592 # `set' does not quote correctly, so add quotes: double-quote
18593 # substitution turns \\\\ into \\, and sed turns \\ into \.
18594 sed -n \
18595 "s/'/'\\\\''/g;
18596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18597 ;; #(
18598 *)
18599 # `set' quotes correctly as required by POSIX, so do not add quotes.
18600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18601 ;;
18602 esac |
18603 sort
18604 ) |
18605 sed '
18606 /^ac_cv_env_/b end
18607 t clear
18608 :clear
18609 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18610 t end
18611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18612 :end' >>confcache
18613 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18614 if test -w "$cache_file"; then
18615 if test "x$cache_file" != "x/dev/null"; then
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18617 $as_echo "$as_me: updating cache $cache_file" >&6;}
18618 if test ! -f "$cache_file" || test -h "$cache_file"; then
18619 cat confcache >"$cache_file"
18620 else
18621 case $cache_file in #(
18622 */* | ?:*)
18623 mv -f confcache "$cache_file"$$ &&
18624 mv -f "$cache_file"$$ "$cache_file" ;; #(
18625 *)
18626 mv -f confcache "$cache_file" ;;
18627 esac
18628 fi
18629 fi
18630 else
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18632 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18633 fi
18634 fi
18635 rm -f confcache
18636
18637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18638 # Let make expand exec_prefix.
18639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18640
18641 # Transform confdefs.h into DEFS.
18642 # Protect against shell expansion while executing Makefile rules.
18643 # Protect against Makefile macro expansion.
18644 #
18645 # If the first sed substitution is executed (which looks for macros that
18646 # take arguments), then branch to the quote section. Otherwise,
18647 # look for a macro that doesn't take arguments.
18648 ac_script='
18649 :mline
18650 /\\$/{
18651 N
18652 s,\\\n,,
18653 b mline
18654 }
18655 t clear
18656 :clear
18657 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18658 t quote
18659 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18660 t quote
18661 b any
18662 :quote
18663 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18664 s/\[/\\&/g
18665 s/\]/\\&/g
18666 s/\$/$$/g
18667 H
18668 :any
18669 ${
18670 g
18671 s/^\n//
18672 s/\n/ /g
18673 p
18674 }
18675 '
18676 DEFS=`sed -n "$ac_script" confdefs.h`
18677
18678
18679 ac_libobjs=
18680 ac_ltlibobjs=
18681 U=
18682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18683 # 1. Remove the extension, and $U if already installed.
18684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18687 # will be set to the directory where LIBOBJS objects are built.
18688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18690 done
18691 LIBOBJS=$ac_libobjs
18692
18693 LTLIBOBJS=$ac_ltlibobjs
18694
18695
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18697 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18698 if test -n "$am_sleep_pid"; then
18699 # Hide warnings about reused PIDs.
18700 wait $am_sleep_pid 2>/dev/null
18701 fi
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18703 $as_echo "done" >&6; }
18704 if test -n "$EXEEXT"; then
18705 am__EXEEXT_TRUE=
18706 am__EXEEXT_FALSE='#'
18707 else
18708 am__EXEEXT_TRUE='#'
18709 am__EXEEXT_FALSE=
18710 fi
18711
18712 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18713 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18715 fi
18716 if test -z "${MINI_GMP_TRUE}" && test -z "${MINI_GMP_FALSE}"; then
18717 as_fn_error $? "conditional \"MINI_GMP\" was never defined.
18718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18719 fi
18720 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18721 as_fn_error $? "conditional \"AMDEP\" was never defined.
18722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18723 fi
18724 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18725 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18727 fi
18728
18729 : "${CONFIG_STATUS=./config.status}"
18730 ac_write_fail=0
18731 ac_clean_files_save=$ac_clean_files
18732 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18734 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18735 as_write_fail=0
18736 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18737 #! $SHELL
18738 # Generated by $as_me.
18739 # Run this file to recreate the current configuration.
18740 # Compiler output produced by configure, useful for debugging
18741 # configure, is in config.log if it exists.
18742
18743 debug=false
18744 ac_cs_recheck=false
18745 ac_cs_silent=false
18746
18747 SHELL=\${CONFIG_SHELL-$SHELL}
18748 export SHELL
18749 _ASEOF
18750 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18751 ## -------------------- ##
18752 ## M4sh Initialization. ##
18753 ## -------------------- ##
18754
18755 # Be more Bourne compatible
18756 DUALCASE=1; export DUALCASE # for MKS sh
18757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18758 emulate sh
18759 NULLCMD=:
18760 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18761 # is contrary to our usage. Disable this feature.
18762 alias -g '${1+"$@"}'='"$@"'
18763 setopt NO_GLOB_SUBST
18764 else
18765 case `(set -o) 2>/dev/null` in #(
18766 *posix*) :
18767 set -o posix ;; #(
18768 *) :
18769 ;;
18770 esac
18771 fi
18772
18773
18774 as_nl='
18775 '
18776 export as_nl
18777 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18778 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18779 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18781 # Prefer a ksh shell builtin over an external printf program on Solaris,
18782 # but without wasting forks for bash or zsh.
18783 if test -z "$BASH_VERSION$ZSH_VERSION" \
18784 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18785 as_echo='print -r --'
18786 as_echo_n='print -rn --'
18787 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18788 as_echo='printf %s\n'
18789 as_echo_n='printf %s'
18790 else
18791 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18792 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18793 as_echo_n='/usr/ucb/echo -n'
18794 else
18795 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18796 as_echo_n_body='eval
18797 arg=$1;
18798 case $arg in #(
18799 *"$as_nl"*)
18800 expr "X$arg" : "X\\(.*\\)$as_nl";
18801 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18802 esac;
18803 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18804 '
18805 export as_echo_n_body
18806 as_echo_n='sh -c $as_echo_n_body as_echo'
18807 fi
18808 export as_echo_body
18809 as_echo='sh -c $as_echo_body as_echo'
18810 fi
18811
18812 # The user is always right.
18813 if test "${PATH_SEPARATOR+set}" != set; then
18814 PATH_SEPARATOR=:
18815 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18816 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18817 PATH_SEPARATOR=';'
18818 }
18819 fi
18820
18821
18822 # IFS
18823 # We need space, tab and new line, in precisely that order. Quoting is
18824 # there to prevent editors from complaining about space-tab.
18825 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18826 # splitting by setting IFS to empty value.)
18827 IFS=" "" $as_nl"
18828
18829 # Find who we are. Look in the path if we contain no directory separator.
18830 as_myself=
18831 case $0 in #((
18832 *[\\/]* ) as_myself=$0 ;;
18833 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18834 for as_dir in $PATH
18835 do
18836 IFS=$as_save_IFS
18837 test -z "$as_dir" && as_dir=.
18838 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18839 done
18840 IFS=$as_save_IFS
18841
18842 ;;
18843 esac
18844 # We did not find ourselves, most probably we were run as `sh COMMAND'
18845 # in which case we are not to be found in the path.
18846 if test "x$as_myself" = x; then
18847 as_myself=$0
18848 fi
18849 if test ! -f "$as_myself"; then
18850 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18851 exit 1
18852 fi
18853
18854 # Unset variables that we do not need and which cause bugs (e.g. in
18855 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18856 # suppresses any "Segmentation fault" message there. '((' could
18857 # trigger a bug in pdksh 5.2.14.
18858 for as_var in BASH_ENV ENV MAIL MAILPATH
18859 do eval test x\${$as_var+set} = xset \
18860 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18861 done
18862 PS1='$ '
18863 PS2='> '
18864 PS4='+ '
18865
18866 # NLS nuisances.
18867 LC_ALL=C
18868 export LC_ALL
18869 LANGUAGE=C
18870 export LANGUAGE
18871
18872 # CDPATH.
18873 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18874
18875
18876 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18877 # ----------------------------------------
18878 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18879 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18880 # script with STATUS, using 1 if that was 0.
18881 as_fn_error ()
18882 {
18883 as_status=$1; test $as_status -eq 0 && as_status=1
18884 if test "$4"; then
18885 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18886 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18887 fi
18888 $as_echo "$as_me: error: $2" >&2
18889 as_fn_exit $as_status
18890 } # as_fn_error
18891
18892
18893 # as_fn_set_status STATUS
18894 # -----------------------
18895 # Set $? to STATUS, without forking.
18896 as_fn_set_status ()
18897 {
18898 return $1
18899 } # as_fn_set_status
18900
18901 # as_fn_exit STATUS
18902 # -----------------
18903 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18904 as_fn_exit ()
18905 {
18906 set +e
18907 as_fn_set_status $1
18908 exit $1
18909 } # as_fn_exit
18910
18911 # as_fn_unset VAR
18912 # ---------------
18913 # Portably unset VAR.
18914 as_fn_unset ()
18915 {
18916 { eval $1=; unset $1;}
18917 }
18918 as_unset=as_fn_unset
18919 # as_fn_append VAR VALUE
18920 # ----------------------
18921 # Append the text in VALUE to the end of the definition contained in VAR. Take
18922 # advantage of any shell optimizations that allow amortized linear growth over
18923 # repeated appends, instead of the typical quadratic growth present in naive
18924 # implementations.
18925 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18926 eval 'as_fn_append ()
18927 {
18928 eval $1+=\$2
18929 }'
18930 else
18931 as_fn_append ()
18932 {
18933 eval $1=\$$1\$2
18934 }
18935 fi # as_fn_append
18936
18937 # as_fn_arith ARG...
18938 # ------------------
18939 # Perform arithmetic evaluation on the ARGs, and store the result in the
18940 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18941 # must be portable across $(()) and expr.
18942 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18943 eval 'as_fn_arith ()
18944 {
18945 as_val=$(( $* ))
18946 }'
18947 else
18948 as_fn_arith ()
18949 {
18950 as_val=`expr "$@" || test $? -eq 1`
18951 }
18952 fi # as_fn_arith
18953
18954
18955 if expr a : '\(a\)' >/dev/null 2>&1 &&
18956 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18957 as_expr=expr
18958 else
18959 as_expr=false
18960 fi
18961
18962 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18963 as_basename=basename
18964 else
18965 as_basename=false
18966 fi
18967
18968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18969 as_dirname=dirname
18970 else
18971 as_dirname=false
18972 fi
18973
18974 as_me=`$as_basename -- "$0" ||
18975 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18976 X"$0" : 'X\(//\)$' \| \
18977 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18978 $as_echo X/"$0" |
18979 sed '/^.*\/\([^/][^/]*\)\/*$/{
18980 s//\1/
18981 q
18982 }
18983 /^X\/\(\/\/\)$/{
18984 s//\1/
18985 q
18986 }
18987 /^X\/\(\/\).*/{
18988 s//\1/
18989 q
18990 }
18991 s/.*/./; q'`
18992
18993 # Avoid depending upon Character Ranges.
18994 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18995 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18996 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18997 as_cr_digits='0123456789'
18998 as_cr_alnum=$as_cr_Letters$as_cr_digits
18999
19000 ECHO_C= ECHO_N= ECHO_T=
19001 case `echo -n x` in #(((((
19002 -n*)
19003 case `echo 'xy\c'` in
19004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19005 xy) ECHO_C='\c';;
19006 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19007 ECHO_T=' ';;
19008 esac;;
19009 *)
19010 ECHO_N='-n';;
19011 esac
19012
19013 rm -f conf$$ conf$$.exe conf$$.file
19014 if test -d conf$$.dir; then
19015 rm -f conf$$.dir/conf$$.file
19016 else
19017 rm -f conf$$.dir
19018 mkdir conf$$.dir 2>/dev/null
19019 fi
19020 if (echo >conf$$.file) 2>/dev/null; then
19021 if ln -s conf$$.file conf$$ 2>/dev/null; then
19022 as_ln_s='ln -s'
19023 # ... but there are two gotchas:
19024 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19025 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19026 # In both cases, we have to default to `cp -pR'.
19027 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19028 as_ln_s='cp -pR'
19029 elif ln conf$$.file conf$$ 2>/dev/null; then
19030 as_ln_s=ln
19031 else
19032 as_ln_s='cp -pR'
19033 fi
19034 else
19035 as_ln_s='cp -pR'
19036 fi
19037 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19038 rmdir conf$$.dir 2>/dev/null
19039
19040
19041 # as_fn_mkdir_p
19042 # -------------
19043 # Create "$as_dir" as a directory, including parents if necessary.
19044 as_fn_mkdir_p ()
19045 {
19046
19047 case $as_dir in #(
19048 -*) as_dir=./$as_dir;;
19049 esac
19050 test -d "$as_dir" || eval $as_mkdir_p || {
19051 as_dirs=
19052 while :; do
19053 case $as_dir in #(
19054 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19055 *) as_qdir=$as_dir;;
19056 esac
19057 as_dirs="'$as_qdir' $as_dirs"
19058 as_dir=`$as_dirname -- "$as_dir" ||
19059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19060 X"$as_dir" : 'X\(//\)[^/]' \| \
19061 X"$as_dir" : 'X\(//\)$' \| \
19062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19063 $as_echo X"$as_dir" |
19064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19065 s//\1/
19066 q
19067 }
19068 /^X\(\/\/\)[^/].*/{
19069 s//\1/
19070 q
19071 }
19072 /^X\(\/\/\)$/{
19073 s//\1/
19074 q
19075 }
19076 /^X\(\/\).*/{
19077 s//\1/
19078 q
19079 }
19080 s/.*/./; q'`
19081 test -d "$as_dir" && break
19082 done
19083 test -z "$as_dirs" || eval "mkdir $as_dirs"
19084 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19085
19086
19087 } # as_fn_mkdir_p
19088 if mkdir -p . 2>/dev/null; then
19089 as_mkdir_p='mkdir -p "$as_dir"'
19090 else
19091 test -d ./-p && rmdir ./-p
19092 as_mkdir_p=false
19093 fi
19094
19095
19096 # as_fn_executable_p FILE
19097 # -----------------------
19098 # Test if FILE is an executable regular file.
19099 as_fn_executable_p ()
19100 {
19101 test -f "$1" && test -x "$1"
19102 } # as_fn_executable_p
19103 as_test_x='test -x'
19104 as_executable_p=as_fn_executable_p
19105
19106 # Sed expression to map a string onto a valid CPP name.
19107 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19108
19109 # Sed expression to map a string onto a valid variable name.
19110 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19111
19112
19113 exec 6>&1
19114 ## ----------------------------------- ##
19115 ## Main body of $CONFIG_STATUS script. ##
19116 ## ----------------------------------- ##
19117 _ASEOF
19118 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19119
19120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19121 # Save the log message, to keep $0 and so on meaningful, and to
19122 # report actual input values of CONFIG_FILES etc. instead of their
19123 # values after options handling.
19124 ac_log="
19125 This file was extended by MPFR $as_me 4.1.0, which was
19126 generated by GNU Autoconf 2.69. Invocation command line was
19127
19128 CONFIG_FILES = $CONFIG_FILES
19129 CONFIG_HEADERS = $CONFIG_HEADERS
19130 CONFIG_LINKS = $CONFIG_LINKS
19131 CONFIG_COMMANDS = $CONFIG_COMMANDS
19132 $ $0 $@
19133
19134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19135 "
19136
19137 _ACEOF
19138
19139 case $ac_config_files in *"
19140 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19141 esac
19142
19143
19144
19145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19146 # Files that config.status was made for.
19147 config_files="$ac_config_files"
19148 config_commands="$ac_config_commands"
19149
19150 _ACEOF
19151
19152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19153 ac_cs_usage="\
19154 \`$as_me' instantiates files and other configuration actions
19155 from templates according to the current configuration. Unless the files
19156 and actions are specified as TAGs, all are instantiated by default.
19157
19158 Usage: $0 [OPTION]... [TAG]...
19159
19160 -h, --help print this help, then exit
19161 -V, --version print version number and configuration settings, then exit
19162 --config print configuration, then exit
19163 -q, --quiet, --silent
19164 do not print progress messages
19165 -d, --debug don't remove temporary files
19166 --recheck update $as_me by reconfiguring in the same conditions
19167 --file=FILE[:TEMPLATE]
19168 instantiate the configuration file FILE
19169
19170 Configuration files:
19171 $config_files
19172
19173 Configuration commands:
19174 $config_commands
19175
19176 Report bugs to the package provider."
19177
19178 _ACEOF
19179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19180 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19181 ac_cs_version="\\
19182 MPFR config.status 4.1.0
19183 configured by $0, generated by GNU Autoconf 2.69,
19184 with options \\"\$ac_cs_config\\"
19185
19186 Copyright (C) 2012 Free Software Foundation, Inc.
19187 This config.status script is free software; the Free Software Foundation
19188 gives unlimited permission to copy, distribute and modify it."
19189
19190 ac_pwd='$ac_pwd'
19191 srcdir='$srcdir'
19192 INSTALL='$INSTALL'
19193 MKDIR_P='$MKDIR_P'
19194 AWK='$AWK'
19195 test -n "\$AWK" || AWK=awk
19196 _ACEOF
19197
19198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19199 # The default lists apply if the user does not specify any file.
19200 ac_need_defaults=:
19201 while test $# != 0
19202 do
19203 case $1 in
19204 --*=?*)
19205 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19206 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19207 ac_shift=:
19208 ;;
19209 --*=)
19210 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19211 ac_optarg=
19212 ac_shift=:
19213 ;;
19214 *)
19215 ac_option=$1
19216 ac_optarg=$2
19217 ac_shift=shift
19218 ;;
19219 esac
19220
19221 case $ac_option in
19222 # Handling of the options.
19223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19224 ac_cs_recheck=: ;;
19225 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19226 $as_echo "$ac_cs_version"; exit ;;
19227 --config | --confi | --conf | --con | --co | --c )
19228 $as_echo "$ac_cs_config"; exit ;;
19229 --debug | --debu | --deb | --de | --d | -d )
19230 debug=: ;;
19231 --file | --fil | --fi | --f )
19232 $ac_shift
19233 case $ac_optarg in
19234 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19235 '') as_fn_error $? "missing file argument" ;;
19236 esac
19237 as_fn_append CONFIG_FILES " '$ac_optarg'"
19238 ac_need_defaults=false;;
19239 --he | --h | --help | --hel | -h )
19240 $as_echo "$ac_cs_usage"; exit ;;
19241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19242 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19243 ac_cs_silent=: ;;
19244
19245 # This is an error.
19246 -*) as_fn_error $? "unrecognized option: \`$1'
19247 Try \`$0 --help' for more information." ;;
19248
19249 *) as_fn_append ac_config_targets " $1"
19250 ac_need_defaults=false ;;
19251
19252 esac
19253 shift
19254 done
19255
19256 ac_configure_extra_args=
19257
19258 if $ac_cs_silent; then
19259 exec 6>/dev/null
19260 ac_configure_extra_args="$ac_configure_extra_args --silent"
19261 fi
19262
19263 _ACEOF
19264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19265 if \$ac_cs_recheck; then
19266 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19267 shift
19268 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19269 CONFIG_SHELL='$SHELL'
19270 export CONFIG_SHELL
19271 exec "\$@"
19272 fi
19273
19274 _ACEOF
19275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19276 exec 5>>config.log
19277 {
19278 echo
19279 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19280 ## Running $as_me. ##
19281 _ASBOX
19282 $as_echo "$ac_log"
19283 } >&5
19284
19285 _ACEOF
19286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19287 #
19288 # INIT-COMMANDS
19289 #
19290 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19291
19292
19293 # The HP-UX ksh and POSIX shell print the target directory to stdout
19294 # if CDPATH is set.
19295 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19296
19297 sed_quote_subst='$sed_quote_subst'
19298 double_quote_subst='$double_quote_subst'
19299 delay_variable_subst='$delay_variable_subst'
19300 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19301 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19302 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19303 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19304 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19305 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19306 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19307 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19308 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19309 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19310 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19311 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19312 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19313 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19314 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19315 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19316 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19317 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19318 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19319 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19320 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19321 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19322 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19323 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19324 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19325 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19326 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19327 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19328 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19329 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19330 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19331 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19332 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19333 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19334 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19335 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19336 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19337 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19338 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19339 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19340 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19341 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19342 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19343 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19344 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19345 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19346 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19347 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19348 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19349 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19350 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19351 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19352 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19353 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19354 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19355 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19356 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19357 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19358 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19359 lt_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"`'
19360 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19361 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19362 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19363 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19364 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19365 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19366 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19367 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19368 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19369 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19370 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19371 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19372 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19373 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19374 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19375 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19376 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19377 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19378 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19379 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19380 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19381 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19382 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19383 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19384 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19385 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19386 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19387 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19388 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19389 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19390 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19391 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19392 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19393 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19394 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19395 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19396 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19397 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19398 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19399 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19400 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19401 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19402 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19403 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19404 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19405 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19406 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19407 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19408 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19409 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19410 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19411 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19412 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19413 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19414 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19415 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19416 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19417 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19418 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19419 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19420 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19421 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19422 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19423 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19424 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19425 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19426 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19427 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19428 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19429 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19430 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19431 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19432 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19433 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19434 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19435 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19436
19437 LTCC='$LTCC'
19438 LTCFLAGS='$LTCFLAGS'
19439 compiler='$compiler_DEFAULT'
19440
19441 # A function that is used when there is no print builtin or printf.
19442 func_fallback_echo ()
19443 {
19444 eval 'cat <<_LTECHO_EOF
19445 \$1
19446 _LTECHO_EOF'
19447 }
19448
19449 # Quote evaled strings.
19450 for var in AS \
19451 DLLTOOL \
19452 OBJDUMP \
19453 SHELL \
19454 ECHO \
19455 PATH_SEPARATOR \
19456 SED \
19457 GREP \
19458 EGREP \
19459 FGREP \
19460 LD \
19461 NM \
19462 LN_S \
19463 lt_SP2NL \
19464 lt_NL2SP \
19465 reload_flag \
19466 deplibs_check_method \
19467 file_magic_cmd \
19468 file_magic_glob \
19469 want_nocaseglob \
19470 sharedlib_from_linklib_cmd \
19471 AR \
19472 AR_FLAGS \
19473 archiver_list_spec \
19474 STRIP \
19475 RANLIB \
19476 CC \
19477 CFLAGS \
19478 compiler \
19479 lt_cv_sys_global_symbol_pipe \
19480 lt_cv_sys_global_symbol_to_cdecl \
19481 lt_cv_sys_global_symbol_to_import \
19482 lt_cv_sys_global_symbol_to_c_name_address \
19483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19484 lt_cv_nm_interface \
19485 nm_file_list_spec \
19486 lt_cv_truncate_bin \
19487 lt_prog_compiler_no_builtin_flag \
19488 lt_prog_compiler_pic \
19489 lt_prog_compiler_wl \
19490 lt_prog_compiler_static \
19491 lt_cv_prog_compiler_c_o \
19492 need_locks \
19493 MANIFEST_TOOL \
19494 DSYMUTIL \
19495 NMEDIT \
19496 LIPO \
19497 OTOOL \
19498 OTOOL64 \
19499 shrext_cmds \
19500 export_dynamic_flag_spec \
19501 whole_archive_flag_spec \
19502 compiler_needs_object \
19503 with_gnu_ld \
19504 allow_undefined_flag \
19505 no_undefined_flag \
19506 hardcode_libdir_flag_spec \
19507 hardcode_libdir_separator \
19508 exclude_expsyms \
19509 include_expsyms \
19510 file_list_spec \
19511 variables_saved_for_relink \
19512 libname_spec \
19513 library_names_spec \
19514 soname_spec \
19515 install_override_mode \
19516 finish_eval \
19517 old_striplib \
19518 striplib; do
19519 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19520 *[\\\\\\\`\\"\\\$]*)
19521 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19522 ;;
19523 *)
19524 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19525 ;;
19526 esac
19527 done
19528
19529 # Double-quote double-evaled strings.
19530 for var in reload_cmds \
19531 old_postinstall_cmds \
19532 old_postuninstall_cmds \
19533 old_archive_cmds \
19534 extract_expsyms_cmds \
19535 old_archive_from_new_cmds \
19536 old_archive_from_expsyms_cmds \
19537 archive_cmds \
19538 archive_expsym_cmds \
19539 module_cmds \
19540 module_expsym_cmds \
19541 export_symbols_cmds \
19542 prelink_cmds \
19543 postlink_cmds \
19544 postinstall_cmds \
19545 postuninstall_cmds \
19546 finish_cmds \
19547 sys_lib_search_path_spec \
19548 configure_time_dlsearch_path \
19549 configure_time_lt_sys_library_path; do
19550 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19551 *[\\\\\\\`\\"\\\$]*)
19552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19553 ;;
19554 *)
19555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19556 ;;
19557 esac
19558 done
19559
19560 ac_aux_dir='$ac_aux_dir'
19561
19562 # See if we are running on zsh, and set the options that allow our
19563 # commands through without removal of \ escapes INIT.
19564 if test -n "\${ZSH_VERSION+set}"; then
19565 setopt NO_GLOB_SUBST
19566 fi
19567
19568
19569 PACKAGE='$PACKAGE'
19570 VERSION='$VERSION'
19571 RM='$RM'
19572 ofile='$ofile'
19573
19574
19575
19576
19577 _ACEOF
19578
19579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19580
19581 # Handling of arguments.
19582 for ac_config_target in $ac_config_targets
19583 do
19584 case $ac_config_target in
19585 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19586 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19587 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19588 "mpfr.pc") CONFIG_FILES="$CONFIG_FILES mpfr.pc" ;;
19589 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19590 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19591 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19592 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
19593 "src/mparam.h") CONFIG_FILES="$CONFIG_FILES src/mparam.h:src/mparam_h.in" ;;
19594 "tools/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tools/bench/Makefile" ;;
19595
19596 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19597 esac
19598 done
19599
19600
19601 # If the user did not use the arguments to specify the items to instantiate,
19602 # then the envvar interface is used. Set only those that are not.
19603 # We use the long form for the default assignment because of an extremely
19604 # bizarre bug on SunOS 4.1.3.
19605 if $ac_need_defaults; then
19606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19608 fi
19609
19610 # Have a temporary directory for convenience. Make it in the build tree
19611 # simply because there is no reason against having it here, and in addition,
19612 # creating and moving files from /tmp can sometimes cause problems.
19613 # Hook for its removal unless debugging.
19614 # Note that there is a small window in which the directory will not be cleaned:
19615 # after its creation but before its name has been assigned to `$tmp'.
19616 $debug ||
19617 {
19618 tmp= ac_tmp=
19619 trap 'exit_status=$?
19620 : "${ac_tmp:=$tmp}"
19621 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19622 ' 0
19623 trap 'as_fn_exit 1' 1 2 13 15
19624 }
19625 # Create a (secure) tmp directory for tmp files.
19626
19627 {
19628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19629 test -d "$tmp"
19630 } ||
19631 {
19632 tmp=./conf$$-$RANDOM
19633 (umask 077 && mkdir "$tmp")
19634 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19635 ac_tmp=$tmp
19636
19637 # Set up the scripts for CONFIG_FILES section.
19638 # No need to generate them if there are no CONFIG_FILES.
19639 # This happens for instance with `./config.status config.h'.
19640 if test -n "$CONFIG_FILES"; then
19641
19642
19643 ac_cr=`echo X | tr X '\015'`
19644 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19645 # But we know of no other shell where ac_cr would be empty at this
19646 # point, so we can use a bashism as a fallback.
19647 if test "x$ac_cr" = x; then
19648 eval ac_cr=\$\'\\r\'
19649 fi
19650 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19651 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19652 ac_cs_awk_cr='\\r'
19653 else
19654 ac_cs_awk_cr=$ac_cr
19655 fi
19656
19657 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19658 _ACEOF
19659
19660
19661 {
19662 echo "cat >conf$$subs.awk <<_ACEOF" &&
19663 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19664 echo "_ACEOF"
19665 } >conf$$subs.sh ||
19666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19667 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19668 ac_delim='%!_!# '
19669 for ac_last_try in false false false false false :; do
19670 . ./conf$$subs.sh ||
19671 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19672
19673 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19674 if test $ac_delim_n = $ac_delim_num; then
19675 break
19676 elif $ac_last_try; then
19677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19678 else
19679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19680 fi
19681 done
19682 rm -f conf$$subs.sh
19683
19684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19685 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19686 _ACEOF
19687 sed -n '
19688 h
19689 s/^/S["/; s/!.*/"]=/
19690 p
19691 g
19692 s/^[^!]*!//
19693 :repl
19694 t repl
19695 s/'"$ac_delim"'$//
19696 t delim
19697 :nl
19698 h
19699 s/\(.\{148\}\)..*/\1/
19700 t more1
19701 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19702 p
19703 n
19704 b repl
19705 :more1
19706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19707 p
19708 g
19709 s/.\{148\}//
19710 t nl
19711 :delim
19712 h
19713 s/\(.\{148\}\)..*/\1/
19714 t more2
19715 s/["\\]/\\&/g; s/^/"/; s/$/"/
19716 p
19717 b
19718 :more2
19719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19720 p
19721 g
19722 s/.\{148\}//
19723 t delim
19724 ' <conf$$subs.awk | sed '
19725 /^[^""]/{
19726 N
19727 s/\n//
19728 }
19729 ' >>$CONFIG_STATUS || ac_write_fail=1
19730 rm -f conf$$subs.awk
19731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19732 _ACAWK
19733 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19734 for (key in S) S_is_set[key] = 1
19735 FS = ""
19736
19737 }
19738 {
19739 line = $ 0
19740 nfields = split(line, field, "@")
19741 substed = 0
19742 len = length(field[1])
19743 for (i = 2; i < nfields; i++) {
19744 key = field[i]
19745 keylen = length(key)
19746 if (S_is_set[key]) {
19747 value = S[key]
19748 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19749 len += length(value) + length(field[++i])
19750 substed = 1
19751 } else
19752 len += 1 + keylen
19753 }
19754
19755 print line
19756 }
19757
19758 _ACAWK
19759 _ACEOF
19760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19761 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19762 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19763 else
19764 cat
19765 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19766 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19767 _ACEOF
19768
19769 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19770 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19771 # trailing colons and then remove the whole line if VPATH becomes empty
19772 # (actually we leave an empty line to preserve line numbers).
19773 if test "x$srcdir" = x.; then
19774 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19775 h
19776 s///
19777 s/^/:/
19778 s/[ ]*$/:/
19779 s/:\$(srcdir):/:/g
19780 s/:\${srcdir}:/:/g
19781 s/:@srcdir@:/:/g
19782 s/^:*//
19783 s/:*$//
19784 x
19785 s/\(=[ ]*\).*/\1/
19786 G
19787 s/\n//
19788 s/^[^=]*=[ ]*$//
19789 }'
19790 fi
19791
19792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19793 fi # test -n "$CONFIG_FILES"
19794
19795
19796 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
19797 shift
19798 for ac_tag
19799 do
19800 case $ac_tag in
19801 :[FHLC]) ac_mode=$ac_tag; continue;;
19802 esac
19803 case $ac_mode$ac_tag in
19804 :[FHL]*:*);;
19805 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19806 :[FH]-) ac_tag=-:-;;
19807 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19808 esac
19809 ac_save_IFS=$IFS
19810 IFS=:
19811 set x $ac_tag
19812 IFS=$ac_save_IFS
19813 shift
19814 ac_file=$1
19815 shift
19816
19817 case $ac_mode in
19818 :L) ac_source=$1;;
19819 :[FH])
19820 ac_file_inputs=
19821 for ac_f
19822 do
19823 case $ac_f in
19824 -) ac_f="$ac_tmp/stdin";;
19825 *) # Look for the file first in the build tree, then in the source tree
19826 # (if the path is not absolute). The absolute path cannot be DOS-style,
19827 # because $ac_f cannot contain `:'.
19828 test -f "$ac_f" ||
19829 case $ac_f in
19830 [\\/$]*) false;;
19831 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19832 esac ||
19833 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19834 esac
19835 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19836 as_fn_append ac_file_inputs " '$ac_f'"
19837 done
19838
19839 # Let's still pretend it is `configure' which instantiates (i.e., don't
19840 # use $as_me), people would be surprised to read:
19841 # /* config.h. Generated by config.status. */
19842 configure_input='Generated from '`
19843 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19844 `' by configure.'
19845 if test x"$ac_file" != x-; then
19846 configure_input="$ac_file. $configure_input"
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19848 $as_echo "$as_me: creating $ac_file" >&6;}
19849 fi
19850 # Neutralize special characters interpreted by sed in replacement strings.
19851 case $configure_input in #(
19852 *\&* | *\|* | *\\* )
19853 ac_sed_conf_input=`$as_echo "$configure_input" |
19854 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19855 *) ac_sed_conf_input=$configure_input;;
19856 esac
19857
19858 case $ac_tag in
19859 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19861 esac
19862 ;;
19863 esac
19864
19865 ac_dir=`$as_dirname -- "$ac_file" ||
19866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19867 X"$ac_file" : 'X\(//\)[^/]' \| \
19868 X"$ac_file" : 'X\(//\)$' \| \
19869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19870 $as_echo X"$ac_file" |
19871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19872 s//\1/
19873 q
19874 }
19875 /^X\(\/\/\)[^/].*/{
19876 s//\1/
19877 q
19878 }
19879 /^X\(\/\/\)$/{
19880 s//\1/
19881 q
19882 }
19883 /^X\(\/\).*/{
19884 s//\1/
19885 q
19886 }
19887 s/.*/./; q'`
19888 as_dir="$ac_dir"; as_fn_mkdir_p
19889 ac_builddir=.
19890
19891 case "$ac_dir" in
19892 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19893 *)
19894 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19895 # A ".." for each directory in $ac_dir_suffix.
19896 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19897 case $ac_top_builddir_sub in
19898 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19899 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19900 esac ;;
19901 esac
19902 ac_abs_top_builddir=$ac_pwd
19903 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19904 # for backward compatibility:
19905 ac_top_builddir=$ac_top_build_prefix
19906
19907 case $srcdir in
19908 .) # We are building in place.
19909 ac_srcdir=.
19910 ac_top_srcdir=$ac_top_builddir_sub
19911 ac_abs_top_srcdir=$ac_pwd ;;
19912 [\\/]* | ?:[\\/]* ) # Absolute name.
19913 ac_srcdir=$srcdir$ac_dir_suffix;
19914 ac_top_srcdir=$srcdir
19915 ac_abs_top_srcdir=$srcdir ;;
19916 *) # Relative name.
19917 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19918 ac_top_srcdir=$ac_top_build_prefix$srcdir
19919 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19920 esac
19921 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19922
19923
19924 case $ac_mode in
19925 :F)
19926 #
19927 # CONFIG_FILE
19928 #
19929
19930 case $INSTALL in
19931 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19932 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19933 esac
19934 ac_MKDIR_P=$MKDIR_P
19935 case $MKDIR_P in
19936 [\\/$]* | ?:[\\/]* ) ;;
19937 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19938 esac
19939 _ACEOF
19940
19941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19942 # If the template does not know about datarootdir, expand it.
19943 # FIXME: This hack should be removed a few years after 2.60.
19944 ac_datarootdir_hack=; ac_datarootdir_seen=
19945 ac_sed_dataroot='
19946 /datarootdir/ {
19947 p
19948 q
19949 }
19950 /@datadir@/p
19951 /@docdir@/p
19952 /@infodir@/p
19953 /@localedir@/p
19954 /@mandir@/p'
19955 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19956 *datarootdir*) ac_datarootdir_seen=yes;;
19957 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19959 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19960 _ACEOF
19961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19962 ac_datarootdir_hack='
19963 s&@datadir@&$datadir&g
19964 s&@docdir@&$docdir&g
19965 s&@infodir@&$infodir&g
19966 s&@localedir@&$localedir&g
19967 s&@mandir@&$mandir&g
19968 s&\\\${datarootdir}&$datarootdir&g' ;;
19969 esac
19970 _ACEOF
19971
19972 # Neutralize VPATH when `$srcdir' = `.'.
19973 # Shell code in configure.ac might set extrasub.
19974 # FIXME: do we really want to maintain this feature?
19975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19976 ac_sed_extra="$ac_vpsub
19977 $extrasub
19978 _ACEOF
19979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19980 :t
19981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19982 s|@configure_input@|$ac_sed_conf_input|;t t
19983 s&@top_builddir@&$ac_top_builddir_sub&;t t
19984 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19985 s&@srcdir@&$ac_srcdir&;t t
19986 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19987 s&@top_srcdir@&$ac_top_srcdir&;t t
19988 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19989 s&@builddir@&$ac_builddir&;t t
19990 s&@abs_builddir@&$ac_abs_builddir&;t t
19991 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19992 s&@INSTALL@&$ac_INSTALL&;t t
19993 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19994 $ac_datarootdir_hack
19995 "
19996 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19997 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19998
19999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20000 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20002 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20004 which seems to be undefined. Please make sure it is defined" >&5
20005 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20006 which seems to be undefined. Please make sure it is defined" >&2;}
20007
20008 rm -f "$ac_tmp/stdin"
20009 case $ac_file in
20010 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20011 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20012 esac \
20013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20014 ;;
20015
20016
20017 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20018 $as_echo "$as_me: executing $ac_file commands" >&6;}
20019 ;;
20020 esac
20021
20022
20023 case $ac_file$ac_mode in
20024 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20025 # Older Autoconf quotes --file arguments for eval, but not when files
20026 # are listed without --file. Let's play safe and only enable the eval
20027 # if we detect the quoting.
20028 # TODO: see whether this extra hack can be removed once we start
20029 # requiring Autoconf 2.70 or later.
20030 case $CONFIG_FILES in #(
20031 *\'*) :
20032 eval set x "$CONFIG_FILES" ;; #(
20033 *) :
20034 set x $CONFIG_FILES ;; #(
20035 *) :
20036 ;;
20037 esac
20038 shift
20039 # Used to flag and report bootstrapping failures.
20040 am_rc=0
20041 for am_mf
20042 do
20043 # Strip MF so we end up with the name of the file.
20044 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20045 # Check whether this is an Automake generated Makefile which includes
20046 # dependency-tracking related rules and includes.
20047 # Grep'ing the whole file directly is not great: AIX grep has a line
20048 # limit of 2048, but all sed's we know have understand at least 4000.
20049 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20050 || continue
20051 am_dirpart=`$as_dirname -- "$am_mf" ||
20052 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20053 X"$am_mf" : 'X\(//\)[^/]' \| \
20054 X"$am_mf" : 'X\(//\)$' \| \
20055 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20056 $as_echo X"$am_mf" |
20057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20058 s//\1/
20059 q
20060 }
20061 /^X\(\/\/\)[^/].*/{
20062 s//\1/
20063 q
20064 }
20065 /^X\(\/\/\)$/{
20066 s//\1/
20067 q
20068 }
20069 /^X\(\/\).*/{
20070 s//\1/
20071 q
20072 }
20073 s/.*/./; q'`
20074 am_filepart=`$as_basename -- "$am_mf" ||
20075 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20076 X"$am_mf" : 'X\(//\)$' \| \
20077 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20078 $as_echo X/"$am_mf" |
20079 sed '/^.*\/\([^/][^/]*\)\/*$/{
20080 s//\1/
20081 q
20082 }
20083 /^X\/\(\/\/\)$/{
20084 s//\1/
20085 q
20086 }
20087 /^X\/\(\/\).*/{
20088 s//\1/
20089 q
20090 }
20091 s/.*/./; q'`
20092 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20093 && sed -e '/# am--include-marker/d' "$am_filepart" \
20094 | $MAKE -f - am--depfiles" >&5
20095 (cd "$am_dirpart" \
20096 && sed -e '/# am--include-marker/d' "$am_filepart" \
20097 | $MAKE -f - am--depfiles) >&5 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } || am_rc=$?
20101 done
20102 if test $am_rc -ne 0; then
20103 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20105 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20106 for automatic dependency tracking. If GNU make was not used, consider
20107 re-running the configure script with MAKE=\"gmake\" (or whatever is
20108 necessary). You can also try re-running configure with the
20109 '--disable-dependency-tracking' option to at least be able to build
20110 the package (albeit without support for automatic dependency tracking).
20111 See \`config.log' for more details" "$LINENO" 5; }
20112 fi
20113 { am_dirpart=; unset am_dirpart;}
20114 { am_filepart=; unset am_filepart;}
20115 { am_mf=; unset am_mf;}
20116 { am_rc=; unset am_rc;}
20117 rm -f conftest-deps.mk
20118 }
20119 ;;
20120 "libtool":C)
20121
20122 # See if we are running on zsh, and set the options that allow our
20123 # commands through without removal of \ escapes.
20124 if test -n "${ZSH_VERSION+set}"; then
20125 setopt NO_GLOB_SUBST
20126 fi
20127
20128 cfgfile=${ofile}T
20129 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20130 $RM "$cfgfile"
20131
20132 cat <<_LT_EOF >> "$cfgfile"
20133 #! $SHELL
20134 # Generated automatically by $as_me ($PACKAGE) $VERSION
20135 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20136
20137 # Provide generalized library-building support services.
20138 # Written by Gordon Matzigkeit, 1996
20139
20140 # Copyright (C) 2014 Free Software Foundation, Inc.
20141 # This is free software; see the source for copying conditions. There is NO
20142 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20143
20144 # GNU Libtool is free software; you can redistribute it and/or modify
20145 # it under the terms of the GNU General Public License as published by
20146 # the Free Software Foundation; either version 2 of of the License, or
20147 # (at your option) any later version.
20148 #
20149 # As a special exception to the GNU General Public License, if you
20150 # distribute this file as part of a program or library that is built
20151 # using GNU Libtool, you may include this file under the same
20152 # distribution terms that you use for the rest of that program.
20153 #
20154 # GNU Libtool is distributed in the hope that it will be useful, but
20155 # WITHOUT ANY WARRANTY; without even the implied warranty of
20156 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20157 # GNU General Public License for more details.
20158 #
20159 # You should have received a copy of the GNU General Public License
20160 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20161
20162
20163 # The names of the tagged configurations supported by this script.
20164 available_tags=''
20165
20166 # Configured defaults for sys_lib_dlsearch_path munging.
20167 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20168
20169 # ### BEGIN LIBTOOL CONFIG
20170
20171 # Which release of libtool.m4 was used?
20172 macro_version=$macro_version
20173 macro_revision=$macro_revision
20174
20175 # Assembler program.
20176 AS=$lt_AS
20177
20178 # DLL creation program.
20179 DLLTOOL=$lt_DLLTOOL
20180
20181 # Object dumper program.
20182 OBJDUMP=$lt_OBJDUMP
20183
20184 # Whether or not to build shared libraries.
20185 build_libtool_libs=$enable_shared
20186
20187 # Whether or not to build static libraries.
20188 build_old_libs=$enable_static
20189
20190 # What type of objects to build.
20191 pic_mode=$pic_mode
20192
20193 # Whether or not to optimize for fast installation.
20194 fast_install=$enable_fast_install
20195
20196 # Shared archive member basename,for filename based shared library versioning on AIX.
20197 shared_archive_member_spec=$shared_archive_member_spec
20198
20199 # Shell to use when invoking shell scripts.
20200 SHELL=$lt_SHELL
20201
20202 # An echo program that protects backslashes.
20203 ECHO=$lt_ECHO
20204
20205 # The PATH separator for the build system.
20206 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20207
20208 # The host system.
20209 host_alias=$host_alias
20210 host=$host
20211 host_os=$host_os
20212
20213 # The build system.
20214 build_alias=$build_alias
20215 build=$build
20216 build_os=$build_os
20217
20218 # A sed program that does not truncate output.
20219 SED=$lt_SED
20220
20221 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20222 Xsed="\$SED -e 1s/^X//"
20223
20224 # A grep program that handles long lines.
20225 GREP=$lt_GREP
20226
20227 # An ERE matcher.
20228 EGREP=$lt_EGREP
20229
20230 # A literal string matcher.
20231 FGREP=$lt_FGREP
20232
20233 # A BSD- or MS-compatible name lister.
20234 NM=$lt_NM
20235
20236 # Whether we need soft or hard links.
20237 LN_S=$lt_LN_S
20238
20239 # What is the maximum length of a command?
20240 max_cmd_len=$max_cmd_len
20241
20242 # Object file suffix (normally "o").
20243 objext=$ac_objext
20244
20245 # Executable file suffix (normally "").
20246 exeext=$exeext
20247
20248 # whether the shell understands "unset".
20249 lt_unset=$lt_unset
20250
20251 # turn spaces into newlines.
20252 SP2NL=$lt_lt_SP2NL
20253
20254 # turn newlines into spaces.
20255 NL2SP=$lt_lt_NL2SP
20256
20257 # convert \$build file names to \$host format.
20258 to_host_file_cmd=$lt_cv_to_host_file_cmd
20259
20260 # convert \$build files to toolchain format.
20261 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20262
20263 # Method to check whether dependent libraries are shared objects.
20264 deplibs_check_method=$lt_deplibs_check_method
20265
20266 # Command to use when deplibs_check_method = "file_magic".
20267 file_magic_cmd=$lt_file_magic_cmd
20268
20269 # How to find potential files when deplibs_check_method = "file_magic".
20270 file_magic_glob=$lt_file_magic_glob
20271
20272 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20273 want_nocaseglob=$lt_want_nocaseglob
20274
20275 # Command to associate shared and link libraries.
20276 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20277
20278 # The archiver.
20279 AR=$lt_AR
20280
20281 # Flags to create an archive.
20282 AR_FLAGS=$lt_AR_FLAGS
20283
20284 # How to feed a file listing to the archiver.
20285 archiver_list_spec=$lt_archiver_list_spec
20286
20287 # A symbol stripping program.
20288 STRIP=$lt_STRIP
20289
20290 # Commands used to install an old-style archive.
20291 RANLIB=$lt_RANLIB
20292 old_postinstall_cmds=$lt_old_postinstall_cmds
20293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20294
20295 # Whether to use a lock for old archive extraction.
20296 lock_old_archive_extraction=$lock_old_archive_extraction
20297
20298 # A C compiler.
20299 LTCC=$lt_CC
20300
20301 # LTCC compiler flags.
20302 LTCFLAGS=$lt_CFLAGS
20303
20304 # Take the output of nm and produce a listing of raw symbols and C names.
20305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20306
20307 # Transform the output of nm in a proper C declaration.
20308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20309
20310 # Transform the output of nm into a list of symbols to manually relocate.
20311 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20312
20313 # Transform the output of nm in a C name address pair.
20314 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20315
20316 # Transform the output of nm in a C name address pair when lib prefix is needed.
20317 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20318
20319 # The name lister interface.
20320 nm_interface=$lt_lt_cv_nm_interface
20321
20322 # Specify filename containing input files for \$NM.
20323 nm_file_list_spec=$lt_nm_file_list_spec
20324
20325 # The root where to search for dependent libraries,and where our libraries should be installed.
20326 lt_sysroot=$lt_sysroot
20327
20328 # Command to truncate a binary pipe.
20329 lt_truncate_bin=$lt_lt_cv_truncate_bin
20330
20331 # The name of the directory that contains temporary libtool files.
20332 objdir=$objdir
20333
20334 # Used to examine libraries when file_magic_cmd begins with "file".
20335 MAGIC_CMD=$MAGIC_CMD
20336
20337 # Must we lock files when doing compilation?
20338 need_locks=$lt_need_locks
20339
20340 # Manifest tool.
20341 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20342
20343 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20344 DSYMUTIL=$lt_DSYMUTIL
20345
20346 # Tool to change global to local symbols on Mac OS X.
20347 NMEDIT=$lt_NMEDIT
20348
20349 # Tool to manipulate fat objects and archives on Mac OS X.
20350 LIPO=$lt_LIPO
20351
20352 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20353 OTOOL=$lt_OTOOL
20354
20355 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20356 OTOOL64=$lt_OTOOL64
20357
20358 # Old archive suffix (normally "a").
20359 libext=$libext
20360
20361 # Shared library suffix (normally ".so").
20362 shrext_cmds=$lt_shrext_cmds
20363
20364 # The commands to extract the exported symbol list from a shared archive.
20365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20366
20367 # Variables whose values should be saved in libtool wrapper scripts and
20368 # restored at link time.
20369 variables_saved_for_relink=$lt_variables_saved_for_relink
20370
20371 # Do we need the "lib" prefix for modules?
20372 need_lib_prefix=$need_lib_prefix
20373
20374 # Do we need a version for libraries?
20375 need_version=$need_version
20376
20377 # Library versioning type.
20378 version_type=$version_type
20379
20380 # Shared library runtime path variable.
20381 runpath_var=$runpath_var
20382
20383 # Shared library path variable.
20384 shlibpath_var=$shlibpath_var
20385
20386 # Is shlibpath searched before the hard-coded library search path?
20387 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20388
20389 # Format of library name prefix.
20390 libname_spec=$lt_libname_spec
20391
20392 # List of archive names. First name is the real one, the rest are links.
20393 # The last name is the one that the linker finds with -lNAME
20394 library_names_spec=$lt_library_names_spec
20395
20396 # The coded name of the library, if different from the real name.
20397 soname_spec=$lt_soname_spec
20398
20399 # Permission mode override for installation of shared libraries.
20400 install_override_mode=$lt_install_override_mode
20401
20402 # Command to use after installation of a shared archive.
20403 postinstall_cmds=$lt_postinstall_cmds
20404
20405 # Command to use after uninstallation of a shared archive.
20406 postuninstall_cmds=$lt_postuninstall_cmds
20407
20408 # Commands used to finish a libtool library installation in a directory.
20409 finish_cmds=$lt_finish_cmds
20410
20411 # As "finish_cmds", except a single script fragment to be evaled but
20412 # not shown.
20413 finish_eval=$lt_finish_eval
20414
20415 # Whether we should hardcode library paths into libraries.
20416 hardcode_into_libs=$hardcode_into_libs
20417
20418 # Compile-time system search path for libraries.
20419 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20420
20421 # Detected run-time system search path for libraries.
20422 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20423
20424 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20425 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20426
20427 # Whether dlopen is supported.
20428 dlopen_support=$enable_dlopen
20429
20430 # Whether dlopen of programs is supported.
20431 dlopen_self=$enable_dlopen_self
20432
20433 # Whether dlopen of statically linked programs is supported.
20434 dlopen_self_static=$enable_dlopen_self_static
20435
20436 # Commands to strip libraries.
20437 old_striplib=$lt_old_striplib
20438 striplib=$lt_striplib
20439
20440
20441 # The linker used to build libraries.
20442 LD=$lt_LD
20443
20444 # How to create reloadable object files.
20445 reload_flag=$lt_reload_flag
20446 reload_cmds=$lt_reload_cmds
20447
20448 # Commands used to build an old-style archive.
20449 old_archive_cmds=$lt_old_archive_cmds
20450
20451 # A language specific compiler.
20452 CC=$lt_compiler
20453
20454 # Is the compiler the GNU compiler?
20455 with_gcc=$GCC
20456
20457 # Compiler flag to turn off builtin functions.
20458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20459
20460 # Additional compiler flags for building library objects.
20461 pic_flag=$lt_lt_prog_compiler_pic
20462
20463 # How to pass a linker flag through the compiler.
20464 wl=$lt_lt_prog_compiler_wl
20465
20466 # Compiler flag to prevent dynamic linking.
20467 link_static_flag=$lt_lt_prog_compiler_static
20468
20469 # Does compiler simultaneously support -c and -o options?
20470 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20471
20472 # Whether or not to add -lc for building shared libraries.
20473 build_libtool_need_lc=$archive_cmds_need_lc
20474
20475 # Whether or not to disallow shared libs when runtime libs are static.
20476 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20477
20478 # Compiler flag to allow reflexive dlopens.
20479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20480
20481 # Compiler flag to generate shared objects directly from archives.
20482 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20483
20484 # Whether the compiler copes with passing no objects directly.
20485 compiler_needs_object=$lt_compiler_needs_object
20486
20487 # Create an old-style archive from a shared archive.
20488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20489
20490 # Create a temporary old-style archive to link instead of a shared archive.
20491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20492
20493 # Commands used to build a shared archive.
20494 archive_cmds=$lt_archive_cmds
20495 archive_expsym_cmds=$lt_archive_expsym_cmds
20496
20497 # Commands used to build a loadable module if different from building
20498 # a shared archive.
20499 module_cmds=$lt_module_cmds
20500 module_expsym_cmds=$lt_module_expsym_cmds
20501
20502 # Whether we are building with GNU ld or not.
20503 with_gnu_ld=$lt_with_gnu_ld
20504
20505 # Flag that allows shared libraries with undefined symbols to be built.
20506 allow_undefined_flag=$lt_allow_undefined_flag
20507
20508 # Flag that enforces no undefined symbols.
20509 no_undefined_flag=$lt_no_undefined_flag
20510
20511 # Flag to hardcode \$libdir into a binary during linking.
20512 # This must work even if \$libdir does not exist
20513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20514
20515 # Whether we need a single "-rpath" flag with a separated argument.
20516 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20517
20518 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20519 # DIR into the resulting binary.
20520 hardcode_direct=$hardcode_direct
20521
20522 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20523 # DIR into the resulting binary and the resulting library dependency is
20524 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20525 # library is relocated.
20526 hardcode_direct_absolute=$hardcode_direct_absolute
20527
20528 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20529 # into the resulting binary.
20530 hardcode_minus_L=$hardcode_minus_L
20531
20532 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20533 # into the resulting binary.
20534 hardcode_shlibpath_var=$hardcode_shlibpath_var
20535
20536 # Set to "yes" if building a shared library automatically hardcodes DIR
20537 # into the library and all subsequent libraries and executables linked
20538 # against it.
20539 hardcode_automatic=$hardcode_automatic
20540
20541 # Set to yes if linker adds runtime paths of dependent libraries
20542 # to runtime path list.
20543 inherit_rpath=$inherit_rpath
20544
20545 # Whether libtool must link a program against all its dependency libraries.
20546 link_all_deplibs=$link_all_deplibs
20547
20548 # Set to "yes" if exported symbols are required.
20549 always_export_symbols=$always_export_symbols
20550
20551 # The commands to list exported symbols.
20552 export_symbols_cmds=$lt_export_symbols_cmds
20553
20554 # Symbols that should not be listed in the preloaded symbols.
20555 exclude_expsyms=$lt_exclude_expsyms
20556
20557 # Symbols that must always be exported.
20558 include_expsyms=$lt_include_expsyms
20559
20560 # Commands necessary for linking programs (against libraries) with templates.
20561 prelink_cmds=$lt_prelink_cmds
20562
20563 # Commands necessary for finishing linking programs.
20564 postlink_cmds=$lt_postlink_cmds
20565
20566 # Specify filename containing input files.
20567 file_list_spec=$lt_file_list_spec
20568
20569 # How to hardcode a shared library path into an executable.
20570 hardcode_action=$hardcode_action
20571
20572 # ### END LIBTOOL CONFIG
20573
20574 _LT_EOF
20575
20576 cat <<'_LT_EOF' >> "$cfgfile"
20577
20578 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20579
20580 # func_munge_path_list VARIABLE PATH
20581 # -----------------------------------
20582 # VARIABLE is name of variable containing _space_ separated list of
20583 # directories to be munged by the contents of PATH, which is string
20584 # having a format:
20585 # "DIR[:DIR]:"
20586 # string "DIR[ DIR]" will be prepended to VARIABLE
20587 # ":DIR[:DIR]"
20588 # string "DIR[ DIR]" will be appended to VARIABLE
20589 # "DIRP[:DIRP]::[DIRA:]DIRA"
20590 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20591 # "DIRA[ DIRA]" will be appended to VARIABLE
20592 # "DIR[:DIR]"
20593 # VARIABLE will be replaced by "DIR[ DIR]"
20594 func_munge_path_list ()
20595 {
20596 case x$2 in
20597 x)
20598 ;;
20599 *:)
20600 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20601 ;;
20602 x:*)
20603 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20604 ;;
20605 *::*)
20606 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20607 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20608 ;;
20609 *)
20610 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20611 ;;
20612 esac
20613 }
20614
20615
20616 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20617 func_cc_basename ()
20618 {
20619 for cc_temp in $*""; do
20620 case $cc_temp in
20621 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20622 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20623 \-*) ;;
20624 *) break;;
20625 esac
20626 done
20627 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20628 }
20629
20630
20631 # ### END FUNCTIONS SHARED WITH CONFIGURE
20632
20633 _LT_EOF
20634
20635 case $host_os in
20636 aix3*)
20637 cat <<\_LT_EOF >> "$cfgfile"
20638 # AIX sometimes has problems with the GCC collect2 program. For some
20639 # reason, if we set the COLLECT_NAMES environment variable, the problems
20640 # vanish in a puff of smoke.
20641 if test set != "${COLLECT_NAMES+set}"; then
20642 COLLECT_NAMES=
20643 export COLLECT_NAMES
20644 fi
20645 _LT_EOF
20646 ;;
20647 esac
20648
20649
20650 ltmain=$ac_aux_dir/ltmain.sh
20651
20652
20653 # We use sed instead of cat because bash on DJGPP gets confused if
20654 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20655 # text mode, it properly converts lines to CR/LF. This bash problem
20656 # is reportedly fixed, but why not run on old versions too?
20657 sed '$q' "$ltmain" >> "$cfgfile" \
20658 || (rm -f "$cfgfile"; exit 1)
20659
20660 mv -f "$cfgfile" "$ofile" ||
20661 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20662 chmod +x "$ofile"
20663
20664 ;;
20665
20666 esac
20667 done # for ac_tag
20668
20669
20670 as_fn_exit 0
20671 _ACEOF
20672 ac_clean_files=$ac_clean_files_save
20673
20674 test $ac_write_fail = 0 ||
20675 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20676
20677
20678 # configure is writing to config.log, and then calls config.status.
20679 # config.status does its own redirection, appending to config.log.
20680 # Unfortunately, on DOS this fails, as config.log is still kept open
20681 # by configure, so config.status won't be able to write to it; its
20682 # output is simply discarded. So we exec the FD to /dev/null,
20683 # effectively closing config.log, so it can be properly (re)opened and
20684 # appended to by config.status. When coming back to configure, we
20685 # need to make the FD available again.
20686 if test "$no_create" != yes; then
20687 ac_cs_success=:
20688 ac_config_status_args=
20689 test "$silent" = yes &&
20690 ac_config_status_args="$ac_config_status_args --quiet"
20691 exec 5>/dev/null
20692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20693 exec 5>>config.log
20694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20695 # would make configure fail if this is the last instruction.
20696 $ac_cs_success || as_fn_exit 1
20697 fi
20698 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20700 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20701 fi
20702
20703
20704