configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for MPFR 4.2.0.
4 #
5 #
6 # Copyright 1999-2023 Free Software Foundation, Inc.
7 # Contributed by the AriC and Caramba projects, INRIA.
8 #
9 # This file is part of the GNU MPFR Library.
10 #
11 # The GNU MPFR Library is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License as published
13 # by the Free Software Foundation; either version 3 of the License, or (at
14 # your option) any later version.
15 #
16 # The GNU MPFR Library is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
19 # License for more details.
20 #
21 # You should have received a copy of the GNU Lesser General Public License
22 # along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
23 # https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
24 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
25 #
26 #
27 #
28 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
29 # Inc.
30 #
31 #
32 # This configure script is free software; the Free Software Foundation
33 # gives unlimited permission to copy, distribute and modify it.
34 ## -------------------- ##
35 ## M4sh Initialization. ##
36 ## -------------------- ##
37
38 # Be more Bourne compatible
39 DUALCASE=1; export DUALCASE # for MKS sh
40 as_nop=:
41 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
42 then :
43 emulate sh
44 NULLCMD=:
45 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46 # is contrary to our usage. Disable this feature.
47 alias -g '${1+"$@"}'='"$@"'
48 setopt NO_GLOB_SUBST
49 else $as_nop
50 case `(set -o) 2>/dev/null` in #(
51 *posix*) :
52 set -o posix ;; #(
53 *) :
54 ;;
55 esac
56 fi
57
58
59
60 # Reset variables that may have inherited troublesome values from
61 # the environment.
62
63 # IFS needs to be set, to space, tab, and newline, in precisely that order.
64 # (If _AS_PATH_WALK were called with IFS unset, it would have the
65 # side effect of setting IFS to empty, thus disabling word splitting.)
66 # Quoting is to prevent editors from complaining about space-tab.
67 as_nl='
68 '
69 export as_nl
70 IFS=" "" $as_nl"
71
72 PS1='$ '
73 PS2='> '
74 PS4='+ '
75
76 # Ensure predictable behavior from utilities with locale-dependent output.
77 LC_ALL=C
78 export LC_ALL
79 LANGUAGE=C
80 export LANGUAGE
81
82 # We cannot yet rely on "unset" to work, but we need these variables
83 # to be unset--not just set to an empty or harmless value--now, to
84 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
85 # also avoids known problems related to "unset" and subshell syntax
86 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
87 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
88 do eval test \${$as_var+y} \
89 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
90 done
91
92 # Ensure that fds 0, 1, and 2 are open.
93 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
94 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
95 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
96
97 # The user is always right.
98 if ${PATH_SEPARATOR+false} :; then
99 PATH_SEPARATOR=:
100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
102 PATH_SEPARATOR=';'
103 }
104 fi
105
106
107 # Find who we are. Look in the path if we contain no directory separator.
108 as_myself=
109 case $0 in #((
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 case $as_dir in #(((
116 '') as_dir=./ ;;
117 */) ;;
118 *) as_dir=$as_dir/ ;;
119 esac
120 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
121 done
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
133 exit 1
134 fi
135
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
158 exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="as_nop=:
164 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
165 then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else \$as_nop
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178 esac
179 fi
180 "
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
186
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
193 then :
194
195 else \$as_nop
196 exitcode=1; echo positional parameters were not saved.
197 fi
198 test x\$exitcode = x0 || exit 1
199 blah=\$(echo \$(echo blah))
200 test x\"\$blah\" = xblah || exit 1
201 test -x / || exit 1"
202 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
203 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
204 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
205 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
206 test \$(( 1 + 1 )) = 2 || exit 1
207
208 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
209 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
210 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
211 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
212 PATH=/empty FPATH=/empty; export PATH FPATH
213 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
214 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
215 if (eval "$as_required") 2>/dev/null
216 then :
217 as_have_required=yes
218 else $as_nop
219 as_have_required=no
220 fi
221 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
222 then :
223
224 else $as_nop
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 as_found=false
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 do
229 IFS=$as_save_IFS
230 case $as_dir in #(((
231 '') as_dir=./ ;;
232 */) ;;
233 *) as_dir=$as_dir/ ;;
234 esac
235 as_found=:
236 case $as_dir in #(
237 /*)
238 for as_base in sh bash ksh sh5; do
239 # Try only shells that exist, to save several forks.
240 as_shell=$as_dir$as_base
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$as_shell as_have_required=yes
245 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
246 then :
247 break 2
248 fi
249 fi
250 done;;
251 esac
252 as_found=false
253 done
254 IFS=$as_save_IFS
255 if $as_found
256 then :
257
258 else $as_nop
259 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
260 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
261 then :
262 CONFIG_SHELL=$SHELL as_have_required=yes
263 fi
264 fi
265
266
267 if test "x$CONFIG_SHELL" != x
268 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
287 exit 255
288 fi
289
290 if test x$as_have_required = xno
291 then :
292 printf "%s\n" "$0: This script requires a shell more modern than all"
293 printf "%s\n" "$0: the shells that I found on your system."
294 if test ${ZSH_VERSION+y} ; then
295 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
296 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
297 else
298 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org about your system,
299 $0: including any error possibly output before this
300 $0: message. Then install a modern shell, or manually run
301 $0: the script under such a shell if you do have one."
302 fi
303 exit 1
304 fi
305 fi
306 fi
307 SHELL=${CONFIG_SHELL-/bin/sh}
308 export SHELL
309 # Unset more variables known to interfere with behavior of common tools.
310 CLICOLOR_FORCE= GREP_OPTIONS=
311 unset CLICOLOR_FORCE GREP_OPTIONS
312
313 ## --------------------- ##
314 ## M4sh Shell Functions. ##
315 ## --------------------- ##
316 # as_fn_unset VAR
317 # ---------------
318 # Portably unset VAR.
319 as_fn_unset ()
320 {
321 { eval $1=; unset $1;}
322 }
323 as_unset=as_fn_unset
324
325
326 # as_fn_set_status STATUS
327 # -----------------------
328 # Set $? to STATUS, without forking.
329 as_fn_set_status ()
330 {
331 return $1
332 } # as_fn_set_status
333
334 # as_fn_exit STATUS
335 # -----------------
336 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
337 as_fn_exit ()
338 {
339 set +e
340 as_fn_set_status $1
341 exit $1
342 } # as_fn_exit
343 # as_fn_nop
344 # ---------
345 # Do nothing but, unlike ":", preserve the value of $?.
346 as_fn_nop ()
347 {
348 return $?
349 }
350 as_nop=as_fn_nop
351
352 # as_fn_mkdir_p
353 # -------------
354 # Create "$as_dir" as a directory, including parents if necessary.
355 as_fn_mkdir_p ()
356 {
357
358 case $as_dir in #(
359 -*) as_dir=./$as_dir;;
360 esac
361 test -d "$as_dir" || eval $as_mkdir_p || {
362 as_dirs=
363 while :; do
364 case $as_dir in #(
365 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
366 *) as_qdir=$as_dir;;
367 esac
368 as_dirs="'$as_qdir' $as_dirs"
369 as_dir=`$as_dirname -- "$as_dir" ||
370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
371 X"$as_dir" : 'X\(//\)[^/]' \| \
372 X"$as_dir" : 'X\(//\)$' \| \
373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
374 printf "%s\n" X"$as_dir" |
375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
376 s//\1/
377 q
378 }
379 /^X\(\/\/\)[^/].*/{
380 s//\1/
381 q
382 }
383 /^X\(\/\/\)$/{
384 s//\1/
385 q
386 }
387 /^X\(\/\).*/{
388 s//\1/
389 q
390 }
391 s/.*/./; q'`
392 test -d "$as_dir" && break
393 done
394 test -z "$as_dirs" || eval "mkdir $as_dirs"
395 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
396
397
398 } # as_fn_mkdir_p
399
400 # as_fn_executable_p FILE
401 # -----------------------
402 # Test if FILE is an executable regular file.
403 as_fn_executable_p ()
404 {
405 test -f "$1" && test -x "$1"
406 } # as_fn_executable_p
407 # as_fn_append VAR VALUE
408 # ----------------------
409 # Append the text in VALUE to the end of the definition contained in VAR. Take
410 # advantage of any shell optimizations that allow amortized linear growth over
411 # repeated appends, instead of the typical quadratic growth present in naive
412 # implementations.
413 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
414 then :
415 eval 'as_fn_append ()
416 {
417 eval $1+=\$2
418 }'
419 else $as_nop
420 as_fn_append ()
421 {
422 eval $1=\$$1\$2
423 }
424 fi # as_fn_append
425
426 # as_fn_arith ARG...
427 # ------------------
428 # Perform arithmetic evaluation on the ARGs, and store the result in the
429 # global $as_val. Take advantage of shells that can avoid forks. The arguments
430 # must be portable across $(()) and expr.
431 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
432 then :
433 eval 'as_fn_arith ()
434 {
435 as_val=$(( $* ))
436 }'
437 else $as_nop
438 as_fn_arith ()
439 {
440 as_val=`expr "$@" || test $? -eq 1`
441 }
442 fi # as_fn_arith
443
444 # as_fn_nop
445 # ---------
446 # Do nothing but, unlike ":", preserve the value of $?.
447 as_fn_nop ()
448 {
449 return $?
450 }
451 as_nop=as_fn_nop
452
453 # as_fn_error STATUS ERROR [LINENO LOG_FD]
454 # ----------------------------------------
455 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
456 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
457 # script with STATUS, using 1 if that was 0.
458 as_fn_error ()
459 {
460 as_status=$1; test $as_status -eq 0 && as_status=1
461 if test "$4"; then
462 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
464 fi
465 printf "%s\n" "$as_me: error: $2" >&2
466 as_fn_exit $as_status
467 } # as_fn_error
468
469 if expr a : '\(a\)' >/dev/null 2>&1 &&
470 test "X`expr 00001 : '.*\(...\)'`" = X001; then
471 as_expr=expr
472 else
473 as_expr=false
474 fi
475
476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
477 as_basename=basename
478 else
479 as_basename=false
480 fi
481
482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
483 as_dirname=dirname
484 else
485 as_dirname=false
486 fi
487
488 as_me=`$as_basename -- "$0" ||
489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
490 X"$0" : 'X\(//\)$' \| \
491 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
492 printf "%s\n" X/"$0" |
493 sed '/^.*\/\([^/][^/]*\)\/*$/{
494 s//\1/
495 q
496 }
497 /^X\/\(\/\/\)$/{
498 s//\1/
499 q
500 }
501 /^X\/\(\/\).*/{
502 s//\1/
503 q
504 }
505 s/.*/./; q'`
506
507 # Avoid depending upon Character Ranges.
508 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
511 as_cr_digits='0123456789'
512 as_cr_alnum=$as_cr_Letters$as_cr_digits
513
514
515 as_lineno_1=$LINENO as_lineno_1a=$LINENO
516 as_lineno_2=$LINENO as_lineno_2a=$LINENO
517 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
518 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
519 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
520 sed -n '
521 p
522 /[$]LINENO/=
523 ' <$as_myself |
524 sed '
525 s/[$]LINENO.*/&-/
526 t lineno
527 b
528 :lineno
529 N
530 :loop
531 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
532 t loop
533 s/-\n.*//
534 ' >$as_me.lineno &&
535 chmod +x "$as_me.lineno" ||
536 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
537
538 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
539 # already done that, so ensure we don't try to do so again and fall
540 # in an infinite loop. This has already happened in practice.
541 _as_can_reexec=no; export _as_can_reexec
542 # Don't try to exec as it changes $[0], causing all sort of problems
543 # (the dirname of $[0] is not the place where we might find the
544 # original and so on. Autoconf is especially sensitive to this).
545 . "./$as_me.lineno"
546 # Exit status is that of the last command.
547 exit
548 }
549
550
551 # Determine whether it's possible to make 'echo' print without a newline.
552 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
553 # for compatibility with existing Makefiles.
554 ECHO_C= ECHO_N= ECHO_T=
555 case `echo -n x` in #(((((
556 -n*)
557 case `echo 'xy\c'` in
558 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
559 xy) ECHO_C='\c';;
560 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
561 ECHO_T=' ';;
562 esac;;
563 *)
564 ECHO_N='-n';;
565 esac
566
567 # For backward compatibility with old third-party macros, we provide
568 # the shell variables $as_echo and $as_echo_n. New code should use
569 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
570 as_echo='printf %s\n'
571 as_echo_n='printf %s'
572
573
574 rm -f conf$$ conf$$.exe conf$$.file
575 if test -d conf$$.dir; then
576 rm -f conf$$.dir/conf$$.file
577 else
578 rm -f conf$$.dir
579 mkdir conf$$.dir 2>/dev/null
580 fi
581 if (echo >conf$$.file) 2>/dev/null; then
582 if ln -s conf$$.file conf$$ 2>/dev/null; then
583 as_ln_s='ln -s'
584 # ... but there are two gotchas:
585 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
586 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
587 # In both cases, we have to default to `cp -pR'.
588 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
589 as_ln_s='cp -pR'
590 elif ln conf$$.file conf$$ 2>/dev/null; then
591 as_ln_s=ln
592 else
593 as_ln_s='cp -pR'
594 fi
595 else
596 as_ln_s='cp -pR'
597 fi
598 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
599 rmdir conf$$.dir 2>/dev/null
600
601 if mkdir -p . 2>/dev/null; then
602 as_mkdir_p='mkdir -p "$as_dir"'
603 else
604 test -d ./-p && rmdir ./-p
605 as_mkdir_p=false
606 fi
607
608 as_test_x='test -x'
609 as_executable_p=as_fn_executable_p
610
611 # Sed expression to map a string onto a valid CPP name.
612 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
613
614 # Sed expression to map a string onto a valid variable name.
615 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
616
617 SHELL=${CONFIG_SHELL-/bin/sh}
618
619
620 test -n "$DJDIR" || exec 7<&0 </dev/null
621 exec 6>&1
622
623 # Name of the host.
624 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
625 # so uname gets run too.
626 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
627
628 #
629 # Initializations.
630 #
631 ac_default_prefix=/usr/local
632 ac_clean_files=
633 ac_config_libobj_dir=.
634 LIBOBJS=
635 cross_compiling=no
636 subdirs=
637 MFLAGS=
638 MAKEFLAGS=
639
640 # Identity of this package.
641 PACKAGE_NAME='MPFR'
642 PACKAGE_TARNAME='mpfr'
643 PACKAGE_VERSION='4.2.0'
644 PACKAGE_STRING='MPFR 4.2.0'
645 PACKAGE_BUGREPORT=''
646 PACKAGE_URL=''
647
648 # Factoring default headers for most tests.
649 ac_includes_default="\
650 #include <stddef.h>
651 #ifdef HAVE_STDIO_H
652 # include <stdio.h>
653 #endif
654 #ifdef HAVE_STDLIB_H
655 # include <stdlib.h>
656 #endif
657 #ifdef HAVE_STRING_H
658 # include <string.h>
659 #endif
660 #ifdef HAVE_INTTYPES_H
661 # include <inttypes.h>
662 #endif
663 #ifdef HAVE_STDINT_H
664 # include <stdint.h>
665 #endif
666 #ifdef HAVE_STRINGS_H
667 # include <strings.h>
668 #endif
669 #ifdef HAVE_SYS_TYPES_H
670 # include <sys/types.h>
671 #endif
672 #ifdef HAVE_SYS_STAT_H
673 # include <sys/stat.h>
674 #endif
675 #ifdef HAVE_UNISTD_H
676 # include <unistd.h>
677 #endif"
678
679 ac_header_c_list=
680 ac_subst_vars='am__EXEEXT_FALSE
681 am__EXEEXT_TRUE
682 LTLIBOBJS
683 LIBOBJS
684 DATAFILES
685 LIBMPFR_LDFLAGS
686 MPFR_LDFLAGS
687 ALLOCA
688 PTHREAD_CFLAGS
689 PTHREAD_LIBS
690 PTHREAD_CXX
691 PTHREAD_CC
692 ax_pthread_config
693 MPFR_LIBQUADMATH
694 MPFR_LIBM
695 TUNE_LIBS
696 LT_SYS_LIBRARY_PATH
697 OTOOL64
698 OTOOL
699 LIPO
700 NMEDIT
701 DSYMUTIL
702 MANIFEST_TOOL
703 RANLIB
704 FILECMD
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 LIBTOOL
712 OBJDUMP
713 DLLTOOL
714 AS
715 ac_ct_AR
716 AR
717 CPP
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 am__nodep
722 AMDEPBACKSLASH
723 AMDEP_FALSE
724 AMDEP_TRUE
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 MINI_GMP_FALSE
735 MINI_GMP_TRUE
736 mini_gmp_path
737 SED
738 EGREP
739 GREP
740 MAINT
741 MAINTAINER_MODE_FALSE
742 MAINTAINER_MODE_TRUE
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 CSCOPE
748 ETAGS
749 CTAGS
750 am__untar
751 am__tar
752 AMTAR
753 am__leading_dot
754 SET_MAKE
755 AWK
756 mkdir_p
757 MKDIR_P
758 INSTALL_STRIP_PROGRAM
759 STRIP
760 install_sh
761 MAKEINFO
762 AUTOHEADER
763 AUTOMAKE
764 AUTOCONF
765 ACLOCAL
766 VERSION
767 PACKAGE
768 CYGPATH_W
769 am__isrc
770 INSTALL_DATA
771 INSTALL_SCRIPT
772 INSTALL_PROGRAM
773 host_os
774 host_vendor
775 host_cpu
776 host
777 build_os
778 build_vendor
779 build_cpu
780 build
781 target_alias
782 host_alias
783 build_alias
784 LIBS
785 ECHO_T
786 ECHO_N
787 ECHO_C
788 DEFS
789 mandir
790 localedir
791 libdir
792 psdir
793 pdfdir
794 dvidir
795 htmldir
796 infodir
797 docdir
798 oldincludedir
799 includedir
800 runstatedir
801 localstatedir
802 sharedstatedir
803 sysconfdir
804 datadir
805 datarootdir
806 libexecdir
807 sbindir
808 bindir
809 program_transform_name
810 prefix
811 exec_prefix
812 PACKAGE_URL
813 PACKAGE_BUGREPORT
814 PACKAGE_STRING
815 PACKAGE_VERSION
816 PACKAGE_TARNAME
817 PACKAGE_NAME
818 PATH_SEPARATOR
819 SHELL
820 am__quote'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 enable_silent_rules
825 enable_maintainer_mode
826 with_gmp_include
827 with_gmp_lib
828 with_gmp
829 with_gmp_build
830 with_mini_gmp
831 with_mulhigh_size
832 enable_gmp_internals
833 enable_assert
834 enable_logging
835 enable_thread_safe
836 enable_shared_cache
837 enable_warnings
838 enable_tests_timeout
839 enable_tune_for_coverage
840 enable_decimal_float
841 enable_float128
842 enable_debug_prediction
843 enable_lto
844 enable_formally_proven_code
845 enable_dependency_tracking
846 enable_shared
847 enable_static
848 with_pic
849 enable_fast_install
850 with_aix_soname
851 with_gnu_ld
852 with_sysroot
853 enable_libtool_lock
854 '
855 ac_precious_vars='build_alias
856 host_alias
857 target_alias
858 CC
859 CFLAGS
860 LDFLAGS
861 LIBS
862 CPPFLAGS
863 CPP
864 LT_SYS_LIBRARY_PATH'
865
866
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
888
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 runstatedir='${localstatedir}/run'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
923 ac_prev=
924 continue
925 fi
926
927 case $ac_option in
928 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 *=) ac_optarg= ;;
930 *) ac_optarg=yes ;;
931 esac
932
933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
936
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
941
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
956
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
961
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: \`$ac_useropt'"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
994
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1030
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1035
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1065
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1139
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -runstatedir | --runstatedir | --runstatedi | --runstated \
1155 | --runstate | --runstat | --runsta | --runst | --runs \
1156 | --run | --ru | --r)
1157 ac_prev=runstatedir ;;
1158 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1159 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1160 | --run=* | --ru=* | --r=*)
1161 runstatedir=$ac_optarg ;;
1162
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
1167 sbindir=$ac_optarg ;;
1168
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
1178 sharedstatedir=$ac_optarg ;;
1179
1180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
1183 site=$ac_optarg ;;
1184
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1189
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1196
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1201
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1204
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1207
1208 -with-* | --with-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: \`$ac_useropt'"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
1223
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: \`$ac_useropt'"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1260 ;;
1261
1262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 esac
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278 ;;
1279
1280 esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir runstatedir
1301 do
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
1310 case $ac_val in
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 esac
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 printf "%s\n" X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\).*/{
1370 s//\1/
1371 q
1372 }
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1377 fi
1378 else
1379 ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413 \`configure' configures MPFR 4.2.0 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/mpfr]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1467 _ACEOF
1468
1469 cat <<\_ACEOF
1470
1471 Program names:
1472 --program-prefix=PREFIX prepend PREFIX to installed program names
1473 --program-suffix=SUFFIX append SUFFIX to installed program names
1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1475
1476 System types:
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 _ACEOF
1480 fi
1481
1482 if test -n "$ac_init_help"; then
1483 case $ac_init_help in
1484 short | recursive ) echo "Configuration of MPFR 4.2.0:";;
1485 esac
1486 cat <<\_ACEOF
1487
1488 Optional Features:
1489 --disable-option-checking ignore unrecognized --enable/--with options
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --enable-silent-rules less verbose build output (undo: "make V=1")
1493 --disable-silent-rules verbose build output (undo: "make V=0")
1494 --disable-maintainer-mode
1495 disable make rules and dependencies not useful (and
1496 sometimes confusing) to the casual installer
1497 --enable-gmp-internals enable use of GMP undocumented functions [default=no]
1498 --enable-assert enable ASSERT checking [default=no]
1499 --enable-logging enable MPFR logging (needs nested functions
1500 and the 'cleanup' attribute) [default=no]
1501 --disable-thread-safe explicitly disable TLS support
1502 --enable-thread-safe build MPFR as thread safe, i.e. with TLS support
1503 (the system must support it) [default=autodetect]
1504 --enable-shared-cache enable use of caches shared by all threads,
1505 for all MPFR constants. It usually makes MPFR
1506 dependent on PTHREAD [default=no]
1507 --enable-warnings allow MPFR to output warnings to stderr [default=no]
1508 --enable-tests-timeout=NUM
1509 [for developers] enable timeout for test programs
1510 (NUM seconds, <= 9999) [default=no]; if this is
1511 enabled, the environment variable $MPFR_TESTS_TIMEOUT
1512 overrides NUM (0: no timeout)
1513 --enable-tune-for-coverage
1514 [for developers] tune MPFR for coverage tests
1515 --disable-decimal-float explicitly disable decimal floats support
1516 --enable-decimal-float build conversion functions from/to decimal floats
1517 (see INSTALL file for details) [default=auto]
1518 --disable-float128 explicitly disable binary128 support
1519 --enable-float128 build conversion functions from/to binary128
1520 (_Float128 or __float128) [default=autodetect]
1521 --enable-debug-prediction
1522 [for developers] enable debug of branch prediction
1523 (for x86 and x86-64 with GCC, static libs)
1524 --enable-lto build MPFR with link-time-optimization
1525 (experimental) [default: no]
1526 --enable-formally-proven-code
1527 use formally proven code when available
1528 (needs a C99 compiler) [default=no]
1529 --enable-dependency-tracking
1530 do not reject slow dependency extractors
1531 --disable-dependency-tracking
1532 speeds up one-time build
1533 --enable-shared[=PKGS] build shared libraries [default=yes]
1534 --enable-static[=PKGS] build static libraries [default=yes]
1535 --enable-fast-install[=PKGS]
1536 optimize for fast installation [default=yes]
1537 --disable-libtool-lock avoid locking (might break parallel builds)
1538
1539 Optional Packages:
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1542 --with-gmp-include=DIR GMP include directory
1543 --with-gmp-lib=DIR GMP lib directory
1544 --with-gmp=DIR GMP install directory
1545 --with-gmp-build=DIR GMP build directory (please read INSTALL file)
1546 --with-mini-gmp=DIR use mini-gmp (sources in DIR) instead of GMP
1547 (experimental, please read doc/mini-gmp file)
1548 --with-mulhigh-size=NUM internal threshold table for mulhigh
1549 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1550 both]
1551 --with-aix-soname=aix|svr4|both
1552 shared library versioning (aka "SONAME") variant to
1553 provide on AIX, [default=aix].
1554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1555 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1556 compiler's sysroot if not specified).
1557
1558 Some influential environment variables:
1559 CC C compiler command
1560 CFLAGS C compiler flags
1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1562 nonstandard directory <lib dir>
1563 LIBS libraries to pass to the linker, e.g. -l<library>
1564 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565 you have headers in a nonstandard directory <include dir>
1566 CPP C preprocessor
1567 LT_SYS_LIBRARY_PATH
1568 User-defined run-time library search path.
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to the package provider.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583 continue
1584 ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for configure.gnu first; this name is used for a wrapper for
1620 # Metaconfig's "Configure" on case-insensitive file systems.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1627 else
1628 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 fi || ac_status=$?
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1631 done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636 cat <<\_ACEOF
1637 MPFR configure 4.2.0
1638 generated by GNU Autoconf 2.71
1639
1640 Copyright (C) 2021 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643
1644
1645 Copyright 1999-2023 Free Software Foundation, Inc.
1646 Contributed by the AriC and Caramba projects, INRIA.
1647
1648 This file is part of the GNU MPFR Library.
1649
1650 The GNU MPFR Library is free software; you can redistribute it and/or modify
1651 it under the terms of the GNU Lesser General Public License as published
1652 by the Free Software Foundation; either version 3 of the License, or (at
1653 your option) any later version.
1654
1655 The GNU MPFR Library is distributed in the hope that it will be useful, but
1656 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1657 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1658 License for more details.
1659
1660 You should have received a copy of the GNU Lesser General Public License
1661 along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
1662 https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
1663 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
1664
1665 _ACEOF
1666 exit
1667 fi
1668
1669 ## ------------------------ ##
1670 ## Autoconf initialization. ##
1671 ## ------------------------ ##
1672
1673 # ac_fn_c_try_compile LINENO
1674 # --------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest.beam
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 printf "%s\n" "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext
1699 then :
1700 ac_retval=0
1701 else $as_nop
1702 printf "%s\n" "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_compile
1711
1712 # ac_fn_c_try_cpp LINENO
1713 # ----------------------
1714 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_cpp ()
1716 {
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 printf "%s\n" "$ac_try_echo"; } >&5
1725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } > conftest.i && {
1734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 }
1737 then :
1738 ac_retval=0
1739 else $as_nop
1740 printf "%s\n" "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_cpp
1749
1750 # ac_fn_c_try_link LINENO
1751 # -----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_link ()
1754 {
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1757 if { { ac_try="$ac_link"
1758 case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 printf "%s\n" "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest$ac_exeext && {
1776 test "$cross_compiling" = yes ||
1777 test -x conftest$ac_exeext
1778 }
1779 then :
1780 ac_retval=0
1781 else $as_nop
1782 printf "%s\n" "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786 fi
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_link
1796
1797 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists and can be compiled using the include files in
1800 # INCLUDES, setting the cache variable VAR accordingly.
1801 ac_fn_c_check_header_compile ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 printf %s "checking for $2... " >&6; }
1806 if eval test \${$3+y}
1807 then :
1808 printf %s "(cached) " >&6
1809 else $as_nop
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 $4
1813 #include <$2>
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"
1816 then :
1817 eval "$3=yes"
1818 else $as_nop
1819 eval "$3=no"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 printf "%s\n" "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_c_check_header_compile
1829
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 printf %s "checking for $2... " >&6; }
1838 if eval test \${$3+y}
1839 then :
1840 printf %s "(cached) " >&6
1841 else $as_nop
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1846 #define $2 innocuous_$2
1847
1848 /* System header to define __stub macros and hopefully few prototypes,
1849 which can conflict with char $2 (); below. */
1850
1851 #include <limits.h>
1852 #undef $2
1853
1854 /* Override any GCC internal prototype to avoid an error.
1855 Use char because int might match the return type of a GCC
1856 builtin and then its argument prototype would still apply. */
1857 #ifdef __cplusplus
1858 extern "C"
1859 #endif
1860 char $2 ();
1861 /* The GNU C library defines this for functions which it implements
1862 to always fail with ENOSYS. Some functions are actually named
1863 something starting with __ and the normal name is an alias. */
1864 #if defined __stub_$2 || defined __stub___$2
1865 choke me
1866 #endif
1867
1868 int
1869 main (void)
1870 {
1871 return $2 ();
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"
1877 then :
1878 eval "$3=yes"
1879 else $as_nop
1880 eval "$3=no"
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1883 conftest$ac_exeext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 printf "%s\n" "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_func
1891
1892 # ac_fn_c_try_run LINENO
1893 # ----------------------
1894 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1895 # executables *can* be run.
1896 ac_fn_c_try_run ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 printf "%s\n" "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>&5
1907 ac_status=$?
1908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1910 { { case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 printf "%s\n" "$ac_try_echo"; } >&5
1916 (eval "$ac_try") 2>&5
1917 ac_status=$?
1918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; }; }
1920 then :
1921 ac_retval=0
1922 else $as_nop
1923 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1924 printf "%s\n" "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=$ac_status
1928 fi
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1932
1933 } # ac_fn_c_try_run
1934
1935 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1936 # ----------------------------------------------------
1937 # Tries to find if the field MEMBER exists in type AGGR, after including
1938 # INCLUDES, setting cache variable VAR accordingly.
1939 ac_fn_c_check_member ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1943 printf %s "checking for $2.$3... " >&6; }
1944 if eval test \${$4+y}
1945 then :
1946 printf %s "(cached) " >&6
1947 else $as_nop
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $5
1951 int
1952 main (void)
1953 {
1954 static $2 ac_aggr;
1955 if (ac_aggr.$3)
1956 return 0;
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"
1962 then :
1963 eval "$4=yes"
1964 else $as_nop
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 $5
1968 int
1969 main (void)
1970 {
1971 static $2 ac_aggr;
1972 if (sizeof ac_aggr.$3)
1973 return 0;
1974 ;
1975 return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"
1979 then :
1980 eval "$4=yes"
1981 else $as_nop
1982 eval "$4=no"
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$4
1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 printf "%s\n" "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_check_member
1994
1995 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996 # -------------------------------------------
1997 # Tests whether TYPE exists after having included INCLUDES, setting cache
1998 # variable VAR accordingly.
1999 ac_fn_c_check_type ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 printf %s "checking for $2... " >&6; }
2004 if eval test \${$3+y}
2005 then :
2006 printf %s "(cached) " >&6
2007 else $as_nop
2008 eval "$3=no"
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $4
2012 int
2013 main (void)
2014 {
2015 if (sizeof ($2))
2016 return 0;
2017 ;
2018 return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"
2022 then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main (void)
2028 {
2029 if (sizeof (($2)))
2030 return 0;
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"
2036 then :
2037
2038 else $as_nop
2039 eval "$3=yes"
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2044 fi
2045 eval ac_res=\$$3
2046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 printf "%s\n" "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050 } # ac_fn_c_check_type
2051
2052 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053 # --------------------------------------------
2054 # Tries to find the compile-time value of EXPR in a program that includes
2055 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2056 # computed
2057 ac_fn_c_compute_int ()
2058 {
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if test "$cross_compiling" = yes; then
2061 # Depending upon the size, compute the lo and hi bounds.
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $4
2065 int
2066 main (void)
2067 {
2068 static int test_array [1 - 2 * !(($2) >= 0)];
2069 test_array [0] = 0;
2070 return test_array [0];
2071
2072 ;
2073 return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"
2077 then :
2078 ac_lo=0 ac_mid=0
2079 while :; do
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 int
2084 main (void)
2085 {
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0;
2088 return test_array [0];
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"
2095 then :
2096 ac_hi=$ac_mid; break
2097 else $as_nop
2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099 if test $ac_lo -le $ac_mid; then
2100 ac_lo= ac_hi=
2101 break
2102 fi
2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2106 done
2107 else $as_nop
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2110 $4
2111 int
2112 main (void)
2113 {
2114 static int test_array [1 - 2 * !(($2) < 0)];
2115 test_array [0] = 0;
2116 return test_array [0];
2117
2118 ;
2119 return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"
2123 then :
2124 ac_hi=-1 ac_mid=-1
2125 while :; do
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 $4
2129 int
2130 main (void)
2131 {
2132 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2133 test_array [0] = 0;
2134 return test_array [0];
2135
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"
2141 then :
2142 ac_lo=$ac_mid; break
2143 else $as_nop
2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2145 if test $ac_mid -le $ac_hi; then
2146 ac_lo= ac_hi=
2147 break
2148 fi
2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2152 done
2153 else $as_nop
2154 ac_lo= ac_hi=
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2159 # Binary search between lo and hi bounds.
2160 while test "x$ac_lo" != "x$ac_hi"; do
2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2164 $4
2165 int
2166 main (void)
2167 {
2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 test_array [0] = 0;
2170 return test_array [0];
2171
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"
2177 then :
2178 ac_hi=$ac_mid
2179 else $as_nop
2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2183 done
2184 case $ac_lo in #((
2185 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186 '') ac_retval=1 ;;
2187 esac
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 $4
2192 static long int longval (void) { return $2; }
2193 static unsigned long int ulongval (void) { return $2; }
2194 #include <stdio.h>
2195 #include <stdlib.h>
2196 int
2197 main (void)
2198 {
2199
2200 FILE *f = fopen ("conftest.val", "w");
2201 if (! f)
2202 return 1;
2203 if (($2) < 0)
2204 {
2205 long int i = longval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%ld", i);
2209 }
2210 else
2211 {
2212 unsigned long int i = ulongval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%lu", i);
2216 }
2217 /* Do not output a trailing newline, as this causes \r\n confusion
2218 on some platforms. */
2219 return ferror (f) || fclose (f) != 0;
2220
2221 ;
2222 return 0;
2223 }
2224 _ACEOF
2225 if ac_fn_c_try_run "$LINENO"
2226 then :
2227 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2228 else $as_nop
2229 ac_retval=1
2230 fi
2231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2232 conftest.$ac_objext conftest.beam conftest.$ac_ext
2233 rm -f conftest.val
2234
2235 fi
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 as_fn_set_status $ac_retval
2238
2239 } # ac_fn_c_compute_int
2240 ac_configure_args_raw=
2241 for ac_arg
2242 do
2243 case $ac_arg in
2244 *\'*)
2245 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 esac
2247 as_fn_append ac_configure_args_raw " '$ac_arg'"
2248 done
2249
2250 case $ac_configure_args_raw in
2251 *$as_nl*)
2252 ac_safe_unquote= ;;
2253 *)
2254 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2255 ac_unsafe_a="$ac_unsafe_z#~"
2256 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2257 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2258 esac
2259
2260 cat >config.log <<_ACEOF
2261 This file contains any messages produced by compilers while
2262 running configure, to aid debugging if configure makes a mistake.
2263
2264 It was created by MPFR $as_me 4.2.0, which was
2265 generated by GNU Autoconf 2.71. Invocation command line was
2266
2267 $ $0$ac_configure_args_raw
2268
2269 _ACEOF
2270 exec 5>>config.log
2271 {
2272 cat <<_ASUNAME
2273 ## --------- ##
2274 ## Platform. ##
2275 ## --------- ##
2276
2277 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2278 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2279 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2280 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2281 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2282
2283 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2284 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2285
2286 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2287 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2288 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2289 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2290 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2291 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2292 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2293
2294 _ASUNAME
2295
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299 IFS=$as_save_IFS
2300 case $as_dir in #(((
2301 '') as_dir=./ ;;
2302 */) ;;
2303 *) as_dir=$as_dir/ ;;
2304 esac
2305 printf "%s\n" "PATH: $as_dir"
2306 done
2307 IFS=$as_save_IFS
2308
2309 } >&5
2310
2311 cat >&5 <<_ACEOF
2312
2313
2314 ## ----------- ##
2315 ## Core tests. ##
2316 ## ----------- ##
2317
2318 _ACEOF
2319
2320
2321 # Keep a trace of the command line.
2322 # Strip out --no-create and --no-recursion so they do not pile up.
2323 # Strip out --silent because we don't want to record it for future runs.
2324 # Also quote any args containing shell meta-characters.
2325 # Make two passes to allow for proper duplicate-argument suppression.
2326 ac_configure_args=
2327 ac_configure_args0=
2328 ac_configure_args1=
2329 ac_must_keep_next=false
2330 for ac_pass in 1 2
2331 do
2332 for ac_arg
2333 do
2334 case $ac_arg in
2335 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2337 | -silent | --silent | --silen | --sile | --sil)
2338 continue ;;
2339 *\'*)
2340 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2341 esac
2342 case $ac_pass in
2343 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2344 2)
2345 as_fn_append ac_configure_args1 " '$ac_arg'"
2346 if test $ac_must_keep_next = true; then
2347 ac_must_keep_next=false # Got value, back to normal.
2348 else
2349 case $ac_arg in
2350 *=* | --config-cache | -C | -disable-* | --disable-* \
2351 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2352 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2353 | -with-* | --with-* | -without-* | --without-* | --x)
2354 case "$ac_configure_args0 " in
2355 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2356 esac
2357 ;;
2358 -* ) ac_must_keep_next=true ;;
2359 esac
2360 fi
2361 as_fn_append ac_configure_args " '$ac_arg'"
2362 ;;
2363 esac
2364 done
2365 done
2366 { ac_configure_args0=; unset ac_configure_args0;}
2367 { ac_configure_args1=; unset ac_configure_args1;}
2368
2369 # When interrupted or exit'd, cleanup temporary files, and complete
2370 # config.log. We remove comments because anyway the quotes in there
2371 # would cause problems or look ugly.
2372 # WARNING: Use '\'' to represent an apostrophe within the trap.
2373 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2374 trap 'exit_status=$?
2375 # Sanitize IFS.
2376 IFS=" "" $as_nl"
2377 # Save into config.log some information that might help in debugging.
2378 {
2379 echo
2380
2381 printf "%s\n" "## ---------------- ##
2382 ## Cache variables. ##
2383 ## ---------------- ##"
2384 echo
2385 # The following way of writing the cache mishandles newlines in values,
2386 (
2387 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2388 eval ac_val=\$$ac_var
2389 case $ac_val in #(
2390 *${as_nl}*)
2391 case $ac_var in #(
2392 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2393 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2394 esac
2395 case $ac_var in #(
2396 _ | IFS | as_nl) ;; #(
2397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2398 *) { eval $ac_var=; unset $ac_var;} ;;
2399 esac ;;
2400 esac
2401 done
2402 (set) 2>&1 |
2403 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2404 *${as_nl}ac_space=\ *)
2405 sed -n \
2406 "s/'\''/'\''\\\\'\'''\''/g;
2407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2408 ;; #(
2409 *)
2410 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411 ;;
2412 esac |
2413 sort
2414 )
2415 echo
2416
2417 printf "%s\n" "## ----------------- ##
2418 ## Output variables. ##
2419 ## ----------------- ##"
2420 echo
2421 for ac_var in $ac_subst_vars
2422 do
2423 eval ac_val=\$$ac_var
2424 case $ac_val in
2425 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426 esac
2427 printf "%s\n" "$ac_var='\''$ac_val'\''"
2428 done | sort
2429 echo
2430
2431 if test -n "$ac_subst_files"; then
2432 printf "%s\n" "## ------------------- ##
2433 ## File substitutions. ##
2434 ## ------------------- ##"
2435 echo
2436 for ac_var in $ac_subst_files
2437 do
2438 eval ac_val=\$$ac_var
2439 case $ac_val in
2440 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441 esac
2442 printf "%s\n" "$ac_var='\''$ac_val'\''"
2443 done | sort
2444 echo
2445 fi
2446
2447 if test -s confdefs.h; then
2448 printf "%s\n" "## ----------- ##
2449 ## confdefs.h. ##
2450 ## ----------- ##"
2451 echo
2452 cat confdefs.h
2453 echo
2454 fi
2455 test "$ac_signal" != 0 &&
2456 printf "%s\n" "$as_me: caught signal $ac_signal"
2457 printf "%s\n" "$as_me: exit $exit_status"
2458 } >&5
2459 rm -f core *.core core.conftest.* &&
2460 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2461 exit $exit_status
2462 ' 0
2463 for ac_signal in 1 2 13 15; do
2464 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2465 done
2466 ac_signal=0
2467
2468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2469 rm -f -r conftest* confdefs.h
2470
2471 printf "%s\n" "/* confdefs.h */" > confdefs.h
2472
2473 # Predefined preprocessor variables.
2474
2475 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2476
2477 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2478
2479 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2480
2481 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2482
2483 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2484
2485 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2486
2487
2488 # Let the site file select an alternate cache file if it wants to.
2489 # Prefer an explicitly selected file to automatically selected ones.
2490 if test -n "$CONFIG_SITE"; then
2491 ac_site_files="$CONFIG_SITE"
2492 elif test "x$prefix" != xNONE; then
2493 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2494 else
2495 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2496 fi
2497
2498 for ac_site_file in $ac_site_files
2499 do
2500 case $ac_site_file in #(
2501 */*) :
2502 ;; #(
2503 *) :
2504 ac_site_file=./$ac_site_file ;;
2505 esac
2506 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2508 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2509 sed 's/^/| /' "$ac_site_file" >&5
2510 . "$ac_site_file" \
2511 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2512 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2513 as_fn_error $? "failed to load site script $ac_site_file
2514 See \`config.log' for more details" "$LINENO" 5; }
2515 fi
2516 done
2517
2518 if test -r "$cache_file"; then
2519 # Some versions of bash will fail to source /dev/null (special files
2520 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2521 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2523 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2524 case $cache_file in
2525 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2526 *) . "./$cache_file";;
2527 esac
2528 fi
2529 else
2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2531 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2532 >$cache_file
2533 fi
2534
2535 # Test code for whether the C compiler supports C89 (global declarations)
2536 ac_c_conftest_c89_globals='
2537 /* Does the compiler advertise C89 conformance?
2538 Do not test the value of __STDC__, because some compilers set it to 0
2539 while being otherwise adequately conformant. */
2540 #if !defined __STDC__
2541 # error "Compiler does not advertise C89 conformance"
2542 #endif
2543
2544 #include <stddef.h>
2545 #include <stdarg.h>
2546 struct stat;
2547 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2548 struct buf { int x; };
2549 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2550 static char *e (p, i)
2551 char **p;
2552 int i;
2553 {
2554 return p[i];
2555 }
2556 static char *f (char * (*g) (char **, int), char **p, ...)
2557 {
2558 char *s;
2559 va_list v;
2560 va_start (v,p);
2561 s = g (p, va_arg (v,int));
2562 va_end (v);
2563 return s;
2564 }
2565
2566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2567 function prototypes and stuff, but not \xHH hex character constants.
2568 These do not provoke an error unfortunately, instead are silently treated
2569 as an "x". The following induces an error, until -std is added to get
2570 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2571 array size at least. It is necessary to write \x00 == 0 to get something
2572 that is true only with -std. */
2573 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2574
2575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2576 inside strings and character constants. */
2577 #define FOO(x) '\''x'\''
2578 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2579
2580 int test (int i, double x);
2581 struct s1 {int (*f) (int a);};
2582 struct s2 {int (*f) (double a);};
2583 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2584 int, int);'
2585
2586 # Test code for whether the C compiler supports C89 (body of main).
2587 ac_c_conftest_c89_main='
2588 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2589 '
2590
2591 # Test code for whether the C compiler supports C99 (global declarations)
2592 ac_c_conftest_c99_globals='
2593 // Does the compiler advertise C99 conformance?
2594 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2595 # error "Compiler does not advertise C99 conformance"
2596 #endif
2597
2598 #include <stdbool.h>
2599 extern int puts (const char *);
2600 extern int printf (const char *, ...);
2601 extern int dprintf (int, const char *, ...);
2602 extern void *malloc (size_t);
2603
2604 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2605 // dprintf is used instead of fprintf to avoid needing to declare
2606 // FILE and stderr.
2607 #define debug(...) dprintf (2, __VA_ARGS__)
2608 #define showlist(...) puts (#__VA_ARGS__)
2609 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2610 static void
2611 test_varargs_macros (void)
2612 {
2613 int x = 1234;
2614 int y = 5678;
2615 debug ("Flag");
2616 debug ("X = %d\n", x);
2617 showlist (The first, second, and third items.);
2618 report (x>y, "x is %d but y is %d", x, y);
2619 }
2620
2621 // Check long long types.
2622 #define BIG64 18446744073709551615ull
2623 #define BIG32 4294967295ul
2624 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2625 #if !BIG_OK
2626 #error "your preprocessor is broken"
2627 #endif
2628 #if BIG_OK
2629 #else
2630 #error "your preprocessor is broken"
2631 #endif
2632 static long long int bignum = -9223372036854775807LL;
2633 static unsigned long long int ubignum = BIG64;
2634
2635 struct incomplete_array
2636 {
2637 int datasize;
2638 double data[];
2639 };
2640
2641 struct named_init {
2642 int number;
2643 const wchar_t *name;
2644 double average;
2645 };
2646
2647 typedef const char *ccp;
2648
2649 static inline int
2650 test_restrict (ccp restrict text)
2651 {
2652 // See if C++-style comments work.
2653 // Iterate through items via the restricted pointer.
2654 // Also check for declarations in for loops.
2655 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2656 continue;
2657 return 0;
2658 }
2659
2660 // Check varargs and va_copy.
2661 static bool
2662 test_varargs (const char *format, ...)
2663 {
2664 va_list args;
2665 va_start (args, format);
2666 va_list args_copy;
2667 va_copy (args_copy, args);
2668
2669 const char *str = "";
2670 int number = 0;
2671 float fnumber = 0;
2672
2673 while (*format)
2674 {
2675 switch (*format++)
2676 {
2677 case '\''s'\'': // string
2678 str = va_arg (args_copy, const char *);
2679 break;
2680 case '\''d'\'': // int
2681 number = va_arg (args_copy, int);
2682 break;
2683 case '\''f'\'': // float
2684 fnumber = va_arg (args_copy, double);
2685 break;
2686 default:
2687 break;
2688 }
2689 }
2690 va_end (args_copy);
2691 va_end (args);
2692
2693 return *str && number && fnumber;
2694 }
2695 '
2696
2697 # Test code for whether the C compiler supports C99 (body of main).
2698 ac_c_conftest_c99_main='
2699 // Check bool.
2700 _Bool success = false;
2701 success |= (argc != 0);
2702
2703 // Check restrict.
2704 if (test_restrict ("String literal") == 0)
2705 success = true;
2706 char *restrict newvar = "Another string";
2707
2708 // Check varargs.
2709 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2710 test_varargs_macros ();
2711
2712 // Check flexible array members.
2713 struct incomplete_array *ia =
2714 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2715 ia->datasize = 10;
2716 for (int i = 0; i < ia->datasize; ++i)
2717 ia->data[i] = i * 1.234;
2718
2719 // Check named initializers.
2720 struct named_init ni = {
2721 .number = 34,
2722 .name = L"Test wide string",
2723 .average = 543.34343,
2724 };
2725
2726 ni.number = 58;
2727
2728 int dynamic_array[ni.number];
2729 dynamic_array[0] = argv[0][0];
2730 dynamic_array[ni.number - 1] = 543;
2731
2732 // work around unused variable warnings
2733 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2734 || dynamic_array[ni.number - 1] != 543);
2735 '
2736
2737 # Test code for whether the C compiler supports C11 (global declarations)
2738 ac_c_conftest_c11_globals='
2739 // Does the compiler advertise C11 conformance?
2740 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2741 # error "Compiler does not advertise C11 conformance"
2742 #endif
2743
2744 // Check _Alignas.
2745 char _Alignas (double) aligned_as_double;
2746 char _Alignas (0) no_special_alignment;
2747 extern char aligned_as_int;
2748 char _Alignas (0) _Alignas (int) aligned_as_int;
2749
2750 // Check _Alignof.
2751 enum
2752 {
2753 int_alignment = _Alignof (int),
2754 int_array_alignment = _Alignof (int[100]),
2755 char_alignment = _Alignof (char)
2756 };
2757 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2758
2759 // Check _Noreturn.
2760 int _Noreturn does_not_return (void) { for (;;) continue; }
2761
2762 // Check _Static_assert.
2763 struct test_static_assert
2764 {
2765 int x;
2766 _Static_assert (sizeof (int) <= sizeof (long int),
2767 "_Static_assert does not work in struct");
2768 long int y;
2769 };
2770
2771 // Check UTF-8 literals.
2772 #define u8 syntax error!
2773 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2774
2775 // Check duplicate typedefs.
2776 typedef long *long_ptr;
2777 typedef long int *long_ptr;
2778 typedef long_ptr long_ptr;
2779
2780 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2781 struct anonymous
2782 {
2783 union {
2784 struct { int i; int j; };
2785 struct { int k; long int l; } w;
2786 };
2787 int m;
2788 } v1;
2789 '
2790
2791 # Test code for whether the C compiler supports C11 (body of main).
2792 ac_c_conftest_c11_main='
2793 _Static_assert ((offsetof (struct anonymous, i)
2794 == offsetof (struct anonymous, w.k)),
2795 "Anonymous union alignment botch");
2796 v1.i = 2;
2797 v1.w.k = 5;
2798 ok |= v1.i != 5;
2799 '
2800
2801 # Test code for whether the C compiler supports C11 (complete).
2802 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2803 ${ac_c_conftest_c99_globals}
2804 ${ac_c_conftest_c11_globals}
2805
2806 int
2807 main (int argc, char **argv)
2808 {
2809 int ok = 0;
2810 ${ac_c_conftest_c89_main}
2811 ${ac_c_conftest_c99_main}
2812 ${ac_c_conftest_c11_main}
2813 return ok;
2814 }
2815 "
2816
2817 # Test code for whether the C compiler supports C99 (complete).
2818 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2819 ${ac_c_conftest_c99_globals}
2820
2821 int
2822 main (int argc, char **argv)
2823 {
2824 int ok = 0;
2825 ${ac_c_conftest_c89_main}
2826 ${ac_c_conftest_c99_main}
2827 return ok;
2828 }
2829 "
2830
2831 # Test code for whether the C compiler supports C89 (complete).
2832 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2833
2834 int
2835 main (int argc, char **argv)
2836 {
2837 int ok = 0;
2838 ${ac_c_conftest_c89_main}
2839 return ok;
2840 }
2841 "
2842
2843 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2844 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2845 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2846 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2847 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2848 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2849 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2850 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2851 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2852
2853 # Auxiliary files required by this configure script.
2854 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
2855
2856 # Locations in which to look for auxiliary files.
2857 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2858
2859 # Search for a directory containing all of the required auxiliary files,
2860 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2861 # If we don't find one directory that contains all the files we need,
2862 # we report the set of missing files from the *first* directory in
2863 # $ac_aux_dir_candidates and give up.
2864 ac_missing_aux_files=""
2865 ac_first_candidate=:
2866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 as_found=false
2869 for as_dir in $ac_aux_dir_candidates
2870 do
2871 IFS=$as_save_IFS
2872 case $as_dir in #(((
2873 '') as_dir=./ ;;
2874 */) ;;
2875 *) as_dir=$as_dir/ ;;
2876 esac
2877 as_found=:
2878
2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2880 ac_aux_dir_found=yes
2881 ac_install_sh=
2882 for ac_aux in $ac_aux_files
2883 do
2884 # As a special case, if "install-sh" is required, that requirement
2885 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2886 # and $ac_install_sh is set appropriately for whichever one is found.
2887 if test x"$ac_aux" = x"install-sh"
2888 then
2889 if test -f "${as_dir}install-sh"; then
2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2891 ac_install_sh="${as_dir}install-sh -c"
2892 elif test -f "${as_dir}install.sh"; then
2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2894 ac_install_sh="${as_dir}install.sh -c"
2895 elif test -f "${as_dir}shtool"; then
2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2897 ac_install_sh="${as_dir}shtool install -c"
2898 else
2899 ac_aux_dir_found=no
2900 if $ac_first_candidate; then
2901 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2902 else
2903 break
2904 fi
2905 fi
2906 else
2907 if test -f "${as_dir}${ac_aux}"; then
2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2909 else
2910 ac_aux_dir_found=no
2911 if $ac_first_candidate; then
2912 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2913 else
2914 break
2915 fi
2916 fi
2917 fi
2918 done
2919 if test "$ac_aux_dir_found" = yes; then
2920 ac_aux_dir="$as_dir"
2921 break
2922 fi
2923 ac_first_candidate=false
2924
2925 as_found=false
2926 done
2927 IFS=$as_save_IFS
2928 if $as_found
2929 then :
2930
2931 else $as_nop
2932 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2933 fi
2934
2935
2936 # These three variables are undocumented and unsupported,
2937 # and are intended to be withdrawn in a future Autoconf release.
2938 # They can cause serious problems if a builder's source tree is in a directory
2939 # whose full name contains unusual characters.
2940 if test -f "${ac_aux_dir}config.guess"; then
2941 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2942 fi
2943 if test -f "${ac_aux_dir}config.sub"; then
2944 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2945 fi
2946 if test -f "$ac_aux_dir/configure"; then
2947 ac_configure="$SHELL ${ac_aux_dir}configure"
2948 fi
2949
2950 # Check that the precious variables saved in the cache have kept the same
2951 # value.
2952 ac_cache_corrupted=false
2953 for ac_var in $ac_precious_vars; do
2954 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2955 eval ac_new_set=\$ac_env_${ac_var}_set
2956 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2957 eval ac_new_val=\$ac_env_${ac_var}_value
2958 case $ac_old_set,$ac_new_set in
2959 set,)
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2961 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2962 ac_cache_corrupted=: ;;
2963 ,set)
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2965 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2966 ac_cache_corrupted=: ;;
2967 ,);;
2968 *)
2969 if test "x$ac_old_val" != "x$ac_new_val"; then
2970 # differences in whitespace do not lead to failure.
2971 ac_old_val_w=`echo x $ac_old_val`
2972 ac_new_val_w=`echo x $ac_new_val`
2973 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2975 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2976 ac_cache_corrupted=:
2977 else
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2979 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2980 eval $ac_var=\$ac_old_val
2981 fi
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2983 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2985 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2986 fi;;
2987 esac
2988 # Pass precious variables to config.status.
2989 if test "$ac_new_set" = set; then
2990 case $ac_new_val in
2991 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2992 *) ac_arg=$ac_var=$ac_new_val ;;
2993 esac
2994 case " $ac_configure_args " in
2995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2996 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2997 esac
2998 fi
2999 done
3000 if $ac_cache_corrupted; then
3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3002 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3004 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3005 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3006 and start over" "$LINENO" 5
3007 fi
3008 ## -------------------- ##
3009 ## Main body of script. ##
3010 ## -------------------- ##
3011
3012 ac_ext=c
3013 ac_cpp='$CPP $CPPFLAGS'
3014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017
3018
3019
3020
3021
3022
3023 # Make sure we can run config.sub.
3024 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3025 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3026
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3028 printf %s "checking build system type... " >&6; }
3029 if test ${ac_cv_build+y}
3030 then :
3031 printf %s "(cached) " >&6
3032 else $as_nop
3033 ac_build_alias=$build_alias
3034 test "x$ac_build_alias" = x &&
3035 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3036 test "x$ac_build_alias" = x &&
3037 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3038 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3039 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3040
3041 fi
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3043 printf "%s\n" "$ac_cv_build" >&6; }
3044 case $ac_cv_build in
3045 *-*-*) ;;
3046 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3047 esac
3048 build=$ac_cv_build
3049 ac_save_IFS=$IFS; IFS='-'
3050 set x $ac_cv_build
3051 shift
3052 build_cpu=$1
3053 build_vendor=$2
3054 shift; shift
3055 # Remember, the first character of IFS is used to create $*,
3056 # except with old shells:
3057 build_os=$*
3058 IFS=$ac_save_IFS
3059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3060
3061
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3063 printf %s "checking host system type... " >&6; }
3064 if test ${ac_cv_host+y}
3065 then :
3066 printf %s "(cached) " >&6
3067 else $as_nop
3068 if test "x$host_alias" = x; then
3069 ac_cv_host=$ac_cv_build
3070 else
3071 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3072 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3073 fi
3074
3075 fi
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3077 printf "%s\n" "$ac_cv_host" >&6; }
3078 case $ac_cv_host in
3079 *-*-*) ;;
3080 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3081 esac
3082 host=$ac_cv_host
3083 ac_save_IFS=$IFS; IFS='-'
3084 set x $ac_cv_host
3085 shift
3086 host_cpu=$1
3087 host_vendor=$2
3088 shift; shift
3089 # Remember, the first character of IFS is used to create $*,
3090 # except with old shells:
3091 host_os=$*
3092 IFS=$ac_save_IFS
3093 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3094
3095
3096
3097 am__api_version='1.16'
3098
3099
3100 # Find a good install program. We prefer a C program (faster),
3101 # so one script is as good as another. But avoid the broken or
3102 # incompatible versions:
3103 # SysV /etc/install, /usr/sbin/install
3104 # SunOS /usr/etc/install
3105 # IRIX /sbin/install
3106 # AIX /bin/install
3107 # AmigaOS /C/install, which installs bootblocks on floppy discs
3108 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3109 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3110 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3111 # OS/2's system install, which has a completely different semantic
3112 # ./install, which can be erroneously created by make from ./install.sh.
3113 # Reject install programs that cannot install multiple files.
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3115 printf %s "checking for a BSD-compatible install... " >&6; }
3116 if test -z "$INSTALL"; then
3117 if test ${ac_cv_path_install+y}
3118 then :
3119 printf %s "(cached) " >&6
3120 else $as_nop
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124 IFS=$as_save_IFS
3125 case $as_dir in #(((
3126 '') as_dir=./ ;;
3127 */) ;;
3128 *) as_dir=$as_dir/ ;;
3129 esac
3130 # Account for fact that we put trailing slashes in our PATH walk.
3131 case $as_dir in #((
3132 ./ | /[cC]/* | \
3133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3134 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3135 /usr/ucb/* ) ;;
3136 *)
3137 # OSF1 and SCO ODT 3.0 have their own names for install.
3138 # Don't use installbsd from OSF since it installs stuff as root
3139 # by default.
3140 for ac_prog in ginstall scoinst install; do
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3143 if test $ac_prog = install &&
3144 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3145 # AIX install. It has an incompatible calling convention.
3146 :
3147 elif test $ac_prog = install &&
3148 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3149 # program-specific install script used by HP pwplus--don't use.
3150 :
3151 else
3152 rm -rf conftest.one conftest.two conftest.dir
3153 echo one > conftest.one
3154 echo two > conftest.two
3155 mkdir conftest.dir
3156 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3157 test -s conftest.one && test -s conftest.two &&
3158 test -s conftest.dir/conftest.one &&
3159 test -s conftest.dir/conftest.two
3160 then
3161 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3162 break 3
3163 fi
3164 fi
3165 fi
3166 done
3167 done
3168 ;;
3169 esac
3170
3171 done
3172 IFS=$as_save_IFS
3173
3174 rm -rf conftest.one conftest.two conftest.dir
3175
3176 fi
3177 if test ${ac_cv_path_install+y}; then
3178 INSTALL=$ac_cv_path_install
3179 else
3180 # As a last resort, use the slow shell script. Don't cache a
3181 # value for INSTALL within a source directory, because that will
3182 # break other packages using the cache if that directory is
3183 # removed, or if the value is a relative name.
3184 INSTALL=$ac_install_sh
3185 fi
3186 fi
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3188 printf "%s\n" "$INSTALL" >&6; }
3189
3190 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3191 # It thinks the first close brace ends the variable substitution.
3192 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3193
3194 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3195
3196 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3197
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3199 printf %s "checking whether build environment is sane... " >&6; }
3200 # Reject unsafe characters in $srcdir or the absolute working directory
3201 # name. Accept space and tab only in the latter.
3202 am_lf='
3203 '
3204 case `pwd` in
3205 *[\\\"\#\$\&\'\`$am_lf]*)
3206 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3207 esac
3208 case $srcdir in
3209 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3210 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3211 esac
3212
3213 # Do 'set' in a subshell so we don't clobber the current shell's
3214 # arguments. Must try -L first in case configure is actually a
3215 # symlink; some systems play weird games with the mod time of symlinks
3216 # (eg FreeBSD returns the mod time of the symlink's containing
3217 # directory).
3218 if (
3219 am_has_slept=no
3220 for am_try in 1 2; do
3221 echo "timestamp, slept: $am_has_slept" > conftest.file
3222 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3223 if test "$*" = "X"; then
3224 # -L didn't work.
3225 set X `ls -t "$srcdir/configure" conftest.file`
3226 fi
3227 if test "$*" != "X $srcdir/configure conftest.file" \
3228 && test "$*" != "X conftest.file $srcdir/configure"; then
3229
3230 # If neither matched, then we have a broken ls. This can happen
3231 # if, for instance, CONFIG_SHELL is bash and it inherits a
3232 # broken ls alias from the environment. This has actually
3233 # happened. Such a system could not be considered "sane".
3234 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3235 alias in your environment" "$LINENO" 5
3236 fi
3237 if test "$2" = conftest.file || test $am_try -eq 2; then
3238 break
3239 fi
3240 # Just in case.
3241 sleep 1
3242 am_has_slept=yes
3243 done
3244 test "$2" = conftest.file
3245 )
3246 then
3247 # Ok.
3248 :
3249 else
3250 as_fn_error $? "newly created file is older than distributed files!
3251 Check your system clock" "$LINENO" 5
3252 fi
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 printf "%s\n" "yes" >&6; }
3255 # If we didn't sleep, we still need to ensure time stamps of config.status and
3256 # generated files are strictly newer.
3257 am_sleep_pid=
3258 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3259 ( sleep 1 ) &
3260 am_sleep_pid=$!
3261 fi
3262
3263 rm -f conftest.file
3264
3265 test "$program_prefix" != NONE &&
3266 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3267 # Use a double $ so make ignores it.
3268 test "$program_suffix" != NONE &&
3269 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3270 # Double any \ or $.
3271 # By default was `s,x,x', remove it if useless.
3272 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3273 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3274
3275
3276 # Expand $ac_aux_dir to an absolute path.
3277 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3278
3279
3280 if test x"${MISSING+set}" != xset; then
3281 MISSING="\${SHELL} '$am_aux_dir/missing'"
3282 fi
3283 # Use eval to expand $SHELL
3284 if eval "$MISSING --is-lightweight"; then
3285 am_missing_run="$MISSING "
3286 else
3287 am_missing_run=
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3289 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3290 fi
3291
3292 if test x"${install_sh+set}" != xset; then
3293 case $am_aux_dir in
3294 *\ * | *\ *)
3295 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3296 *)
3297 install_sh="\${SHELL} $am_aux_dir/install-sh"
3298 esac
3299 fi
3300
3301 # Installed binaries are usually stripped using 'strip' when the user
3302 # run "make install-strip". However 'strip' might not be the right
3303 # tool to use in cross-compilation environments, therefore Automake
3304 # will honor the 'STRIP' environment variable to overrule this program.
3305 if test "$cross_compiling" != no; then
3306 if test -n "$ac_tool_prefix"; then
3307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3308 set dummy ${ac_tool_prefix}strip; ac_word=$2
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 printf %s "checking for $ac_word... " >&6; }
3311 if test ${ac_cv_prog_STRIP+y}
3312 then :
3313 printf %s "(cached) " >&6
3314 else $as_nop
3315 if test -n "$STRIP"; then
3316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 case $as_dir in #(((
3323 '') as_dir=./ ;;
3324 */) ;;
3325 *) as_dir=$as_dir/ ;;
3326 esac
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 STRIP=$ac_cv_prog_STRIP
3340 if test -n "$STRIP"; then
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3342 printf "%s\n" "$STRIP" >&6; }
3343 else
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 printf "%s\n" "no" >&6; }
3346 fi
3347
3348
3349 fi
3350 if test -z "$ac_cv_prog_STRIP"; then
3351 ac_ct_STRIP=$STRIP
3352 # Extract the first word of "strip", so it can be a program name with args.
3353 set dummy strip; ac_word=$2
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 printf %s "checking for $ac_word... " >&6; }
3356 if test ${ac_cv_prog_ac_ct_STRIP+y}
3357 then :
3358 printf %s "(cached) " >&6
3359 else $as_nop
3360 if test -n "$ac_ct_STRIP"; then
3361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 case $as_dir in #(((
3368 '') as_dir=./ ;;
3369 */) ;;
3370 *) as_dir=$as_dir/ ;;
3371 esac
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_ac_ct_STRIP="strip"
3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3385 if test -n "$ac_ct_STRIP"; then
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3387 printf "%s\n" "$ac_ct_STRIP" >&6; }
3388 else
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 printf "%s\n" "no" >&6; }
3391 fi
3392
3393 if test "x$ac_ct_STRIP" = x; then
3394 STRIP=":"
3395 else
3396 case $cross_compiling:$ac_tool_warned in
3397 yes:)
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3399 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3400 ac_tool_warned=yes ;;
3401 esac
3402 STRIP=$ac_ct_STRIP
3403 fi
3404 else
3405 STRIP="$ac_cv_prog_STRIP"
3406 fi
3407
3408 fi
3409 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3410
3411
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3413 printf %s "checking for a race-free mkdir -p... " >&6; }
3414 if test -z "$MKDIR_P"; then
3415 if test ${ac_cv_path_mkdir+y}
3416 then :
3417 printf %s "(cached) " >&6
3418 else $as_nop
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3421 do
3422 IFS=$as_save_IFS
3423 case $as_dir in #(((
3424 '') as_dir=./ ;;
3425 */) ;;
3426 *) as_dir=$as_dir/ ;;
3427 esac
3428 for ac_prog in mkdir gmkdir; do
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3431 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3432 'mkdir ('*'coreutils) '* | \
3433 'BusyBox '* | \
3434 'mkdir (fileutils) '4.1*)
3435 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3436 break 3;;
3437 esac
3438 done
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi
3444
3445 test -d ./--version && rmdir ./--version
3446 if test ${ac_cv_path_mkdir+y}; then
3447 MKDIR_P="$ac_cv_path_mkdir -p"
3448 else
3449 # As a last resort, use the slow shell script. Don't cache a
3450 # value for MKDIR_P within a source directory, because that will
3451 # break other packages using the cache if that directory is
3452 # removed, or if the value is a relative name.
3453 MKDIR_P="$ac_install_sh -d"
3454 fi
3455 fi
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3457 printf "%s\n" "$MKDIR_P" >&6; }
3458
3459 for ac_prog in gawk mawk nawk awk
3460 do
3461 # Extract the first word of "$ac_prog", so it can be a program name with args.
3462 set dummy $ac_prog; ac_word=$2
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 printf %s "checking for $ac_word... " >&6; }
3465 if test ${ac_cv_prog_AWK+y}
3466 then :
3467 printf %s "(cached) " >&6
3468 else $as_nop
3469 if test -n "$AWK"; then
3470 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 case $as_dir in #(((
3477 '') as_dir=./ ;;
3478 */) ;;
3479 *) as_dir=$as_dir/ ;;
3480 esac
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_AWK="$ac_prog"
3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi
3492 fi
3493 AWK=$ac_cv_prog_AWK
3494 if test -n "$AWK"; then
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3496 printf "%s\n" "$AWK" >&6; }
3497 else
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 printf "%s\n" "no" >&6; }
3500 fi
3501
3502
3503 test -n "$AWK" && break
3504 done
3505
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3507 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3508 set x ${MAKE-make}
3509 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3510 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3511 then :
3512 printf %s "(cached) " >&6
3513 else $as_nop
3514 cat >conftest.make <<\_ACEOF
3515 SHELL = /bin/sh
3516 all:
3517 @echo '@@@%%%=$(MAKE)=@@@%%%'
3518 _ACEOF
3519 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3520 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3521 *@@@%%%=?*=@@@%%%*)
3522 eval ac_cv_prog_make_${ac_make}_set=yes;;
3523 *)
3524 eval ac_cv_prog_make_${ac_make}_set=no;;
3525 esac
3526 rm -f conftest.make
3527 fi
3528 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3530 printf "%s\n" "yes" >&6; }
3531 SET_MAKE=
3532 else
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 printf "%s\n" "no" >&6; }
3535 SET_MAKE="MAKE=${MAKE-make}"
3536 fi
3537
3538 rm -rf .tst 2>/dev/null
3539 mkdir .tst 2>/dev/null
3540 if test -d .tst; then
3541 am__leading_dot=.
3542 else
3543 am__leading_dot=_
3544 fi
3545 rmdir .tst 2>/dev/null
3546
3547 # Check whether --enable-silent-rules was given.
3548 if test ${enable_silent_rules+y}
3549 then :
3550 enableval=$enable_silent_rules;
3551 fi
3552
3553 case $enable_silent_rules in # (((
3554 yes) AM_DEFAULT_VERBOSITY=0;;
3555 no) AM_DEFAULT_VERBOSITY=1;;
3556 *) AM_DEFAULT_VERBOSITY=1;;
3557 esac
3558 am_make=${MAKE-make}
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3560 printf %s "checking whether $am_make supports nested variables... " >&6; }
3561 if test ${am_cv_make_support_nested_variables+y}
3562 then :
3563 printf %s "(cached) " >&6
3564 else $as_nop
3565 if printf "%s\n" 'TRUE=$(BAR$(V))
3566 BAR0=false
3567 BAR1=true
3568 V=1
3569 am__doit:
3570 @$(TRUE)
3571 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3572 am_cv_make_support_nested_variables=yes
3573 else
3574 am_cv_make_support_nested_variables=no
3575 fi
3576 fi
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3578 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3579 if test $am_cv_make_support_nested_variables = yes; then
3580 AM_V='$(V)'
3581 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3582 else
3583 AM_V=$AM_DEFAULT_VERBOSITY
3584 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3585 fi
3586 AM_BACKSLASH='\'
3587
3588 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3589 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3590 # is not polluted with repeated "-I."
3591 am__isrc=' -I$(srcdir)'
3592 # test to see if srcdir already configured
3593 if test -f $srcdir/config.status; then
3594 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3595 fi
3596 fi
3597
3598 # test whether we have cygpath
3599 if test -z "$CYGPATH_W"; then
3600 if (cygpath --version) >/dev/null 2>/dev/null; then
3601 CYGPATH_W='cygpath -w'
3602 else
3603 CYGPATH_W=echo
3604 fi
3605 fi
3606
3607
3608 # Define the identity of the package.
3609 PACKAGE='mpfr'
3610 VERSION='4.2.0'
3611
3612
3613 # Some tools Automake needs.
3614
3615 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3616
3617
3618 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3619
3620
3621 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3622
3623
3624 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3625
3626
3627 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3628
3629 # For better backward compatibility. To be removed once Automake 1.9.x
3630 # dies out for good. For more background, see:
3631 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3632 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3633 mkdir_p='$(MKDIR_P)'
3634
3635 # We need awk for the "check" target (and possibly the TAP driver). The
3636 # system "awk" is bad on some platforms.
3637 # Always define AMTAR for backward compatibility. Yes, it's still used
3638 # in the wild :-( We should find a proper way to deprecate it ...
3639 AMTAR='$${TAR-tar}'
3640
3641
3642 # We'll loop over all known methods to create a tar archive until one works.
3643 _am_tools='gnutar pax cpio none'
3644
3645 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3646
3647
3648
3649
3650
3651 # Variables for tags utilities; see am/tags.am
3652 if test -z "$CTAGS"; then
3653 CTAGS=ctags
3654 fi
3655
3656 if test -z "$ETAGS"; then
3657 ETAGS=etags
3658 fi
3659
3660 if test -z "$CSCOPE"; then
3661 CSCOPE=cscope
3662 fi
3663
3664
3665
3666 # POSIX will say in a future version that running "rm -f" with no argument
3667 # is OK; and we want to be able to make that assumption in our Makefile
3668 # recipes. So use an aggressive probe to check that the usage we want is
3669 # actually supported "in the wild" to an acceptable degree.
3670 # See automake bug#10828.
3671 # To make any issue more visible, cause the running configure to be aborted
3672 # by default if the 'rm' program in use doesn't match our expectations; the
3673 # user can still override this though.
3674 if rm -f && rm -fr && rm -rf; then : OK; else
3675 cat >&2 <<'END'
3676 Oops!
3677
3678 Your 'rm' program seems unable to run without file operands specified
3679 on the command line, even when the '-f' option is present. This is contrary
3680 to the behaviour of most rm programs out there, and not conforming with
3681 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3682
3683 Please tell bug-automake@gnu.org about your system, including the value
3684 of your $PATH and any error possibly output before this message. This
3685 can help us improve future automake versions.
3686
3687 END
3688 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3689 echo 'Configuration will proceed anyway, since you have set the' >&2
3690 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3691 echo >&2
3692 else
3693 cat >&2 <<'END'
3694 Aborting the configuration process, to ensure you take notice of the issue.
3695
3696 You can download and install GNU coreutils to get an 'rm' implementation
3697 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3698
3699 If you want to complete the configuration process using your problematic
3700 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3701 to "yes", and re-run configure.
3702
3703 END
3704 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3705 fi
3706 fi
3707
3708
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3710 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3711 # Check whether --enable-maintainer-mode was given.
3712 if test ${enable_maintainer_mode+y}
3713 then :
3714 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3715 else $as_nop
3716 USE_MAINTAINER_MODE=yes
3717 fi
3718
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3720 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3721 if test $USE_MAINTAINER_MODE = yes; then
3722 MAINTAINER_MODE_TRUE=
3723 MAINTAINER_MODE_FALSE='#'
3724 else
3725 MAINTAINER_MODE_TRUE='#'
3726 MAINTAINER_MODE_FALSE=
3727 fi
3728
3729 MAINT=$MAINTAINER_MODE_TRUE
3730
3731
3732
3733
3734
3735
3736 test_CFLAGS=${CFLAGS+set}
3737
3738 if test -n "$CFLAGS" || test -n "$CC" ; then
3739 user_redefine_cc=yes
3740 fi
3741
3742
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3744 printf %s "checking for grep that handles long lines and -e... " >&6; }
3745 if test ${ac_cv_path_GREP+y}
3746 then :
3747 printf %s "(cached) " >&6
3748 else $as_nop
3749 if test -z "$GREP"; then
3750 ac_path_GREP_found=false
3751 # Loop through the user's path and test for each of PROGNAME-LIST
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3754 do
3755 IFS=$as_save_IFS
3756 case $as_dir in #(((
3757 '') as_dir=./ ;;
3758 */) ;;
3759 *) as_dir=$as_dir/ ;;
3760 esac
3761 for ac_prog in grep ggrep
3762 do
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3765 as_fn_executable_p "$ac_path_GREP" || continue
3766 # Check for GNU ac_path_GREP and select it if it is found.
3767 # Check for GNU $ac_path_GREP
3768 case `"$ac_path_GREP" --version 2>&1` in
3769 *GNU*)
3770 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3771 *)
3772 ac_count=0
3773 printf %s 0123456789 >"conftest.in"
3774 while :
3775 do
3776 cat "conftest.in" "conftest.in" >"conftest.tmp"
3777 mv "conftest.tmp" "conftest.in"
3778 cp "conftest.in" "conftest.nl"
3779 printf "%s\n" 'GREP' >> "conftest.nl"
3780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3782 as_fn_arith $ac_count + 1 && ac_count=$as_val
3783 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3784 # Best one so far, save it but keep looking for a better one
3785 ac_cv_path_GREP="$ac_path_GREP"
3786 ac_path_GREP_max=$ac_count
3787 fi
3788 # 10*(2^10) chars as input seems more than enough
3789 test $ac_count -gt 10 && break
3790 done
3791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3792 esac
3793
3794 $ac_path_GREP_found && break 3
3795 done
3796 done
3797 done
3798 IFS=$as_save_IFS
3799 if test -z "$ac_cv_path_GREP"; then
3800 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3801 fi
3802 else
3803 ac_cv_path_GREP=$GREP
3804 fi
3805
3806 fi
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3808 printf "%s\n" "$ac_cv_path_GREP" >&6; }
3809 GREP="$ac_cv_path_GREP"
3810
3811
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3813 printf %s "checking for egrep... " >&6; }
3814 if test ${ac_cv_path_EGREP+y}
3815 then :
3816 printf %s "(cached) " >&6
3817 else $as_nop
3818 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3819 then ac_cv_path_EGREP="$GREP -E"
3820 else
3821 if test -z "$EGREP"; then
3822 ac_path_EGREP_found=false
3823 # Loop through the user's path and test for each of PROGNAME-LIST
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3826 do
3827 IFS=$as_save_IFS
3828 case $as_dir in #(((
3829 '') as_dir=./ ;;
3830 */) ;;
3831 *) as_dir=$as_dir/ ;;
3832 esac
3833 for ac_prog in egrep
3834 do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3837 as_fn_executable_p "$ac_path_EGREP" || continue
3838 # Check for GNU ac_path_EGREP and select it if it is found.
3839 # Check for GNU $ac_path_EGREP
3840 case `"$ac_path_EGREP" --version 2>&1` in
3841 *GNU*)
3842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3843 *)
3844 ac_count=0
3845 printf %s 0123456789 >"conftest.in"
3846 while :
3847 do
3848 cat "conftest.in" "conftest.in" >"conftest.tmp"
3849 mv "conftest.tmp" "conftest.in"
3850 cp "conftest.in" "conftest.nl"
3851 printf "%s\n" 'EGREP' >> "conftest.nl"
3852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854 as_fn_arith $ac_count + 1 && ac_count=$as_val
3855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3856 # Best one so far, save it but keep looking for a better one
3857 ac_cv_path_EGREP="$ac_path_EGREP"
3858 ac_path_EGREP_max=$ac_count
3859 fi
3860 # 10*(2^10) chars as input seems more than enough
3861 test $ac_count -gt 10 && break
3862 done
3863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3864 esac
3865
3866 $ac_path_EGREP_found && break 3
3867 done
3868 done
3869 done
3870 IFS=$as_save_IFS
3871 if test -z "$ac_cv_path_EGREP"; then
3872 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3873 fi
3874 else
3875 ac_cv_path_EGREP=$EGREP
3876 fi
3877
3878 fi
3879 fi
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3881 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
3882 EGREP="$ac_cv_path_EGREP"
3883
3884
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3886 printf %s "checking for a sed that does not truncate output... " >&6; }
3887 if test ${ac_cv_path_SED+y}
3888 then :
3889 printf %s "(cached) " >&6
3890 else $as_nop
3891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3892 for ac_i in 1 2 3 4 5 6 7; do
3893 ac_script="$ac_script$as_nl$ac_script"
3894 done
3895 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3896 { ac_script=; unset ac_script;}
3897 if test -z "$SED"; then
3898 ac_path_SED_found=false
3899 # Loop through the user's path and test for each of PROGNAME-LIST
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903 IFS=$as_save_IFS
3904 case $as_dir in #(((
3905 '') as_dir=./ ;;
3906 */) ;;
3907 *) as_dir=$as_dir/ ;;
3908 esac
3909 for ac_prog in sed gsed
3910 do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
3913 as_fn_executable_p "$ac_path_SED" || continue
3914 # Check for GNU ac_path_SED and select it if it is found.
3915 # Check for GNU $ac_path_SED
3916 case `"$ac_path_SED" --version 2>&1` in
3917 *GNU*)
3918 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3919 *)
3920 ac_count=0
3921 printf %s 0123456789 >"conftest.in"
3922 while :
3923 do
3924 cat "conftest.in" "conftest.in" >"conftest.tmp"
3925 mv "conftest.tmp" "conftest.in"
3926 cp "conftest.in" "conftest.nl"
3927 printf "%s\n" '' >> "conftest.nl"
3928 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930 as_fn_arith $ac_count + 1 && ac_count=$as_val
3931 if test $ac_count -gt ${ac_path_SED_max-0}; then
3932 # Best one so far, save it but keep looking for a better one
3933 ac_cv_path_SED="$ac_path_SED"
3934 ac_path_SED_max=$ac_count
3935 fi
3936 # 10*(2^10) chars as input seems more than enough
3937 test $ac_count -gt 10 && break
3938 done
3939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940 esac
3941
3942 $ac_path_SED_found && break 3
3943 done
3944 done
3945 done
3946 IFS=$as_save_IFS
3947 if test -z "$ac_cv_path_SED"; then
3948 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3949 fi
3950 else
3951 ac_cv_path_SED=$SED
3952 fi
3953
3954 fi
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3956 printf "%s\n" "$ac_cv_path_SED" >&6; }
3957 SED="$ac_cv_path_SED"
3958 rm -f conftest.sed
3959
3960
3961
3962 unset gmp_lib_path GMP_CFLAGS GMP_CC
3963
3964
3965
3966 # Check whether --with-gmp_include was given.
3967 if test ${with_gmp_include+y}
3968 then :
3969 withval=$with_gmp_include;
3970 if test -d "$withval" ; then
3971 local_tmp=`realpath "$withval" 2>/dev/null`
3972 if test "$local_tmp" != "" ; then
3973 if test -d "$local_tmp" ; then
3974 withval="$local_tmp"
3975 else
3976 withval="$withval"
3977 fi
3978 else
3979 case "$withval" in
3980 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
3981 *) withval="$PWD"/"$withval" ;;
3982 esac
3983 fi
3984 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
3985 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
3986 fi
3987 else
3988 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
3989 fi
3990
3991 CPPFLAGS="$CPPFLAGS -I$withval"
3992 fi
3993
3994
3995
3996 # Check whether --with-gmp_lib was given.
3997 if test ${with_gmp_lib+y}
3998 then :
3999 withval=$with_gmp_lib;
4000
4001 if test -d "$withval" ; then
4002 local_tmp=`realpath "$withval" 2>/dev/null`
4003 if test "$local_tmp" != "" ; then
4004 if test -d "$local_tmp" ; then
4005 withval="$local_tmp"
4006 else
4007 withval="$withval"
4008 fi
4009 else
4010 case "$withval" in
4011 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
4012 *) withval="$PWD"/"$withval" ;;
4013 esac
4014 fi
4015 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
4016 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
4017 fi
4018 else
4019 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
4020 fi
4021
4022 LDFLAGS="$LDFLAGS -L$withval"
4023 gmp_lib_path="$withval"
4024
4025 fi
4026
4027
4028
4029 # Check whether --with-gmp was given.
4030 if test ${with_gmp+y}
4031 then :
4032 withval=$with_gmp;
4033
4034 if test -d "$withval" ; then
4035 local_tmp=`realpath "$withval" 2>/dev/null`
4036 if test "$local_tmp" != "" ; then
4037 if test -d "$local_tmp" ; then
4038 withval="$local_tmp"
4039 else
4040 withval="$withval"
4041 fi
4042 else
4043 case "$withval" in
4044 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
4045 *) withval="$PWD"/"$withval" ;;
4046 esac
4047 fi
4048 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
4049 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
4050 fi
4051 else
4052 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
4053 fi
4054
4055 if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then
4056 CPPFLAGS="$CPPFLAGS -I$withval/include"
4057 LDFLAGS="$LDFLAGS -L$withval/lib"
4058 gmp_lib_path="$withval/lib"
4059 else
4060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4062 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
4063 See \`config.log' for more details" "$LINENO" 5; }
4064 fi
4065
4066 fi
4067
4068
4069
4070 # Check whether --with-gmp_build was given.
4071 if test ${with_gmp_build+y}
4072 then :
4073 withval=$with_gmp_build;
4074
4075 if test -d "$withval" ; then
4076 local_tmp=`realpath "$withval" 2>/dev/null`
4077 if test "$local_tmp" != "" ; then
4078 if test -d "$local_tmp" ; then
4079 withval="$local_tmp"
4080 else
4081 withval="$withval"
4082 fi
4083 else
4084 case "$withval" in
4085 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
4086 *) withval="$PWD"/"$withval" ;;
4087 esac
4088 fi
4089 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
4090 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
4091 fi
4092 else
4093 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
4094 fi
4095
4096 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then
4097 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
4098 LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune"
4099 gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
4100 if test -r $withval/Makefile ; then
4101 GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile`
4102 GMP_CC=`$SED -n 's/^CC = //p' $withval/Makefile`
4103 GMP_SOURCE=`$SED -n 's/^srcdir = *//p' $withval/Makefile`
4104 case "$GMP_SOURCE" in
4105 .) GMP_SOURCE="" ;;
4106 /*) ;;
4107 ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;;
4108 esac
4109 if test -d "$GMP_SOURCE" ; then
4110 CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune"
4111 fi
4112 fi
4113 use_gmp_build=yes
4114 else
4115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4117 as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously.
4118 See \`config.log' for more details" "$LINENO" 5; }
4119 fi
4120
4121 fi
4122
4123
4124
4125 # Check whether --with-mini_gmp was given.
4126 if test ${with_mini_gmp+y}
4127 then :
4128 withval=$with_mini_gmp;
4129
4130 if test -d "$withval" ; then
4131 local_tmp=`realpath "$withval" 2>/dev/null`
4132 if test "$local_tmp" != "" ; then
4133 if test -d "$local_tmp" ; then
4134 withval="$local_tmp"
4135 else
4136 withval="$withval"
4137 fi
4138 else
4139 case "$withval" in
4140 [\\/]* | ?:[\\/]* ) withval="$withval" ;;
4141 *) withval="$PWD"/"$withval" ;;
4142 esac
4143 fi
4144 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then
4145 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5
4146 fi
4147 else
4148 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5
4149 fi
4150
4151 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" && \
4152 test -z "$use_gmp_build"; then
4153 if test -f "$withval/mini-gmp.c" && test -f "$withval/mini-gmp.h"; then
4154
4155 printf "%s\n" "#define MPFR_USE_MINI_GMP 1" >>confdefs.h
4156
4157 mini_gmp_path="$withval"
4158
4159 else
4160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error $? "mini-gmp.{c,h} not found in $withval
4163 See \`config.log' for more details" "$LINENO" 5; }
4164 fi
4165 else
4166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "Do not use --with-mini-gmp and other --with-gmp options simultaneously.
4169 See \`config.log' for more details" "$LINENO" 5; }
4170 fi
4171
4172 fi
4173
4174
4175
4176 # Check whether --with-mulhigh_size was given.
4177 if test ${with_mulhigh_size+y}
4178 then :
4179 withval=$with_mulhigh_size;
4180 printf "%s\n" "#define MPFR_MULHIGH_SIZE $withval" >>confdefs.h
4181
4182 fi
4183
4184
4185 # Check whether --enable-gmp-internals was given.
4186 if test ${enable_gmp_internals+y}
4187 then :
4188 enableval=$enable_gmp_internals; case $enableval in
4189 yes)
4190 printf "%s\n" "#define WANT_GMP_INTERNALS 1" >>confdefs.h
4191 ;;
4192 no) ;;
4193 *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;;
4194 esac
4195 fi
4196
4197
4198 # Check whether --enable-assert was given.
4199 if test ${enable_assert+y}
4200 then :
4201 enableval=$enable_assert; case $enableval in
4202 yes)
4203 printf "%s\n" "#define MPFR_WANT_ASSERT 1" >>confdefs.h
4204 ;;
4205 none)
4206 printf "%s\n" "#define MPFR_WANT_ASSERT -1" >>confdefs.h
4207 ;;
4208 no) ;;
4209 full)
4210 printf "%s\n" "#define MPFR_WANT_ASSERT 2" >>confdefs.h
4211 ;;
4212 *) as_fn_error $? "bad value for --enable-assert: yes, no, none or full" "$LINENO" 5 ;;
4213 esac
4214 fi
4215
4216
4217 # Check whether --enable-logging was given.
4218 if test ${enable_logging+y}
4219 then :
4220 enableval=$enable_logging; case $enableval in
4221 yes)
4222 printf "%s\n" "#define MPFR_USE_LOGGING 1" >>confdefs.h
4223 ;;
4224 no) ;;
4225 *) as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;;
4226 esac
4227 fi
4228
4229
4230 # Check whether --enable-thread-safe was given.
4231 if test ${enable_thread_safe+y}
4232 then :
4233 enableval=$enable_thread_safe; case $enableval in
4234 yes) ;;
4235 no) ;;
4236 *) as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;;
4237 esac
4238 fi
4239
4240
4241 # Check whether --enable-shared-cache was given.
4242 if test ${enable_shared_cache+y}
4243 then :
4244 enableval=$enable_shared_cache; case $enableval in
4245 yes)
4246
4247 printf "%s\n" "#define MPFR_WANT_SHARED_CACHE 1" >>confdefs.h
4248 ;;
4249 no) ;;
4250 *) as_fn_error $? "bad value for --enable-shared-cache: yes or no" "$LINENO" 5 ;;
4251 esac
4252 fi
4253
4254
4255 # Check whether --enable-warnings was given.
4256 if test ${enable_warnings+y}
4257 then :
4258 enableval=$enable_warnings; case $enableval in
4259 yes)
4260 printf "%s\n" "#define MPFR_USE_WARNINGS 1" >>confdefs.h
4261 ;;
4262 no) ;;
4263 *) as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;;
4264 esac
4265 fi
4266
4267
4268 # Check whether --enable-tests-timeout was given.
4269 if test ${enable_tests_timeout+y}
4270 then :
4271 enableval=$enable_tests_timeout; case $enableval in
4272 no) ;;
4273 yes)
4274 printf "%s\n" "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
4275 ;;
4276 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
4277
4278 printf "%s\n" "#define MPFR_TESTS_TIMEOUT $enableval" >>confdefs.h
4279 ;;
4280 *) as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;;
4281 esac
4282 fi
4283
4284
4285 # Check whether --enable-tune-for-coverage was given.
4286 if test ${enable_tune_for_coverage+y}
4287 then :
4288 enableval=$enable_tune_for_coverage; case $enableval in
4289 no) ;;
4290 yes)
4291 printf "%s\n" "#define MPFR_TUNE_COVERAGE 1" >>confdefs.h
4292 ;;
4293 *) as_fn_error $? "bad value for --enable-tune-for-coverage" "$LINENO" 5 ;;
4294 esac
4295 fi
4296
4297
4298 # Check whether --enable-decimal-float was given.
4299 if test ${enable_decimal_float+y}
4300 then :
4301 enableval=$enable_decimal_float; case $enableval in
4302 yes|no|auto|bid|dpd|generic) ;;
4303 *) as_fn_error $? "bad value for --enable-decimal-float" "$LINENO" 5 ;;
4304 esac
4305 fi
4306
4307
4308 # Check whether --enable-float128 was given.
4309 if test ${enable_float128+y}
4310 then :
4311 enableval=$enable_float128; case $enableval in
4312 yes) ;;
4313 no) ;;
4314 *) as_fn_error $? "bad value for --enable-float128: yes or no" "$LINENO" 5 ;;
4315 esac
4316 fi
4317
4318
4319 # Check whether --enable-debug-prediction was given.
4320 if test ${enable_debug_prediction+y}
4321 then :
4322 enableval=$enable_debug_prediction; case $enableval in
4323 yes) if test "$enable_shared" != no; then
4324 as_fn_error $? "--enable-debug-prediction can only work in static mode (--disable-shared)" "$LINENO" 5
4325 fi
4326
4327 printf "%s\n" "#define MPFR_DEBUG_PREDICTION 1" >>confdefs.h
4328 ;;
4329 no) ;;
4330 *) as_fn_error $? "bad value for --enable-debug-prediction: yes or no" "$LINENO" 5 ;;
4331 esac
4332 fi
4333
4334
4335 # Check whether --enable-lto was given.
4336 if test ${enable_lto+y}
4337 then :
4338 enableval=$enable_lto; case $enableval in
4339 yes) if test "$enable_shared" != "no"; then
4340 as_fn_error $? "--enable-lto can only work in static mode (--disable-shared)" "$LINENO" 5
4341 fi
4342 enable_lto=yes
4343 ;;
4344 no) ;;
4345 *) as_fn_error $? "bad value for --enable-lto: yes or no" "$LINENO" 5 ;;
4346 esac
4347 fi
4348
4349
4350 # Check whether --enable-formally-proven-code was given.
4351 if test ${enable_formally_proven_code+y}
4352 then :
4353 enableval=$enable_formally_proven_code; case $enableval in
4354 yes)
4355 printf "%s\n" "#define MPFR_WANT_PROVEN_CODE 1" >>confdefs.h
4356 ;;
4357 no) ;;
4358 *) as_fn_error $? "bad value for --enable-formally-proven-code: yes or no" "$LINENO" 5 ;;
4359 esac
4360 fi
4361
4362
4363 if test -n "$mini_gmp_path"; then
4364 MINI_GMP_TRUE=
4365 MINI_GMP_FALSE='#'
4366 else
4367 MINI_GMP_TRUE='#'
4368 MINI_GMP_FALSE=
4369 fi
4370
4371
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether configure options are compatible" >&5
4373 printf %s "checking whether configure options are compatible... " >&6; }
4374 if test "$enable_logging" = yes; then
4375 if test "$enable_thread_safe" = yes; then
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 printf "%s\n" "no" >&6; }
4378 as_fn_error $? "enable either logging or thread-safe, not both" "$LINENO" 5
4379 fi
4380 if test "$enable_shared_cache" = yes; then
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 printf "%s\n" "no" >&6; }
4383 as_fn_error $? "shared cache does not work with logging support" "$LINENO" 5
4384 fi
4385 enable_thread_safe=no
4386 fi
4387 if test "$enable_shared_cache" = yes; then
4388 if test "$enable_thread_safe" = no; then
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 printf "%s\n" "no" >&6; }
4391 as_fn_error $? "shared cache needs thread-safe support" "$LINENO" 5
4392 fi
4393 enable_thread_safe=yes
4394 fi
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4396 printf "%s\n" "yes" >&6; }
4397
4398
4399
4400
4401
4402
4403 if test -z "$user_redefine_cc" && \
4404 test "$cross_compiling" != yes && \
4405 test "${with_mini_gmp+set}" != set ; then
4406
4407 if test -z "$GMP_CC$GMP_CFLAGS" ; then
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
4409 printf %s "checking for CC and CFLAGS in gmp.h... " >&6; }
4410 GMP_CC=__GMP_CC
4411 GMP_CFLAGS=__GMP_CFLAGS
4412 # /lib/cpp under Solaris doesn't support some environment variables
4413 # used by GCC, such as C_INCLUDE_PATH. If the user has set up such
4414 # environment variables, he probably wants to use them. So, let us
4415 # prefer cpp and gcc to /lib/cpp. However, note that this won't
4416 # work if GCC has been installed with versioned names only (e.g.
4417 # with cpp-5 and gcc-5).
4418 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"
4419 do
4420 # Get CC
4421 echo "#include \"gmp.h\"" > conftest.c
4422 echo "MPFR_OPTION __GMP_CC" >> conftest.c
4423 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt
4424 test $? -ne 0 && continue
4425 GMP_CC=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
4426 # Get CFLAGS
4427 echo "#include \"gmp.h\"" > conftest.c
4428 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
4429 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt
4430 test $? -ne 0 && continue
4431 GMP_CFLAGS=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/[ "]-pedantic[ "]/ /g;s/MPFR_OPTION //g;s/ *" *//g'`
4432 break
4433 done
4434 rm -f conftest*
4435 if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then
4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
4437 printf "%s\n" "failed" >&6; }
4438 GMP_CFLAGS=
4439 GMP_CC=
4440 else
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
4442 printf "%s\n" "CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
4443 fi
4444 fi
4445
4446 if test -n "$GMP_CC$GMP_CFLAGS" ; then
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
4448 printf %s "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
4449 echo "int main (void) { return 0; }" > conftest.c
4450 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4452 printf "%s\n" "yes" >&6; }
4453 CFLAGS=$GMP_CFLAGS
4454 CC=$GMP_CC
4455 else
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 printf "%s\n" "no" >&6; }
4458 fi
4459 rm -f conftest*
4460 fi
4461
4462 fi
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 if test -n "$ac_tool_prefix"; then
4480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4481 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 printf %s "checking for $ac_word... " >&6; }
4484 if test ${ac_cv_prog_CC+y}
4485 then :
4486 printf %s "(cached) " >&6
4487 else $as_nop
4488 if test -n "$CC"; then
4489 ac_cv_prog_CC="$CC" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494 IFS=$as_save_IFS
4495 case $as_dir in #(((
4496 '') as_dir=./ ;;
4497 */) ;;
4498 *) as_dir=$as_dir/ ;;
4499 esac
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4502 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4504 break 2
4505 fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 fi
4511 fi
4512 CC=$ac_cv_prog_CC
4513 if test -n "$CC"; then
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4515 printf "%s\n" "$CC" >&6; }
4516 else
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 printf "%s\n" "no" >&6; }
4519 fi
4520
4521
4522 fi
4523 if test -z "$ac_cv_prog_CC"; then
4524 ac_ct_CC=$CC
4525 # Extract the first word of "gcc", so it can be a program name with args.
4526 set dummy gcc; ac_word=$2
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 printf %s "checking for $ac_word... " >&6; }
4529 if test ${ac_cv_prog_ac_ct_CC+y}
4530 then :
4531 printf %s "(cached) " >&6
4532 else $as_nop
4533 if test -n "$ac_ct_CC"; then
4534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539 IFS=$as_save_IFS
4540 case $as_dir in #(((
4541 '') as_dir=./ ;;
4542 */) ;;
4543 *) as_dir=$as_dir/ ;;
4544 esac
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4547 ac_cv_prog_ac_ct_CC="gcc"
4548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551 done
4552 done
4553 IFS=$as_save_IFS
4554
4555 fi
4556 fi
4557 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4558 if test -n "$ac_ct_CC"; then
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4560 printf "%s\n" "$ac_ct_CC" >&6; }
4561 else
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 printf "%s\n" "no" >&6; }
4564 fi
4565
4566 if test "x$ac_ct_CC" = x; then
4567 CC=""
4568 else
4569 case $cross_compiling:$ac_tool_warned in
4570 yes:)
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4573 ac_tool_warned=yes ;;
4574 esac
4575 CC=$ac_ct_CC
4576 fi
4577 else
4578 CC="$ac_cv_prog_CC"
4579 fi
4580
4581 if test -z "$CC"; then
4582 if test -n "$ac_tool_prefix"; then
4583 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4584 set dummy ${ac_tool_prefix}cc; ac_word=$2
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 printf %s "checking for $ac_word... " >&6; }
4587 if test ${ac_cv_prog_CC+y}
4588 then :
4589 printf %s "(cached) " >&6
4590 else $as_nop
4591 if test -n "$CC"; then
4592 ac_cv_prog_CC="$CC" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597 IFS=$as_save_IFS
4598 case $as_dir in #(((
4599 '') as_dir=./ ;;
4600 */) ;;
4601 *) as_dir=$as_dir/ ;;
4602 esac
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_CC="${ac_tool_prefix}cc"
4606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613 fi
4614 fi
4615 CC=$ac_cv_prog_CC
4616 if test -n "$CC"; then
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4618 printf "%s\n" "$CC" >&6; }
4619 else
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 printf "%s\n" "no" >&6; }
4622 fi
4623
4624
4625 fi
4626 fi
4627 if test -z "$CC"; then
4628 # Extract the first word of "cc", so it can be a program name with args.
4629 set dummy cc; ac_word=$2
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 printf %s "checking for $ac_word... " >&6; }
4632 if test ${ac_cv_prog_CC+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else $as_nop
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638 else
4639 ac_prog_rejected=no
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643 IFS=$as_save_IFS
4644 case $as_dir in #(((
4645 '') as_dir=./ ;;
4646 */) ;;
4647 *) as_dir=$as_dir/ ;;
4648 esac
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4651 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4652 ac_prog_rejected=yes
4653 continue
4654 fi
4655 ac_cv_prog_CC="cc"
4656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4657 break 2
4658 fi
4659 done
4660 done
4661 IFS=$as_save_IFS
4662
4663 if test $ac_prog_rejected = yes; then
4664 # We found a bogon in the path, so make sure we never use it.
4665 set dummy $ac_cv_prog_CC
4666 shift
4667 if test $# != 0; then
4668 # We chose a different compiler from the bogus one.
4669 # However, it has the same basename, so the bogon will be chosen
4670 # first if we set CC to just the basename; use the full file name.
4671 shift
4672 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4673 fi
4674 fi
4675 fi
4676 fi
4677 CC=$ac_cv_prog_CC
4678 if test -n "$CC"; then
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4680 printf "%s\n" "$CC" >&6; }
4681 else
4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 printf "%s\n" "no" >&6; }
4684 fi
4685
4686
4687 fi
4688 if test -z "$CC"; then
4689 if test -n "$ac_tool_prefix"; then
4690 for ac_prog in cl.exe
4691 do
4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 printf %s "checking for $ac_word... " >&6; }
4696 if test ${ac_cv_prog_CC+y}
4697 then :
4698 printf %s "(cached) " >&6
4699 else $as_nop
4700 if test -n "$CC"; then
4701 ac_cv_prog_CC="$CC" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706 IFS=$as_save_IFS
4707 case $as_dir in #(((
4708 '') as_dir=./ ;;
4709 */) ;;
4710 *) as_dir=$as_dir/ ;;
4711 esac
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 CC=$ac_cv_prog_CC
4725 if test -n "$CC"; then
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4727 printf "%s\n" "$CC" >&6; }
4728 else
4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 printf "%s\n" "no" >&6; }
4731 fi
4732
4733
4734 test -n "$CC" && break
4735 done
4736 fi
4737 if test -z "$CC"; then
4738 ac_ct_CC=$CC
4739 for ac_prog in cl.exe
4740 do
4741 # Extract the first word of "$ac_prog", so it can be a program name with args.
4742 set dummy $ac_prog; ac_word=$2
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 printf %s "checking for $ac_word... " >&6; }
4745 if test ${ac_cv_prog_ac_ct_CC+y}
4746 then :
4747 printf %s "(cached) " >&6
4748 else $as_nop
4749 if test -n "$ac_ct_CC"; then
4750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 case $as_dir in #(((
4757 '') as_dir=./ ;;
4758 */) ;;
4759 *) as_dir=$as_dir/ ;;
4760 esac
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_ac_ct_CC="$ac_prog"
4764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767 done
4768 done
4769 IFS=$as_save_IFS
4770
4771 fi
4772 fi
4773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4774 if test -n "$ac_ct_CC"; then
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4776 printf "%s\n" "$ac_ct_CC" >&6; }
4777 else
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 printf "%s\n" "no" >&6; }
4780 fi
4781
4782
4783 test -n "$ac_ct_CC" && break
4784 done
4785
4786 if test "x$ac_ct_CC" = x; then
4787 CC=""
4788 else
4789 case $cross_compiling:$ac_tool_warned in
4790 yes:)
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4792 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4793 ac_tool_warned=yes ;;
4794 esac
4795 CC=$ac_ct_CC
4796 fi
4797 fi
4798
4799 fi
4800 if test -z "$CC"; then
4801 if test -n "$ac_tool_prefix"; then
4802 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}clang; ac_word=$2
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 printf %s "checking for $ac_word... " >&6; }
4806 if test ${ac_cv_prog_CC+y}
4807 then :
4808 printf %s "(cached) " >&6
4809 else $as_nop
4810 if test -n "$CC"; then
4811 ac_cv_prog_CC="$CC" # Let the user override the test.
4812 else
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH
4815 do
4816 IFS=$as_save_IFS
4817 case $as_dir in #(((
4818 '') as_dir=./ ;;
4819 */) ;;
4820 *) as_dir=$as_dir/ ;;
4821 esac
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4824 ac_cv_prog_CC="${ac_tool_prefix}clang"
4825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828 done
4829 done
4830 IFS=$as_save_IFS
4831
4832 fi
4833 fi
4834 CC=$ac_cv_prog_CC
4835 if test -n "$CC"; then
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4837 printf "%s\n" "$CC" >&6; }
4838 else
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 printf "%s\n" "no" >&6; }
4841 fi
4842
4843
4844 fi
4845 if test -z "$ac_cv_prog_CC"; then
4846 ac_ct_CC=$CC
4847 # Extract the first word of "clang", so it can be a program name with args.
4848 set dummy clang; ac_word=$2
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850 printf %s "checking for $ac_word... " >&6; }
4851 if test ${ac_cv_prog_ac_ct_CC+y}
4852 then :
4853 printf %s "(cached) " >&6
4854 else $as_nop
4855 if test -n "$ac_ct_CC"; then
4856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861 IFS=$as_save_IFS
4862 case $as_dir in #(((
4863 '') as_dir=./ ;;
4864 */) ;;
4865 *) as_dir=$as_dir/ ;;
4866 esac
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_ac_ct_CC="clang"
4870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4871 break 2
4872 fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4880 if test -n "$ac_ct_CC"; then
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4882 printf "%s\n" "$ac_ct_CC" >&6; }
4883 else
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 printf "%s\n" "no" >&6; }
4886 fi
4887
4888 if test "x$ac_ct_CC" = x; then
4889 CC=""
4890 else
4891 case $cross_compiling:$ac_tool_warned in
4892 yes:)
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned=yes ;;
4896 esac
4897 CC=$ac_ct_CC
4898 fi
4899 else
4900 CC="$ac_cv_prog_CC"
4901 fi
4902
4903 fi
4904
4905
4906 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4907 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4908 as_fn_error $? "no acceptable C compiler found in \$PATH
4909 See \`config.log' for more details" "$LINENO" 5; }
4910
4911 # Provide some information about the compiler.
4912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4913 set X $ac_compile
4914 ac_compiler=$2
4915 for ac_option in --version -v -V -qversion -version; do
4916 { { ac_try="$ac_compiler $ac_option >&5"
4917 case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920 esac
4921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4922 printf "%s\n" "$ac_try_echo"; } >&5
4923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4924 ac_status=$?
4925 if test -s conftest.err; then
4926 sed '10a\
4927 ... rest of stderr output deleted ...
4928 10q' conftest.err >conftest.er1
4929 cat conftest.er1 >&5
4930 fi
4931 rm -f conftest.er1 conftest.err
4932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4933 test $ac_status = 0; }
4934 done
4935
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938
4939 int
4940 main (void)
4941 {
4942
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 ac_clean_files_save=$ac_clean_files
4948 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4949 # Try to create an executable without -o first, disregard a.out.
4950 # It will help us diagnose broken compilers, and finding out an intuition
4951 # of exeext.
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4953 printf %s "checking whether the C compiler works... " >&6; }
4954 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4955
4956 # The possible output files:
4957 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4958
4959 ac_rmfiles=
4960 for ac_file in $ac_files
4961 do
4962 case $ac_file in
4963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4964 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4965 esac
4966 done
4967 rm -f $ac_rmfiles
4968
4969 if { { ac_try="$ac_link_default"
4970 case "(($ac_try" in
4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4972 *) ac_try_echo=$ac_try;;
4973 esac
4974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4975 printf "%s\n" "$ac_try_echo"; } >&5
4976 (eval "$ac_link_default") 2>&5
4977 ac_status=$?
4978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; }
4980 then :
4981 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4982 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4983 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4984 # so that the user can short-circuit this test for compilers unknown to
4985 # Autoconf.
4986 for ac_file in $ac_files ''
4987 do
4988 test -f "$ac_file" || continue
4989 case $ac_file in
4990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4991 ;;
4992 [ab].out )
4993 # We found the default executable, but exeext='' is most
4994 # certainly right.
4995 break;;
4996 *.* )
4997 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4998 then :; else
4999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5000 fi
5001 # We set ac_cv_exeext here because the later test for it is not
5002 # safe: cross compilers may not add the suffix if given an `-o'
5003 # argument, so we may need to know it at that point already.
5004 # Even if this section looks crufty: it has the advantage of
5005 # actually working.
5006 break;;
5007 * )
5008 break;;
5009 esac
5010 done
5011 test "$ac_cv_exeext" = no && ac_cv_exeext=
5012
5013 else $as_nop
5014 ac_file=''
5015 fi
5016 if test -z "$ac_file"
5017 then :
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 printf "%s\n" "no" >&6; }
5020 printf "%s\n" "$as_me: failed program was:" >&5
5021 sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5024 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5025 as_fn_error 77 "C compiler cannot create executables
5026 See \`config.log' for more details" "$LINENO" 5; }
5027 else $as_nop
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5029 printf "%s\n" "yes" >&6; }
5030 fi
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5032 printf %s "checking for C compiler default output file name... " >&6; }
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5034 printf "%s\n" "$ac_file" >&6; }
5035 ac_exeext=$ac_cv_exeext
5036
5037 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5038 ac_clean_files=$ac_clean_files_save
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5040 printf %s "checking for suffix of executables... " >&6; }
5041 if { { ac_try="$ac_link"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5047 printf "%s\n" "$ac_try_echo"; } >&5
5048 (eval "$ac_link") 2>&5
5049 ac_status=$?
5050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5051 test $ac_status = 0; }
5052 then :
5053 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5054 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5055 # work properly (i.e., refer to `conftest.exe'), while it won't with
5056 # `rm'.
5057 for ac_file in conftest.exe conftest conftest.*; do
5058 test -f "$ac_file" || continue
5059 case $ac_file in
5060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5062 break;;
5063 * ) break;;
5064 esac
5065 done
5066 else $as_nop
5067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5068 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5069 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5070 See \`config.log' for more details" "$LINENO" 5; }
5071 fi
5072 rm -f conftest conftest$ac_cv_exeext
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5074 printf "%s\n" "$ac_cv_exeext" >&6; }
5075
5076 rm -f conftest.$ac_ext
5077 EXEEXT=$ac_cv_exeext
5078 ac_exeext=$EXEEXT
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #include <stdio.h>
5082 int
5083 main (void)
5084 {
5085 FILE *f = fopen ("conftest.out", "w");
5086 return ferror (f) || fclose (f) != 0;
5087
5088 ;
5089 return 0;
5090 }
5091 _ACEOF
5092 ac_clean_files="$ac_clean_files conftest.out"
5093 # Check that the compiler produces executables we can run. If not, either
5094 # the compiler is broken, or we cross compile.
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5096 printf %s "checking whether we are cross compiling... " >&6; }
5097 if test "$cross_compiling" != yes; then
5098 { { ac_try="$ac_link"
5099 case "(($ac_try" in
5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5101 *) ac_try_echo=$ac_try;;
5102 esac
5103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5104 printf "%s\n" "$ac_try_echo"; } >&5
5105 (eval "$ac_link") 2>&5
5106 ac_status=$?
5107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }
5109 if { ac_try='./conftest$ac_cv_exeext'
5110 { { case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5115 printf "%s\n" "$ac_try_echo"; } >&5
5116 (eval "$ac_try") 2>&5
5117 ac_status=$?
5118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5119 test $ac_status = 0; }; }; then
5120 cross_compiling=no
5121 else
5122 if test "$cross_compiling" = maybe; then
5123 cross_compiling=yes
5124 else
5125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5126 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5127 as_fn_error 77 "cannot run C compiled programs.
5128 If you meant to cross compile, use \`--host'.
5129 See \`config.log' for more details" "$LINENO" 5; }
5130 fi
5131 fi
5132 fi
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5134 printf "%s\n" "$cross_compiling" >&6; }
5135
5136 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5137 ac_clean_files=$ac_clean_files_save
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5139 printf %s "checking for suffix of object files... " >&6; }
5140 if test ${ac_cv_objext+y}
5141 then :
5142 printf %s "(cached) " >&6
5143 else $as_nop
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146
5147 int
5148 main (void)
5149 {
5150
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.o conftest.obj
5156 if { { ac_try="$ac_compile"
5157 case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5160 esac
5161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5162 printf "%s\n" "$ac_try_echo"; } >&5
5163 (eval "$ac_compile") 2>&5
5164 ac_status=$?
5165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166 test $ac_status = 0; }
5167 then :
5168 for ac_file in conftest.o conftest.obj conftest.*; do
5169 test -f "$ac_file" || continue;
5170 case $ac_file in
5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5173 break;;
5174 esac
5175 done
5176 else $as_nop
5177 printf "%s\n" "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5181 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5182 as_fn_error $? "cannot compute suffix of object files: cannot compile
5183 See \`config.log' for more details" "$LINENO" 5; }
5184 fi
5185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5186 fi
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5188 printf "%s\n" "$ac_cv_objext" >&6; }
5189 OBJEXT=$ac_cv_objext
5190 ac_objext=$OBJEXT
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5192 printf %s "checking whether the compiler supports GNU C... " >&6; }
5193 if test ${ac_cv_c_compiler_gnu+y}
5194 then :
5195 printf %s "(cached) " >&6
5196 else $as_nop
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 int
5201 main (void)
5202 {
5203 #ifndef __GNUC__
5204 choke me
5205 #endif
5206
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_compile "$LINENO"
5212 then :
5213 ac_compiler_gnu=yes
5214 else $as_nop
5215 ac_compiler_gnu=no
5216 fi
5217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5219
5220 fi
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5222 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225 if test $ac_compiler_gnu = yes; then
5226 GCC=yes
5227 else
5228 GCC=
5229 fi
5230 ac_test_CFLAGS=${CFLAGS+y}
5231 ac_save_CFLAGS=$CFLAGS
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5233 printf %s "checking whether $CC accepts -g... " >&6; }
5234 if test ${ac_cv_prog_cc_g+y}
5235 then :
5236 printf %s "(cached) " >&6
5237 else $as_nop
5238 ac_save_c_werror_flag=$ac_c_werror_flag
5239 ac_c_werror_flag=yes
5240 ac_cv_prog_cc_g=no
5241 CFLAGS="-g"
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244
5245 int
5246 main (void)
5247 {
5248
5249 ;
5250 return 0;
5251 }
5252 _ACEOF
5253 if ac_fn_c_try_compile "$LINENO"
5254 then :
5255 ac_cv_prog_cc_g=yes
5256 else $as_nop
5257 CFLAGS=""
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260
5261 int
5262 main (void)
5263 {
5264
5265 ;
5266 return 0;
5267 }
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"
5270 then :
5271
5272 else $as_nop
5273 ac_c_werror_flag=$ac_save_c_werror_flag
5274 CFLAGS="-g"
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277
5278 int
5279 main (void)
5280 {
5281
5282 ;
5283 return 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_compile "$LINENO"
5287 then :
5288 ac_cv_prog_cc_g=yes
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5291 fi
5292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5293 fi
5294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5295 ac_c_werror_flag=$ac_save_c_werror_flag
5296 fi
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5298 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5299 if test $ac_test_CFLAGS; then
5300 CFLAGS=$ac_save_CFLAGS
5301 elif test $ac_cv_prog_cc_g = yes; then
5302 if test "$GCC" = yes; then
5303 CFLAGS="-g -O2"
5304 else
5305 CFLAGS="-g"
5306 fi
5307 else
5308 if test "$GCC" = yes; then
5309 CFLAGS="-O2"
5310 else
5311 CFLAGS=
5312 fi
5313 fi
5314 ac_prog_cc_stdc=no
5315 if test x$ac_prog_cc_stdc = xno
5316 then :
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5318 printf %s "checking for $CC option to enable C11 features... " >&6; }
5319 if test ${ac_cv_prog_cc_c11+y}
5320 then :
5321 printf %s "(cached) " >&6
5322 else $as_nop
5323 ac_cv_prog_cc_c11=no
5324 ac_save_CC=$CC
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 $ac_c_conftest_c11_program
5328 _ACEOF
5329 for ac_arg in '' -std=gnu11
5330 do
5331 CC="$ac_save_CC $ac_arg"
5332 if ac_fn_c_try_compile "$LINENO"
5333 then :
5334 ac_cv_prog_cc_c11=$ac_arg
5335 fi
5336 rm -f core conftest.err conftest.$ac_objext conftest.beam
5337 test "x$ac_cv_prog_cc_c11" != "xno" && break
5338 done
5339 rm -f conftest.$ac_ext
5340 CC=$ac_save_CC
5341 fi
5342
5343 if test "x$ac_cv_prog_cc_c11" = xno
5344 then :
5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5346 printf "%s\n" "unsupported" >&6; }
5347 else $as_nop
5348 if test "x$ac_cv_prog_cc_c11" = x
5349 then :
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5351 printf "%s\n" "none needed" >&6; }
5352 else $as_nop
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5354 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5355 CC="$CC $ac_cv_prog_cc_c11"
5356 fi
5357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5358 ac_prog_cc_stdc=c11
5359 fi
5360 fi
5361 if test x$ac_prog_cc_stdc = xno
5362 then :
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5364 printf %s "checking for $CC option to enable C99 features... " >&6; }
5365 if test ${ac_cv_prog_cc_c99+y}
5366 then :
5367 printf %s "(cached) " >&6
5368 else $as_nop
5369 ac_cv_prog_cc_c99=no
5370 ac_save_CC=$CC
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 $ac_c_conftest_c99_program
5374 _ACEOF
5375 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5376 do
5377 CC="$ac_save_CC $ac_arg"
5378 if ac_fn_c_try_compile "$LINENO"
5379 then :
5380 ac_cv_prog_cc_c99=$ac_arg
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.beam
5383 test "x$ac_cv_prog_cc_c99" != "xno" && break
5384 done
5385 rm -f conftest.$ac_ext
5386 CC=$ac_save_CC
5387 fi
5388
5389 if test "x$ac_cv_prog_cc_c99" = xno
5390 then :
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5392 printf "%s\n" "unsupported" >&6; }
5393 else $as_nop
5394 if test "x$ac_cv_prog_cc_c99" = x
5395 then :
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5397 printf "%s\n" "none needed" >&6; }
5398 else $as_nop
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5400 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5401 CC="$CC $ac_cv_prog_cc_c99"
5402 fi
5403 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5404 ac_prog_cc_stdc=c99
5405 fi
5406 fi
5407 if test x$ac_prog_cc_stdc = xno
5408 then :
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5410 printf %s "checking for $CC option to enable C89 features... " >&6; }
5411 if test ${ac_cv_prog_cc_c89+y}
5412 then :
5413 printf %s "(cached) " >&6
5414 else $as_nop
5415 ac_cv_prog_cc_c89=no
5416 ac_save_CC=$CC
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 $ac_c_conftest_c89_program
5420 _ACEOF
5421 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5422 do
5423 CC="$ac_save_CC $ac_arg"
5424 if ac_fn_c_try_compile "$LINENO"
5425 then :
5426 ac_cv_prog_cc_c89=$ac_arg
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext conftest.beam
5429 test "x$ac_cv_prog_cc_c89" != "xno" && break
5430 done
5431 rm -f conftest.$ac_ext
5432 CC=$ac_save_CC
5433 fi
5434
5435 if test "x$ac_cv_prog_cc_c89" = xno
5436 then :
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5438 printf "%s\n" "unsupported" >&6; }
5439 else $as_nop
5440 if test "x$ac_cv_prog_cc_c89" = x
5441 then :
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5443 printf "%s\n" "none needed" >&6; }
5444 else $as_nop
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5446 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5447 CC="$CC $ac_cv_prog_cc_c89"
5448 fi
5449 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5450 ac_prog_cc_stdc=c89
5451 fi
5452 fi
5453
5454 ac_ext=c
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459
5460
5461 ac_ext=c
5462 ac_cpp='$CPP $CPPFLAGS'
5463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5467 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5468 if test ${am_cv_prog_cc_c_o+y}
5469 then :
5470 printf %s "(cached) " >&6
5471 else $as_nop
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474
5475 int
5476 main (void)
5477 {
5478
5479 ;
5480 return 0;
5481 }
5482 _ACEOF
5483 # Make sure it works both with $CC and with simple cc.
5484 # Following AC_PROG_CC_C_O, we do the test twice because some
5485 # compilers refuse to overwrite an existing .o file with -o,
5486 # though they will create one.
5487 am_cv_prog_cc_c_o=yes
5488 for am_i in 1 2; do
5489 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5490 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } \
5494 && test -f conftest2.$ac_objext; then
5495 : OK
5496 else
5497 am_cv_prog_cc_c_o=no
5498 break
5499 fi
5500 done
5501 rm -f core conftest*
5502 unset am_i
5503 fi
5504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5505 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5506 if test "$am_cv_prog_cc_c_o" != yes; then
5507 # Losing compiler, so override with the script.
5508 # FIXME: It is wrong to rewrite CC.
5509 # But if we don't then we get into trouble of one sort or another.
5510 # A longer-term fix would be to have automake use am__CC in this case,
5511 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5512 CC="$am_aux_dir/compile $CC"
5513 fi
5514 ac_ext=c
5515 ac_cpp='$CPP $CPPFLAGS'
5516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519
5520 DEPDIR="${am__leading_dot}deps"
5521
5522 ac_config_commands="$ac_config_commands depfiles"
5523
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5525 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5526 cat > confinc.mk << 'END'
5527 am__doit:
5528 @echo this is the am__doit target >confinc.out
5529 .PHONY: am__doit
5530 END
5531 am__include="#"
5532 am__quote=
5533 # BSD make does it like this.
5534 echo '.include "confinc.mk" # ignored' > confmf.BSD
5535 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5536 echo 'include confinc.mk # ignored' > confmf.GNU
5537 _am_result=no
5538 for s in GNU BSD; do
5539 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5540 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }
5544 case $?:`cat confinc.out 2>/dev/null` in #(
5545 '0:this is the am__doit target') :
5546 case $s in #(
5547 BSD) :
5548 am__include='.include' am__quote='"' ;; #(
5549 *) :
5550 am__include='include' am__quote='' ;;
5551 esac ;; #(
5552 *) :
5553 ;;
5554 esac
5555 if test "$am__include" != "#"; then
5556 _am_result="yes ($s style)"
5557 break
5558 fi
5559 done
5560 rm -f confinc.* confmf.*
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5562 printf "%s\n" "${_am_result}" >&6; }
5563
5564 # Check whether --enable-dependency-tracking was given.
5565 if test ${enable_dependency_tracking+y}
5566 then :
5567 enableval=$enable_dependency_tracking;
5568 fi
5569
5570 if test "x$enable_dependency_tracking" != xno; then
5571 am_depcomp="$ac_aux_dir/depcomp"
5572 AMDEPBACKSLASH='\'
5573 am__nodep='_no'
5574 fi
5575 if test "x$enable_dependency_tracking" != xno; then
5576 AMDEP_TRUE=
5577 AMDEP_FALSE='#'
5578 else
5579 AMDEP_TRUE='#'
5580 AMDEP_FALSE=
5581 fi
5582
5583
5584
5585 depcc="$CC" am_compiler_list=
5586
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5588 printf %s "checking dependency style of $depcc... " >&6; }
5589 if test ${am_cv_CC_dependencies_compiler_type+y}
5590 then :
5591 printf %s "(cached) " >&6
5592 else $as_nop
5593 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5594 # We make a subdir and do the tests there. Otherwise we can end up
5595 # making bogus files that we don't know about and never remove. For
5596 # instance it was reported that on HP-UX the gcc test will end up
5597 # making a dummy file named 'D' -- because '-MD' means "put the output
5598 # in D".
5599 rm -rf conftest.dir
5600 mkdir conftest.dir
5601 # Copy depcomp to subdir because otherwise we won't find it if we're
5602 # using a relative directory.
5603 cp "$am_depcomp" conftest.dir
5604 cd conftest.dir
5605 # We will build objects and dependencies in a subdirectory because
5606 # it helps to detect inapplicable dependency modes. For instance
5607 # both Tru64's cc and ICC support -MD to output dependencies as a
5608 # side effect of compilation, but ICC will put the dependencies in
5609 # the current directory while Tru64 will put them in the object
5610 # directory.
5611 mkdir sub
5612
5613 am_cv_CC_dependencies_compiler_type=none
5614 if test "$am_compiler_list" = ""; then
5615 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5616 fi
5617 am__universal=false
5618 case " $depcc " in #(
5619 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5620 esac
5621
5622 for depmode in $am_compiler_list; do
5623 # Setup a source with many dependencies, because some compilers
5624 # like to wrap large dependency lists on column 80 (with \), and
5625 # we should not choose a depcomp mode which is confused by this.
5626 #
5627 # We need to recreate these files for each test, as the compiler may
5628 # overwrite some of them when testing with obscure command lines.
5629 # This happens at least with the AIX C compiler.
5630 : > sub/conftest.c
5631 for i in 1 2 3 4 5 6; do
5632 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5633 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5634 # Solaris 10 /bin/sh.
5635 echo '/* dummy */' > sub/conftst$i.h
5636 done
5637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5638
5639 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5640 # mode. It turns out that the SunPro C++ compiler does not properly
5641 # handle '-M -o', and we need to detect this. Also, some Intel
5642 # versions had trouble with output in subdirs.
5643 am__obj=sub/conftest.${OBJEXT-o}
5644 am__minus_obj="-o $am__obj"
5645 case $depmode in
5646 gcc)
5647 # This depmode causes a compiler race in universal mode.
5648 test "$am__universal" = false || continue
5649 ;;
5650 nosideeffect)
5651 # After this tag, mechanisms are not by side-effect, so they'll
5652 # only be used when explicitly requested.
5653 if test "x$enable_dependency_tracking" = xyes; then
5654 continue
5655 else
5656 break
5657 fi
5658 ;;
5659 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5660 # This compiler won't grok '-c -o', but also, the minuso test has
5661 # not run yet. These depmodes are late enough in the game, and
5662 # so weak that their functioning should not be impacted.
5663 am__obj=conftest.${OBJEXT-o}
5664 am__minus_obj=
5665 ;;
5666 none) break ;;
5667 esac
5668 if depmode=$depmode \
5669 source=sub/conftest.c object=$am__obj \
5670 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5671 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5672 >/dev/null 2>conftest.err &&
5673 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5675 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5677 # icc doesn't choke on unknown options, it will just issue warnings
5678 # or remarks (even with -Werror). So we grep stderr for any message
5679 # that says an option was ignored or not supported.
5680 # When given -MP, icc 7.0 and 7.1 complain thusly:
5681 # icc: Command line warning: ignoring option '-M'; no argument required
5682 # The diagnosis changed in icc 8.0:
5683 # icc: Command line remark: option '-MP' not supported
5684 if (grep 'ignoring option' conftest.err ||
5685 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5686 am_cv_CC_dependencies_compiler_type=$depmode
5687 break
5688 fi
5689 fi
5690 done
5691
5692 cd ..
5693 rm -rf conftest.dir
5694 else
5695 am_cv_CC_dependencies_compiler_type=none
5696 fi
5697
5698 fi
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5700 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5701 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5702
5703 if
5704 test "x$enable_dependency_tracking" != xno \
5705 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5706 am__fastdepCC_TRUE=
5707 am__fastdepCC_FALSE='#'
5708 else
5709 am__fastdepCC_TRUE='#'
5710 am__fastdepCC_FALSE=
5711 fi
5712
5713
5714 ac_ext=c
5715 ac_cpp='$CPP $CPPFLAGS'
5716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5720 printf %s "checking how to run the C preprocessor... " >&6; }
5721 # On Suns, sometimes $CPP names a directory.
5722 if test -n "$CPP" && test -d "$CPP"; then
5723 CPP=
5724 fi
5725 if test -z "$CPP"; then
5726 if test ${ac_cv_prog_CPP+y}
5727 then :
5728 printf %s "(cached) " >&6
5729 else $as_nop
5730 # Double quotes because $CC needs to be expanded
5731 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5732 do
5733 ac_preproc_ok=false
5734 for ac_c_preproc_warn_flag in '' yes
5735 do
5736 # Use a header file that comes with gcc, so configuring glibc
5737 # with a fresh cross-compiler works.
5738 # On the NeXT, cc -E runs the code through the compiler's parser,
5739 # not just through cpp. "Syntax error" is here to catch this case.
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <limits.h>
5743 Syntax error
5744 _ACEOF
5745 if ac_fn_c_try_cpp "$LINENO"
5746 then :
5747
5748 else $as_nop
5749 # Broken: fails on valid input.
5750 continue
5751 fi
5752 rm -f conftest.err conftest.i conftest.$ac_ext
5753
5754 # OK, works on sane cases. Now check whether nonexistent headers
5755 # can be detected and how.
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #include <ac_nonexistent.h>
5759 _ACEOF
5760 if ac_fn_c_try_cpp "$LINENO"
5761 then :
5762 # Broken: success on invalid input.
5763 continue
5764 else $as_nop
5765 # Passes both tests.
5766 ac_preproc_ok=:
5767 break
5768 fi
5769 rm -f conftest.err conftest.i conftest.$ac_ext
5770
5771 done
5772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773 rm -f conftest.i conftest.err conftest.$ac_ext
5774 if $ac_preproc_ok
5775 then :
5776 break
5777 fi
5778
5779 done
5780 ac_cv_prog_CPP=$CPP
5781
5782 fi
5783 CPP=$ac_cv_prog_CPP
5784 else
5785 ac_cv_prog_CPP=$CPP
5786 fi
5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5788 printf "%s\n" "$CPP" >&6; }
5789 ac_preproc_ok=false
5790 for ac_c_preproc_warn_flag in '' yes
5791 do
5792 # Use a header file that comes with gcc, so configuring glibc
5793 # with a fresh cross-compiler works.
5794 # On the NeXT, cc -E runs the code through the compiler's parser,
5795 # not just through cpp. "Syntax error" is here to catch this case.
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 #include <limits.h>
5799 Syntax error
5800 _ACEOF
5801 if ac_fn_c_try_cpp "$LINENO"
5802 then :
5803
5804 else $as_nop
5805 # Broken: fails on valid input.
5806 continue
5807 fi
5808 rm -f conftest.err conftest.i conftest.$ac_ext
5809
5810 # OK, works on sane cases. Now check whether nonexistent headers
5811 # can be detected and how.
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 #include <ac_nonexistent.h>
5815 _ACEOF
5816 if ac_fn_c_try_cpp "$LINENO"
5817 then :
5818 # Broken: success on invalid input.
5819 continue
5820 else $as_nop
5821 # Passes both tests.
5822 ac_preproc_ok=:
5823 break
5824 fi
5825 rm -f conftest.err conftest.i conftest.$ac_ext
5826
5827 done
5828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5829 rm -f conftest.i conftest.err conftest.$ac_ext
5830 if $ac_preproc_ok
5831 then :
5832
5833 else $as_nop
5834 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5835 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5836 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5837 See \`config.log' for more details" "$LINENO" 5; }
5838 fi
5839
5840 ac_ext=c
5841 ac_cpp='$CPP $CPPFLAGS'
5842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5845
5846 ac_ext=c
5847 ac_cpp='$CPP $CPPFLAGS'
5848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5851
5852
5853
5854
5855 if test -n "$ac_tool_prefix"; then
5856 for ac_prog in ar lib "link -lib"
5857 do
5858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5859 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 printf %s "checking for $ac_word... " >&6; }
5862 if test ${ac_cv_prog_AR+y}
5863 then :
5864 printf %s "(cached) " >&6
5865 else $as_nop
5866 if test -n "$AR"; then
5867 ac_cv_prog_AR="$AR" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 case $as_dir in #(((
5874 '') as_dir=./ ;;
5875 */) ;;
5876 *) as_dir=$as_dir/ ;;
5877 esac
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 AR=$ac_cv_prog_AR
5891 if test -n "$AR"; then
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5893 printf "%s\n" "$AR" >&6; }
5894 else
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 printf "%s\n" "no" >&6; }
5897 fi
5898
5899
5900 test -n "$AR" && break
5901 done
5902 fi
5903 if test -z "$AR"; then
5904 ac_ct_AR=$AR
5905 for ac_prog in ar lib "link -lib"
5906 do
5907 # Extract the first word of "$ac_prog", so it can be a program name with args.
5908 set dummy $ac_prog; ac_word=$2
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 printf %s "checking for $ac_word... " >&6; }
5911 if test ${ac_cv_prog_ac_ct_AR+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else $as_nop
5915 if test -n "$ac_ct_AR"; then
5916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921 IFS=$as_save_IFS
5922 case $as_dir in #(((
5923 '') as_dir=./ ;;
5924 */) ;;
5925 *) as_dir=$as_dir/ ;;
5926 esac
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_AR="$ac_prog"
5930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5940 if test -n "$ac_ct_AR"; then
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5942 printf "%s\n" "$ac_ct_AR" >&6; }
5943 else
5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 printf "%s\n" "no" >&6; }
5946 fi
5947
5948
5949 test -n "$ac_ct_AR" && break
5950 done
5951
5952 if test "x$ac_ct_AR" = x; then
5953 AR="false"
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961 AR=$ac_ct_AR
5962 fi
5963 fi
5964
5965 : ${AR=ar}
5966
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5968 printf %s "checking the archiver ($AR) interface... " >&6; }
5969 if test ${am_cv_ar_interface+y}
5970 then :
5971 printf %s "(cached) " >&6
5972 else $as_nop
5973 ac_ext=c
5974 ac_cpp='$CPP $CPPFLAGS'
5975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5978
5979 am_cv_ar_interface=ar
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 int some_variable = 0;
5983 _ACEOF
5984 if ac_fn_c_try_compile "$LINENO"
5985 then :
5986 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5988 (eval $am_ar_try) 2>&5
5989 ac_status=$?
5990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991 test $ac_status = 0; }
5992 if test "$ac_status" -eq 0; then
5993 am_cv_ar_interface=ar
5994 else
5995 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5997 (eval $am_ar_try) 2>&5
5998 ac_status=$?
5999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000 test $ac_status = 0; }
6001 if test "$ac_status" -eq 0; then
6002 am_cv_ar_interface=lib
6003 else
6004 am_cv_ar_interface=unknown
6005 fi
6006 fi
6007 rm -f conftest.lib libconftest.a
6008
6009 fi
6010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6011 ac_ext=c
6012 ac_cpp='$CPP $CPPFLAGS'
6013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6016
6017 fi
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6019 printf "%s\n" "$am_cv_ar_interface" >&6; }
6020
6021 case $am_cv_ar_interface in
6022 ar)
6023 ;;
6024 lib)
6025 # Microsoft lib, so override with the ar-lib wrapper script.
6026 # FIXME: It is wrong to rewrite AR.
6027 # But if we don't then we get into trouble of one sort or another.
6028 # A longer-term fix would be to have automake use am__AR in this case,
6029 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6030 # similar.
6031 AR="$am_aux_dir/ar-lib $AR"
6032 ;;
6033 unknown)
6034 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6035 ;;
6036 esac
6037
6038
6039 case `pwd` in
6040 *\ * | *\ *)
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6042 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6043 esac
6044
6045
6046
6047 macro_version='2.4.7'
6048 macro_revision='2.4.7'
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063 ltmain=$ac_aux_dir/ltmain.sh
6064
6065 # Backslashify metacharacters that are still active within
6066 # double-quoted strings.
6067 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6068
6069 # Same as above, but do not quote variable references.
6070 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6071
6072 # Sed substitution to delay expansion of an escaped shell variable in a
6073 # double_quote_subst'ed string.
6074 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6075
6076 # Sed substitution to delay expansion of an escaped single quote.
6077 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6078
6079 # Sed substitution to avoid accidental globbing in evaled expressions
6080 no_glob_subst='s/\*/\\\*/g'
6081
6082 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6083 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6084 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6085
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6087 printf %s "checking how to print strings... " >&6; }
6088 # Test print first, because it will be a builtin if present.
6089 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6090 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6091 ECHO='print -r --'
6092 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6093 ECHO='printf %s\n'
6094 else
6095 # Use this function as a fallback that always works.
6096 func_fallback_echo ()
6097 {
6098 eval 'cat <<_LTECHO_EOF
6099 $1
6100 _LTECHO_EOF'
6101 }
6102 ECHO='func_fallback_echo'
6103 fi
6104
6105 # func_echo_all arg...
6106 # Invoke $ECHO with all args, space-separated.
6107 func_echo_all ()
6108 {
6109 $ECHO ""
6110 }
6111
6112 case $ECHO in
6113 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6114 printf "%s\n" "printf" >&6; } ;;
6115 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6116 printf "%s\n" "print -r" >&6; } ;;
6117 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6118 printf "%s\n" "cat" >&6; } ;;
6119 esac
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6135 printf %s "checking for a sed that does not truncate output... " >&6; }
6136 if test ${ac_cv_path_SED+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else $as_nop
6140 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6141 for ac_i in 1 2 3 4 5 6 7; do
6142 ac_script="$ac_script$as_nl$ac_script"
6143 done
6144 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6145 { ac_script=; unset ac_script;}
6146 if test -z "$SED"; then
6147 ac_path_SED_found=false
6148 # Loop through the user's path and test for each of PROGNAME-LIST
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 case $as_dir in #(((
6154 '') as_dir=./ ;;
6155 */) ;;
6156 *) as_dir=$as_dir/ ;;
6157 esac
6158 for ac_prog in sed gsed
6159 do
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6162 as_fn_executable_p "$ac_path_SED" || continue
6163 # Check for GNU ac_path_SED and select it if it is found.
6164 # Check for GNU $ac_path_SED
6165 case `"$ac_path_SED" --version 2>&1` in
6166 *GNU*)
6167 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6168 *)
6169 ac_count=0
6170 printf %s 0123456789 >"conftest.in"
6171 while :
6172 do
6173 cat "conftest.in" "conftest.in" >"conftest.tmp"
6174 mv "conftest.tmp" "conftest.in"
6175 cp "conftest.in" "conftest.nl"
6176 printf "%s\n" '' >> "conftest.nl"
6177 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6179 as_fn_arith $ac_count + 1 && ac_count=$as_val
6180 if test $ac_count -gt ${ac_path_SED_max-0}; then
6181 # Best one so far, save it but keep looking for a better one
6182 ac_cv_path_SED="$ac_path_SED"
6183 ac_path_SED_max=$ac_count
6184 fi
6185 # 10*(2^10) chars as input seems more than enough
6186 test $ac_count -gt 10 && break
6187 done
6188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6189 esac
6190
6191 $ac_path_SED_found && break 3
6192 done
6193 done
6194 done
6195 IFS=$as_save_IFS
6196 if test -z "$ac_cv_path_SED"; then
6197 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6198 fi
6199 else
6200 ac_cv_path_SED=$SED
6201 fi
6202
6203 fi
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6205 printf "%s\n" "$ac_cv_path_SED" >&6; }
6206 SED="$ac_cv_path_SED"
6207 rm -f conftest.sed
6208
6209 test -z "$SED" && SED=sed
6210 Xsed="$SED -e 1s/^X//"
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6223 printf %s "checking for fgrep... " >&6; }
6224 if test ${ac_cv_path_FGREP+y}
6225 then :
6226 printf %s "(cached) " >&6
6227 else $as_nop
6228 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6229 then ac_cv_path_FGREP="$GREP -F"
6230 else
6231 if test -z "$FGREP"; then
6232 ac_path_FGREP_found=false
6233 # Loop through the user's path and test for each of PROGNAME-LIST
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6236 do
6237 IFS=$as_save_IFS
6238 case $as_dir in #(((
6239 '') as_dir=./ ;;
6240 */) ;;
6241 *) as_dir=$as_dir/ ;;
6242 esac
6243 for ac_prog in fgrep
6244 do
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6247 as_fn_executable_p "$ac_path_FGREP" || continue
6248 # Check for GNU ac_path_FGREP and select it if it is found.
6249 # Check for GNU $ac_path_FGREP
6250 case `"$ac_path_FGREP" --version 2>&1` in
6251 *GNU*)
6252 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6253 *)
6254 ac_count=0
6255 printf %s 0123456789 >"conftest.in"
6256 while :
6257 do
6258 cat "conftest.in" "conftest.in" >"conftest.tmp"
6259 mv "conftest.tmp" "conftest.in"
6260 cp "conftest.in" "conftest.nl"
6261 printf "%s\n" 'FGREP' >> "conftest.nl"
6262 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6264 as_fn_arith $ac_count + 1 && ac_count=$as_val
6265 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6266 # Best one so far, save it but keep looking for a better one
6267 ac_cv_path_FGREP="$ac_path_FGREP"
6268 ac_path_FGREP_max=$ac_count
6269 fi
6270 # 10*(2^10) chars as input seems more than enough
6271 test $ac_count -gt 10 && break
6272 done
6273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6274 esac
6275
6276 $ac_path_FGREP_found && break 3
6277 done
6278 done
6279 done
6280 IFS=$as_save_IFS
6281 if test -z "$ac_cv_path_FGREP"; then
6282 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6283 fi
6284 else
6285 ac_cv_path_FGREP=$FGREP
6286 fi
6287
6288 fi
6289 fi
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6291 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6292 FGREP="$ac_cv_path_FGREP"
6293
6294
6295 test -z "$GREP" && GREP=grep
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 # Check whether --with-gnu-ld was given.
6316 if test ${with_gnu_ld+y}
6317 then :
6318 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6319 else $as_nop
6320 with_gnu_ld=no
6321 fi
6322
6323 ac_prog=ld
6324 if test yes = "$GCC"; then
6325 # Check if gcc -print-prog-name=ld gives a path.
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6327 printf %s "checking for ld used by $CC... " >&6; }
6328 case $host in
6329 *-*-mingw*)
6330 # gcc leaves a trailing carriage return, which upsets mingw
6331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6332 *)
6333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6334 esac
6335 case $ac_prog in
6336 # Accept absolute paths.
6337 [\\/]* | ?:[\\/]*)
6338 re_direlt='/[^/][^/]*/\.\./'
6339 # Canonicalize the pathname of ld
6340 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6341 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6342 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6343 done
6344 test -z "$LD" && LD=$ac_prog
6345 ;;
6346 "")
6347 # If it fails, then pretend we aren't using GCC.
6348 ac_prog=ld
6349 ;;
6350 *)
6351 # If it is relative, then search for the first ld in PATH.
6352 with_gnu_ld=unknown
6353 ;;
6354 esac
6355 elif test yes = "$with_gnu_ld"; then
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6357 printf %s "checking for GNU ld... " >&6; }
6358 else
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6360 printf %s "checking for non-GNU ld... " >&6; }
6361 fi
6362 if test ${lt_cv_path_LD+y}
6363 then :
6364 printf %s "(cached) " >&6
6365 else $as_nop
6366 if test -z "$LD"; then
6367 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6368 for ac_dir in $PATH; do
6369 IFS=$lt_save_ifs
6370 test -z "$ac_dir" && ac_dir=.
6371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6372 lt_cv_path_LD=$ac_dir/$ac_prog
6373 # Check to see if the program is GNU ld. I'd rather use --version,
6374 # but apparently some variants of GNU ld only accept -v.
6375 # Break only if it was the GNU/non-GNU ld that we prefer.
6376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6377 *GNU* | *'with BFD'*)
6378 test no != "$with_gnu_ld" && break
6379 ;;
6380 *)
6381 test yes != "$with_gnu_ld" && break
6382 ;;
6383 esac
6384 fi
6385 done
6386 IFS=$lt_save_ifs
6387 else
6388 lt_cv_path_LD=$LD # Let the user override the test with a path.
6389 fi
6390 fi
6391
6392 LD=$lt_cv_path_LD
6393 if test -n "$LD"; then
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6395 printf "%s\n" "$LD" >&6; }
6396 else
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 printf "%s\n" "no" >&6; }
6399 fi
6400 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6402 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6403 if test ${lt_cv_prog_gnu_ld+y}
6404 then :
6405 printf %s "(cached) " >&6
6406 else $as_nop
6407 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6408 case `$LD -v 2>&1 </dev/null` in
6409 *GNU* | *'with BFD'*)
6410 lt_cv_prog_gnu_ld=yes
6411 ;;
6412 *)
6413 lt_cv_prog_gnu_ld=no
6414 ;;
6415 esac
6416 fi
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6418 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6419 with_gnu_ld=$lt_cv_prog_gnu_ld
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6430 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6431 if test ${lt_cv_path_NM+y}
6432 then :
6433 printf %s "(cached) " >&6
6434 else $as_nop
6435 if test -n "$NM"; then
6436 # Let the user override the test.
6437 lt_cv_path_NM=$NM
6438 else
6439 lt_nm_to_check=${ac_tool_prefix}nm
6440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6441 lt_nm_to_check="$lt_nm_to_check nm"
6442 fi
6443 for lt_tmp_nm in $lt_nm_to_check; do
6444 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6446 IFS=$lt_save_ifs
6447 test -z "$ac_dir" && ac_dir=.
6448 tmp_nm=$ac_dir/$lt_tmp_nm
6449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6450 # Check to see if the nm accepts a BSD-compat flag.
6451 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6452 # nm: unknown option "B" ignored
6453 # Tru64's nm complains that /dev/null is an invalid object file
6454 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6455 case $build_os in
6456 mingw*) lt_bad_file=conftest.nm/nofile ;;
6457 *) lt_bad_file=/dev/null ;;
6458 esac
6459 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6460 *$lt_bad_file* | *'Invalid file or object type'*)
6461 lt_cv_path_NM="$tmp_nm -B"
6462 break 2
6463 ;;
6464 *)
6465 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6466 */dev/null*)
6467 lt_cv_path_NM="$tmp_nm -p"
6468 break 2
6469 ;;
6470 *)
6471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6472 continue # so that we can try to find one that supports BSD flags
6473 ;;
6474 esac
6475 ;;
6476 esac
6477 fi
6478 done
6479 IFS=$lt_save_ifs
6480 done
6481 : ${lt_cv_path_NM=no}
6482 fi
6483 fi
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6485 printf "%s\n" "$lt_cv_path_NM" >&6; }
6486 if test no != "$lt_cv_path_NM"; then
6487 NM=$lt_cv_path_NM
6488 else
6489 # Didn't find any BSD compatible name lister, look for dumpbin.
6490 if test -n "$DUMPBIN"; then :
6491 # Let the user override the test.
6492 else
6493 if test -n "$ac_tool_prefix"; then
6494 for ac_prog in dumpbin "link -dump"
6495 do
6496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 printf %s "checking for $ac_word... " >&6; }
6500 if test ${ac_cv_prog_DUMPBIN+y}
6501 then :
6502 printf %s "(cached) " >&6
6503 else $as_nop
6504 if test -n "$DUMPBIN"; then
6505 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 case $as_dir in #(((
6512 '') as_dir=./ ;;
6513 */) ;;
6514 *) as_dir=$as_dir/ ;;
6515 esac
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 DUMPBIN=$ac_cv_prog_DUMPBIN
6529 if test -n "$DUMPBIN"; then
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6531 printf "%s\n" "$DUMPBIN" >&6; }
6532 else
6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 printf "%s\n" "no" >&6; }
6535 fi
6536
6537
6538 test -n "$DUMPBIN" && break
6539 done
6540 fi
6541 if test -z "$DUMPBIN"; then
6542 ac_ct_DUMPBIN=$DUMPBIN
6543 for ac_prog in dumpbin "link -dump"
6544 do
6545 # Extract the first word of "$ac_prog", so it can be a program name with args.
6546 set dummy $ac_prog; ac_word=$2
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 printf %s "checking for $ac_word... " >&6; }
6549 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6550 then :
6551 printf %s "(cached) " >&6
6552 else $as_nop
6553 if test -n "$ac_ct_DUMPBIN"; then
6554 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559 IFS=$as_save_IFS
6560 case $as_dir in #(((
6561 '') as_dir=./ ;;
6562 */) ;;
6563 *) as_dir=$as_dir/ ;;
6564 esac
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6569 break 2
6570 fi
6571 done
6572 done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6578 if test -n "$ac_ct_DUMPBIN"; then
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6580 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6581 else
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 printf "%s\n" "no" >&6; }
6584 fi
6585
6586
6587 test -n "$ac_ct_DUMPBIN" && break
6588 done
6589
6590 if test "x$ac_ct_DUMPBIN" = x; then
6591 DUMPBIN=":"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599 DUMPBIN=$ac_ct_DUMPBIN
6600 fi
6601 fi
6602
6603 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6604 *COFF*)
6605 DUMPBIN="$DUMPBIN -symbols -headers"
6606 ;;
6607 *)
6608 DUMPBIN=:
6609 ;;
6610 esac
6611 fi
6612
6613 if test : != "$DUMPBIN"; then
6614 NM=$DUMPBIN
6615 fi
6616 fi
6617 test -z "$NM" && NM=nm
6618
6619
6620
6621
6622
6623
6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6625 printf %s "checking the name lister ($NM) interface... " >&6; }
6626 if test ${lt_cv_nm_interface+y}
6627 then :
6628 printf %s "(cached) " >&6
6629 else $as_nop
6630 lt_cv_nm_interface="BSD nm"
6631 echo "int some_variable = 0;" > conftest.$ac_ext
6632 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6633 (eval "$ac_compile" 2>conftest.err)
6634 cat conftest.err >&5
6635 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6637 cat conftest.err >&5
6638 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6639 cat conftest.out >&5
6640 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6641 lt_cv_nm_interface="MS dumpbin"
6642 fi
6643 rm -f conftest*
6644 fi
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6646 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6647
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6649 printf %s "checking whether ln -s works... " >&6; }
6650 LN_S=$as_ln_s
6651 if test "$LN_S" = "ln -s"; then
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6653 printf "%s\n" "yes" >&6; }
6654 else
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6656 printf "%s\n" "no, using $LN_S" >&6; }
6657 fi
6658
6659 # find the maximum length of command line arguments
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6661 printf %s "checking the maximum length of command line arguments... " >&6; }
6662 if test ${lt_cv_sys_max_cmd_len+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else $as_nop
6666 i=0
6667 teststring=ABCD
6668
6669 case $build_os in
6670 msdosdjgpp*)
6671 # On DJGPP, this test can blow up pretty badly due to problems in libc
6672 # (any single argument exceeding 2000 bytes causes a buffer overrun
6673 # during glob expansion). Even if it were fixed, the result of this
6674 # check would be larger than it should be.
6675 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6676 ;;
6677
6678 gnu*)
6679 # Under GNU Hurd, this test is not required because there is
6680 # no limit to the length of command line arguments.
6681 # Libtool will interpret -1 as no limit whatsoever
6682 lt_cv_sys_max_cmd_len=-1;
6683 ;;
6684
6685 cygwin* | mingw* | cegcc*)
6686 # On Win9x/ME, this test blows up -- it succeeds, but takes
6687 # about 5 minutes as the teststring grows exponentially.
6688 # Worse, since 9x/ME are not pre-emptively multitasking,
6689 # you end up with a "frozen" computer, even though with patience
6690 # the test eventually succeeds (with a max line length of 256k).
6691 # Instead, let's just punt: use the minimum linelength reported by
6692 # all of the supported platforms: 8192 (on NT/2K/XP).
6693 lt_cv_sys_max_cmd_len=8192;
6694 ;;
6695
6696 mint*)
6697 # On MiNT this can take a long time and run out of memory.
6698 lt_cv_sys_max_cmd_len=8192;
6699 ;;
6700
6701 amigaos*)
6702 # On AmigaOS with pdksh, this test takes hours, literally.
6703 # So we just punt and use a minimum line length of 8192.
6704 lt_cv_sys_max_cmd_len=8192;
6705 ;;
6706
6707 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6708 # This has been around since 386BSD, at least. Likely further.
6709 if test -x /sbin/sysctl; then
6710 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6711 elif test -x /usr/sbin/sysctl; then
6712 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6713 else
6714 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6715 fi
6716 # And add a safety zone
6717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6719 ;;
6720
6721 interix*)
6722 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6723 lt_cv_sys_max_cmd_len=196608
6724 ;;
6725
6726 os2*)
6727 # The test takes a long time on OS/2.
6728 lt_cv_sys_max_cmd_len=8192
6729 ;;
6730
6731 osf*)
6732 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6733 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6734 # nice to cause kernel panics so lets avoid the loop below.
6735 # First set a reasonable default.
6736 lt_cv_sys_max_cmd_len=16384
6737 #
6738 if test -x /sbin/sysconfig; then
6739 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6740 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6741 esac
6742 fi
6743 ;;
6744 sco3.2v5*)
6745 lt_cv_sys_max_cmd_len=102400
6746 ;;
6747 sysv5* | sco5v6* | sysv4.2uw2*)
6748 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6749 if test -n "$kargmax"; then
6750 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6751 else
6752 lt_cv_sys_max_cmd_len=32768
6753 fi
6754 ;;
6755 *)
6756 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6757 if test -n "$lt_cv_sys_max_cmd_len" && \
6758 test undefined != "$lt_cv_sys_max_cmd_len"; then
6759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6761 else
6762 # Make teststring a little bigger before we do anything with it.
6763 # a 1K string should be a reasonable start.
6764 for i in 1 2 3 4 5 6 7 8; do
6765 teststring=$teststring$teststring
6766 done
6767 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6768 # If test is not a shell built-in, we'll probably end up computing a
6769 # maximum length that is only half of the actual maximum length, but
6770 # we can't tell.
6771 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6772 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6773 test 17 != "$i" # 1/2 MB should be enough
6774 do
6775 i=`expr $i + 1`
6776 teststring=$teststring$teststring
6777 done
6778 # Only check the string length outside the loop.
6779 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6780 teststring=
6781 # Add a significant safety factor because C++ compilers can tack on
6782 # massive amounts of additional arguments before passing them to the
6783 # linker. It appears as though 1/2 is a usable value.
6784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6785 fi
6786 ;;
6787 esac
6788
6789 fi
6790
6791 if test -n "$lt_cv_sys_max_cmd_len"; then
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6793 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6794 else
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6796 printf "%s\n" "none" >&6; }
6797 fi
6798 max_cmd_len=$lt_cv_sys_max_cmd_len
6799
6800
6801
6802
6803
6804
6805 : ${CP="cp -f"}
6806 : ${MV="mv -f"}
6807 : ${RM="rm -f"}
6808
6809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6810 lt_unset=unset
6811 else
6812 lt_unset=false
6813 fi
6814
6815
6816
6817
6818
6819 # test EBCDIC or ASCII
6820 case `echo X|tr X '\101'` in
6821 A) # ASCII based system
6822 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6823 lt_SP2NL='tr \040 \012'
6824 lt_NL2SP='tr \015\012 \040\040'
6825 ;;
6826 *) # EBCDIC based system
6827 lt_SP2NL='tr \100 \n'
6828 lt_NL2SP='tr \r\n \100\100'
6829 ;;
6830 esac
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6841 printf %s "checking how to convert $build file names to $host format... " >&6; }
6842 if test ${lt_cv_to_host_file_cmd+y}
6843 then :
6844 printf %s "(cached) " >&6
6845 else $as_nop
6846 case $host in
6847 *-*-mingw* )
6848 case $build in
6849 *-*-mingw* ) # actually msys
6850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6851 ;;
6852 *-*-cygwin* )
6853 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6854 ;;
6855 * ) # otherwise, assume *nix
6856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6857 ;;
6858 esac
6859 ;;
6860 *-*-cygwin* )
6861 case $build in
6862 *-*-mingw* ) # actually msys
6863 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6864 ;;
6865 *-*-cygwin* )
6866 lt_cv_to_host_file_cmd=func_convert_file_noop
6867 ;;
6868 * ) # otherwise, assume *nix
6869 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6870 ;;
6871 esac
6872 ;;
6873 * ) # unhandled hosts (and "normal" native builds)
6874 lt_cv_to_host_file_cmd=func_convert_file_noop
6875 ;;
6876 esac
6877
6878 fi
6879
6880 to_host_file_cmd=$lt_cv_to_host_file_cmd
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6882 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6883
6884
6885
6886
6887
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6889 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6890 if test ${lt_cv_to_tool_file_cmd+y}
6891 then :
6892 printf %s "(cached) " >&6
6893 else $as_nop
6894 #assume ordinary cross tools, or native build.
6895 lt_cv_to_tool_file_cmd=func_convert_file_noop
6896 case $host in
6897 *-*-mingw* )
6898 case $build in
6899 *-*-mingw* ) # actually msys
6900 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6901 ;;
6902 esac
6903 ;;
6904 esac
6905
6906 fi
6907
6908 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6910 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6911
6912
6913
6914
6915
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6917 printf %s "checking for $LD option to reload object files... " >&6; }
6918 if test ${lt_cv_ld_reload_flag+y}
6919 then :
6920 printf %s "(cached) " >&6
6921 else $as_nop
6922 lt_cv_ld_reload_flag='-r'
6923 fi
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6925 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6926 reload_flag=$lt_cv_ld_reload_flag
6927 case $reload_flag in
6928 "" | " "*) ;;
6929 *) reload_flag=" $reload_flag" ;;
6930 esac
6931 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6932 case $host_os in
6933 cygwin* | mingw* | pw32* | cegcc*)
6934 if test yes != "$GCC"; then
6935 reload_cmds=false
6936 fi
6937 ;;
6938 darwin*)
6939 if test yes = "$GCC"; then
6940 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6941 else
6942 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6943 fi
6944 ;;
6945 esac
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}file; ac_word=$2
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 printf %s "checking for $ac_word... " >&6; }
6960 if test ${ac_cv_prog_FILECMD+y}
6961 then :
6962 printf %s "(cached) " >&6
6963 else $as_nop
6964 if test -n "$FILECMD"; then
6965 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970 IFS=$as_save_IFS
6971 case $as_dir in #(((
6972 '') as_dir=./ ;;
6973 */) ;;
6974 *) as_dir=$as_dir/ ;;
6975 esac
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_FILECMD="${ac_tool_prefix}file"
6979 printf "%s\n" "$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 FILECMD=$ac_cv_prog_FILECMD
6989 if test -n "$FILECMD"; then
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6991 printf "%s\n" "$FILECMD" >&6; }
6992 else
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 printf "%s\n" "no" >&6; }
6995 fi
6996
6997
6998 fi
6999 if test -z "$ac_cv_prog_FILECMD"; then
7000 ac_ct_FILECMD=$FILECMD
7001 # Extract the first word of "file", so it can be a program name with args.
7002 set dummy file; ac_word=$2
7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 printf %s "checking for $ac_word... " >&6; }
7005 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7006 then :
7007 printf %s "(cached) " >&6
7008 else $as_nop
7009 if test -n "$ac_ct_FILECMD"; then
7010 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015 IFS=$as_save_IFS
7016 case $as_dir in #(((
7017 '') as_dir=./ ;;
7018 */) ;;
7019 *) as_dir=$as_dir/ ;;
7020 esac
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7023 ac_cv_prog_ac_ct_FILECMD="file"
7024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027 done
7028 done
7029 IFS=$as_save_IFS
7030
7031 fi
7032 fi
7033 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7034 if test -n "$ac_ct_FILECMD"; then
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7036 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7037 else
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 printf "%s\n" "no" >&6; }
7040 fi
7041
7042 if test "x$ac_ct_FILECMD" = x; then
7043 FILECMD=":"
7044 else
7045 case $cross_compiling:$ac_tool_warned in
7046 yes:)
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7049 ac_tool_warned=yes ;;
7050 esac
7051 FILECMD=$ac_ct_FILECMD
7052 fi
7053 else
7054 FILECMD="$ac_cv_prog_FILECMD"
7055 fi
7056
7057
7058
7059
7060
7061
7062
7063 if test -n "$ac_tool_prefix"; then
7064 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7065 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 printf %s "checking for $ac_word... " >&6; }
7068 if test ${ac_cv_prog_OBJDUMP+y}
7069 then :
7070 printf %s "(cached) " >&6
7071 else $as_nop
7072 if test -n "$OBJDUMP"; then
7073 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078 IFS=$as_save_IFS
7079 case $as_dir in #(((
7080 '') as_dir=./ ;;
7081 */) ;;
7082 *) as_dir=$as_dir/ ;;
7083 esac
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 OBJDUMP=$ac_cv_prog_OBJDUMP
7097 if test -n "$OBJDUMP"; then
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7099 printf "%s\n" "$OBJDUMP" >&6; }
7100 else
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 printf "%s\n" "no" >&6; }
7103 fi
7104
7105
7106 fi
7107 if test -z "$ac_cv_prog_OBJDUMP"; then
7108 ac_ct_OBJDUMP=$OBJDUMP
7109 # Extract the first word of "objdump", so it can be a program name with args.
7110 set dummy objdump; ac_word=$2
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 printf %s "checking for $ac_word... " >&6; }
7113 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7114 then :
7115 printf %s "(cached) " >&6
7116 else $as_nop
7117 if test -n "$ac_ct_OBJDUMP"; then
7118 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 case $as_dir in #(((
7125 '') as_dir=./ ;;
7126 */) ;;
7127 *) as_dir=$as_dir/ ;;
7128 esac
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7142 if test -n "$ac_ct_OBJDUMP"; then
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7144 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7145 else
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 printf "%s\n" "no" >&6; }
7148 fi
7149
7150 if test "x$ac_ct_OBJDUMP" = x; then
7151 OBJDUMP="false"
7152 else
7153 case $cross_compiling:$ac_tool_warned in
7154 yes:)
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7156 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7157 ac_tool_warned=yes ;;
7158 esac
7159 OBJDUMP=$ac_ct_OBJDUMP
7160 fi
7161 else
7162 OBJDUMP="$ac_cv_prog_OBJDUMP"
7163 fi
7164
7165 test -z "$OBJDUMP" && OBJDUMP=objdump
7166
7167
7168
7169
7170
7171
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7173 printf %s "checking how to recognize dependent libraries... " >&6; }
7174 if test ${lt_cv_deplibs_check_method+y}
7175 then :
7176 printf %s "(cached) " >&6
7177 else $as_nop
7178 lt_cv_file_magic_cmd='$MAGIC_CMD'
7179 lt_cv_file_magic_test_file=
7180 lt_cv_deplibs_check_method='unknown'
7181 # Need to set the preceding variable on all platforms that support
7182 # interlibrary dependencies.
7183 # 'none' -- dependencies not supported.
7184 # 'unknown' -- same as none, but documents that we really don't know.
7185 # 'pass_all' -- all dependencies passed with no checks.
7186 # 'test_compile' -- check by making test program.
7187 # 'file_magic [[regex]]' -- check by looking for files in library path
7188 # that responds to the $file_magic_cmd with a given extended regex.
7189 # If you have 'file' or equivalent on your system and you're not sure
7190 # whether 'pass_all' will *always* work, you probably want this one.
7191
7192 case $host_os in
7193 aix[4-9]*)
7194 lt_cv_deplibs_check_method=pass_all
7195 ;;
7196
7197 beos*)
7198 lt_cv_deplibs_check_method=pass_all
7199 ;;
7200
7201 bsdi[45]*)
7202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7203 lt_cv_file_magic_cmd='$FILECMD -L'
7204 lt_cv_file_magic_test_file=/shlib/libc.so
7205 ;;
7206
7207 cygwin*)
7208 # func_win32_libid is a shell function defined in ltmain.sh
7209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7210 lt_cv_file_magic_cmd='func_win32_libid'
7211 ;;
7212
7213 mingw* | pw32*)
7214 # Base MSYS/MinGW do not provide the 'file' command needed by
7215 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7216 # unless we find 'file', for example because we are cross-compiling.
7217 if ( file / ) >/dev/null 2>&1; then
7218 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7219 lt_cv_file_magic_cmd='func_win32_libid'
7220 else
7221 # Keep this pattern in sync with the one in func_win32_libid.
7222 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7223 lt_cv_file_magic_cmd='$OBJDUMP -f'
7224 fi
7225 ;;
7226
7227 cegcc*)
7228 # use the weaker test based on 'objdump'. See mingw*.
7229 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7230 lt_cv_file_magic_cmd='$OBJDUMP -f'
7231 ;;
7232
7233 darwin* | rhapsody*)
7234 lt_cv_deplibs_check_method=pass_all
7235 ;;
7236
7237 freebsd* | dragonfly* | midnightbsd*)
7238 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7239 case $host_cpu in
7240 i*86 )
7241 # Not sure whether the presence of OpenBSD here was a mistake.
7242 # Let's accept both of them until this is cleared up.
7243 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7244 lt_cv_file_magic_cmd=$FILECMD
7245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7246 ;;
7247 esac
7248 else
7249 lt_cv_deplibs_check_method=pass_all
7250 fi
7251 ;;
7252
7253 haiku*)
7254 lt_cv_deplibs_check_method=pass_all
7255 ;;
7256
7257 hpux10.20* | hpux11*)
7258 lt_cv_file_magic_cmd=$FILECMD
7259 case $host_cpu in
7260 ia64*)
7261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7263 ;;
7264 hppa*64*)
7265 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]'
7266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7267 ;;
7268 *)
7269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7270 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7271 ;;
7272 esac
7273 ;;
7274
7275 interix[3-9]*)
7276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7278 ;;
7279
7280 irix5* | irix6* | nonstopux*)
7281 case $LD in
7282 *-32|*"-32 ") libmagic=32-bit;;
7283 *-n32|*"-n32 ") libmagic=N32;;
7284 *-64|*"-64 ") libmagic=64-bit;;
7285 *) libmagic=never-match;;
7286 esac
7287 lt_cv_deplibs_check_method=pass_all
7288 ;;
7289
7290 # This must be glibc/ELF.
7291 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7292 lt_cv_deplibs_check_method=pass_all
7293 ;;
7294
7295 netbsd* | netbsdelf*-gnu)
7296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7298 else
7299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7300 fi
7301 ;;
7302
7303 newos6*)
7304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7305 lt_cv_file_magic_cmd=$FILECMD
7306 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7307 ;;
7308
7309 *nto* | *qnx*)
7310 lt_cv_deplibs_check_method=pass_all
7311 ;;
7312
7313 openbsd* | bitrig*)
7314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7316 else
7317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7318 fi
7319 ;;
7320
7321 osf3* | osf4* | osf5*)
7322 lt_cv_deplibs_check_method=pass_all
7323 ;;
7324
7325 rdos*)
7326 lt_cv_deplibs_check_method=pass_all
7327 ;;
7328
7329 solaris*)
7330 lt_cv_deplibs_check_method=pass_all
7331 ;;
7332
7333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7334 lt_cv_deplibs_check_method=pass_all
7335 ;;
7336
7337 sysv4 | sysv4.3*)
7338 case $host_vendor in
7339 motorola)
7340 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]'
7341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7342 ;;
7343 ncr)
7344 lt_cv_deplibs_check_method=pass_all
7345 ;;
7346 sequent)
7347 lt_cv_file_magic_cmd='/bin/file'
7348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7349 ;;
7350 sni)
7351 lt_cv_file_magic_cmd='/bin/file'
7352 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7353 lt_cv_file_magic_test_file=/lib/libc.so
7354 ;;
7355 siemens)
7356 lt_cv_deplibs_check_method=pass_all
7357 ;;
7358 pc)
7359 lt_cv_deplibs_check_method=pass_all
7360 ;;
7361 esac
7362 ;;
7363
7364 tpf*)
7365 lt_cv_deplibs_check_method=pass_all
7366 ;;
7367 os2*)
7368 lt_cv_deplibs_check_method=pass_all
7369 ;;
7370 esac
7371
7372 fi
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7374 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7375
7376 file_magic_glob=
7377 want_nocaseglob=no
7378 if test "$build" = "$host"; then
7379 case $host_os in
7380 mingw* | pw32*)
7381 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7382 want_nocaseglob=yes
7383 else
7384 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7385 fi
7386 ;;
7387 esac
7388 fi
7389
7390 file_magic_cmd=$lt_cv_file_magic_cmd
7391 deplibs_check_method=$lt_cv_deplibs_check_method
7392 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415 if test -n "$ac_tool_prefix"; then
7416 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 printf %s "checking for $ac_word... " >&6; }
7420 if test ${ac_cv_prog_DLLTOOL+y}
7421 then :
7422 printf %s "(cached) " >&6
7423 else $as_nop
7424 if test -n "$DLLTOOL"; then
7425 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430 IFS=$as_save_IFS
7431 case $as_dir in #(((
7432 '') as_dir=./ ;;
7433 */) ;;
7434 *) as_dir=$as_dir/ ;;
7435 esac
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446 fi
7447 fi
7448 DLLTOOL=$ac_cv_prog_DLLTOOL
7449 if test -n "$DLLTOOL"; then
7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7451 printf "%s\n" "$DLLTOOL" >&6; }
7452 else
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 printf "%s\n" "no" >&6; }
7455 fi
7456
7457
7458 fi
7459 if test -z "$ac_cv_prog_DLLTOOL"; then
7460 ac_ct_DLLTOOL=$DLLTOOL
7461 # Extract the first word of "dlltool", so it can be a program name with args.
7462 set dummy dlltool; ac_word=$2
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 printf %s "checking for $ac_word... " >&6; }
7465 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7466 then :
7467 printf %s "(cached) " >&6
7468 else $as_nop
7469 if test -n "$ac_ct_DLLTOOL"; then
7470 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475 IFS=$as_save_IFS
7476 case $as_dir in #(((
7477 '') as_dir=./ ;;
7478 */) ;;
7479 *) as_dir=$as_dir/ ;;
7480 esac
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7494 if test -n "$ac_ct_DLLTOOL"; then
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7496 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7497 else
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 printf "%s\n" "no" >&6; }
7500 fi
7501
7502 if test "x$ac_ct_DLLTOOL" = x; then
7503 DLLTOOL="false"
7504 else
7505 case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511 DLLTOOL=$ac_ct_DLLTOOL
7512 fi
7513 else
7514 DLLTOOL="$ac_cv_prog_DLLTOOL"
7515 fi
7516
7517 test -z "$DLLTOOL" && DLLTOOL=dlltool
7518
7519
7520
7521
7522
7523
7524
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7526 printf %s "checking how to associate runtime and link libraries... " >&6; }
7527 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7528 then :
7529 printf %s "(cached) " >&6
7530 else $as_nop
7531 lt_cv_sharedlib_from_linklib_cmd='unknown'
7532
7533 case $host_os in
7534 cygwin* | mingw* | pw32* | cegcc*)
7535 # two different shell functions defined in ltmain.sh;
7536 # decide which one to use based on capabilities of $DLLTOOL
7537 case `$DLLTOOL --help 2>&1` in
7538 *--identify-strict*)
7539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7540 ;;
7541 *)
7542 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7543 ;;
7544 esac
7545 ;;
7546 *)
7547 # fallback: assume linklib IS sharedlib
7548 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7549 ;;
7550 esac
7551
7552 fi
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7554 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7555 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7556 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7557
7558
7559
7560
7561
7562
7563
7564 if test -n "$ac_tool_prefix"; then
7565 for ac_prog in ar
7566 do
7567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 printf %s "checking for $ac_word... " >&6; }
7571 if test ${ac_cv_prog_AR+y}
7572 then :
7573 printf %s "(cached) " >&6
7574 else $as_nop
7575 if test -n "$AR"; then
7576 ac_cv_prog_AR="$AR" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581 IFS=$as_save_IFS
7582 case $as_dir in #(((
7583 '') as_dir=./ ;;
7584 */) ;;
7585 *) as_dir=$as_dir/ ;;
7586 esac
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7591 break 2
7592 fi
7593 done
7594 done
7595 IFS=$as_save_IFS
7596
7597 fi
7598 fi
7599 AR=$ac_cv_prog_AR
7600 if test -n "$AR"; then
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7602 printf "%s\n" "$AR" >&6; }
7603 else
7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 printf "%s\n" "no" >&6; }
7606 fi
7607
7608
7609 test -n "$AR" && break
7610 done
7611 fi
7612 if test -z "$AR"; then
7613 ac_ct_AR=$AR
7614 for ac_prog in ar
7615 do
7616 # Extract the first word of "$ac_prog", so it can be a program name with args.
7617 set dummy $ac_prog; ac_word=$2
7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 printf %s "checking for $ac_word... " >&6; }
7620 if test ${ac_cv_prog_ac_ct_AR+y}
7621 then :
7622 printf %s "(cached) " >&6
7623 else $as_nop
7624 if test -n "$ac_ct_AR"; then
7625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 case $as_dir in #(((
7632 '') as_dir=./ ;;
7633 */) ;;
7634 *) as_dir=$as_dir/ ;;
7635 esac
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7638 ac_cv_prog_ac_ct_AR="$ac_prog"
7639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7640 break 2
7641 fi
7642 done
7643 done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7649 if test -n "$ac_ct_AR"; then
7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7651 printf "%s\n" "$ac_ct_AR" >&6; }
7652 else
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 printf "%s\n" "no" >&6; }
7655 fi
7656
7657
7658 test -n "$ac_ct_AR" && break
7659 done
7660
7661 if test "x$ac_ct_AR" = x; then
7662 AR="false"
7663 else
7664 case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670 AR=$ac_ct_AR
7671 fi
7672 fi
7673
7674 : ${AR=ar}
7675
7676
7677
7678
7679
7680
7681 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7682 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7683 # higher priority because thats what people were doing historically (setting
7684 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7685 # variable obsoleted/removed.
7686
7687 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7688 lt_ar_flags=$AR_FLAGS
7689
7690
7691
7692
7693
7694
7695 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7696 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7697
7698
7699
7700
7701
7702
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7704 printf %s "checking for archiver @FILE support... " >&6; }
7705 if test ${lt_cv_ar_at_file+y}
7706 then :
7707 printf %s "(cached) " >&6
7708 else $as_nop
7709 lt_cv_ar_at_file=no
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712
7713 int
7714 main (void)
7715 {
7716
7717 ;
7718 return 0;
7719 }
7720 _ACEOF
7721 if ac_fn_c_try_compile "$LINENO"
7722 then :
7723 echo conftest.$ac_objext > conftest.lst
7724 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7726 (eval $lt_ar_try) 2>&5
7727 ac_status=$?
7728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729 test $ac_status = 0; }
7730 if test 0 -eq "$ac_status"; then
7731 # Ensure the archiver fails upon bogus file names.
7732 rm -f conftest.$ac_objext libconftest.a
7733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7734 (eval $lt_ar_try) 2>&5
7735 ac_status=$?
7736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737 test $ac_status = 0; }
7738 if test 0 -ne "$ac_status"; then
7739 lt_cv_ar_at_file=@
7740 fi
7741 fi
7742 rm -f conftest.* libconftest.a
7743
7744 fi
7745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7746
7747 fi
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7749 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7750
7751 if test no = "$lt_cv_ar_at_file"; then
7752 archiver_list_spec=
7753 else
7754 archiver_list_spec=$lt_cv_ar_at_file
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7765 set dummy ${ac_tool_prefix}strip; ac_word=$2
7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 printf %s "checking for $ac_word... " >&6; }
7768 if test ${ac_cv_prog_STRIP+y}
7769 then :
7770 printf %s "(cached) " >&6
7771 else $as_nop
7772 if test -n "$STRIP"; then
7773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 case $as_dir in #(((
7780 '') as_dir=./ ;;
7781 */) ;;
7782 *) as_dir=$as_dir/ ;;
7783 esac
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 STRIP=$ac_cv_prog_STRIP
7797 if test -n "$STRIP"; then
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7799 printf "%s\n" "$STRIP" >&6; }
7800 else
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 printf "%s\n" "no" >&6; }
7803 fi
7804
7805
7806 fi
7807 if test -z "$ac_cv_prog_STRIP"; then
7808 ac_ct_STRIP=$STRIP
7809 # Extract the first word of "strip", so it can be a program name with args.
7810 set dummy strip; ac_word=$2
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 printf %s "checking for $ac_word... " >&6; }
7813 if test ${ac_cv_prog_ac_ct_STRIP+y}
7814 then :
7815 printf %s "(cached) " >&6
7816 else $as_nop
7817 if test -n "$ac_ct_STRIP"; then
7818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823 IFS=$as_save_IFS
7824 case $as_dir in #(((
7825 '') as_dir=./ ;;
7826 */) ;;
7827 *) as_dir=$as_dir/ ;;
7828 esac
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_ac_ct_STRIP="strip"
7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835 done
7836 done
7837 IFS=$as_save_IFS
7838
7839 fi
7840 fi
7841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7842 if test -n "$ac_ct_STRIP"; then
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7844 printf "%s\n" "$ac_ct_STRIP" >&6; }
7845 else
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 printf "%s\n" "no" >&6; }
7848 fi
7849
7850 if test "x$ac_ct_STRIP" = x; then
7851 STRIP=":"
7852 else
7853 case $cross_compiling:$ac_tool_warned in
7854 yes:)
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857 ac_tool_warned=yes ;;
7858 esac
7859 STRIP=$ac_ct_STRIP
7860 fi
7861 else
7862 STRIP="$ac_cv_prog_STRIP"
7863 fi
7864
7865 test -z "$STRIP" && STRIP=:
7866
7867
7868
7869
7870
7871
7872 if test -n "$ac_tool_prefix"; then
7873 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7874 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 printf %s "checking for $ac_word... " >&6; }
7877 if test ${ac_cv_prog_RANLIB+y}
7878 then :
7879 printf %s "(cached) " >&6
7880 else $as_nop
7881 if test -n "$RANLIB"; then
7882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 case $as_dir in #(((
7889 '') as_dir=./ ;;
7890 */) ;;
7891 *) as_dir=$as_dir/ ;;
7892 esac
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899 done
7900 done
7901 IFS=$as_save_IFS
7902
7903 fi
7904 fi
7905 RANLIB=$ac_cv_prog_RANLIB
7906 if test -n "$RANLIB"; then
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7908 printf "%s\n" "$RANLIB" >&6; }
7909 else
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 printf "%s\n" "no" >&6; }
7912 fi
7913
7914
7915 fi
7916 if test -z "$ac_cv_prog_RANLIB"; then
7917 ac_ct_RANLIB=$RANLIB
7918 # Extract the first word of "ranlib", so it can be a program name with args.
7919 set dummy ranlib; ac_word=$2
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 printf %s "checking for $ac_word... " >&6; }
7922 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7923 then :
7924 printf %s "(cached) " >&6
7925 else $as_nop
7926 if test -n "$ac_ct_RANLIB"; then
7927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7931 do
7932 IFS=$as_save_IFS
7933 case $as_dir in #(((
7934 '') as_dir=./ ;;
7935 */) ;;
7936 *) as_dir=$as_dir/ ;;
7937 esac
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_ac_ct_RANLIB="ranlib"
7941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944 done
7945 done
7946 IFS=$as_save_IFS
7947
7948 fi
7949 fi
7950 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7951 if test -n "$ac_ct_RANLIB"; then
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7953 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7954 else
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 printf "%s\n" "no" >&6; }
7957 fi
7958
7959 if test "x$ac_ct_RANLIB" = x; then
7960 RANLIB=":"
7961 else
7962 case $cross_compiling:$ac_tool_warned in
7963 yes:)
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7965 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7966 ac_tool_warned=yes ;;
7967 esac
7968 RANLIB=$ac_ct_RANLIB
7969 fi
7970 else
7971 RANLIB="$ac_cv_prog_RANLIB"
7972 fi
7973
7974 test -z "$RANLIB" && RANLIB=:
7975
7976
7977
7978
7979
7980
7981 # Determine commands to create old-style static archives.
7982 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7983 old_postinstall_cmds='chmod 644 $oldlib'
7984 old_postuninstall_cmds=
7985
7986 if test -n "$RANLIB"; then
7987 case $host_os in
7988 bitrig* | openbsd*)
7989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7990 ;;
7991 *)
7992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7993 ;;
7994 esac
7995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7996 fi
7997
7998 case $host_os in
7999 darwin*)
8000 lock_old_archive_extraction=yes ;;
8001 *)
8002 lock_old_archive_extraction=no ;;
8003 esac
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043 # If no C compiler was specified, use CC.
8044 LTCC=${LTCC-"$CC"}
8045
8046 # If no C compiler flags were specified, use CFLAGS.
8047 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8048
8049 # Allow CC to be a program name with arguments.
8050 compiler=$CC
8051
8052
8053 # Check for command to grab the raw symbol name followed by C symbol from nm.
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8055 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8056 if test ${lt_cv_sys_global_symbol_pipe+y}
8057 then :
8058 printf %s "(cached) " >&6
8059 else $as_nop
8060
8061 # These are sane defaults that work on at least a few old systems.
8062 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8063
8064 # Character class describing NM global symbol codes.
8065 symcode='[BCDEGRST]'
8066
8067 # Regexp to match symbols that can be accessed directly from C.
8068 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8069
8070 # Define system-specific variables.
8071 case $host_os in
8072 aix*)
8073 symcode='[BCDT]'
8074 ;;
8075 cygwin* | mingw* | pw32* | cegcc*)
8076 symcode='[ABCDGISTW]'
8077 ;;
8078 hpux*)
8079 if test ia64 = "$host_cpu"; then
8080 symcode='[ABCDEGRST]'
8081 fi
8082 ;;
8083 irix* | nonstopux*)
8084 symcode='[BCDEGRST]'
8085 ;;
8086 osf*)
8087 symcode='[BCDEGQRST]'
8088 ;;
8089 solaris*)
8090 symcode='[BDRT]'
8091 ;;
8092 sco3.2v5*)
8093 symcode='[DT]'
8094 ;;
8095 sysv4.2uw2*)
8096 symcode='[DT]'
8097 ;;
8098 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8099 symcode='[ABDT]'
8100 ;;
8101 sysv4)
8102 symcode='[DFNSTU]'
8103 ;;
8104 esac
8105
8106 # If we're using GNU nm, then use its standard symbol codes.
8107 case `$NM -V 2>&1` in
8108 *GNU* | *'with BFD'*)
8109 symcode='[ABCDGIRSTW]' ;;
8110 esac
8111
8112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8113 # Gets list of data symbols to import.
8114 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8115 # Adjust the below global symbol transforms to fixup imported variables.
8116 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8117 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8118 lt_c_name_lib_hook="\
8119 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8120 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8121 else
8122 # Disable hooks by default.
8123 lt_cv_sys_global_symbol_to_import=
8124 lt_cdecl_hook=
8125 lt_c_name_hook=
8126 lt_c_name_lib_hook=
8127 fi
8128
8129 # Transform an extracted symbol line into a proper C declaration.
8130 # Some systems (esp. on ia64) link data and code symbols differently,
8131 # so use this general approach.
8132 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8133 $lt_cdecl_hook\
8134 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8135 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8136
8137 # Transform an extracted symbol line into symbol name and symbol address
8138 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8139 $lt_c_name_hook\
8140 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8141 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8142
8143 # Transform an extracted symbol line into symbol name with lib prefix and
8144 # symbol address.
8145 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8146 $lt_c_name_lib_hook\
8147 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8148 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8149 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8150
8151 # Handle CRLF in mingw tool chain
8152 opt_cr=
8153 case $build_os in
8154 mingw*)
8155 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8156 ;;
8157 esac
8158
8159 # Try without a prefix underscore, then with it.
8160 for ac_symprfx in "" "_"; do
8161
8162 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8163 symxfrm="\\1 $ac_symprfx\\2 \\2"
8164
8165 # Write the raw and C identifiers.
8166 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8167 # Fake it for dumpbin and say T for any non-static function,
8168 # D for any global variable and I for any imported variable.
8169 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8170 # which start with @ or ?.
8171 lt_cv_sys_global_symbol_pipe="$AWK '"\
8172 " {last_section=section; section=\$ 3};"\
8173 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8174 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8175 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8176 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8177 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8178 " \$ 0!~/External *\|/{next};"\
8179 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8180 " {if(hide[section]) next};"\
8181 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8182 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8183 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8184 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8185 " ' prfx=^$ac_symprfx"
8186 else
8187 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8188 fi
8189 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8190
8191 # Check to see that the pipe works correctly.
8192 pipe_works=no
8193
8194 rm -f conftest*
8195 cat > conftest.$ac_ext <<_LT_EOF
8196 #ifdef __cplusplus
8197 extern "C" {
8198 #endif
8199 char nm_test_var;
8200 void nm_test_func(void);
8201 void nm_test_func(void){}
8202 #ifdef __cplusplus
8203 }
8204 #endif
8205 int main(){nm_test_var='a';nm_test_func();return(0);}
8206 _LT_EOF
8207
8208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8209 (eval $ac_compile) 2>&5
8210 ac_status=$?
8211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8212 test $ac_status = 0; }; then
8213 # Now try to grab the symbols.
8214 nlist=conftest.nm
8215 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8216 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8217 # Try sorting and uniquifying the output.
8218 if sort "$nlist" | uniq > "$nlist"T; then
8219 mv -f "$nlist"T "$nlist"
8220 else
8221 rm -f "$nlist"T
8222 fi
8223
8224 # Make sure that we snagged all the symbols we need.
8225 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8226 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8227 cat <<_LT_EOF > conftest.$ac_ext
8228 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8229 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8230 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8231 relocations are performed -- see ld's documentation on pseudo-relocs. */
8232 # define LT_DLSYM_CONST
8233 #elif defined __osf__
8234 /* This system does not cope well with relocations in const data. */
8235 # define LT_DLSYM_CONST
8236 #else
8237 # define LT_DLSYM_CONST const
8238 #endif
8239
8240 #ifdef __cplusplus
8241 extern "C" {
8242 #endif
8243
8244 _LT_EOF
8245 # Now generate the symbol file.
8246 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8247
8248 cat <<_LT_EOF >> conftest.$ac_ext
8249
8250 /* The mapping between symbol names and symbols. */
8251 LT_DLSYM_CONST struct {
8252 const char *name;
8253 void *address;
8254 }
8255 lt__PROGRAM__LTX_preloaded_symbols[] =
8256 {
8257 { "@PROGRAM@", (void *) 0 },
8258 _LT_EOF
8259 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8260 cat <<\_LT_EOF >> conftest.$ac_ext
8261 {0, (void *) 0}
8262 };
8263
8264 /* This works around a problem in FreeBSD linker */
8265 #ifdef FREEBSD_WORKAROUND
8266 static const void *lt_preloaded_setup() {
8267 return lt__PROGRAM__LTX_preloaded_symbols;
8268 }
8269 #endif
8270
8271 #ifdef __cplusplus
8272 }
8273 #endif
8274 _LT_EOF
8275 # Now try linking the two files.
8276 mv conftest.$ac_objext conftstm.$ac_objext
8277 lt_globsym_save_LIBS=$LIBS
8278 lt_globsym_save_CFLAGS=$CFLAGS
8279 LIBS=conftstm.$ac_objext
8280 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8282 (eval $ac_link) 2>&5
8283 ac_status=$?
8284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8285 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8286 pipe_works=yes
8287 fi
8288 LIBS=$lt_globsym_save_LIBS
8289 CFLAGS=$lt_globsym_save_CFLAGS
8290 else
8291 echo "cannot find nm_test_func in $nlist" >&5
8292 fi
8293 else
8294 echo "cannot find nm_test_var in $nlist" >&5
8295 fi
8296 else
8297 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8298 fi
8299 else
8300 echo "$progname: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8302 fi
8303 rm -rf conftest* conftst*
8304
8305 # Do not use the global_symbol_pipe unless it works.
8306 if test yes = "$pipe_works"; then
8307 break
8308 else
8309 lt_cv_sys_global_symbol_pipe=
8310 fi
8311 done
8312
8313 fi
8314
8315 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8316 lt_cv_sys_global_symbol_to_cdecl=
8317 fi
8318 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8320 printf "%s\n" "failed" >&6; }
8321 else
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8323 printf "%s\n" "ok" >&6; }
8324 fi
8325
8326 # Response file support.
8327 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8328 nm_file_list_spec='@'
8329 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8330 nm_file_list_spec='@'
8331 fi
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8370 printf %s "checking for sysroot... " >&6; }
8371
8372 # Check whether --with-sysroot was given.
8373 if test ${with_sysroot+y}
8374 then :
8375 withval=$with_sysroot;
8376 else $as_nop
8377 with_sysroot=no
8378 fi
8379
8380
8381 lt_sysroot=
8382 case $with_sysroot in #(
8383 yes)
8384 if test yes = "$GCC"; then
8385 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8386 fi
8387 ;; #(
8388 /*)
8389 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8390 ;; #(
8391 no|'')
8392 ;; #(
8393 *)
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8395 printf "%s\n" "$with_sysroot" >&6; }
8396 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8397 ;;
8398 esac
8399
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8401 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8402
8403
8404
8405
8406
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8408 printf %s "checking for a working dd... " >&6; }
8409 if test ${ac_cv_path_lt_DD+y}
8410 then :
8411 printf %s "(cached) " >&6
8412 else $as_nop
8413 printf 0123456789abcdef0123456789abcdef >conftest.i
8414 cat conftest.i conftest.i >conftest2.i
8415 : ${lt_DD:=$DD}
8416 if test -z "$lt_DD"; then
8417 ac_path_lt_DD_found=false
8418 # Loop through the user's path and test for each of PROGNAME-LIST
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 for as_dir in $PATH
8421 do
8422 IFS=$as_save_IFS
8423 case $as_dir in #(((
8424 '') as_dir=./ ;;
8425 */) ;;
8426 *) as_dir=$as_dir/ ;;
8427 esac
8428 for ac_prog in dd
8429 do
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8432 as_fn_executable_p "$ac_path_lt_DD" || continue
8433 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8434 cmp -s conftest.i conftest.out \
8435 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8436 fi
8437 $ac_path_lt_DD_found && break 3
8438 done
8439 done
8440 done
8441 IFS=$as_save_IFS
8442 if test -z "$ac_cv_path_lt_DD"; then
8443 :
8444 fi
8445 else
8446 ac_cv_path_lt_DD=$lt_DD
8447 fi
8448
8449 rm -f conftest.i conftest2.i conftest.out
8450 fi
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8452 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8453
8454
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8456 printf %s "checking how to truncate binary pipes... " >&6; }
8457 if test ${lt_cv_truncate_bin+y}
8458 then :
8459 printf %s "(cached) " >&6
8460 else $as_nop
8461 printf 0123456789abcdef0123456789abcdef >conftest.i
8462 cat conftest.i conftest.i >conftest2.i
8463 lt_cv_truncate_bin=
8464 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8465 cmp -s conftest.i conftest.out \
8466 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8467 fi
8468 rm -f conftest.i conftest2.i conftest.out
8469 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8470 fi
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8472 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8473
8474
8475
8476
8477
8478
8479
8480 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8481 func_cc_basename ()
8482 {
8483 for cc_temp in $*""; do
8484 case $cc_temp in
8485 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8486 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8487 \-*) ;;
8488 *) break;;
8489 esac
8490 done
8491 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8492 }
8493
8494 # Check whether --enable-libtool-lock was given.
8495 if test ${enable_libtool_lock+y}
8496 then :
8497 enableval=$enable_libtool_lock;
8498 fi
8499
8500 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8501
8502 # Some flags need to be propagated to the compiler or linker for good
8503 # libtool support.
8504 case $host in
8505 ia64-*-hpux*)
8506 # Find out what ABI is being produced by ac_compile, and set mode
8507 # options accordingly.
8508 echo 'int i;' > conftest.$ac_ext
8509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8510 (eval $ac_compile) 2>&5
8511 ac_status=$?
8512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8513 test $ac_status = 0; }; then
8514 case `$FILECMD conftest.$ac_objext` in
8515 *ELF-32*)
8516 HPUX_IA64_MODE=32
8517 ;;
8518 *ELF-64*)
8519 HPUX_IA64_MODE=64
8520 ;;
8521 esac
8522 fi
8523 rm -rf conftest*
8524 ;;
8525 *-*-irix6*)
8526 # Find out what ABI is being produced by ac_compile, and set linker
8527 # options accordingly.
8528 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8530 (eval $ac_compile) 2>&5
8531 ac_status=$?
8532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8533 test $ac_status = 0; }; then
8534 if test yes = "$lt_cv_prog_gnu_ld"; then
8535 case `$FILECMD conftest.$ac_objext` in
8536 *32-bit*)
8537 LD="${LD-ld} -melf32bsmip"
8538 ;;
8539 *N32*)
8540 LD="${LD-ld} -melf32bmipn32"
8541 ;;
8542 *64-bit*)
8543 LD="${LD-ld} -melf64bmip"
8544 ;;
8545 esac
8546 else
8547 case `$FILECMD conftest.$ac_objext` in
8548 *32-bit*)
8549 LD="${LD-ld} -32"
8550 ;;
8551 *N32*)
8552 LD="${LD-ld} -n32"
8553 ;;
8554 *64-bit*)
8555 LD="${LD-ld} -64"
8556 ;;
8557 esac
8558 fi
8559 fi
8560 rm -rf conftest*
8561 ;;
8562
8563 mips64*-*linux*)
8564 # Find out what ABI is being produced by ac_compile, and set linker
8565 # options accordingly.
8566 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8568 (eval $ac_compile) 2>&5
8569 ac_status=$?
8570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8571 test $ac_status = 0; }; then
8572 emul=elf
8573 case `$FILECMD conftest.$ac_objext` in
8574 *32-bit*)
8575 emul="${emul}32"
8576 ;;
8577 *64-bit*)
8578 emul="${emul}64"
8579 ;;
8580 esac
8581 case `$FILECMD conftest.$ac_objext` in
8582 *MSB*)
8583 emul="${emul}btsmip"
8584 ;;
8585 *LSB*)
8586 emul="${emul}ltsmip"
8587 ;;
8588 esac
8589 case `$FILECMD conftest.$ac_objext` in
8590 *N32*)
8591 emul="${emul}n32"
8592 ;;
8593 esac
8594 LD="${LD-ld} -m $emul"
8595 fi
8596 rm -rf conftest*
8597 ;;
8598
8599 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8600 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8601 # Find out what ABI is being produced by ac_compile, and set linker
8602 # options accordingly. Note that the listed cases only cover the
8603 # situations where additional linker options are needed (such as when
8604 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8605 # vice versa); the common cases where no linker options are needed do
8606 # not appear in the list.
8607 echo 'int i;' > conftest.$ac_ext
8608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8609 (eval $ac_compile) 2>&5
8610 ac_status=$?
8611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8612 test $ac_status = 0; }; then
8613 case `$FILECMD conftest.o` in
8614 *32-bit*)
8615 case $host in
8616 x86_64-*kfreebsd*-gnu)
8617 LD="${LD-ld} -m elf_i386_fbsd"
8618 ;;
8619 x86_64-*linux*)
8620 case `$FILECMD conftest.o` in
8621 *x86-64*)
8622 LD="${LD-ld} -m elf32_x86_64"
8623 ;;
8624 *)
8625 LD="${LD-ld} -m elf_i386"
8626 ;;
8627 esac
8628 ;;
8629 powerpc64le-*linux*)
8630 LD="${LD-ld} -m elf32lppclinux"
8631 ;;
8632 powerpc64-*linux*)
8633 LD="${LD-ld} -m elf32ppclinux"
8634 ;;
8635 s390x-*linux*)
8636 LD="${LD-ld} -m elf_s390"
8637 ;;
8638 sparc64-*linux*)
8639 LD="${LD-ld} -m elf32_sparc"
8640 ;;
8641 esac
8642 ;;
8643 *64-bit*)
8644 case $host in
8645 x86_64-*kfreebsd*-gnu)
8646 LD="${LD-ld} -m elf_x86_64_fbsd"
8647 ;;
8648 x86_64-*linux*)
8649 LD="${LD-ld} -m elf_x86_64"
8650 ;;
8651 powerpcle-*linux*)
8652 LD="${LD-ld} -m elf64lppc"
8653 ;;
8654 powerpc-*linux*)
8655 LD="${LD-ld} -m elf64ppc"
8656 ;;
8657 s390*-*linux*|s390*-*tpf*)
8658 LD="${LD-ld} -m elf64_s390"
8659 ;;
8660 sparc*-*linux*)
8661 LD="${LD-ld} -m elf64_sparc"
8662 ;;
8663 esac
8664 ;;
8665 esac
8666 fi
8667 rm -rf conftest*
8668 ;;
8669
8670 *-*-sco3.2v5*)
8671 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8672 SAVE_CFLAGS=$CFLAGS
8673 CFLAGS="$CFLAGS -belf"
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8675 printf %s "checking whether the C compiler needs -belf... " >&6; }
8676 if test ${lt_cv_cc_needs_belf+y}
8677 then :
8678 printf %s "(cached) " >&6
8679 else $as_nop
8680 ac_ext=c
8681 ac_cpp='$CPP $CPPFLAGS'
8682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688
8689 int
8690 main (void)
8691 {
8692
8693 ;
8694 return 0;
8695 }
8696 _ACEOF
8697 if ac_fn_c_try_link "$LINENO"
8698 then :
8699 lt_cv_cc_needs_belf=yes
8700 else $as_nop
8701 lt_cv_cc_needs_belf=no
8702 fi
8703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8704 conftest$ac_exeext conftest.$ac_ext
8705 ac_ext=c
8706 ac_cpp='$CPP $CPPFLAGS'
8707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8710
8711 fi
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8713 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8714 if test yes != "$lt_cv_cc_needs_belf"; then
8715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8716 CFLAGS=$SAVE_CFLAGS
8717 fi
8718 ;;
8719 *-*solaris*)
8720 # Find out what ABI is being produced by ac_compile, and set linker
8721 # options accordingly.
8722 echo 'int i;' > conftest.$ac_ext
8723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8724 (eval $ac_compile) 2>&5
8725 ac_status=$?
8726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8727 test $ac_status = 0; }; then
8728 case `$FILECMD conftest.o` in
8729 *64-bit*)
8730 case $lt_cv_prog_gnu_ld in
8731 yes*)
8732 case $host in
8733 i?86-*-solaris*|x86_64-*-solaris*)
8734 LD="${LD-ld} -m elf_x86_64"
8735 ;;
8736 sparc*-*-solaris*)
8737 LD="${LD-ld} -m elf64_sparc"
8738 ;;
8739 esac
8740 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8741 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8742 LD=${LD-ld}_sol2
8743 fi
8744 ;;
8745 *)
8746 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8747 LD="${LD-ld} -64"
8748 fi
8749 ;;
8750 esac
8751 ;;
8752 esac
8753 fi
8754 rm -rf conftest*
8755 ;;
8756 esac
8757
8758 need_locks=$enable_libtool_lock
8759
8760 if test -n "$ac_tool_prefix"; then
8761 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8762 set dummy ${ac_tool_prefix}mt; ac_word=$2
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 printf %s "checking for $ac_word... " >&6; }
8765 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8766 then :
8767 printf %s "(cached) " >&6
8768 else $as_nop
8769 if test -n "$MANIFEST_TOOL"; then
8770 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8771 else
8772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 for as_dir in $PATH
8774 do
8775 IFS=$as_save_IFS
8776 case $as_dir in #(((
8777 '') as_dir=./ ;;
8778 */) ;;
8779 *) as_dir=$as_dir/ ;;
8780 esac
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8783 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8785 break 2
8786 fi
8787 done
8788 done
8789 IFS=$as_save_IFS
8790
8791 fi
8792 fi
8793 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8794 if test -n "$MANIFEST_TOOL"; then
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8796 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8797 else
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 printf "%s\n" "no" >&6; }
8800 fi
8801
8802
8803 fi
8804 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8805 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8806 # Extract the first word of "mt", so it can be a program name with args.
8807 set dummy mt; ac_word=$2
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809 printf %s "checking for $ac_word... " >&6; }
8810 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8811 then :
8812 printf %s "(cached) " >&6
8813 else $as_nop
8814 if test -n "$ac_ct_MANIFEST_TOOL"; then
8815 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8816 else
8817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818 for as_dir in $PATH
8819 do
8820 IFS=$as_save_IFS
8821 case $as_dir in #(((
8822 '') as_dir=./ ;;
8823 */) ;;
8824 *) as_dir=$as_dir/ ;;
8825 esac
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8828 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8830 break 2
8831 fi
8832 done
8833 done
8834 IFS=$as_save_IFS
8835
8836 fi
8837 fi
8838 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8839 if test -n "$ac_ct_MANIFEST_TOOL"; then
8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8841 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8842 else
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 printf "%s\n" "no" >&6; }
8845 fi
8846
8847 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8848 MANIFEST_TOOL=":"
8849 else
8850 case $cross_compiling:$ac_tool_warned in
8851 yes:)
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8853 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8854 ac_tool_warned=yes ;;
8855 esac
8856 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8857 fi
8858 else
8859 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8860 fi
8861
8862 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8864 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8865 if test ${lt_cv_path_mainfest_tool+y}
8866 then :
8867 printf %s "(cached) " >&6
8868 else $as_nop
8869 lt_cv_path_mainfest_tool=no
8870 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8871 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8872 cat conftest.err >&5
8873 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8874 lt_cv_path_mainfest_tool=yes
8875 fi
8876 rm -f conftest*
8877 fi
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8879 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8880 if test yes != "$lt_cv_path_mainfest_tool"; then
8881 MANIFEST_TOOL=:
8882 fi
8883
8884
8885
8886
8887
8888
8889 case $host_os in
8890 rhapsody* | darwin*)
8891 if test -n "$ac_tool_prefix"; then
8892 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8893 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 printf %s "checking for $ac_word... " >&6; }
8896 if test ${ac_cv_prog_DSYMUTIL+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else $as_nop
8900 if test -n "$DSYMUTIL"; then
8901 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8902 else
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8904 for as_dir in $PATH
8905 do
8906 IFS=$as_save_IFS
8907 case $as_dir in #(((
8908 '') as_dir=./ ;;
8909 */) ;;
8910 *) as_dir=$as_dir/ ;;
8911 esac
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8914 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8916 break 2
8917 fi
8918 done
8919 done
8920 IFS=$as_save_IFS
8921
8922 fi
8923 fi
8924 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8925 if test -n "$DSYMUTIL"; then
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8927 printf "%s\n" "$DSYMUTIL" >&6; }
8928 else
8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 printf "%s\n" "no" >&6; }
8931 fi
8932
8933
8934 fi
8935 if test -z "$ac_cv_prog_DSYMUTIL"; then
8936 ac_ct_DSYMUTIL=$DSYMUTIL
8937 # Extract the first word of "dsymutil", so it can be a program name with args.
8938 set dummy dsymutil; ac_word=$2
8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 printf %s "checking for $ac_word... " >&6; }
8941 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8942 then :
8943 printf %s "(cached) " >&6
8944 else $as_nop
8945 if test -n "$ac_ct_DSYMUTIL"; then
8946 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8947 else
8948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 for as_dir in $PATH
8950 do
8951 IFS=$as_save_IFS
8952 case $as_dir in #(((
8953 '') as_dir=./ ;;
8954 */) ;;
8955 *) as_dir=$as_dir/ ;;
8956 esac
8957 for ac_exec_ext in '' $ac_executable_extensions; do
8958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8959 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8961 break 2
8962 fi
8963 done
8964 done
8965 IFS=$as_save_IFS
8966
8967 fi
8968 fi
8969 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8970 if test -n "$ac_ct_DSYMUTIL"; then
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8972 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8973 else
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 printf "%s\n" "no" >&6; }
8976 fi
8977
8978 if test "x$ac_ct_DSYMUTIL" = x; then
8979 DSYMUTIL=":"
8980 else
8981 case $cross_compiling:$ac_tool_warned in
8982 yes:)
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8984 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8985 ac_tool_warned=yes ;;
8986 esac
8987 DSYMUTIL=$ac_ct_DSYMUTIL
8988 fi
8989 else
8990 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8991 fi
8992
8993 if test -n "$ac_tool_prefix"; then
8994 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8995 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 printf %s "checking for $ac_word... " >&6; }
8998 if test ${ac_cv_prog_NMEDIT+y}
8999 then :
9000 printf %s "(cached) " >&6
9001 else $as_nop
9002 if test -n "$NMEDIT"; then
9003 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9004 else
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9007 do
9008 IFS=$as_save_IFS
9009 case $as_dir in #(((
9010 '') as_dir=./ ;;
9011 */) ;;
9012 *) as_dir=$as_dir/ ;;
9013 esac
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9016 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9018 break 2
9019 fi
9020 done
9021 done
9022 IFS=$as_save_IFS
9023
9024 fi
9025 fi
9026 NMEDIT=$ac_cv_prog_NMEDIT
9027 if test -n "$NMEDIT"; then
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9029 printf "%s\n" "$NMEDIT" >&6; }
9030 else
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 printf "%s\n" "no" >&6; }
9033 fi
9034
9035
9036 fi
9037 if test -z "$ac_cv_prog_NMEDIT"; then
9038 ac_ct_NMEDIT=$NMEDIT
9039 # Extract the first word of "nmedit", so it can be a program name with args.
9040 set dummy nmedit; ac_word=$2
9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042 printf %s "checking for $ac_word... " >&6; }
9043 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9044 then :
9045 printf %s "(cached) " >&6
9046 else $as_nop
9047 if test -n "$ac_ct_NMEDIT"; then
9048 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9049 else
9050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051 for as_dir in $PATH
9052 do
9053 IFS=$as_save_IFS
9054 case $as_dir in #(((
9055 '') as_dir=./ ;;
9056 */) ;;
9057 *) as_dir=$as_dir/ ;;
9058 esac
9059 for ac_exec_ext in '' $ac_executable_extensions; do
9060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9061 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9063 break 2
9064 fi
9065 done
9066 done
9067 IFS=$as_save_IFS
9068
9069 fi
9070 fi
9071 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9072 if test -n "$ac_ct_NMEDIT"; then
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9074 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9075 else
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 printf "%s\n" "no" >&6; }
9078 fi
9079
9080 if test "x$ac_ct_NMEDIT" = x; then
9081 NMEDIT=":"
9082 else
9083 case $cross_compiling:$ac_tool_warned in
9084 yes:)
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9086 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9087 ac_tool_warned=yes ;;
9088 esac
9089 NMEDIT=$ac_ct_NMEDIT
9090 fi
9091 else
9092 NMEDIT="$ac_cv_prog_NMEDIT"
9093 fi
9094
9095 if test -n "$ac_tool_prefix"; then
9096 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9097 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 printf %s "checking for $ac_word... " >&6; }
9100 if test ${ac_cv_prog_LIPO+y}
9101 then :
9102 printf %s "(cached) " >&6
9103 else $as_nop
9104 if test -n "$LIPO"; then
9105 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9106 else
9107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108 for as_dir in $PATH
9109 do
9110 IFS=$as_save_IFS
9111 case $as_dir in #(((
9112 '') as_dir=./ ;;
9113 */) ;;
9114 *) as_dir=$as_dir/ ;;
9115 esac
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9118 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9120 break 2
9121 fi
9122 done
9123 done
9124 IFS=$as_save_IFS
9125
9126 fi
9127 fi
9128 LIPO=$ac_cv_prog_LIPO
9129 if test -n "$LIPO"; then
9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9131 printf "%s\n" "$LIPO" >&6; }
9132 else
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 printf "%s\n" "no" >&6; }
9135 fi
9136
9137
9138 fi
9139 if test -z "$ac_cv_prog_LIPO"; then
9140 ac_ct_LIPO=$LIPO
9141 # Extract the first word of "lipo", so it can be a program name with args.
9142 set dummy lipo; ac_word=$2
9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 printf %s "checking for $ac_word... " >&6; }
9145 if test ${ac_cv_prog_ac_ct_LIPO+y}
9146 then :
9147 printf %s "(cached) " >&6
9148 else $as_nop
9149 if test -n "$ac_ct_LIPO"; then
9150 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9151 else
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 for as_dir in $PATH
9154 do
9155 IFS=$as_save_IFS
9156 case $as_dir in #(((
9157 '') as_dir=./ ;;
9158 */) ;;
9159 *) as_dir=$as_dir/ ;;
9160 esac
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9163 ac_cv_prog_ac_ct_LIPO="lipo"
9164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9165 break 2
9166 fi
9167 done
9168 done
9169 IFS=$as_save_IFS
9170
9171 fi
9172 fi
9173 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9174 if test -n "$ac_ct_LIPO"; then
9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9176 printf "%s\n" "$ac_ct_LIPO" >&6; }
9177 else
9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 printf "%s\n" "no" >&6; }
9180 fi
9181
9182 if test "x$ac_ct_LIPO" = x; then
9183 LIPO=":"
9184 else
9185 case $cross_compiling:$ac_tool_warned in
9186 yes:)
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9188 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9189 ac_tool_warned=yes ;;
9190 esac
9191 LIPO=$ac_ct_LIPO
9192 fi
9193 else
9194 LIPO="$ac_cv_prog_LIPO"
9195 fi
9196
9197 if test -n "$ac_tool_prefix"; then
9198 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9199 set dummy ${ac_tool_prefix}otool; ac_word=$2
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9201 printf %s "checking for $ac_word... " >&6; }
9202 if test ${ac_cv_prog_OTOOL+y}
9203 then :
9204 printf %s "(cached) " >&6
9205 else $as_nop
9206 if test -n "$OTOOL"; then
9207 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9208 else
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212 IFS=$as_save_IFS
9213 case $as_dir in #(((
9214 '') as_dir=./ ;;
9215 */) ;;
9216 *) as_dir=$as_dir/ ;;
9217 esac
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9220 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9222 break 2
9223 fi
9224 done
9225 done
9226 IFS=$as_save_IFS
9227
9228 fi
9229 fi
9230 OTOOL=$ac_cv_prog_OTOOL
9231 if test -n "$OTOOL"; then
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9233 printf "%s\n" "$OTOOL" >&6; }
9234 else
9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 printf "%s\n" "no" >&6; }
9237 fi
9238
9239
9240 fi
9241 if test -z "$ac_cv_prog_OTOOL"; then
9242 ac_ct_OTOOL=$OTOOL
9243 # Extract the first word of "otool", so it can be a program name with args.
9244 set dummy otool; ac_word=$2
9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 printf %s "checking for $ac_word... " >&6; }
9247 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9248 then :
9249 printf %s "(cached) " >&6
9250 else $as_nop
9251 if test -n "$ac_ct_OTOOL"; then
9252 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9253 else
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 for as_dir in $PATH
9256 do
9257 IFS=$as_save_IFS
9258 case $as_dir in #(((
9259 '') as_dir=./ ;;
9260 */) ;;
9261 *) as_dir=$as_dir/ ;;
9262 esac
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9265 ac_cv_prog_ac_ct_OTOOL="otool"
9266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9267 break 2
9268 fi
9269 done
9270 done
9271 IFS=$as_save_IFS
9272
9273 fi
9274 fi
9275 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9276 if test -n "$ac_ct_OTOOL"; then
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9278 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9279 else
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 printf "%s\n" "no" >&6; }
9282 fi
9283
9284 if test "x$ac_ct_OTOOL" = x; then
9285 OTOOL=":"
9286 else
9287 case $cross_compiling:$ac_tool_warned in
9288 yes:)
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9290 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9291 ac_tool_warned=yes ;;
9292 esac
9293 OTOOL=$ac_ct_OTOOL
9294 fi
9295 else
9296 OTOOL="$ac_cv_prog_OTOOL"
9297 fi
9298
9299 if test -n "$ac_tool_prefix"; then
9300 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9301 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303 printf %s "checking for $ac_word... " >&6; }
9304 if test ${ac_cv_prog_OTOOL64+y}
9305 then :
9306 printf %s "(cached) " >&6
9307 else $as_nop
9308 if test -n "$OTOOL64"; then
9309 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9310 else
9311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312 for as_dir in $PATH
9313 do
9314 IFS=$as_save_IFS
9315 case $as_dir in #(((
9316 '') as_dir=./ ;;
9317 */) ;;
9318 *) as_dir=$as_dir/ ;;
9319 esac
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9322 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9324 break 2
9325 fi
9326 done
9327 done
9328 IFS=$as_save_IFS
9329
9330 fi
9331 fi
9332 OTOOL64=$ac_cv_prog_OTOOL64
9333 if test -n "$OTOOL64"; then
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9335 printf "%s\n" "$OTOOL64" >&6; }
9336 else
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 printf "%s\n" "no" >&6; }
9339 fi
9340
9341
9342 fi
9343 if test -z "$ac_cv_prog_OTOOL64"; then
9344 ac_ct_OTOOL64=$OTOOL64
9345 # Extract the first word of "otool64", so it can be a program name with args.
9346 set dummy otool64; ac_word=$2
9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9348 printf %s "checking for $ac_word... " >&6; }
9349 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9350 then :
9351 printf %s "(cached) " >&6
9352 else $as_nop
9353 if test -n "$ac_ct_OTOOL64"; then
9354 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9355 else
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 for as_dir in $PATH
9358 do
9359 IFS=$as_save_IFS
9360 case $as_dir in #(((
9361 '') as_dir=./ ;;
9362 */) ;;
9363 *) as_dir=$as_dir/ ;;
9364 esac
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9367 ac_cv_prog_ac_ct_OTOOL64="otool64"
9368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9369 break 2
9370 fi
9371 done
9372 done
9373 IFS=$as_save_IFS
9374
9375 fi
9376 fi
9377 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9378 if test -n "$ac_ct_OTOOL64"; then
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9380 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9381 else
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383 printf "%s\n" "no" >&6; }
9384 fi
9385
9386 if test "x$ac_ct_OTOOL64" = x; then
9387 OTOOL64=":"
9388 else
9389 case $cross_compiling:$ac_tool_warned in
9390 yes:)
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9392 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9393 ac_tool_warned=yes ;;
9394 esac
9395 OTOOL64=$ac_ct_OTOOL64
9396 fi
9397 else
9398 OTOOL64="$ac_cv_prog_OTOOL64"
9399 fi
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9428 printf %s "checking for -single_module linker flag... " >&6; }
9429 if test ${lt_cv_apple_cc_single_mod+y}
9430 then :
9431 printf %s "(cached) " >&6
9432 else $as_nop
9433 lt_cv_apple_cc_single_mod=no
9434 if test -z "$LT_MULTI_MODULE"; then
9435 # By default we will add the -single_module flag. You can override
9436 # by either setting the environment variable LT_MULTI_MODULE
9437 # non-empty at configure time, or by adding -multi_module to the
9438 # link flags.
9439 rm -rf libconftest.dylib*
9440 echo "int foo(void){return 1;}" > conftest.c
9441 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9442 -dynamiclib -Wl,-single_module conftest.c" >&5
9443 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9444 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9445 _lt_result=$?
9446 # If there is a non-empty error log, and "single_module"
9447 # appears in it, assume the flag caused a linker warning
9448 if test -s conftest.err && $GREP single_module conftest.err; then
9449 cat conftest.err >&5
9450 # Otherwise, if the output was created with a 0 exit code from
9451 # the compiler, it worked.
9452 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9453 lt_cv_apple_cc_single_mod=yes
9454 else
9455 cat conftest.err >&5
9456 fi
9457 rm -rf libconftest.dylib*
9458 rm -f conftest.*
9459 fi
9460 fi
9461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9462 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9463
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9465 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9466 if test ${lt_cv_ld_exported_symbols_list+y}
9467 then :
9468 printf %s "(cached) " >&6
9469 else $as_nop
9470 lt_cv_ld_exported_symbols_list=no
9471 save_LDFLAGS=$LDFLAGS
9472 echo "_main" > conftest.sym
9473 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476
9477 int
9478 main (void)
9479 {
9480
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"
9486 then :
9487 lt_cv_ld_exported_symbols_list=yes
9488 else $as_nop
9489 lt_cv_ld_exported_symbols_list=no
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9492 conftest$ac_exeext conftest.$ac_ext
9493 LDFLAGS=$save_LDFLAGS
9494
9495 fi
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9497 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9498
9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9500 printf %s "checking for -force_load linker flag... " >&6; }
9501 if test ${lt_cv_ld_force_load+y}
9502 then :
9503 printf %s "(cached) " >&6
9504 else $as_nop
9505 lt_cv_ld_force_load=no
9506 cat > conftest.c << _LT_EOF
9507 int forced_loaded() { return 2;}
9508 _LT_EOF
9509 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9510 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9511 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9512 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9513 echo "$RANLIB libconftest.a" >&5
9514 $RANLIB libconftest.a 2>&5
9515 cat > conftest.c << _LT_EOF
9516 int main() { return 0;}
9517 _LT_EOF
9518 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9519 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9520 _lt_result=$?
9521 if test -s conftest.err && $GREP force_load conftest.err; then
9522 cat conftest.err >&5
9523 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9524 lt_cv_ld_force_load=yes
9525 else
9526 cat conftest.err >&5
9527 fi
9528 rm -f conftest.err libconftest.a conftest conftest.c
9529 rm -rf conftest.dSYM
9530
9531 fi
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9533 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9534 case $host_os in
9535 rhapsody* | darwin1.[012])
9536 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9537 darwin1.*)
9538 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9539 darwin*)
9540 case $MACOSX_DEPLOYMENT_TARGET,$host in
9541 10.[012],*|,*powerpc*-darwin[5-8]*)
9542 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9543 *)
9544 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9545 esac
9546 ;;
9547 esac
9548 if test yes = "$lt_cv_apple_cc_single_mod"; then
9549 _lt_dar_single_mod='$single_module'
9550 fi
9551 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9552 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9553 else
9554 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9555 fi
9556 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9557 _lt_dsymutil='~$DSYMUTIL $lib || :'
9558 else
9559 _lt_dsymutil=
9560 fi
9561 ;;
9562 esac
9563
9564 # func_munge_path_list VARIABLE PATH
9565 # -----------------------------------
9566 # VARIABLE is name of variable containing _space_ separated list of
9567 # directories to be munged by the contents of PATH, which is string
9568 # having a format:
9569 # "DIR[:DIR]:"
9570 # string "DIR[ DIR]" will be prepended to VARIABLE
9571 # ":DIR[:DIR]"
9572 # string "DIR[ DIR]" will be appended to VARIABLE
9573 # "DIRP[:DIRP]::[DIRA:]DIRA"
9574 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9575 # "DIRA[ DIRA]" will be appended to VARIABLE
9576 # "DIR[:DIR]"
9577 # VARIABLE will be replaced by "DIR[ DIR]"
9578 func_munge_path_list ()
9579 {
9580 case x$2 in
9581 x)
9582 ;;
9583 *:)
9584 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9585 ;;
9586 x:*)
9587 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9588 ;;
9589 *::*)
9590 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9591 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9592 ;;
9593 *)
9594 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9595 ;;
9596 esac
9597 }
9598
9599 ac_header= ac_cache=
9600 for ac_item in $ac_header_c_list
9601 do
9602 if test $ac_cache; then
9603 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9604 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9605 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9606 fi
9607 ac_header= ac_cache=
9608 elif test $ac_header; then
9609 ac_cache=$ac_item
9610 else
9611 ac_header=$ac_item
9612 fi
9613 done
9614
9615
9616
9617
9618
9619
9620
9621
9622 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9623 then :
9624
9625 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9626
9627 fi
9628 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9629 "
9630 if test "x$ac_cv_header_dlfcn_h" = xyes
9631 then :
9632 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9633
9634 fi
9635
9636
9637
9638
9639
9640 # Set options
9641 enable_win32_dll=yes
9642
9643 case $host in
9644 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9645 if test -n "$ac_tool_prefix"; then
9646 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9647 set dummy ${ac_tool_prefix}as; ac_word=$2
9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649 printf %s "checking for $ac_word... " >&6; }
9650 if test ${ac_cv_prog_AS+y}
9651 then :
9652 printf %s "(cached) " >&6
9653 else $as_nop
9654 if test -n "$AS"; then
9655 ac_cv_prog_AS="$AS" # Let the user override the test.
9656 else
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9659 do
9660 IFS=$as_save_IFS
9661 case $as_dir in #(((
9662 '') as_dir=./ ;;
9663 */) ;;
9664 *) as_dir=$as_dir/ ;;
9665 esac
9666 for ac_exec_ext in '' $ac_executable_extensions; do
9667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9668 ac_cv_prog_AS="${ac_tool_prefix}as"
9669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9670 break 2
9671 fi
9672 done
9673 done
9674 IFS=$as_save_IFS
9675
9676 fi
9677 fi
9678 AS=$ac_cv_prog_AS
9679 if test -n "$AS"; then
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9681 printf "%s\n" "$AS" >&6; }
9682 else
9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684 printf "%s\n" "no" >&6; }
9685 fi
9686
9687
9688 fi
9689 if test -z "$ac_cv_prog_AS"; then
9690 ac_ct_AS=$AS
9691 # Extract the first word of "as", so it can be a program name with args.
9692 set dummy as; ac_word=$2
9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694 printf %s "checking for $ac_word... " >&6; }
9695 if test ${ac_cv_prog_ac_ct_AS+y}
9696 then :
9697 printf %s "(cached) " >&6
9698 else $as_nop
9699 if test -n "$ac_ct_AS"; then
9700 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9701 else
9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 for as_dir in $PATH
9704 do
9705 IFS=$as_save_IFS
9706 case $as_dir in #(((
9707 '') as_dir=./ ;;
9708 */) ;;
9709 *) as_dir=$as_dir/ ;;
9710 esac
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9713 ac_cv_prog_ac_ct_AS="as"
9714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9715 break 2
9716 fi
9717 done
9718 done
9719 IFS=$as_save_IFS
9720
9721 fi
9722 fi
9723 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9724 if test -n "$ac_ct_AS"; then
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9726 printf "%s\n" "$ac_ct_AS" >&6; }
9727 else
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729 printf "%s\n" "no" >&6; }
9730 fi
9731
9732 if test "x$ac_ct_AS" = x; then
9733 AS="false"
9734 else
9735 case $cross_compiling:$ac_tool_warned in
9736 yes:)
9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9738 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9739 ac_tool_warned=yes ;;
9740 esac
9741 AS=$ac_ct_AS
9742 fi
9743 else
9744 AS="$ac_cv_prog_AS"
9745 fi
9746
9747 if test -n "$ac_tool_prefix"; then
9748 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9749 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 printf %s "checking for $ac_word... " >&6; }
9752 if test ${ac_cv_prog_DLLTOOL+y}
9753 then :
9754 printf %s "(cached) " >&6
9755 else $as_nop
9756 if test -n "$DLLTOOL"; then
9757 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9758 else
9759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $PATH
9761 do
9762 IFS=$as_save_IFS
9763 case $as_dir in #(((
9764 '') as_dir=./ ;;
9765 */) ;;
9766 *) as_dir=$as_dir/ ;;
9767 esac
9768 for ac_exec_ext in '' $ac_executable_extensions; do
9769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9772 break 2
9773 fi
9774 done
9775 done
9776 IFS=$as_save_IFS
9777
9778 fi
9779 fi
9780 DLLTOOL=$ac_cv_prog_DLLTOOL
9781 if test -n "$DLLTOOL"; then
9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9783 printf "%s\n" "$DLLTOOL" >&6; }
9784 else
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 printf "%s\n" "no" >&6; }
9787 fi
9788
9789
9790 fi
9791 if test -z "$ac_cv_prog_DLLTOOL"; then
9792 ac_ct_DLLTOOL=$DLLTOOL
9793 # Extract the first word of "dlltool", so it can be a program name with args.
9794 set dummy dlltool; ac_word=$2
9795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 printf %s "checking for $ac_word... " >&6; }
9797 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9798 then :
9799 printf %s "(cached) " >&6
9800 else $as_nop
9801 if test -n "$ac_ct_DLLTOOL"; then
9802 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9803 else
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9805 for as_dir in $PATH
9806 do
9807 IFS=$as_save_IFS
9808 case $as_dir in #(((
9809 '') as_dir=./ ;;
9810 */) ;;
9811 *) as_dir=$as_dir/ ;;
9812 esac
9813 for ac_exec_ext in '' $ac_executable_extensions; do
9814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9815 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9817 break 2
9818 fi
9819 done
9820 done
9821 IFS=$as_save_IFS
9822
9823 fi
9824 fi
9825 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9826 if test -n "$ac_ct_DLLTOOL"; then
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9828 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9829 else
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831 printf "%s\n" "no" >&6; }
9832 fi
9833
9834 if test "x$ac_ct_DLLTOOL" = x; then
9835 DLLTOOL="false"
9836 else
9837 case $cross_compiling:$ac_tool_warned in
9838 yes:)
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9840 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9841 ac_tool_warned=yes ;;
9842 esac
9843 DLLTOOL=$ac_ct_DLLTOOL
9844 fi
9845 else
9846 DLLTOOL="$ac_cv_prog_DLLTOOL"
9847 fi
9848
9849 if test -n "$ac_tool_prefix"; then
9850 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9851 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853 printf %s "checking for $ac_word... " >&6; }
9854 if test ${ac_cv_prog_OBJDUMP+y}
9855 then :
9856 printf %s "(cached) " >&6
9857 else $as_nop
9858 if test -n "$OBJDUMP"; then
9859 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9860 else
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9863 do
9864 IFS=$as_save_IFS
9865 case $as_dir in #(((
9866 '') as_dir=./ ;;
9867 */) ;;
9868 *) as_dir=$as_dir/ ;;
9869 esac
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9872 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9874 break 2
9875 fi
9876 done
9877 done
9878 IFS=$as_save_IFS
9879
9880 fi
9881 fi
9882 OBJDUMP=$ac_cv_prog_OBJDUMP
9883 if test -n "$OBJDUMP"; then
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9885 printf "%s\n" "$OBJDUMP" >&6; }
9886 else
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888 printf "%s\n" "no" >&6; }
9889 fi
9890
9891
9892 fi
9893 if test -z "$ac_cv_prog_OBJDUMP"; then
9894 ac_ct_OBJDUMP=$OBJDUMP
9895 # Extract the first word of "objdump", so it can be a program name with args.
9896 set dummy objdump; ac_word=$2
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 printf %s "checking for $ac_word... " >&6; }
9899 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9900 then :
9901 printf %s "(cached) " >&6
9902 else $as_nop
9903 if test -n "$ac_ct_OBJDUMP"; then
9904 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9905 else
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 for as_dir in $PATH
9908 do
9909 IFS=$as_save_IFS
9910 case $as_dir in #(((
9911 '') as_dir=./ ;;
9912 */) ;;
9913 *) as_dir=$as_dir/ ;;
9914 esac
9915 for ac_exec_ext in '' $ac_executable_extensions; do
9916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9917 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9919 break 2
9920 fi
9921 done
9922 done
9923 IFS=$as_save_IFS
9924
9925 fi
9926 fi
9927 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9928 if test -n "$ac_ct_OBJDUMP"; then
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9930 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9931 else
9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933 printf "%s\n" "no" >&6; }
9934 fi
9935
9936 if test "x$ac_ct_OBJDUMP" = x; then
9937 OBJDUMP="false"
9938 else
9939 case $cross_compiling:$ac_tool_warned in
9940 yes:)
9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9942 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9943 ac_tool_warned=yes ;;
9944 esac
9945 OBJDUMP=$ac_ct_OBJDUMP
9946 fi
9947 else
9948 OBJDUMP="$ac_cv_prog_OBJDUMP"
9949 fi
9950
9951 ;;
9952 esac
9953
9954 test -z "$AS" && AS=as
9955
9956
9957
9958
9959
9960 test -z "$DLLTOOL" && DLLTOOL=dlltool
9961
9962
9963
9964
9965
9966 test -z "$OBJDUMP" && OBJDUMP=objdump
9967
9968
9969
9970
9971
9972
9973
9974 enable_dlopen=no
9975
9976
9977
9978 # Check whether --enable-shared was given.
9979 if test ${enable_shared+y}
9980 then :
9981 enableval=$enable_shared; p=${PACKAGE-default}
9982 case $enableval in
9983 yes) enable_shared=yes ;;
9984 no) enable_shared=no ;;
9985 *)
9986 enable_shared=no
9987 # Look at the argument we got. We use all the common list separators.
9988 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9989 for pkg in $enableval; do
9990 IFS=$lt_save_ifs
9991 if test "X$pkg" = "X$p"; then
9992 enable_shared=yes
9993 fi
9994 done
9995 IFS=$lt_save_ifs
9996 ;;
9997 esac
9998 else $as_nop
9999 enable_shared=yes
10000 fi
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010 # Check whether --enable-static was given.
10011 if test ${enable_static+y}
10012 then :
10013 enableval=$enable_static; p=${PACKAGE-default}
10014 case $enableval in
10015 yes) enable_static=yes ;;
10016 no) enable_static=no ;;
10017 *)
10018 enable_static=no
10019 # Look at the argument we got. We use all the common list separators.
10020 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10021 for pkg in $enableval; do
10022 IFS=$lt_save_ifs
10023 if test "X$pkg" = "X$p"; then
10024 enable_static=yes
10025 fi
10026 done
10027 IFS=$lt_save_ifs
10028 ;;
10029 esac
10030 else $as_nop
10031 enable_static=yes
10032 fi
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043 # Check whether --with-pic was given.
10044 if test ${with_pic+y}
10045 then :
10046 withval=$with_pic; lt_p=${PACKAGE-default}
10047 case $withval in
10048 yes|no) pic_mode=$withval ;;
10049 *)
10050 pic_mode=default
10051 # Look at the argument we got. We use all the common list separators.
10052 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10053 for lt_pkg in $withval; do
10054 IFS=$lt_save_ifs
10055 if test "X$lt_pkg" = "X$lt_p"; then
10056 pic_mode=yes
10057 fi
10058 done
10059 IFS=$lt_save_ifs
10060 ;;
10061 esac
10062 else $as_nop
10063 pic_mode=default
10064 fi
10065
10066
10067
10068
10069
10070
10071
10072
10073 # Check whether --enable-fast-install was given.
10074 if test ${enable_fast_install+y}
10075 then :
10076 enableval=$enable_fast_install; p=${PACKAGE-default}
10077 case $enableval in
10078 yes) enable_fast_install=yes ;;
10079 no) enable_fast_install=no ;;
10080 *)
10081 enable_fast_install=no
10082 # Look at the argument we got. We use all the common list separators.
10083 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10084 for pkg in $enableval; do
10085 IFS=$lt_save_ifs
10086 if test "X$pkg" = "X$p"; then
10087 enable_fast_install=yes
10088 fi
10089 done
10090 IFS=$lt_save_ifs
10091 ;;
10092 esac
10093 else $as_nop
10094 enable_fast_install=yes
10095 fi
10096
10097
10098
10099
10100
10101
10102
10103
10104 shared_archive_member_spec=
10105 case $host,$enable_shared in
10106 power*-*-aix[5-9]*,yes)
10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10108 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10109
10110 # Check whether --with-aix-soname was given.
10111 if test ${with_aix_soname+y}
10112 then :
10113 withval=$with_aix_soname; case $withval in
10114 aix|svr4|both)
10115 ;;
10116 *)
10117 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10118 ;;
10119 esac
10120 lt_cv_with_aix_soname=$with_aix_soname
10121 else $as_nop
10122 if test ${lt_cv_with_aix_soname+y}
10123 then :
10124 printf %s "(cached) " >&6
10125 else $as_nop
10126 lt_cv_with_aix_soname=aix
10127 fi
10128
10129 with_aix_soname=$lt_cv_with_aix_soname
10130 fi
10131
10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10133 printf "%s\n" "$with_aix_soname" >&6; }
10134 if test aix != "$with_aix_soname"; then
10135 # For the AIX way of multilib, we name the shared archive member
10136 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10137 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10138 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10139 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10140 if test 64 = "${OBJECT_MODE-32}"; then
10141 shared_archive_member_spec=shr_64
10142 else
10143 shared_archive_member_spec=shr
10144 fi
10145 fi
10146 ;;
10147 *)
10148 with_aix_soname=aix
10149 ;;
10150 esac
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161 # This can be used to rebuild libtool when needed
10162 LIBTOOL_DEPS=$ltmain
10163
10164 # Always use our own libtool.
10165 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196 test -z "$LN_S" && LN_S="ln -s"
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211 if test -n "${ZSH_VERSION+set}"; then
10212 setopt NO_GLOB_SUBST
10213 fi
10214
10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10216 printf %s "checking for objdir... " >&6; }
10217 if test ${lt_cv_objdir+y}
10218 then :
10219 printf %s "(cached) " >&6
10220 else $as_nop
10221 rm -f .libs 2>/dev/null
10222 mkdir .libs 2>/dev/null
10223 if test -d .libs; then
10224 lt_cv_objdir=.libs
10225 else
10226 # MS-DOS does not allow filenames that begin with a dot.
10227 lt_cv_objdir=_libs
10228 fi
10229 rmdir .libs 2>/dev/null
10230 fi
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10232 printf "%s\n" "$lt_cv_objdir" >&6; }
10233 objdir=$lt_cv_objdir
10234
10235
10236
10237
10238
10239 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10240
10241
10242
10243
10244 case $host_os in
10245 aix3*)
10246 # AIX sometimes has problems with the GCC collect2 program. For some
10247 # reason, if we set the COLLECT_NAMES environment variable, the problems
10248 # vanish in a puff of smoke.
10249 if test set != "${COLLECT_NAMES+set}"; then
10250 COLLECT_NAMES=
10251 export COLLECT_NAMES
10252 fi
10253 ;;
10254 esac
10255
10256 # Global variables:
10257 ofile=libtool
10258 can_build_shared=yes
10259
10260 # All known linkers require a '.a' archive for static linking (except MSVC and
10261 # ICC, which need '.lib').
10262 libext=a
10263
10264 with_gnu_ld=$lt_cv_prog_gnu_ld
10265
10266 old_CC=$CC
10267 old_CFLAGS=$CFLAGS
10268
10269 # Set sane defaults for various variables
10270 test -z "$CC" && CC=cc
10271 test -z "$LTCC" && LTCC=$CC
10272 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10273 test -z "$LD" && LD=ld
10274 test -z "$ac_objext" && ac_objext=o
10275
10276 func_cc_basename $compiler
10277 cc_basename=$func_cc_basename_result
10278
10279
10280 # Only perform the check for file, if the check method requires it
10281 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10282 case $deplibs_check_method in
10283 file_magic*)
10284 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10286 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10287 if test ${lt_cv_path_MAGIC_CMD+y}
10288 then :
10289 printf %s "(cached) " >&6
10290 else $as_nop
10291 case $MAGIC_CMD in
10292 [\\/*] | ?:[\\/]*)
10293 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10294 ;;
10295 *)
10296 lt_save_MAGIC_CMD=$MAGIC_CMD
10297 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10298 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10299 for ac_dir in $ac_dummy; do
10300 IFS=$lt_save_ifs
10301 test -z "$ac_dir" && ac_dir=.
10302 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10303 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10304 if test -n "$file_magic_test_file"; then
10305 case $deplibs_check_method in
10306 "file_magic "*)
10307 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10308 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10309 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10310 $EGREP "$file_magic_regex" > /dev/null; then
10311 :
10312 else
10313 cat <<_LT_EOF 1>&2
10314
10315 *** Warning: the command libtool uses to detect shared libraries,
10316 *** $file_magic_cmd, produces output that libtool cannot recognize.
10317 *** The result is that libtool may fail to recognize shared libraries
10318 *** as such. This will affect the creation of libtool libraries that
10319 *** depend on shared libraries, but programs linked with such libtool
10320 *** libraries will work regardless of this problem. Nevertheless, you
10321 *** may want to report the problem to your system manager and/or to
10322 *** bug-libtool@gnu.org
10323
10324 _LT_EOF
10325 fi ;;
10326 esac
10327 fi
10328 break
10329 fi
10330 done
10331 IFS=$lt_save_ifs
10332 MAGIC_CMD=$lt_save_MAGIC_CMD
10333 ;;
10334 esac
10335 fi
10336
10337 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10338 if test -n "$MAGIC_CMD"; then
10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10340 printf "%s\n" "$MAGIC_CMD" >&6; }
10341 else
10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 printf "%s\n" "no" >&6; }
10344 fi
10345
10346
10347
10348
10349
10350 if test -z "$lt_cv_path_MAGIC_CMD"; then
10351 if test -n "$ac_tool_prefix"; then
10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10353 printf %s "checking for file... " >&6; }
10354 if test ${lt_cv_path_MAGIC_CMD+y}
10355 then :
10356 printf %s "(cached) " >&6
10357 else $as_nop
10358 case $MAGIC_CMD in
10359 [\\/*] | ?:[\\/]*)
10360 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10361 ;;
10362 *)
10363 lt_save_MAGIC_CMD=$MAGIC_CMD
10364 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10366 for ac_dir in $ac_dummy; do
10367 IFS=$lt_save_ifs
10368 test -z "$ac_dir" && ac_dir=.
10369 if test -f "$ac_dir/file"; then
10370 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10371 if test -n "$file_magic_test_file"; then
10372 case $deplibs_check_method in
10373 "file_magic "*)
10374 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10375 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10377 $EGREP "$file_magic_regex" > /dev/null; then
10378 :
10379 else
10380 cat <<_LT_EOF 1>&2
10381
10382 *** Warning: the command libtool uses to detect shared libraries,
10383 *** $file_magic_cmd, produces output that libtool cannot recognize.
10384 *** The result is that libtool may fail to recognize shared libraries
10385 *** as such. This will affect the creation of libtool libraries that
10386 *** depend on shared libraries, but programs linked with such libtool
10387 *** libraries will work regardless of this problem. Nevertheless, you
10388 *** may want to report the problem to your system manager and/or to
10389 *** bug-libtool@gnu.org
10390
10391 _LT_EOF
10392 fi ;;
10393 esac
10394 fi
10395 break
10396 fi
10397 done
10398 IFS=$lt_save_ifs
10399 MAGIC_CMD=$lt_save_MAGIC_CMD
10400 ;;
10401 esac
10402 fi
10403
10404 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10405 if test -n "$MAGIC_CMD"; then
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10407 printf "%s\n" "$MAGIC_CMD" >&6; }
10408 else
10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 printf "%s\n" "no" >&6; }
10411 fi
10412
10413
10414 else
10415 MAGIC_CMD=:
10416 fi
10417 fi
10418
10419 fi
10420 ;;
10421 esac
10422
10423 # Use C for the default configuration in the libtool script
10424
10425 lt_save_CC=$CC
10426 ac_ext=c
10427 ac_cpp='$CPP $CPPFLAGS'
10428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10431
10432
10433 # Source file extension for C test sources.
10434 ac_ext=c
10435
10436 # Object file extension for compiled C test sources.
10437 objext=o
10438 objext=$objext
10439
10440 # Code to be used in simple compile tests
10441 lt_simple_compile_test_code="int some_variable = 0;"
10442
10443 # Code to be used in simple link tests
10444 lt_simple_link_test_code='int main(){return(0);}'
10445
10446
10447
10448
10449
10450
10451
10452 # If no C compiler was specified, use CC.
10453 LTCC=${LTCC-"$CC"}
10454
10455 # If no C compiler flags were specified, use CFLAGS.
10456 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10457
10458 # Allow CC to be a program name with arguments.
10459 compiler=$CC
10460
10461 # Save the default compiler, since it gets overwritten when the other
10462 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10463 compiler_DEFAULT=$CC
10464
10465 # save warnings/boilerplate of simple test code
10466 ac_outfile=conftest.$ac_objext
10467 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10468 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10469 _lt_compiler_boilerplate=`cat conftest.err`
10470 $RM conftest*
10471
10472 ac_outfile=conftest.$ac_objext
10473 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10474 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10475 _lt_linker_boilerplate=`cat conftest.err`
10476 $RM -r conftest*
10477
10478
10479 ## CAVEAT EMPTOR:
10480 ## There is no encapsulation within the following macros, do not change
10481 ## the running order or otherwise move them around unless you know exactly
10482 ## what you are doing...
10483 if test -n "$compiler"; then
10484
10485 lt_prog_compiler_no_builtin_flag=
10486
10487 if test yes = "$GCC"; then
10488 case $cc_basename in
10489 nvcc*)
10490 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10491 *)
10492 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10493 esac
10494
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10496 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10497 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10498 then :
10499 printf %s "(cached) " >&6
10500 else $as_nop
10501 lt_cv_prog_compiler_rtti_exceptions=no
10502 ac_outfile=conftest.$ac_objext
10503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10504 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10505 # Insert the option either (1) after the last *FLAGS variable, or
10506 # (2) before a word containing "conftest.", or (3) at the end.
10507 # Note that $ac_compile itself does not contain backslashes and begins
10508 # with a dollar sign (not a hyphen), so the echo should work correctly.
10509 # The option is referenced via a variable to avoid confusing sed.
10510 lt_compile=`echo "$ac_compile" | $SED \
10511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10513 -e 's:$: $lt_compiler_flag:'`
10514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10515 (eval "$lt_compile" 2>conftest.err)
10516 ac_status=$?
10517 cat conftest.err >&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 if (exit $ac_status) && test -s "$ac_outfile"; then
10520 # The compiler can only warn and ignore the option if not recognized
10521 # So say no if there are warnings other than the usual output.
10522 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10525 lt_cv_prog_compiler_rtti_exceptions=yes
10526 fi
10527 fi
10528 $RM conftest*
10529
10530 fi
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10532 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10533
10534 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10535 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10536 else
10537 :
10538 fi
10539
10540 fi
10541
10542
10543
10544
10545
10546
10547 lt_prog_compiler_wl=
10548 lt_prog_compiler_pic=
10549 lt_prog_compiler_static=
10550
10551
10552 if test yes = "$GCC"; then
10553 lt_prog_compiler_wl='-Wl,'
10554 lt_prog_compiler_static='-static'
10555
10556 case $host_os in
10557 aix*)
10558 # All AIX code is PIC.
10559 if test ia64 = "$host_cpu"; then
10560 # AIX 5 now supports IA64 processor
10561 lt_prog_compiler_static='-Bstatic'
10562 fi
10563 lt_prog_compiler_pic='-fPIC'
10564 ;;
10565
10566 amigaos*)
10567 case $host_cpu in
10568 powerpc)
10569 # see comment about AmigaOS4 .so support
10570 lt_prog_compiler_pic='-fPIC'
10571 ;;
10572 m68k)
10573 # FIXME: we need at least 68020 code to build shared libraries, but
10574 # adding the '-m68020' flag to GCC prevents building anything better,
10575 # like '-m68040'.
10576 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10577 ;;
10578 esac
10579 ;;
10580
10581 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10582 # PIC is the default for these OSes.
10583 ;;
10584
10585 mingw* | cygwin* | pw32* | os2* | cegcc*)
10586 # This hack is so that the source file can tell whether it is being
10587 # built for inclusion in a dll (and should export symbols for example).
10588 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10589 # (--disable-auto-import) libraries
10590 lt_prog_compiler_pic='-DDLL_EXPORT'
10591 case $host_os in
10592 os2*)
10593 lt_prog_compiler_static='$wl-static'
10594 ;;
10595 esac
10596 ;;
10597
10598 darwin* | rhapsody*)
10599 # PIC is the default on this platform
10600 # Common symbols not allowed in MH_DYLIB files
10601 lt_prog_compiler_pic='-fno-common'
10602 ;;
10603
10604 haiku*)
10605 # PIC is the default for Haiku.
10606 # The "-static" flag exists, but is broken.
10607 lt_prog_compiler_static=
10608 ;;
10609
10610 hpux*)
10611 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10612 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10613 # sets the default TLS model and affects inlining.
10614 case $host_cpu in
10615 hppa*64*)
10616 # +Z the default
10617 ;;
10618 *)
10619 lt_prog_compiler_pic='-fPIC'
10620 ;;
10621 esac
10622 ;;
10623
10624 interix[3-9]*)
10625 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10626 # Instead, we relocate shared libraries at runtime.
10627 ;;
10628
10629 msdosdjgpp*)
10630 # Just because we use GCC doesn't mean we suddenly get shared libraries
10631 # on systems that don't support them.
10632 lt_prog_compiler_can_build_shared=no
10633 enable_shared=no
10634 ;;
10635
10636 *nto* | *qnx*)
10637 # QNX uses GNU C++, but need to define -shared option too, otherwise
10638 # it will coredump.
10639 lt_prog_compiler_pic='-fPIC -shared'
10640 ;;
10641
10642 sysv4*MP*)
10643 if test -d /usr/nec; then
10644 lt_prog_compiler_pic=-Kconform_pic
10645 fi
10646 ;;
10647
10648 *)
10649 lt_prog_compiler_pic='-fPIC'
10650 ;;
10651 esac
10652
10653 case $cc_basename in
10654 nvcc*) # Cuda Compiler Driver 2.2
10655 lt_prog_compiler_wl='-Xlinker '
10656 if test -n "$lt_prog_compiler_pic"; then
10657 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10658 fi
10659 ;;
10660 esac
10661 else
10662 # PORTME Check for flag to pass linker flags through the system compiler.
10663 case $host_os in
10664 aix*)
10665 lt_prog_compiler_wl='-Wl,'
10666 if test ia64 = "$host_cpu"; then
10667 # AIX 5 now supports IA64 processor
10668 lt_prog_compiler_static='-Bstatic'
10669 else
10670 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10671 fi
10672 ;;
10673
10674 darwin* | rhapsody*)
10675 # PIC is the default on this platform
10676 # Common symbols not allowed in MH_DYLIB files
10677 lt_prog_compiler_pic='-fno-common'
10678 case $cc_basename in
10679 nagfor*)
10680 # NAG Fortran compiler
10681 lt_prog_compiler_wl='-Wl,-Wl,,'
10682 lt_prog_compiler_pic='-PIC'
10683 lt_prog_compiler_static='-Bstatic'
10684 ;;
10685 esac
10686 ;;
10687
10688 mingw* | cygwin* | pw32* | os2* | cegcc*)
10689 # This hack is so that the source file can tell whether it is being
10690 # built for inclusion in a dll (and should export symbols for example).
10691 lt_prog_compiler_pic='-DDLL_EXPORT'
10692 case $host_os in
10693 os2*)
10694 lt_prog_compiler_static='$wl-static'
10695 ;;
10696 esac
10697 ;;
10698
10699 hpux9* | hpux10* | hpux11*)
10700 lt_prog_compiler_wl='-Wl,'
10701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10702 # not for PA HP-UX.
10703 case $host_cpu in
10704 hppa*64*|ia64*)
10705 # +Z the default
10706 ;;
10707 *)
10708 lt_prog_compiler_pic='+Z'
10709 ;;
10710 esac
10711 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10712 lt_prog_compiler_static='$wl-a ${wl}archive'
10713 ;;
10714
10715 irix5* | irix6* | nonstopux*)
10716 lt_prog_compiler_wl='-Wl,'
10717 # PIC (with -KPIC) is the default.
10718 lt_prog_compiler_static='-non_shared'
10719 ;;
10720
10721 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10722 case $cc_basename in
10723 # old Intel for x86_64, which still supported -KPIC.
10724 ecc*)
10725 lt_prog_compiler_wl='-Wl,'
10726 lt_prog_compiler_pic='-KPIC'
10727 lt_prog_compiler_static='-static'
10728 ;;
10729 # flang / f18. f95 an alias for gfortran or flang on Debian
10730 flang* | f18* | f95*)
10731 lt_prog_compiler_wl='-Wl,'
10732 lt_prog_compiler_pic='-fPIC'
10733 lt_prog_compiler_static='-static'
10734 ;;
10735 # icc used to be incompatible with GCC.
10736 # ICC 10 doesn't accept -KPIC any more.
10737 icc* | ifort*)
10738 lt_prog_compiler_wl='-Wl,'
10739 lt_prog_compiler_pic='-fPIC'
10740 lt_prog_compiler_static='-static'
10741 ;;
10742 # Lahey Fortran 8.1.
10743 lf95*)
10744 lt_prog_compiler_wl='-Wl,'
10745 lt_prog_compiler_pic='--shared'
10746 lt_prog_compiler_static='--static'
10747 ;;
10748 nagfor*)
10749 # NAG Fortran compiler
10750 lt_prog_compiler_wl='-Wl,-Wl,,'
10751 lt_prog_compiler_pic='-PIC'
10752 lt_prog_compiler_static='-Bstatic'
10753 ;;
10754 tcc*)
10755 # Fabrice Bellard et al's Tiny C Compiler
10756 lt_prog_compiler_wl='-Wl,'
10757 lt_prog_compiler_pic='-fPIC'
10758 lt_prog_compiler_static='-static'
10759 ;;
10760 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10761 # Portland Group compilers (*not* the Pentium gcc compiler,
10762 # which looks to be a dead project)
10763 lt_prog_compiler_wl='-Wl,'
10764 lt_prog_compiler_pic='-fpic'
10765 lt_prog_compiler_static='-Bstatic'
10766 ;;
10767 ccc*)
10768 lt_prog_compiler_wl='-Wl,'
10769 # All Alpha code is PIC.
10770 lt_prog_compiler_static='-non_shared'
10771 ;;
10772 xl* | bgxl* | bgf* | mpixl*)
10773 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10774 lt_prog_compiler_wl='-Wl,'
10775 lt_prog_compiler_pic='-qpic'
10776 lt_prog_compiler_static='-qstaticlink'
10777 ;;
10778 *)
10779 case `$CC -V 2>&1 | $SED 5q` in
10780 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10781 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10782 lt_prog_compiler_pic='-KPIC'
10783 lt_prog_compiler_static='-Bstatic'
10784 lt_prog_compiler_wl=''
10785 ;;
10786 *Sun\ F* | *Sun*Fortran*)
10787 lt_prog_compiler_pic='-KPIC'
10788 lt_prog_compiler_static='-Bstatic'
10789 lt_prog_compiler_wl='-Qoption ld '
10790 ;;
10791 *Sun\ C*)
10792 # Sun C 5.9
10793 lt_prog_compiler_pic='-KPIC'
10794 lt_prog_compiler_static='-Bstatic'
10795 lt_prog_compiler_wl='-Wl,'
10796 ;;
10797 *Intel*\ [CF]*Compiler*)
10798 lt_prog_compiler_wl='-Wl,'
10799 lt_prog_compiler_pic='-fPIC'
10800 lt_prog_compiler_static='-static'
10801 ;;
10802 *Portland\ Group*)
10803 lt_prog_compiler_wl='-Wl,'
10804 lt_prog_compiler_pic='-fpic'
10805 lt_prog_compiler_static='-Bstatic'
10806 ;;
10807 esac
10808 ;;
10809 esac
10810 ;;
10811
10812 newsos6)
10813 lt_prog_compiler_pic='-KPIC'
10814 lt_prog_compiler_static='-Bstatic'
10815 ;;
10816
10817 *nto* | *qnx*)
10818 # QNX uses GNU C++, but need to define -shared option too, otherwise
10819 # it will coredump.
10820 lt_prog_compiler_pic='-fPIC -shared'
10821 ;;
10822
10823 osf3* | osf4* | osf5*)
10824 lt_prog_compiler_wl='-Wl,'
10825 # All OSF/1 code is PIC.
10826 lt_prog_compiler_static='-non_shared'
10827 ;;
10828
10829 rdos*)
10830 lt_prog_compiler_static='-non_shared'
10831 ;;
10832
10833 solaris*)
10834 lt_prog_compiler_pic='-KPIC'
10835 lt_prog_compiler_static='-Bstatic'
10836 case $cc_basename in
10837 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10838 lt_prog_compiler_wl='-Qoption ld ';;
10839 *)
10840 lt_prog_compiler_wl='-Wl,';;
10841 esac
10842 ;;
10843
10844 sunos4*)
10845 lt_prog_compiler_wl='-Qoption ld '
10846 lt_prog_compiler_pic='-PIC'
10847 lt_prog_compiler_static='-Bstatic'
10848 ;;
10849
10850 sysv4 | sysv4.2uw2* | sysv4.3*)
10851 lt_prog_compiler_wl='-Wl,'
10852 lt_prog_compiler_pic='-KPIC'
10853 lt_prog_compiler_static='-Bstatic'
10854 ;;
10855
10856 sysv4*MP*)
10857 if test -d /usr/nec; then
10858 lt_prog_compiler_pic='-Kconform_pic'
10859 lt_prog_compiler_static='-Bstatic'
10860 fi
10861 ;;
10862
10863 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10864 lt_prog_compiler_wl='-Wl,'
10865 lt_prog_compiler_pic='-KPIC'
10866 lt_prog_compiler_static='-Bstatic'
10867 ;;
10868
10869 unicos*)
10870 lt_prog_compiler_wl='-Wl,'
10871 lt_prog_compiler_can_build_shared=no
10872 ;;
10873
10874 uts4*)
10875 lt_prog_compiler_pic='-pic'
10876 lt_prog_compiler_static='-Bstatic'
10877 ;;
10878
10879 *)
10880 lt_prog_compiler_can_build_shared=no
10881 ;;
10882 esac
10883 fi
10884
10885 case $host_os in
10886 # For platforms that do not support PIC, -DPIC is meaningless:
10887 *djgpp*)
10888 lt_prog_compiler_pic=
10889 ;;
10890 *)
10891 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10892 ;;
10893 esac
10894
10895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10896 printf %s "checking for $compiler option to produce PIC... " >&6; }
10897 if test ${lt_cv_prog_compiler_pic+y}
10898 then :
10899 printf %s "(cached) " >&6
10900 else $as_nop
10901 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10902 fi
10903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10904 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10905 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10906
10907 #
10908 # Check to make sure the PIC flag actually works.
10909 #
10910 if test -n "$lt_prog_compiler_pic"; then
10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10912 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10913 if test ${lt_cv_prog_compiler_pic_works+y}
10914 then :
10915 printf %s "(cached) " >&6
10916 else $as_nop
10917 lt_cv_prog_compiler_pic_works=no
10918 ac_outfile=conftest.$ac_objext
10919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10920 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10921 # Insert the option either (1) after the last *FLAGS variable, or
10922 # (2) before a word containing "conftest.", or (3) at the end.
10923 # Note that $ac_compile itself does not contain backslashes and begins
10924 # with a dollar sign (not a hyphen), so the echo should work correctly.
10925 # The option is referenced via a variable to avoid confusing sed.
10926 lt_compile=`echo "$ac_compile" | $SED \
10927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10929 -e 's:$: $lt_compiler_flag:'`
10930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10931 (eval "$lt_compile" 2>conftest.err)
10932 ac_status=$?
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 if (exit $ac_status) && test -s "$ac_outfile"; then
10936 # The compiler can only warn and ignore the option if not recognized
10937 # So say no if there are warnings other than the usual output.
10938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10941 lt_cv_prog_compiler_pic_works=yes
10942 fi
10943 fi
10944 $RM conftest*
10945
10946 fi
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10948 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10949
10950 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10951 case $lt_prog_compiler_pic in
10952 "" | " "*) ;;
10953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10954 esac
10955 else
10956 lt_prog_compiler_pic=
10957 lt_prog_compiler_can_build_shared=no
10958 fi
10959
10960 fi
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972 #
10973 # Check to make sure the static flag actually works.
10974 #
10975 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10977 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10978 if test ${lt_cv_prog_compiler_static_works+y}
10979 then :
10980 printf %s "(cached) " >&6
10981 else $as_nop
10982 lt_cv_prog_compiler_static_works=no
10983 save_LDFLAGS=$LDFLAGS
10984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10987 # The linker can only warn and ignore the option if not recognized
10988 # So say no if there are warnings
10989 if test -s conftest.err; then
10990 # Append any errors to the config.log.
10991 cat conftest.err 1>&5
10992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10994 if diff conftest.exp conftest.er2 >/dev/null; then
10995 lt_cv_prog_compiler_static_works=yes
10996 fi
10997 else
10998 lt_cv_prog_compiler_static_works=yes
10999 fi
11000 fi
11001 $RM -r conftest*
11002 LDFLAGS=$save_LDFLAGS
11003
11004 fi
11005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11006 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11007
11008 if test yes = "$lt_cv_prog_compiler_static_works"; then
11009 :
11010 else
11011 lt_prog_compiler_static=
11012 fi
11013
11014
11015
11016
11017
11018
11019
11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11021 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11022 if test ${lt_cv_prog_compiler_c_o+y}
11023 then :
11024 printf %s "(cached) " >&6
11025 else $as_nop
11026 lt_cv_prog_compiler_c_o=no
11027 $RM -r conftest 2>/dev/null
11028 mkdir conftest
11029 cd conftest
11030 mkdir out
11031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11032
11033 lt_compiler_flag="-o out/conftest2.$ac_objext"
11034 # Insert the option either (1) after the last *FLAGS variable, or
11035 # (2) before a word containing "conftest.", or (3) at the end.
11036 # Note that $ac_compile itself does not contain backslashes and begins
11037 # with a dollar sign (not a hyphen), so the echo should work correctly.
11038 lt_compile=`echo "$ac_compile" | $SED \
11039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11041 -e 's:$: $lt_compiler_flag:'`
11042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11043 (eval "$lt_compile" 2>out/conftest.err)
11044 ac_status=$?
11045 cat out/conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11048 then
11049 # The compiler can only warn and ignore the option if not recognized
11050 # So say no if there are warnings
11051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11054 lt_cv_prog_compiler_c_o=yes
11055 fi
11056 fi
11057 chmod u+w . 2>&5
11058 $RM conftest*
11059 # SGI C++ compiler will create directory out/ii_files/ for
11060 # template instantiation
11061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11062 $RM out/* && rmdir out
11063 cd ..
11064 $RM -r conftest
11065 $RM conftest*
11066
11067 fi
11068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11069 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11070
11071
11072
11073
11074
11075
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11077 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11078 if test ${lt_cv_prog_compiler_c_o+y}
11079 then :
11080 printf %s "(cached) " >&6
11081 else $as_nop
11082 lt_cv_prog_compiler_c_o=no
11083 $RM -r conftest 2>/dev/null
11084 mkdir conftest
11085 cd conftest
11086 mkdir out
11087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11088
11089 lt_compiler_flag="-o out/conftest2.$ac_objext"
11090 # Insert the option either (1) after the last *FLAGS variable, or
11091 # (2) before a word containing "conftest.", or (3) at the end.
11092 # Note that $ac_compile itself does not contain backslashes and begins
11093 # with a dollar sign (not a hyphen), so the echo should work correctly.
11094 lt_compile=`echo "$ac_compile" | $SED \
11095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11097 -e 's:$: $lt_compiler_flag:'`
11098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11099 (eval "$lt_compile" 2>out/conftest.err)
11100 ac_status=$?
11101 cat out/conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11104 then
11105 # The compiler can only warn and ignore the option if not recognized
11106 # So say no if there are warnings
11107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11110 lt_cv_prog_compiler_c_o=yes
11111 fi
11112 fi
11113 chmod u+w . 2>&5
11114 $RM conftest*
11115 # SGI C++ compiler will create directory out/ii_files/ for
11116 # template instantiation
11117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11118 $RM out/* && rmdir out
11119 cd ..
11120 $RM -r conftest
11121 $RM conftest*
11122
11123 fi
11124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11125 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11126
11127
11128
11129
11130 hard_links=nottested
11131 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11132 # do not overwrite the value of need_locks provided by the user
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11134 printf %s "checking if we can lock with hard links... " >&6; }
11135 hard_links=yes
11136 $RM conftest*
11137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11138 touch conftest.a
11139 ln conftest.a conftest.b 2>&5 || hard_links=no
11140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11142 printf "%s\n" "$hard_links" >&6; }
11143 if test no = "$hard_links"; then
11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11145 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11146 need_locks=warn
11147 fi
11148 else
11149 need_locks=no
11150 fi
11151
11152
11153
11154
11155
11156
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11158 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11159
11160 runpath_var=
11161 allow_undefined_flag=
11162 always_export_symbols=no
11163 archive_cmds=
11164 archive_expsym_cmds=
11165 compiler_needs_object=no
11166 enable_shared_with_static_runtimes=no
11167 export_dynamic_flag_spec=
11168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11169 hardcode_automatic=no
11170 hardcode_direct=no
11171 hardcode_direct_absolute=no
11172 hardcode_libdir_flag_spec=
11173 hardcode_libdir_separator=
11174 hardcode_minus_L=no
11175 hardcode_shlibpath_var=unsupported
11176 inherit_rpath=no
11177 link_all_deplibs=unknown
11178 module_cmds=
11179 module_expsym_cmds=
11180 old_archive_from_new_cmds=
11181 old_archive_from_expsyms_cmds=
11182 thread_safe_flag_spec=
11183 whole_archive_flag_spec=
11184 # include_expsyms should be a list of space-separated symbols to be *always*
11185 # included in the symbol list
11186 include_expsyms=
11187 # exclude_expsyms can be an extended regexp of symbols to exclude
11188 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11189 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11190 # as well as any symbol that contains 'd'.
11191 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11192 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11193 # platforms (ab)use it in PIC code, but their linkers get confused if
11194 # the symbol is explicitly referenced. Since portable code cannot
11195 # rely on this symbol name, it's probably fine to never include it in
11196 # preloaded symbol tables.
11197 # Exclude shared library initialization/finalization symbols.
11198 extract_expsyms_cmds=
11199
11200 case $host_os in
11201 cygwin* | mingw* | pw32* | cegcc*)
11202 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11203 # When not using gcc, we currently assume that we are using
11204 # Microsoft Visual C++ or Intel C++ Compiler.
11205 if test yes != "$GCC"; then
11206 with_gnu_ld=no
11207 fi
11208 ;;
11209 interix*)
11210 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11211 with_gnu_ld=yes
11212 ;;
11213 openbsd* | bitrig*)
11214 with_gnu_ld=no
11215 ;;
11216 linux* | k*bsd*-gnu | gnu*)
11217 link_all_deplibs=no
11218 ;;
11219 esac
11220
11221 ld_shlibs=yes
11222
11223 # On some targets, GNU ld is compatible enough with the native linker
11224 # that we're better off using the native interface for both.
11225 lt_use_gnu_ld_interface=no
11226 if test yes = "$with_gnu_ld"; then
11227 case $host_os in
11228 aix*)
11229 # The AIX port of GNU ld has always aspired to compatibility
11230 # with the native linker. However, as the warning in the GNU ld
11231 # block says, versions before 2.19.5* couldn't really create working
11232 # shared libraries, regardless of the interface used.
11233 case `$LD -v 2>&1` in
11234 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11235 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11236 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11237 *)
11238 lt_use_gnu_ld_interface=yes
11239 ;;
11240 esac
11241 ;;
11242 *)
11243 lt_use_gnu_ld_interface=yes
11244 ;;
11245 esac
11246 fi
11247
11248 if test yes = "$lt_use_gnu_ld_interface"; then
11249 # If archive_cmds runs LD, not CC, wlarc should be empty
11250 wlarc='$wl'
11251
11252 # Set some defaults for GNU ld with shared library support. These
11253 # are reset later if shared libraries are not supported. Putting them
11254 # here allows them to be overridden if necessary.
11255 runpath_var=LD_RUN_PATH
11256 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11257 export_dynamic_flag_spec='$wl--export-dynamic'
11258 # ancient GNU ld didn't support --whole-archive et. al.
11259 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11260 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11261 else
11262 whole_archive_flag_spec=
11263 fi
11264 supports_anon_versioning=no
11265 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11266 *GNU\ gold*) supports_anon_versioning=yes ;;
11267 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11268 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11269 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11270 *\ 2.11.*) ;; # other 2.11 versions
11271 *) supports_anon_versioning=yes ;;
11272 esac
11273
11274 # See if GNU ld supports shared libraries.
11275 case $host_os in
11276 aix[3-9]*)
11277 # On AIX/PPC, the GNU linker is very broken
11278 if test ia64 != "$host_cpu"; then
11279 ld_shlibs=no
11280 cat <<_LT_EOF 1>&2
11281
11282 *** Warning: the GNU linker, at least up to release 2.19, is reported
11283 *** to be unable to reliably create shared libraries on AIX.
11284 *** Therefore, libtool is disabling shared libraries support. If you
11285 *** really care for shared libraries, you may want to install binutils
11286 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11287 *** You will then need to restart the configuration process.
11288
11289 _LT_EOF
11290 fi
11291 ;;
11292
11293 amigaos*)
11294 case $host_cpu in
11295 powerpc)
11296 # see comment about AmigaOS4 .so support
11297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11298 archive_expsym_cmds=''
11299 ;;
11300 m68k)
11301 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)'
11302 hardcode_libdir_flag_spec='-L$libdir'
11303 hardcode_minus_L=yes
11304 ;;
11305 esac
11306 ;;
11307
11308 beos*)
11309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11310 allow_undefined_flag=unsupported
11311 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11312 # support --undefined. This deserves some investigation. FIXME
11313 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11314 else
11315 ld_shlibs=no
11316 fi
11317 ;;
11318
11319 cygwin* | mingw* | pw32* | cegcc*)
11320 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11321 # as there is no search path for DLLs.
11322 hardcode_libdir_flag_spec='-L$libdir'
11323 export_dynamic_flag_spec='$wl--export-all-symbols'
11324 allow_undefined_flag=unsupported
11325 always_export_symbols=no
11326 enable_shared_with_static_runtimes=yes
11327 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'
11328 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11329
11330 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11332 # If the export-symbols file already is a .def file, use it as
11333 # is; otherwise, prepend EXPORTS...
11334 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11335 cp $export_symbols $output_objdir/$soname.def;
11336 else
11337 echo EXPORTS > $output_objdir/$soname.def;
11338 cat $export_symbols >> $output_objdir/$soname.def;
11339 fi~
11340 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11341 else
11342 ld_shlibs=no
11343 fi
11344 ;;
11345
11346 haiku*)
11347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11348 link_all_deplibs=yes
11349 ;;
11350
11351 os2*)
11352 hardcode_libdir_flag_spec='-L$libdir'
11353 hardcode_minus_L=yes
11354 allow_undefined_flag=unsupported
11355 shrext_cmds=.dll
11356 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11357 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11358 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11359 $ECHO EXPORTS >> $output_objdir/$libname.def~
11360 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11361 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11362 emximp -o $lib $output_objdir/$libname.def'
11363 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11364 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11365 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11366 $ECHO EXPORTS >> $output_objdir/$libname.def~
11367 prefix_cmds="$SED"~
11368 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11369 prefix_cmds="$prefix_cmds -e 1d";
11370 fi~
11371 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11372 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11373 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11374 emximp -o $lib $output_objdir/$libname.def'
11375 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11376 enable_shared_with_static_runtimes=yes
11377 file_list_spec='@'
11378 ;;
11379
11380 interix[3-9]*)
11381 hardcode_direct=no
11382 hardcode_shlibpath_var=no
11383 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11384 export_dynamic_flag_spec='$wl-E'
11385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11386 # Instead, shared libraries are loaded at an image base (0x10000000 by
11387 # default) and relocated if they conflict, which is a slow very memory
11388 # consuming and fragmenting process. To avoid this, we pick a random,
11389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11392 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'
11393 ;;
11394
11395 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11396 tmp_diet=no
11397 if test linux-dietlibc = "$host_os"; then
11398 case $cc_basename in
11399 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11400 esac
11401 fi
11402 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11403 && test no = "$tmp_diet"
11404 then
11405 tmp_addflag=' $pic_flag'
11406 tmp_sharedflag='-shared'
11407 case $cc_basename,$host_cpu in
11408 pgcc*) # Portland Group C compiler
11409 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'
11410 tmp_addflag=' $pic_flag'
11411 ;;
11412 pgf77* | pgf90* | pgf95* | pgfortran*)
11413 # Portland Group f77 and f90 compilers
11414 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'
11415 tmp_addflag=' $pic_flag -Mnomain' ;;
11416 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11417 tmp_addflag=' -i_dynamic' ;;
11418 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11419 tmp_addflag=' -i_dynamic -nofor_main' ;;
11420 ifc* | ifort*) # Intel Fortran compiler
11421 tmp_addflag=' -nofor_main' ;;
11422 lf95*) # Lahey Fortran 8.1
11423 whole_archive_flag_spec=
11424 tmp_sharedflag='--shared' ;;
11425 nagfor*) # NAGFOR 5.3
11426 tmp_sharedflag='-Wl,-shared' ;;
11427 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11428 tmp_sharedflag='-qmkshrobj'
11429 tmp_addflag= ;;
11430 nvcc*) # Cuda Compiler Driver 2.2
11431 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'
11432 compiler_needs_object=yes
11433 ;;
11434 esac
11435 case `$CC -V 2>&1 | $SED 5q` in
11436 *Sun\ C*) # Sun C 5.9
11437 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'
11438 compiler_needs_object=yes
11439 tmp_sharedflag='-G' ;;
11440 *Sun\ F*) # Sun Fortran 8.3
11441 tmp_sharedflag='-G' ;;
11442 esac
11443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11444
11445 if test yes = "$supports_anon_versioning"; then
11446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11447 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11448 echo "local: *; };" >> $output_objdir/$libname.ver~
11449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11450 fi
11451
11452 case $cc_basename in
11453 tcc*)
11454 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11455 export_dynamic_flag_spec='-rdynamic'
11456 ;;
11457 xlf* | bgf* | bgxlf* | mpixlf*)
11458 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11459 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11460 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11461 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11462 if test yes = "$supports_anon_versioning"; then
11463 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11464 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11465 echo "local: *; };" >> $output_objdir/$libname.ver~
11466 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11467 fi
11468 ;;
11469 esac
11470 else
11471 ld_shlibs=no
11472 fi
11473 ;;
11474
11475 netbsd* | netbsdelf*-gnu)
11476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11477 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11478 wlarc=
11479 else
11480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11482 fi
11483 ;;
11484
11485 solaris*)
11486 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11487 ld_shlibs=no
11488 cat <<_LT_EOF 1>&2
11489
11490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11491 *** create shared libraries on Solaris systems. Therefore, libtool
11492 *** is disabling shared libraries support. We urge you to upgrade GNU
11493 *** binutils to release 2.9.1 or newer. Another option is to modify
11494 *** your PATH or compiler configuration so that the native linker is
11495 *** used, and then restart.
11496
11497 _LT_EOF
11498 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11500 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11501 else
11502 ld_shlibs=no
11503 fi
11504 ;;
11505
11506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11507 case `$LD -v 2>&1` in
11508 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11509 ld_shlibs=no
11510 cat <<_LT_EOF 1>&2
11511
11512 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11513 *** reliably create shared libraries on SCO systems. Therefore, libtool
11514 *** is disabling shared libraries support. We urge you to upgrade GNU
11515 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11516 *** your PATH or compiler configuration so that the native linker is
11517 *** used, and then restart.
11518
11519 _LT_EOF
11520 ;;
11521 *)
11522 # For security reasons, it is highly recommended that you always
11523 # use absolute paths for naming shared libraries, and exclude the
11524 # DT_RUNPATH tag from executables and libraries. But doing so
11525 # requires that you compile everything twice, which is a pain.
11526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11527 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11530 else
11531 ld_shlibs=no
11532 fi
11533 ;;
11534 esac
11535 ;;
11536
11537 sunos4*)
11538 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11539 wlarc=
11540 hardcode_direct=yes
11541 hardcode_shlibpath_var=no
11542 ;;
11543
11544 *)
11545 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11548 else
11549 ld_shlibs=no
11550 fi
11551 ;;
11552 esac
11553
11554 if test no = "$ld_shlibs"; then
11555 runpath_var=
11556 hardcode_libdir_flag_spec=
11557 export_dynamic_flag_spec=
11558 whole_archive_flag_spec=
11559 fi
11560 else
11561 # PORTME fill in a description of your system's linker (not GNU ld)
11562 case $host_os in
11563 aix3*)
11564 allow_undefined_flag=unsupported
11565 always_export_symbols=yes
11566 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'
11567 # Note: this linker hardcodes the directories in LIBPATH if there
11568 # are no directories specified by -L.
11569 hardcode_minus_L=yes
11570 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11571 # Neither direct hardcoding nor static linking is supported with a
11572 # broken collect2.
11573 hardcode_direct=unsupported
11574 fi
11575 ;;
11576
11577 aix[4-9]*)
11578 if test ia64 = "$host_cpu"; then
11579 # On IA64, the linker does run time linking by default, so we don't
11580 # have to do anything special.
11581 aix_use_runtimelinking=no
11582 exp_sym_flag='-Bexport'
11583 no_entry_flag=
11584 else
11585 # If we're using GNU nm, then we don't want the "-C" option.
11586 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11587 # Without the "-l" option, or with the "-B" option, AIX nm treats
11588 # weak defined symbols like other global defined symbols, whereas
11589 # GNU nm marks them as "W".
11590 # While the 'weak' keyword is ignored in the Export File, we need
11591 # it in the Import File for the 'aix-soname' feature, so we have
11592 # to replace the "-B" option with "-P" for AIX nm.
11593 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11594 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'
11595 else
11596 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11597 fi
11598 aix_use_runtimelinking=no
11599
11600 # Test if we are trying to use run time linking or normal
11601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11602 # have runtime linking enabled, and use it for executables.
11603 # For shared libraries, we enable/disable runtime linking
11604 # depending on the kind of the shared library created -
11605 # when "with_aix_soname,aix_use_runtimelinking" is:
11606 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11607 # "aix,yes" lib.so shared, rtl:yes, for executables
11608 # lib.a static archive
11609 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11610 # lib.a(lib.so.V) shared, rtl:no, for executables
11611 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11612 # lib.a(lib.so.V) shared, rtl:no
11613 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11614 # lib.a static archive
11615 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11616 for ld_flag in $LDFLAGS; do
11617 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11618 aix_use_runtimelinking=yes
11619 break
11620 fi
11621 done
11622 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11623 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11624 # so we don't have lib.a shared libs to link our executables.
11625 # We have to force runtime linking in this case.
11626 aix_use_runtimelinking=yes
11627 LDFLAGS="$LDFLAGS -Wl,-brtl"
11628 fi
11629 ;;
11630 esac
11631
11632 exp_sym_flag='-bexport'
11633 no_entry_flag='-bnoentry'
11634 fi
11635
11636 # When large executables or shared objects are built, AIX ld can
11637 # have problems creating the table of contents. If linking a library
11638 # or program results in "error TOC overflow" add -mminimal-toc to
11639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11641
11642 archive_cmds=''
11643 hardcode_direct=yes
11644 hardcode_direct_absolute=yes
11645 hardcode_libdir_separator=':'
11646 link_all_deplibs=yes
11647 file_list_spec='$wl-f,'
11648 case $with_aix_soname,$aix_use_runtimelinking in
11649 aix,*) ;; # traditional, no import file
11650 svr4,* | *,yes) # use import file
11651 # The Import File defines what to hardcode.
11652 hardcode_direct=no
11653 hardcode_direct_absolute=no
11654 ;;
11655 esac
11656
11657 if test yes = "$GCC"; then
11658 case $host_os in aix4.[012]|aix4.[012].*)
11659 # We only want to do this on AIX 4.2 and lower, the check
11660 # below for broken collect2 doesn't work under 4.3+
11661 collect2name=`$CC -print-prog-name=collect2`
11662 if test -f "$collect2name" &&
11663 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11664 then
11665 # We have reworked collect2
11666 :
11667 else
11668 # We have old collect2
11669 hardcode_direct=unsupported
11670 # It fails to find uninstalled libraries when the uninstalled
11671 # path is not listed in the libpath. Setting hardcode_minus_L
11672 # to unsupported forces relinking
11673 hardcode_minus_L=yes
11674 hardcode_libdir_flag_spec='-L$libdir'
11675 hardcode_libdir_separator=
11676 fi
11677 ;;
11678 esac
11679 shared_flag='-shared'
11680 if test yes = "$aix_use_runtimelinking"; then
11681 shared_flag="$shared_flag "'$wl-G'
11682 fi
11683 # Need to ensure runtime linking is disabled for the traditional
11684 # shared library, or the linker may eventually find shared libraries
11685 # /with/ Import File - we do not want to mix them.
11686 shared_flag_aix='-shared'
11687 shared_flag_svr4='-shared $wl-G'
11688 else
11689 # not using gcc
11690 if test ia64 = "$host_cpu"; then
11691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11692 # chokes on -Wl,-G. The following line is correct:
11693 shared_flag='-G'
11694 else
11695 if test yes = "$aix_use_runtimelinking"; then
11696 shared_flag='$wl-G'
11697 else
11698 shared_flag='$wl-bM:SRE'
11699 fi
11700 shared_flag_aix='$wl-bM:SRE'
11701 shared_flag_svr4='$wl-G'
11702 fi
11703 fi
11704
11705 export_dynamic_flag_spec='$wl-bexpall'
11706 # It seems that -bexpall does not export symbols beginning with
11707 # underscore (_), so it is better to generate a list of symbols to export.
11708 always_export_symbols=yes
11709 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11710 # Warning - without using the other runtime loading flags (-brtl),
11711 # -berok will link without error, but may produce a broken library.
11712 allow_undefined_flag='-berok'
11713 # Determine the default libpath from the value encoded in an
11714 # empty executable.
11715 if test set = "${lt_cv_aix_libpath+set}"; then
11716 aix_libpath=$lt_cv_aix_libpath
11717 else
11718 if test ${lt_cv_aix_libpath_+y}
11719 then :
11720 printf %s "(cached) " >&6
11721 else $as_nop
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724
11725 int
11726 main (void)
11727 {
11728
11729 ;
11730 return 0;
11731 }
11732 _ACEOF
11733 if ac_fn_c_try_link "$LINENO"
11734 then :
11735
11736 lt_aix_libpath_sed='
11737 /Import File Strings/,/^$/ {
11738 /^0/ {
11739 s/^0 *\([^ ]*\) *$/\1/
11740 p
11741 }
11742 }'
11743 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11744 # Check for a 64-bit object if we didn't find anything.
11745 if test -z "$lt_cv_aix_libpath_"; then
11746 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 fi
11748 fi
11749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11750 conftest$ac_exeext conftest.$ac_ext
11751 if test -z "$lt_cv_aix_libpath_"; then
11752 lt_cv_aix_libpath_=/usr/lib:/lib
11753 fi
11754
11755 fi
11756
11757 aix_libpath=$lt_cv_aix_libpath_
11758 fi
11759
11760 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11761 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
11762 else
11763 if test ia64 = "$host_cpu"; then
11764 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11765 allow_undefined_flag="-z nodefs"
11766 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"
11767 else
11768 # Determine the default libpath from the value encoded in an
11769 # empty executable.
11770 if test set = "${lt_cv_aix_libpath+set}"; then
11771 aix_libpath=$lt_cv_aix_libpath
11772 else
11773 if test ${lt_cv_aix_libpath_+y}
11774 then :
11775 printf %s "(cached) " >&6
11776 else $as_nop
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h. */
11779
11780 int
11781 main (void)
11782 {
11783
11784 ;
11785 return 0;
11786 }
11787 _ACEOF
11788 if ac_fn_c_try_link "$LINENO"
11789 then :
11790
11791 lt_aix_libpath_sed='
11792 /Import File Strings/,/^$/ {
11793 /^0/ {
11794 s/^0 *\([^ ]*\) *$/\1/
11795 p
11796 }
11797 }'
11798 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11799 # Check for a 64-bit object if we didn't find anything.
11800 if test -z "$lt_cv_aix_libpath_"; then
11801 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11802 fi
11803 fi
11804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11805 conftest$ac_exeext conftest.$ac_ext
11806 if test -z "$lt_cv_aix_libpath_"; then
11807 lt_cv_aix_libpath_=/usr/lib:/lib
11808 fi
11809
11810 fi
11811
11812 aix_libpath=$lt_cv_aix_libpath_
11813 fi
11814
11815 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11816 # Warning - without using the other run time loading flags,
11817 # -berok will link without error, but may produce a broken library.
11818 no_undefined_flag=' $wl-bernotok'
11819 allow_undefined_flag=' $wl-berok'
11820 if test yes = "$with_gnu_ld"; then
11821 # We only use this code for GNU lds that support --whole-archive.
11822 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11823 else
11824 # Exported symbols can be pulled into shared objects from archives
11825 whole_archive_flag_spec='$convenience'
11826 fi
11827 archive_cmds_need_lc=yes
11828 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11829 # -brtl affects multiple linker settings, -berok does not and is overridden later
11830 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11831 if test svr4 != "$with_aix_soname"; then
11832 # This is similar to how AIX traditionally builds its shared libraries.
11833 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'
11834 fi
11835 if test aix != "$with_aix_soname"; then
11836 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'
11837 else
11838 # used by -dlpreopen to get the symbols
11839 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11840 fi
11841 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11842 fi
11843 fi
11844 ;;
11845
11846 amigaos*)
11847 case $host_cpu in
11848 powerpc)
11849 # see comment about AmigaOS4 .so support
11850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11851 archive_expsym_cmds=''
11852 ;;
11853 m68k)
11854 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)'
11855 hardcode_libdir_flag_spec='-L$libdir'
11856 hardcode_minus_L=yes
11857 ;;
11858 esac
11859 ;;
11860
11861 bsdi[45]*)
11862 export_dynamic_flag_spec=-rdynamic
11863 ;;
11864
11865 cygwin* | mingw* | pw32* | cegcc*)
11866 # When not using gcc, we currently assume that we are using
11867 # Microsoft Visual C++ or Intel C++ Compiler.
11868 # hardcode_libdir_flag_spec is actually meaningless, as there is
11869 # no search path for DLLs.
11870 case $cc_basename in
11871 cl* | icl*)
11872 # Native MSVC or ICC
11873 hardcode_libdir_flag_spec=' '
11874 allow_undefined_flag=unsupported
11875 always_export_symbols=yes
11876 file_list_spec='@'
11877 # Tell ltmain to make .lib files, not .a files.
11878 libext=lib
11879 # Tell ltmain to make .dll files, not .so files.
11880 shrext_cmds=.dll
11881 # FIXME: Setting linknames here is a bad hack.
11882 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11883 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11884 cp "$export_symbols" "$output_objdir/$soname.def";
11885 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11886 else
11887 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11888 fi~
11889 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11890 linknames='
11891 # The linker will not automatically build a static lib if we build a DLL.
11892 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11893 enable_shared_with_static_runtimes=yes
11894 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11896 # Don't use ranlib
11897 old_postinstall_cmds='chmod 644 $oldlib'
11898 postlink_cmds='lt_outputfile="@OUTPUT@"~
11899 lt_tool_outputfile="@TOOL_OUTPUT@"~
11900 case $lt_outputfile in
11901 *.exe|*.EXE) ;;
11902 *)
11903 lt_outputfile=$lt_outputfile.exe
11904 lt_tool_outputfile=$lt_tool_outputfile.exe
11905 ;;
11906 esac~
11907 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11908 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11909 $RM "$lt_outputfile.manifest";
11910 fi'
11911 ;;
11912 *)
11913 # Assume MSVC and ICC wrapper
11914 hardcode_libdir_flag_spec=' '
11915 allow_undefined_flag=unsupported
11916 # Tell ltmain to make .lib files, not .a files.
11917 libext=lib
11918 # Tell ltmain to make .dll files, not .so files.
11919 shrext_cmds=.dll
11920 # FIXME: Setting linknames here is a bad hack.
11921 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11922 # The linker will automatically build a .lib file if we build a DLL.
11923 old_archive_from_new_cmds='true'
11924 # FIXME: Should let the user specify the lib program.
11925 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11926 enable_shared_with_static_runtimes=yes
11927 ;;
11928 esac
11929 ;;
11930
11931 darwin* | rhapsody*)
11932
11933
11934 archive_cmds_need_lc=no
11935 hardcode_direct=no
11936 hardcode_automatic=yes
11937 hardcode_shlibpath_var=unsupported
11938 if test yes = "$lt_cv_ld_force_load"; then
11939 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\"`'
11940
11941 else
11942 whole_archive_flag_spec=''
11943 fi
11944 link_all_deplibs=yes
11945 allow_undefined_flag=$_lt_dar_allow_undefined
11946 case $cc_basename in
11947 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11948 *) _lt_dar_can_shared=$GCC ;;
11949 esac
11950 if test yes = "$_lt_dar_can_shared"; then
11951 output_verbose_link_cmd=func_echo_all
11952 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11953 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11954 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"
11955 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"
11956
11957 else
11958 ld_shlibs=no
11959 fi
11960
11961 ;;
11962
11963 dgux*)
11964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11965 hardcode_libdir_flag_spec='-L$libdir'
11966 hardcode_shlibpath_var=no
11967 ;;
11968
11969 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11970 # support. Future versions do this automatically, but an explicit c++rt0.o
11971 # does not break anything, and helps significantly (at the cost of a little
11972 # extra space).
11973 freebsd2.2*)
11974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11975 hardcode_libdir_flag_spec='-R$libdir'
11976 hardcode_direct=yes
11977 hardcode_shlibpath_var=no
11978 ;;
11979
11980 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11981 freebsd2.*)
11982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11983 hardcode_direct=yes
11984 hardcode_minus_L=yes
11985 hardcode_shlibpath_var=no
11986 ;;
11987
11988 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11989 freebsd* | dragonfly* | midnightbsd*)
11990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11991 hardcode_libdir_flag_spec='-R$libdir'
11992 hardcode_direct=yes
11993 hardcode_shlibpath_var=no
11994 ;;
11995
11996 hpux9*)
11997 if test yes = "$GCC"; then
11998 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'
11999 else
12000 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'
12001 fi
12002 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12003 hardcode_libdir_separator=:
12004 hardcode_direct=yes
12005
12006 # hardcode_minus_L: Not really in the search PATH,
12007 # but as the default location of the library.
12008 hardcode_minus_L=yes
12009 export_dynamic_flag_spec='$wl-E'
12010 ;;
12011
12012 hpux10*)
12013 if test yes,no = "$GCC,$with_gnu_ld"; then
12014 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12015 else
12016 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12017 fi
12018 if test no = "$with_gnu_ld"; then
12019 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12020 hardcode_libdir_separator=:
12021 hardcode_direct=yes
12022 hardcode_direct_absolute=yes
12023 export_dynamic_flag_spec='$wl-E'
12024 # hardcode_minus_L: Not really in the search PATH,
12025 # but as the default location of the library.
12026 hardcode_minus_L=yes
12027 fi
12028 ;;
12029
12030 hpux11*)
12031 if test yes,no = "$GCC,$with_gnu_ld"; then
12032 case $host_cpu in
12033 hppa*64*)
12034 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12035 ;;
12036 ia64*)
12037 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12038 ;;
12039 *)
12040 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12041 ;;
12042 esac
12043 else
12044 case $host_cpu in
12045 hppa*64*)
12046 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12047 ;;
12048 ia64*)
12049 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12050 ;;
12051 *)
12052
12053 # Older versions of the 11.00 compiler do not understand -b yet
12054 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12056 printf %s "checking if $CC understands -b... " >&6; }
12057 if test ${lt_cv_prog_compiler__b+y}
12058 then :
12059 printf %s "(cached) " >&6
12060 else $as_nop
12061 lt_cv_prog_compiler__b=no
12062 save_LDFLAGS=$LDFLAGS
12063 LDFLAGS="$LDFLAGS -b"
12064 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12065 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12066 # The linker can only warn and ignore the option if not recognized
12067 # So say no if there are warnings
12068 if test -s conftest.err; then
12069 # Append any errors to the config.log.
12070 cat conftest.err 1>&5
12071 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12073 if diff conftest.exp conftest.er2 >/dev/null; then
12074 lt_cv_prog_compiler__b=yes
12075 fi
12076 else
12077 lt_cv_prog_compiler__b=yes
12078 fi
12079 fi
12080 $RM -r conftest*
12081 LDFLAGS=$save_LDFLAGS
12082
12083 fi
12084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12085 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12086
12087 if test yes = "$lt_cv_prog_compiler__b"; then
12088 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12089 else
12090 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12091 fi
12092
12093 ;;
12094 esac
12095 fi
12096 if test no = "$with_gnu_ld"; then
12097 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12098 hardcode_libdir_separator=:
12099
12100 case $host_cpu in
12101 hppa*64*|ia64*)
12102 hardcode_direct=no
12103 hardcode_shlibpath_var=no
12104 ;;
12105 *)
12106 hardcode_direct=yes
12107 hardcode_direct_absolute=yes
12108 export_dynamic_flag_spec='$wl-E'
12109
12110 # hardcode_minus_L: Not really in the search PATH,
12111 # but as the default location of the library.
12112 hardcode_minus_L=yes
12113 ;;
12114 esac
12115 fi
12116 ;;
12117
12118 irix5* | irix6* | nonstopux*)
12119 if test yes = "$GCC"; then
12120 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'
12121 # Try to use the -exported_symbol ld option, if it does not
12122 # work, assume that -exports_file does not work either and
12123 # implicitly export all symbols.
12124 # This should be the same for all languages, so no per-tag cache variable.
12125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12126 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12127 if test ${lt_cv_irix_exported_symbol+y}
12128 then :
12129 printf %s "(cached) " >&6
12130 else $as_nop
12131 save_LDFLAGS=$LDFLAGS
12132 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 int foo (void) { return 0; }
12136 _ACEOF
12137 if ac_fn_c_try_link "$LINENO"
12138 then :
12139 lt_cv_irix_exported_symbol=yes
12140 else $as_nop
12141 lt_cv_irix_exported_symbol=no
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LDFLAGS=$save_LDFLAGS
12146 fi
12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12148 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12149 if test yes = "$lt_cv_irix_exported_symbol"; then
12150 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'
12151 fi
12152 link_all_deplibs=no
12153 else
12154 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'
12155 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'
12156 fi
12157 archive_cmds_need_lc='no'
12158 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12159 hardcode_libdir_separator=:
12160 inherit_rpath=yes
12161 link_all_deplibs=yes
12162 ;;
12163
12164 linux*)
12165 case $cc_basename in
12166 tcc*)
12167 # Fabrice Bellard et al's Tiny C Compiler
12168 ld_shlibs=yes
12169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12170 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12171 ;;
12172 esac
12173 ;;
12174
12175 netbsd* | netbsdelf*-gnu)
12176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12178 else
12179 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12180 fi
12181 hardcode_libdir_flag_spec='-R$libdir'
12182 hardcode_direct=yes
12183 hardcode_shlibpath_var=no
12184 ;;
12185
12186 newsos6)
12187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12188 hardcode_direct=yes
12189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12190 hardcode_libdir_separator=:
12191 hardcode_shlibpath_var=no
12192 ;;
12193
12194 *nto* | *qnx*)
12195 ;;
12196
12197 openbsd* | bitrig*)
12198 if test -f /usr/libexec/ld.so; then
12199 hardcode_direct=yes
12200 hardcode_shlibpath_var=no
12201 hardcode_direct_absolute=yes
12202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12203 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12204 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12205 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12206 export_dynamic_flag_spec='$wl-E'
12207 else
12208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12209 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12210 fi
12211 else
12212 ld_shlibs=no
12213 fi
12214 ;;
12215
12216 os2*)
12217 hardcode_libdir_flag_spec='-L$libdir'
12218 hardcode_minus_L=yes
12219 allow_undefined_flag=unsupported
12220 shrext_cmds=.dll
12221 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12222 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12223 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12224 $ECHO EXPORTS >> $output_objdir/$libname.def~
12225 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12226 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12227 emximp -o $lib $output_objdir/$libname.def'
12228 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12229 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12230 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12231 $ECHO EXPORTS >> $output_objdir/$libname.def~
12232 prefix_cmds="$SED"~
12233 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12234 prefix_cmds="$prefix_cmds -e 1d";
12235 fi~
12236 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12237 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12238 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12239 emximp -o $lib $output_objdir/$libname.def'
12240 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12241 enable_shared_with_static_runtimes=yes
12242 file_list_spec='@'
12243 ;;
12244
12245 osf3*)
12246 if test yes = "$GCC"; then
12247 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12248 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'
12249 else
12250 allow_undefined_flag=' -expect_unresolved \*'
12251 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'
12252 fi
12253 archive_cmds_need_lc='no'
12254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12255 hardcode_libdir_separator=:
12256 ;;
12257
12258 osf4* | osf5*) # as osf3* with the addition of -msym flag
12259 if test yes = "$GCC"; then
12260 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12261 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'
12262 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12263 else
12264 allow_undefined_flag=' -expect_unresolved \*'
12265 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'
12266 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~
12267 $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'
12268
12269 # Both c and cxx compiler support -rpath directly
12270 hardcode_libdir_flag_spec='-rpath $libdir'
12271 fi
12272 archive_cmds_need_lc='no'
12273 hardcode_libdir_separator=:
12274 ;;
12275
12276 solaris*)
12277 no_undefined_flag=' -z defs'
12278 if test yes = "$GCC"; then
12279 wlarc='$wl'
12280 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12282 $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'
12283 else
12284 case `$CC -V 2>&1` in
12285 *"Compilers 5.0"*)
12286 wlarc=''
12287 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12289 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12290 ;;
12291 *)
12292 wlarc='$wl'
12293 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12295 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12296 ;;
12297 esac
12298 fi
12299 hardcode_libdir_flag_spec='-R$libdir'
12300 hardcode_shlibpath_var=no
12301 case $host_os in
12302 solaris2.[0-5] | solaris2.[0-5].*) ;;
12303 *)
12304 # The compiler driver will combine and reorder linker options,
12305 # but understands '-z linker_flag'. GCC discards it without '$wl',
12306 # but is careful enough not to reorder.
12307 # Supported since Solaris 2.6 (maybe 2.5.1?)
12308 if test yes = "$GCC"; then
12309 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12310 else
12311 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12312 fi
12313 ;;
12314 esac
12315 link_all_deplibs=yes
12316 ;;
12317
12318 sunos4*)
12319 if test sequent = "$host_vendor"; then
12320 # Use $CC to link under sequent, because it throws in some extra .o
12321 # files that make .init and .fini sections work.
12322 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12323 else
12324 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12325 fi
12326 hardcode_libdir_flag_spec='-L$libdir'
12327 hardcode_direct=yes
12328 hardcode_minus_L=yes
12329 hardcode_shlibpath_var=no
12330 ;;
12331
12332 sysv4)
12333 case $host_vendor in
12334 sni)
12335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12336 hardcode_direct=yes # is this really true???
12337 ;;
12338 siemens)
12339 ## LD is ld it makes a PLAMLIB
12340 ## CC just makes a GrossModule.
12341 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12342 reload_cmds='$CC -r -o $output$reload_objs'
12343 hardcode_direct=no
12344 ;;
12345 motorola)
12346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12347 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12348 ;;
12349 esac
12350 runpath_var='LD_RUN_PATH'
12351 hardcode_shlibpath_var=no
12352 ;;
12353
12354 sysv4.3*)
12355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12356 hardcode_shlibpath_var=no
12357 export_dynamic_flag_spec='-Bexport'
12358 ;;
12359
12360 sysv4*MP*)
12361 if test -d /usr/nec; then
12362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12363 hardcode_shlibpath_var=no
12364 runpath_var=LD_RUN_PATH
12365 hardcode_runpath_var=yes
12366 ld_shlibs=yes
12367 fi
12368 ;;
12369
12370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12371 no_undefined_flag='$wl-z,text'
12372 archive_cmds_need_lc=no
12373 hardcode_shlibpath_var=no
12374 runpath_var='LD_RUN_PATH'
12375
12376 if test yes = "$GCC"; then
12377 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12378 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12379 else
12380 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12381 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12382 fi
12383 ;;
12384
12385 sysv5* | sco3.2v5* | sco5v6*)
12386 # Note: We CANNOT use -z defs as we might desire, because we do not
12387 # link with -lc, and that would cause any symbols used from libc to
12388 # always be unresolved, which means just about no library would
12389 # ever link correctly. If we're not using GNU ld we use -z text
12390 # though, which does catch some bad symbols but isn't as heavy-handed
12391 # as -z defs.
12392 no_undefined_flag='$wl-z,text'
12393 allow_undefined_flag='$wl-z,nodefs'
12394 archive_cmds_need_lc=no
12395 hardcode_shlibpath_var=no
12396 hardcode_libdir_flag_spec='$wl-R,$libdir'
12397 hardcode_libdir_separator=':'
12398 link_all_deplibs=yes
12399 export_dynamic_flag_spec='$wl-Bexport'
12400 runpath_var='LD_RUN_PATH'
12401
12402 if test yes = "$GCC"; then
12403 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12404 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12405 else
12406 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12407 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12408 fi
12409 ;;
12410
12411 uts4*)
12412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12413 hardcode_libdir_flag_spec='-L$libdir'
12414 hardcode_shlibpath_var=no
12415 ;;
12416
12417 *)
12418 ld_shlibs=no
12419 ;;
12420 esac
12421
12422 if test sni = "$host_vendor"; then
12423 case $host in
12424 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12425 export_dynamic_flag_spec='$wl-Blargedynsym'
12426 ;;
12427 esac
12428 fi
12429 fi
12430
12431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12432 printf "%s\n" "$ld_shlibs" >&6; }
12433 test no = "$ld_shlibs" && can_build_shared=no
12434
12435 with_gnu_ld=$with_gnu_ld
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451 #
12452 # Do we need to explicitly link libc?
12453 #
12454 case "x$archive_cmds_need_lc" in
12455 x|xyes)
12456 # Assume -lc should be added
12457 archive_cmds_need_lc=yes
12458
12459 if test yes,yes = "$GCC,$enable_shared"; then
12460 case $archive_cmds in
12461 *'~'*)
12462 # FIXME: we may have to deal with multi-command sequences.
12463 ;;
12464 '$CC '*)
12465 # Test whether the compiler implicitly links with -lc since on some
12466 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12467 # to ld, don't add -lc before -lgcc.
12468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12469 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12470 if test ${lt_cv_archive_cmds_need_lc+y}
12471 then :
12472 printf %s "(cached) " >&6
12473 else $as_nop
12474 $RM conftest*
12475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12476
12477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12478 (eval $ac_compile) 2>&5
12479 ac_status=$?
12480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12481 test $ac_status = 0; } 2>conftest.err; then
12482 soname=conftest
12483 lib=conftest
12484 libobjs=conftest.$ac_objext
12485 deplibs=
12486 wl=$lt_prog_compiler_wl
12487 pic_flag=$lt_prog_compiler_pic
12488 compiler_flags=-v
12489 linker_flags=-v
12490 verstring=
12491 output_objdir=.
12492 libname=conftest
12493 lt_save_allow_undefined_flag=$allow_undefined_flag
12494 allow_undefined_flag=
12495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12496 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12497 ac_status=$?
12498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12499 test $ac_status = 0; }
12500 then
12501 lt_cv_archive_cmds_need_lc=no
12502 else
12503 lt_cv_archive_cmds_need_lc=yes
12504 fi
12505 allow_undefined_flag=$lt_save_allow_undefined_flag
12506 else
12507 cat conftest.err 1>&5
12508 fi
12509 $RM conftest*
12510
12511 fi
12512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12513 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12514 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12515 ;;
12516 esac
12517 fi
12518 ;;
12519 esac
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12673 printf %s "checking dynamic linker characteristics... " >&6; }
12674
12675 if test yes = "$GCC"; then
12676 case $host_os in
12677 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12678 *) lt_awk_arg='/^libraries:/' ;;
12679 esac
12680 case $host_os in
12681 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12682 *) lt_sed_strip_eq='s|=/|/|g' ;;
12683 esac
12684 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12685 case $lt_search_path_spec in
12686 *\;*)
12687 # if the path contains ";" then we assume it to be the separator
12688 # otherwise default to the standard path separator (i.e. ":") - it is
12689 # assumed that no part of a normal pathname contains ";" but that should
12690 # okay in the real world where ";" in dirpaths is itself problematic.
12691 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12692 ;;
12693 *)
12694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12695 ;;
12696 esac
12697 # Ok, now we have the path, separated by spaces, we can step through it
12698 # and add multilib dir if necessary...
12699 lt_tmp_lt_search_path_spec=
12700 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12701 # ...but if some path component already ends with the multilib dir we assume
12702 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12703 case "$lt_multi_os_dir; $lt_search_path_spec " in
12704 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12705 lt_multi_os_dir=
12706 ;;
12707 esac
12708 for lt_sys_path in $lt_search_path_spec; do
12709 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12711 elif test -n "$lt_multi_os_dir"; then
12712 test -d "$lt_sys_path" && \
12713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12714 fi
12715 done
12716 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12717 BEGIN {RS = " "; FS = "/|\n";} {
12718 lt_foo = "";
12719 lt_count = 0;
12720 for (lt_i = NF; lt_i > 0; lt_i--) {
12721 if ($lt_i != "" && $lt_i != ".") {
12722 if ($lt_i == "..") {
12723 lt_count++;
12724 } else {
12725 if (lt_count == 0) {
12726 lt_foo = "/" $lt_i lt_foo;
12727 } else {
12728 lt_count--;
12729 }
12730 }
12731 }
12732 }
12733 if (lt_foo != "") { lt_freq[lt_foo]++; }
12734 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12735 }'`
12736 # AWK program above erroneously prepends '/' to C:/dos/paths
12737 # for these hosts.
12738 case $host_os in
12739 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12740 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12741 esac
12742 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12743 else
12744 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12745 fi
12746 library_names_spec=
12747 libname_spec='lib$name'
12748 soname_spec=
12749 shrext_cmds=.so
12750 postinstall_cmds=
12751 postuninstall_cmds=
12752 finish_cmds=
12753 finish_eval=
12754 shlibpath_var=
12755 shlibpath_overrides_runpath=unknown
12756 version_type=none
12757 dynamic_linker="$host_os ld.so"
12758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12759 need_lib_prefix=unknown
12760 hardcode_into_libs=no
12761
12762 # when you set need_version to no, make sure it does not cause -set_version
12763 # flags to be left without arguments
12764 need_version=unknown
12765
12766
12767
12768 case $host_os in
12769 aix3*)
12770 version_type=linux # correct to gnu/linux during the next big refactor
12771 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12772 shlibpath_var=LIBPATH
12773
12774 # AIX 3 has no versioning support, so we append a major version to the name.
12775 soname_spec='$libname$release$shared_ext$major'
12776 ;;
12777
12778 aix[4-9]*)
12779 version_type=linux # correct to gnu/linux during the next big refactor
12780 need_lib_prefix=no
12781 need_version=no
12782 hardcode_into_libs=yes
12783 if test ia64 = "$host_cpu"; then
12784 # AIX 5 supports IA64
12785 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12786 shlibpath_var=LD_LIBRARY_PATH
12787 else
12788 # With GCC up to 2.95.x, collect2 would create an import file
12789 # for dependence libraries. The import file would start with
12790 # the line '#! .'. This would cause the generated library to
12791 # depend on '.', always an invalid library. This was fixed in
12792 # development snapshots of GCC prior to 3.0.
12793 case $host_os in
12794 aix4 | aix4.[01] | aix4.[01].*)
12795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12796 echo ' yes '
12797 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12798 :
12799 else
12800 can_build_shared=no
12801 fi
12802 ;;
12803 esac
12804 # Using Import Files as archive members, it is possible to support
12805 # filename-based versioning of shared library archives on AIX. While
12806 # this would work for both with and without runtime linking, it will
12807 # prevent static linking of such archives. So we do filename-based
12808 # shared library versioning with .so extension only, which is used
12809 # when both runtime linking and shared linking is enabled.
12810 # Unfortunately, runtime linking may impact performance, so we do
12811 # not want this to be the default eventually. Also, we use the
12812 # versioned .so libs for executables only if there is the -brtl
12813 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12814 # To allow for filename-based versioning support, we need to create
12815 # libNAME.so.V as an archive file, containing:
12816 # *) an Import File, referring to the versioned filename of the
12817 # archive as well as the shared archive member, telling the
12818 # bitwidth (32 or 64) of that shared object, and providing the
12819 # list of exported symbols of that shared object, eventually
12820 # decorated with the 'weak' keyword
12821 # *) the shared object with the F_LOADONLY flag set, to really avoid
12822 # it being seen by the linker.
12823 # At run time we better use the real file rather than another symlink,
12824 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12825
12826 case $with_aix_soname,$aix_use_runtimelinking in
12827 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12828 # soname into executable. Probably we can add versioning support to
12829 # collect2, so additional links can be useful in future.
12830 aix,yes) # traditional libtool
12831 dynamic_linker='AIX unversionable lib.so'
12832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12833 # instead of lib<name>.a to let people know that these are not
12834 # typical AIX shared libraries.
12835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12836 ;;
12837 aix,no) # traditional AIX only
12838 dynamic_linker='AIX lib.a(lib.so.V)'
12839 # We preserve .a as extension for shared libraries through AIX4.2
12840 # and later when we are not doing run time linking.
12841 library_names_spec='$libname$release.a $libname.a'
12842 soname_spec='$libname$release$shared_ext$major'
12843 ;;
12844 svr4,*) # full svr4 only
12845 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12846 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12847 # We do not specify a path in Import Files, so LIBPATH fires.
12848 shlibpath_overrides_runpath=yes
12849 ;;
12850 *,yes) # both, prefer svr4
12851 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12852 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12853 # unpreferred sharedlib libNAME.a needs extra handling
12854 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"'
12855 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"'
12856 # We do not specify a path in Import Files, so LIBPATH fires.
12857 shlibpath_overrides_runpath=yes
12858 ;;
12859 *,no) # both, prefer aix
12860 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12861 library_names_spec='$libname$release.a $libname.a'
12862 soname_spec='$libname$release$shared_ext$major'
12863 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12864 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)'
12865 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"'
12866 ;;
12867 esac
12868 shlibpath_var=LIBPATH
12869 fi
12870 ;;
12871
12872 amigaos*)
12873 case $host_cpu in
12874 powerpc)
12875 # Since July 2007 AmigaOS4 officially supports .so libraries.
12876 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12878 ;;
12879 m68k)
12880 library_names_spec='$libname.ixlibrary $libname.a'
12881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12882 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'
12883 ;;
12884 esac
12885 ;;
12886
12887 beos*)
12888 library_names_spec='$libname$shared_ext'
12889 dynamic_linker="$host_os ld.so"
12890 shlibpath_var=LIBRARY_PATH
12891 ;;
12892
12893 bsdi[45]*)
12894 version_type=linux # correct to gnu/linux during the next big refactor
12895 need_version=no
12896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12897 soname_spec='$libname$release$shared_ext$major'
12898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12899 shlibpath_var=LD_LIBRARY_PATH
12900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12902 # the default ld.so.conf also contains /usr/contrib/lib and
12903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12904 # libtool to hard-code these into programs
12905 ;;
12906
12907 cygwin* | mingw* | pw32* | cegcc*)
12908 version_type=windows
12909 shrext_cmds=.dll
12910 need_version=no
12911 need_lib_prefix=no
12912
12913 case $GCC,$cc_basename in
12914 yes,*)
12915 # gcc
12916 library_names_spec='$libname.dll.a'
12917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12918 postinstall_cmds='base_file=`basename \$file`~
12919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12920 dldir=$destdir/`dirname \$dlpath`~
12921 test -d \$dldir || mkdir -p \$dldir~
12922 $install_prog $dir/$dlname \$dldir/$dlname~
12923 chmod a+x \$dldir/$dlname~
12924 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12925 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12926 fi'
12927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12928 dlpath=$dir/\$dldll~
12929 $RM \$dlpath'
12930 shlibpath_overrides_runpath=yes
12931
12932 case $host_os in
12933 cygwin*)
12934 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12935 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12936
12937 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12938 ;;
12939 mingw* | cegcc*)
12940 # MinGW DLLs use traditional 'lib' prefix
12941 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12942 ;;
12943 pw32*)
12944 # pw32 DLLs use 'pw' prefix rather than 'lib'
12945 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12946 ;;
12947 esac
12948 dynamic_linker='Win32 ld.exe'
12949 ;;
12950
12951 *,cl* | *,icl*)
12952 # Native MSVC or ICC
12953 libname_spec='$name'
12954 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12955 library_names_spec='$libname.dll.lib'
12956
12957 case $build_os in
12958 mingw*)
12959 sys_lib_search_path_spec=
12960 lt_save_ifs=$IFS
12961 IFS=';'
12962 for lt_path in $LIB
12963 do
12964 IFS=$lt_save_ifs
12965 # Let DOS variable expansion print the short 8.3 style file name.
12966 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12967 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12968 done
12969 IFS=$lt_save_ifs
12970 # Convert to MSYS style.
12971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12972 ;;
12973 cygwin*)
12974 # Convert to unix form, then to dos form, then back to unix form
12975 # but this time dos style (no spaces!) so that the unix form looks
12976 # like /cygdrive/c/PROGRA~1:/cygdr...
12977 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12978 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12979 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12980 ;;
12981 *)
12982 sys_lib_search_path_spec=$LIB
12983 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12984 # It is most probably a Windows format PATH.
12985 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12986 else
12987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12988 fi
12989 # FIXME: find the short name or the path components, as spaces are
12990 # common. (e.g. "Program Files" -> "PROGRA~1")
12991 ;;
12992 esac
12993
12994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12995 postinstall_cmds='base_file=`basename \$file`~
12996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12997 dldir=$destdir/`dirname \$dlpath`~
12998 test -d \$dldir || mkdir -p \$dldir~
12999 $install_prog $dir/$dlname \$dldir/$dlname'
13000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13001 dlpath=$dir/\$dldll~
13002 $RM \$dlpath'
13003 shlibpath_overrides_runpath=yes
13004 dynamic_linker='Win32 link.exe'
13005 ;;
13006
13007 *)
13008 # Assume MSVC and ICC wrapper
13009 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13010 dynamic_linker='Win32 ld.exe'
13011 ;;
13012 esac
13013 # FIXME: first we should search . and the directory the executable is in
13014 shlibpath_var=PATH
13015 ;;
13016
13017 darwin* | rhapsody*)
13018 dynamic_linker="$host_os dyld"
13019 version_type=darwin
13020 need_lib_prefix=no
13021 need_version=no
13022 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13023 soname_spec='$libname$release$major$shared_ext'
13024 shlibpath_overrides_runpath=yes
13025 shlibpath_var=DYLD_LIBRARY_PATH
13026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13027
13028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13030 ;;
13031
13032 dgux*)
13033 version_type=linux # correct to gnu/linux during the next big refactor
13034 need_lib_prefix=no
13035 need_version=no
13036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13037 soname_spec='$libname$release$shared_ext$major'
13038 shlibpath_var=LD_LIBRARY_PATH
13039 ;;
13040
13041 freebsd* | dragonfly* | midnightbsd*)
13042 # DragonFly does not have aout. When/if they implement a new
13043 # versioning mechanism, adjust this.
13044 if test -x /usr/bin/objformat; then
13045 objformat=`/usr/bin/objformat`
13046 else
13047 case $host_os in
13048 freebsd[23].*) objformat=aout ;;
13049 *) objformat=elf ;;
13050 esac
13051 fi
13052 version_type=freebsd-$objformat
13053 case $version_type in
13054 freebsd-elf*)
13055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13056 soname_spec='$libname$release$shared_ext$major'
13057 need_version=no
13058 need_lib_prefix=no
13059 ;;
13060 freebsd-*)
13061 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13062 need_version=yes
13063 ;;
13064 esac
13065 shlibpath_var=LD_LIBRARY_PATH
13066 case $host_os in
13067 freebsd2.*)
13068 shlibpath_overrides_runpath=yes
13069 ;;
13070 freebsd3.[01]* | freebsdelf3.[01]*)
13071 shlibpath_overrides_runpath=yes
13072 hardcode_into_libs=yes
13073 ;;
13074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13076 shlibpath_overrides_runpath=no
13077 hardcode_into_libs=yes
13078 ;;
13079 *) # from 4.6 on, and DragonFly
13080 shlibpath_overrides_runpath=yes
13081 hardcode_into_libs=yes
13082 ;;
13083 esac
13084 ;;
13085
13086 haiku*)
13087 version_type=linux # correct to gnu/linux during the next big refactor
13088 need_lib_prefix=no
13089 need_version=no
13090 dynamic_linker="$host_os runtime_loader"
13091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13092 soname_spec='$libname$release$shared_ext$major'
13093 shlibpath_var=LIBRARY_PATH
13094 shlibpath_overrides_runpath=no
13095 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13096 hardcode_into_libs=yes
13097 ;;
13098
13099 hpux9* | hpux10* | hpux11*)
13100 # Give a soname corresponding to the major version so that dld.sl refuses to
13101 # link against other versions.
13102 version_type=sunos
13103 need_lib_prefix=no
13104 need_version=no
13105 case $host_cpu in
13106 ia64*)
13107 shrext_cmds='.so'
13108 hardcode_into_libs=yes
13109 dynamic_linker="$host_os dld.so"
13110 shlibpath_var=LD_LIBRARY_PATH
13111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13113 soname_spec='$libname$release$shared_ext$major'
13114 if test 32 = "$HPUX_IA64_MODE"; then
13115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13116 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13117 else
13118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13119 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13120 fi
13121 ;;
13122 hppa*64*)
13123 shrext_cmds='.sl'
13124 hardcode_into_libs=yes
13125 dynamic_linker="$host_os dld.sl"
13126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13129 soname_spec='$libname$release$shared_ext$major'
13130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13132 ;;
13133 *)
13134 shrext_cmds='.sl'
13135 dynamic_linker="$host_os dld.sl"
13136 shlibpath_var=SHLIB_PATH
13137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13139 soname_spec='$libname$release$shared_ext$major'
13140 ;;
13141 esac
13142 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13143 postinstall_cmds='chmod 555 $lib'
13144 # or fails outright, so override atomically:
13145 install_override_mode=555
13146 ;;
13147
13148 interix[3-9]*)
13149 version_type=linux # correct to gnu/linux during the next big refactor
13150 need_lib_prefix=no
13151 need_version=no
13152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13153 soname_spec='$libname$release$shared_ext$major'
13154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13155 shlibpath_var=LD_LIBRARY_PATH
13156 shlibpath_overrides_runpath=no
13157 hardcode_into_libs=yes
13158 ;;
13159
13160 irix5* | irix6* | nonstopux*)
13161 case $host_os in
13162 nonstopux*) version_type=nonstopux ;;
13163 *)
13164 if test yes = "$lt_cv_prog_gnu_ld"; then
13165 version_type=linux # correct to gnu/linux during the next big refactor
13166 else
13167 version_type=irix
13168 fi ;;
13169 esac
13170 need_lib_prefix=no
13171 need_version=no
13172 soname_spec='$libname$release$shared_ext$major'
13173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13174 case $host_os in
13175 irix5* | nonstopux*)
13176 libsuff= shlibsuff=
13177 ;;
13178 *)
13179 case $LD in # libtool.m4 will add one of these switches to LD
13180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13181 libsuff= shlibsuff= libmagic=32-bit;;
13182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13183 libsuff=32 shlibsuff=N32 libmagic=N32;;
13184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13186 *) libsuff= shlibsuff= libmagic=never-match;;
13187 esac
13188 ;;
13189 esac
13190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13191 shlibpath_overrides_runpath=no
13192 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13193 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13194 hardcode_into_libs=yes
13195 ;;
13196
13197 # No shared lib support for Linux oldld, aout, or coff.
13198 linux*oldld* | linux*aout* | linux*coff*)
13199 dynamic_linker=no
13200 ;;
13201
13202 linux*android*)
13203 version_type=none # Android doesn't support versioned libraries.
13204 need_lib_prefix=no
13205 need_version=no
13206 library_names_spec='$libname$release$shared_ext'
13207 soname_spec='$libname$release$shared_ext'
13208 finish_cmds=
13209 shlibpath_var=LD_LIBRARY_PATH
13210 shlibpath_overrides_runpath=yes
13211
13212 # This implies no fast_install, which is unacceptable.
13213 # Some rework will be needed to allow for fast_install
13214 # before this can be enabled.
13215 hardcode_into_libs=yes
13216
13217 dynamic_linker='Android linker'
13218 # Don't embed -rpath directories since the linker doesn't support them.
13219 hardcode_libdir_flag_spec='-L$libdir'
13220 ;;
13221
13222 # This must be glibc/ELF.
13223 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13224 version_type=linux # correct to gnu/linux during the next big refactor
13225 need_lib_prefix=no
13226 need_version=no
13227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13228 soname_spec='$libname$release$shared_ext$major'
13229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13230 shlibpath_var=LD_LIBRARY_PATH
13231 shlibpath_overrides_runpath=no
13232
13233 # Some binutils ld are patched to set DT_RUNPATH
13234 if test ${lt_cv_shlibpath_overrides_runpath+y}
13235 then :
13236 printf %s "(cached) " >&6
13237 else $as_nop
13238 lt_cv_shlibpath_overrides_runpath=no
13239 save_LDFLAGS=$LDFLAGS
13240 save_libdir=$libdir
13241 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13242 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13245
13246 int
13247 main (void)
13248 {
13249
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"
13255 then :
13256 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13257 then :
13258 lt_cv_shlibpath_overrides_runpath=yes
13259 fi
13260 fi
13261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13262 conftest$ac_exeext conftest.$ac_ext
13263 LDFLAGS=$save_LDFLAGS
13264 libdir=$save_libdir
13265
13266 fi
13267
13268 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13269
13270 # This implies no fast_install, which is unacceptable.
13271 # Some rework will be needed to allow for fast_install
13272 # before this can be enabled.
13273 hardcode_into_libs=yes
13274
13275 # Ideally, we could use ldconfig to report *all* directores which are
13276 # searched for libraries, however this is still not possible. Aside from not
13277 # being certain /sbin/ldconfig is available, command
13278 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13279 # even though it is searched at run-time. Try to do the best guess by
13280 # appending ld.so.conf contents (and includes) to the search path.
13281 if test -f /etc/ld.so.conf; then
13282 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' ' '`
13283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13284 fi
13285
13286 # We used to test for /lib/ld.so.1 and disable shared libraries on
13287 # powerpc, because MkLinux only supported shared libraries with the
13288 # GNU dynamic linker. Since this was broken with cross compilers,
13289 # most powerpc-linux boxes support dynamic linking these days and
13290 # people can always --disable-shared, the test was removed, and we
13291 # assume the GNU/Linux dynamic linker is in use.
13292 dynamic_linker='GNU/Linux ld.so'
13293 ;;
13294
13295 netbsdelf*-gnu)
13296 version_type=linux
13297 need_lib_prefix=no
13298 need_version=no
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13300 soname_spec='${libname}${release}${shared_ext}$major'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=no
13303 hardcode_into_libs=yes
13304 dynamic_linker='NetBSD ld.elf_so'
13305 ;;
13306
13307 netbsd*)
13308 version_type=sunos
13309 need_lib_prefix=no
13310 need_version=no
13311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13312 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13314 dynamic_linker='NetBSD (a.out) ld.so'
13315 else
13316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13317 soname_spec='$libname$release$shared_ext$major'
13318 dynamic_linker='NetBSD ld.elf_so'
13319 fi
13320 shlibpath_var=LD_LIBRARY_PATH
13321 shlibpath_overrides_runpath=yes
13322 hardcode_into_libs=yes
13323 ;;
13324
13325 newsos6)
13326 version_type=linux # correct to gnu/linux during the next big refactor
13327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=yes
13330 ;;
13331
13332 *nto* | *qnx*)
13333 version_type=qnx
13334 need_lib_prefix=no
13335 need_version=no
13336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13337 soname_spec='$libname$release$shared_ext$major'
13338 shlibpath_var=LD_LIBRARY_PATH
13339 shlibpath_overrides_runpath=no
13340 hardcode_into_libs=yes
13341 dynamic_linker='ldqnx.so'
13342 ;;
13343
13344 openbsd* | bitrig*)
13345 version_type=sunos
13346 sys_lib_dlsearch_path_spec=/usr/lib
13347 need_lib_prefix=no
13348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13349 need_version=no
13350 else
13351 need_version=yes
13352 fi
13353 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13355 shlibpath_var=LD_LIBRARY_PATH
13356 shlibpath_overrides_runpath=yes
13357 ;;
13358
13359 os2*)
13360 libname_spec='$name'
13361 version_type=windows
13362 shrext_cmds=.dll
13363 need_version=no
13364 need_lib_prefix=no
13365 # OS/2 can only load a DLL with a base name of 8 characters or less.
13366 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13367 v=$($ECHO $release$versuffix | tr -d .-);
13368 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13369 $ECHO $n$v`$shared_ext'
13370 library_names_spec='${libname}_dll.$libext'
13371 dynamic_linker='OS/2 ld.exe'
13372 shlibpath_var=BEGINLIBPATH
13373 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13375 postinstall_cmds='base_file=`basename \$file`~
13376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13377 dldir=$destdir/`dirname \$dlpath`~
13378 test -d \$dldir || mkdir -p \$dldir~
13379 $install_prog $dir/$dlname \$dldir/$dlname~
13380 chmod a+x \$dldir/$dlname~
13381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13383 fi'
13384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13385 dlpath=$dir/\$dldll~
13386 $RM \$dlpath'
13387 ;;
13388
13389 osf3* | osf4* | osf5*)
13390 version_type=osf
13391 need_lib_prefix=no
13392 need_version=no
13393 soname_spec='$libname$release$shared_ext$major'
13394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13395 shlibpath_var=LD_LIBRARY_PATH
13396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13398 ;;
13399
13400 rdos*)
13401 dynamic_linker=no
13402 ;;
13403
13404 solaris*)
13405 version_type=linux # correct to gnu/linux during the next big refactor
13406 need_lib_prefix=no
13407 need_version=no
13408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13409 soname_spec='$libname$release$shared_ext$major'
13410 shlibpath_var=LD_LIBRARY_PATH
13411 shlibpath_overrides_runpath=yes
13412 hardcode_into_libs=yes
13413 # ldd complains unless libraries are executable
13414 postinstall_cmds='chmod +x $lib'
13415 ;;
13416
13417 sunos4*)
13418 version_type=sunos
13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13421 shlibpath_var=LD_LIBRARY_PATH
13422 shlibpath_overrides_runpath=yes
13423 if test yes = "$with_gnu_ld"; then
13424 need_lib_prefix=no
13425 fi
13426 need_version=yes
13427 ;;
13428
13429 sysv4 | sysv4.3*)
13430 version_type=linux # correct to gnu/linux during the next big refactor
13431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13432 soname_spec='$libname$release$shared_ext$major'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 case $host_vendor in
13435 sni)
13436 shlibpath_overrides_runpath=no
13437 need_lib_prefix=no
13438 runpath_var=LD_RUN_PATH
13439 ;;
13440 siemens)
13441 need_lib_prefix=no
13442 ;;
13443 motorola)
13444 need_lib_prefix=no
13445 need_version=no
13446 shlibpath_overrides_runpath=no
13447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13448 ;;
13449 esac
13450 ;;
13451
13452 sysv4*MP*)
13453 if test -d /usr/nec; then
13454 version_type=linux # correct to gnu/linux during the next big refactor
13455 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13456 soname_spec='$libname$shared_ext.$major'
13457 shlibpath_var=LD_LIBRARY_PATH
13458 fi
13459 ;;
13460
13461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13462 version_type=sco
13463 need_lib_prefix=no
13464 need_version=no
13465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13466 soname_spec='$libname$release$shared_ext$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=yes
13469 hardcode_into_libs=yes
13470 if test yes = "$with_gnu_ld"; then
13471 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13472 else
13473 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13474 case $host_os in
13475 sco3.2v5*)
13476 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13477 ;;
13478 esac
13479 fi
13480 sys_lib_dlsearch_path_spec='/usr/lib'
13481 ;;
13482
13483 tpf*)
13484 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13485 version_type=linux # correct to gnu/linux during the next big refactor
13486 need_lib_prefix=no
13487 need_version=no
13488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 shlibpath_overrides_runpath=no
13491 hardcode_into_libs=yes
13492 ;;
13493
13494 uts4*)
13495 version_type=linux # correct to gnu/linux during the next big refactor
13496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13497 soname_spec='$libname$release$shared_ext$major'
13498 shlibpath_var=LD_LIBRARY_PATH
13499 ;;
13500
13501 *)
13502 dynamic_linker=no
13503 ;;
13504 esac
13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13506 printf "%s\n" "$dynamic_linker" >&6; }
13507 test no = "$dynamic_linker" && can_build_shared=no
13508
13509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13510 if test yes = "$GCC"; then
13511 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13512 fi
13513
13514 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13515 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13516 fi
13517
13518 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13519 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13520 fi
13521
13522 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13523 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13524
13525 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13526 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13527
13528 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13529 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13628 printf %s "checking how to hardcode library paths into programs... " >&6; }
13629 hardcode_action=
13630 if test -n "$hardcode_libdir_flag_spec" ||
13631 test -n "$runpath_var" ||
13632 test yes = "$hardcode_automatic"; then
13633
13634 # We can hardcode non-existent directories.
13635 if test no != "$hardcode_direct" &&
13636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13637 # have to relink, otherwise we might link with an installed library
13638 # when we should be linking with a yet-to-be-installed one
13639 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13640 test no != "$hardcode_minus_L"; then
13641 # Linking always hardcodes the temporary library directory.
13642 hardcode_action=relink
13643 else
13644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13645 hardcode_action=immediate
13646 fi
13647 else
13648 # We cannot hardcode anything, or else we can only hardcode existing
13649 # directories.
13650 hardcode_action=unsupported
13651 fi
13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13653 printf "%s\n" "$hardcode_action" >&6; }
13654
13655 if test relink = "$hardcode_action" ||
13656 test yes = "$inherit_rpath"; then
13657 # Fast installation is not supported
13658 enable_fast_install=no
13659 elif test yes = "$shlibpath_overrides_runpath" ||
13660 test no = "$enable_shared"; then
13661 # Fast installation is not necessary
13662 enable_fast_install=needless
13663 fi
13664
13665
13666
13667
13668
13669
13670 if test yes != "$enable_dlopen"; then
13671 enable_dlopen=unknown
13672 enable_dlopen_self=unknown
13673 enable_dlopen_self_static=unknown
13674 else
13675 lt_cv_dlopen=no
13676 lt_cv_dlopen_libs=
13677
13678 case $host_os in
13679 beos*)
13680 lt_cv_dlopen=load_add_on
13681 lt_cv_dlopen_libs=
13682 lt_cv_dlopen_self=yes
13683 ;;
13684
13685 mingw* | pw32* | cegcc*)
13686 lt_cv_dlopen=LoadLibrary
13687 lt_cv_dlopen_libs=
13688 ;;
13689
13690 cygwin*)
13691 lt_cv_dlopen=dlopen
13692 lt_cv_dlopen_libs=
13693 ;;
13694
13695 darwin*)
13696 # if libdl is installed we need to link against it
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13698 printf %s "checking for dlopen in -ldl... " >&6; }
13699 if test ${ac_cv_lib_dl_dlopen+y}
13700 then :
13701 printf %s "(cached) " >&6
13702 else $as_nop
13703 ac_check_lib_save_LIBS=$LIBS
13704 LIBS="-ldl $LIBS"
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707
13708 /* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
13711 #ifdef __cplusplus
13712 extern "C"
13713 #endif
13714 char dlopen ();
13715 int
13716 main (void)
13717 {
13718 return dlopen ();
13719 ;
13720 return 0;
13721 }
13722 _ACEOF
13723 if ac_fn_c_try_link "$LINENO"
13724 then :
13725 ac_cv_lib_dl_dlopen=yes
13726 else $as_nop
13727 ac_cv_lib_dl_dlopen=no
13728 fi
13729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13730 conftest$ac_exeext conftest.$ac_ext
13731 LIBS=$ac_check_lib_save_LIBS
13732 fi
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13734 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13735 if test "x$ac_cv_lib_dl_dlopen" = xyes
13736 then :
13737 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13738 else $as_nop
13739
13740 lt_cv_dlopen=dyld
13741 lt_cv_dlopen_libs=
13742 lt_cv_dlopen_self=yes
13743
13744 fi
13745
13746 ;;
13747
13748 tpf*)
13749 # Don't try to run any link tests for TPF. We know it's impossible
13750 # because TPF is a cross-compiler, and we know how we open DSOs.
13751 lt_cv_dlopen=dlopen
13752 lt_cv_dlopen_libs=
13753 lt_cv_dlopen_self=no
13754 ;;
13755
13756 *)
13757 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13758 if test "x$ac_cv_func_shl_load" = xyes
13759 then :
13760 lt_cv_dlopen=shl_load
13761 else $as_nop
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13763 printf %s "checking for shl_load in -ldld... " >&6; }
13764 if test ${ac_cv_lib_dld_shl_load+y}
13765 then :
13766 printf %s "(cached) " >&6
13767 else $as_nop
13768 ac_check_lib_save_LIBS=$LIBS
13769 LIBS="-ldld $LIBS"
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772
13773 /* Override any GCC internal prototype to avoid an error.
13774 Use char because int might match the return type of a GCC
13775 builtin and then its argument prototype would still apply. */
13776 #ifdef __cplusplus
13777 extern "C"
13778 #endif
13779 char shl_load ();
13780 int
13781 main (void)
13782 {
13783 return shl_load ();
13784 ;
13785 return 0;
13786 }
13787 _ACEOF
13788 if ac_fn_c_try_link "$LINENO"
13789 then :
13790 ac_cv_lib_dld_shl_load=yes
13791 else $as_nop
13792 ac_cv_lib_dld_shl_load=no
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13795 conftest$ac_exeext conftest.$ac_ext
13796 LIBS=$ac_check_lib_save_LIBS
13797 fi
13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13799 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13800 if test "x$ac_cv_lib_dld_shl_load" = xyes
13801 then :
13802 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13803 else $as_nop
13804 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13805 if test "x$ac_cv_func_dlopen" = xyes
13806 then :
13807 lt_cv_dlopen=dlopen
13808 else $as_nop
13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13810 printf %s "checking for dlopen in -ldl... " >&6; }
13811 if test ${ac_cv_lib_dl_dlopen+y}
13812 then :
13813 printf %s "(cached) " >&6
13814 else $as_nop
13815 ac_check_lib_save_LIBS=$LIBS
13816 LIBS="-ldl $LIBS"
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819
13820 /* Override any GCC internal prototype to avoid an error.
13821 Use char because int might match the return type of a GCC
13822 builtin and then its argument prototype would still apply. */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 char dlopen ();
13827 int
13828 main (void)
13829 {
13830 return dlopen ();
13831 ;
13832 return 0;
13833 }
13834 _ACEOF
13835 if ac_fn_c_try_link "$LINENO"
13836 then :
13837 ac_cv_lib_dl_dlopen=yes
13838 else $as_nop
13839 ac_cv_lib_dl_dlopen=no
13840 fi
13841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13842 conftest$ac_exeext conftest.$ac_ext
13843 LIBS=$ac_check_lib_save_LIBS
13844 fi
13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13846 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13847 if test "x$ac_cv_lib_dl_dlopen" = xyes
13848 then :
13849 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13850 else $as_nop
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13852 printf %s "checking for dlopen in -lsvld... " >&6; }
13853 if test ${ac_cv_lib_svld_dlopen+y}
13854 then :
13855 printf %s "(cached) " >&6
13856 else $as_nop
13857 ac_check_lib_save_LIBS=$LIBS
13858 LIBS="-lsvld $LIBS"
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861
13862 /* Override any GCC internal prototype to avoid an error.
13863 Use char because int might match the return type of a GCC
13864 builtin and then its argument prototype would still apply. */
13865 #ifdef __cplusplus
13866 extern "C"
13867 #endif
13868 char dlopen ();
13869 int
13870 main (void)
13871 {
13872 return dlopen ();
13873 ;
13874 return 0;
13875 }
13876 _ACEOF
13877 if ac_fn_c_try_link "$LINENO"
13878 then :
13879 ac_cv_lib_svld_dlopen=yes
13880 else $as_nop
13881 ac_cv_lib_svld_dlopen=no
13882 fi
13883 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13884 conftest$ac_exeext conftest.$ac_ext
13885 LIBS=$ac_check_lib_save_LIBS
13886 fi
13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13888 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13889 if test "x$ac_cv_lib_svld_dlopen" = xyes
13890 then :
13891 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13892 else $as_nop
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13894 printf %s "checking for dld_link in -ldld... " >&6; }
13895 if test ${ac_cv_lib_dld_dld_link+y}
13896 then :
13897 printf %s "(cached) " >&6
13898 else $as_nop
13899 ac_check_lib_save_LIBS=$LIBS
13900 LIBS="-ldld $LIBS"
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903
13904 /* Override any GCC internal prototype to avoid an error.
13905 Use char because int might match the return type of a GCC
13906 builtin and then its argument prototype would still apply. */
13907 #ifdef __cplusplus
13908 extern "C"
13909 #endif
13910 char dld_link ();
13911 int
13912 main (void)
13913 {
13914 return dld_link ();
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 if ac_fn_c_try_link "$LINENO"
13920 then :
13921 ac_cv_lib_dld_dld_link=yes
13922 else $as_nop
13923 ac_cv_lib_dld_dld_link=no
13924 fi
13925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13926 conftest$ac_exeext conftest.$ac_ext
13927 LIBS=$ac_check_lib_save_LIBS
13928 fi
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13930 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13931 if test "x$ac_cv_lib_dld_dld_link" = xyes
13932 then :
13933 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13934 fi
13935
13936
13937 fi
13938
13939
13940 fi
13941
13942
13943 fi
13944
13945
13946 fi
13947
13948
13949 fi
13950
13951 ;;
13952 esac
13953
13954 if test no = "$lt_cv_dlopen"; then
13955 enable_dlopen=no
13956 else
13957 enable_dlopen=yes
13958 fi
13959
13960 case $lt_cv_dlopen in
13961 dlopen)
13962 save_CPPFLAGS=$CPPFLAGS
13963 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13964
13965 save_LDFLAGS=$LDFLAGS
13966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13967
13968 save_LIBS=$LIBS
13969 LIBS="$lt_cv_dlopen_libs $LIBS"
13970
13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13972 printf %s "checking whether a program can dlopen itself... " >&6; }
13973 if test ${lt_cv_dlopen_self+y}
13974 then :
13975 printf %s "(cached) " >&6
13976 else $as_nop
13977 if test yes = "$cross_compiling"; then :
13978 lt_cv_dlopen_self=cross
13979 else
13980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13981 lt_status=$lt_dlunknown
13982 cat > conftest.$ac_ext <<_LT_EOF
13983 #line $LINENO "configure"
13984 #include "confdefs.h"
13985
13986 #if HAVE_DLFCN_H
13987 #include <dlfcn.h>
13988 #endif
13989
13990 #include <stdio.h>
13991
13992 #ifdef RTLD_GLOBAL
13993 # define LT_DLGLOBAL RTLD_GLOBAL
13994 #else
13995 # ifdef DL_GLOBAL
13996 # define LT_DLGLOBAL DL_GLOBAL
13997 # else
13998 # define LT_DLGLOBAL 0
13999 # endif
14000 #endif
14001
14002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14003 find out it does not work in some platform. */
14004 #ifndef LT_DLLAZY_OR_NOW
14005 # ifdef RTLD_LAZY
14006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14007 # else
14008 # ifdef DL_LAZY
14009 # define LT_DLLAZY_OR_NOW DL_LAZY
14010 # else
14011 # ifdef RTLD_NOW
14012 # define LT_DLLAZY_OR_NOW RTLD_NOW
14013 # else
14014 # ifdef DL_NOW
14015 # define LT_DLLAZY_OR_NOW DL_NOW
14016 # else
14017 # define LT_DLLAZY_OR_NOW 0
14018 # endif
14019 # endif
14020 # endif
14021 # endif
14022 #endif
14023
14024 /* When -fvisibility=hidden is used, assume the code has been annotated
14025 correspondingly for the symbols needed. */
14026 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14027 int fnord () __attribute__((visibility("default")));
14028 #endif
14029
14030 int fnord () { return 42; }
14031 int main ()
14032 {
14033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14034 int status = $lt_dlunknown;
14035
14036 if (self)
14037 {
14038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14039 else
14040 {
14041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14042 else puts (dlerror ());
14043 }
14044 /* dlclose (self); */
14045 }
14046 else
14047 puts (dlerror ());
14048
14049 return status;
14050 }
14051 _LT_EOF
14052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14053 (eval $ac_link) 2>&5
14054 ac_status=$?
14055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14056 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14057 (./conftest; exit; ) >&5 2>/dev/null
14058 lt_status=$?
14059 case x$lt_status in
14060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14063 esac
14064 else :
14065 # compilation failed
14066 lt_cv_dlopen_self=no
14067 fi
14068 fi
14069 rm -fr conftest*
14070
14071
14072 fi
14073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14074 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14075
14076 if test yes = "$lt_cv_dlopen_self"; then
14077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14079 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14080 if test ${lt_cv_dlopen_self_static+y}
14081 then :
14082 printf %s "(cached) " >&6
14083 else $as_nop
14084 if test yes = "$cross_compiling"; then :
14085 lt_cv_dlopen_self_static=cross
14086 else
14087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14088 lt_status=$lt_dlunknown
14089 cat > conftest.$ac_ext <<_LT_EOF
14090 #line $LINENO "configure"
14091 #include "confdefs.h"
14092
14093 #if HAVE_DLFCN_H
14094 #include <dlfcn.h>
14095 #endif
14096
14097 #include <stdio.h>
14098
14099 #ifdef RTLD_GLOBAL
14100 # define LT_DLGLOBAL RTLD_GLOBAL
14101 #else
14102 # ifdef DL_GLOBAL
14103 # define LT_DLGLOBAL DL_GLOBAL
14104 # else
14105 # define LT_DLGLOBAL 0
14106 # endif
14107 #endif
14108
14109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14110 find out it does not work in some platform. */
14111 #ifndef LT_DLLAZY_OR_NOW
14112 # ifdef RTLD_LAZY
14113 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14114 # else
14115 # ifdef DL_LAZY
14116 # define LT_DLLAZY_OR_NOW DL_LAZY
14117 # else
14118 # ifdef RTLD_NOW
14119 # define LT_DLLAZY_OR_NOW RTLD_NOW
14120 # else
14121 # ifdef DL_NOW
14122 # define LT_DLLAZY_OR_NOW DL_NOW
14123 # else
14124 # define LT_DLLAZY_OR_NOW 0
14125 # endif
14126 # endif
14127 # endif
14128 # endif
14129 #endif
14130
14131 /* When -fvisibility=hidden is used, assume the code has been annotated
14132 correspondingly for the symbols needed. */
14133 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14134 int fnord () __attribute__((visibility("default")));
14135 #endif
14136
14137 int fnord () { return 42; }
14138 int main ()
14139 {
14140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14141 int status = $lt_dlunknown;
14142
14143 if (self)
14144 {
14145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14146 else
14147 {
14148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14149 else puts (dlerror ());
14150 }
14151 /* dlclose (self); */
14152 }
14153 else
14154 puts (dlerror ());
14155
14156 return status;
14157 }
14158 _LT_EOF
14159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14160 (eval $ac_link) 2>&5
14161 ac_status=$?
14162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14163 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14164 (./conftest; exit; ) >&5 2>/dev/null
14165 lt_status=$?
14166 case x$lt_status in
14167 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14168 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14169 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14170 esac
14171 else :
14172 # compilation failed
14173 lt_cv_dlopen_self_static=no
14174 fi
14175 fi
14176 rm -fr conftest*
14177
14178
14179 fi
14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14181 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14182 fi
14183
14184 CPPFLAGS=$save_CPPFLAGS
14185 LDFLAGS=$save_LDFLAGS
14186 LIBS=$save_LIBS
14187 ;;
14188 esac
14189
14190 case $lt_cv_dlopen_self in
14191 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14192 *) enable_dlopen_self=unknown ;;
14193 esac
14194
14195 case $lt_cv_dlopen_self_static in
14196 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14197 *) enable_dlopen_self_static=unknown ;;
14198 esac
14199 fi
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217 striplib=
14218 old_striplib=
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14220 printf %s "checking whether stripping libraries is possible... " >&6; }
14221 if test -z "$STRIP"; then
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 printf "%s\n" "no" >&6; }
14224 else
14225 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14226 old_striplib="$STRIP --strip-debug"
14227 striplib="$STRIP --strip-unneeded"
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14229 printf "%s\n" "yes" >&6; }
14230 else
14231 case $host_os in
14232 darwin*)
14233 # FIXME - insert some real tests, host_os isn't really good enough
14234 striplib="$STRIP -x"
14235 old_striplib="$STRIP -S"
14236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14237 printf "%s\n" "yes" >&6; }
14238 ;;
14239 freebsd*)
14240 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14241 old_striplib="$STRIP --strip-debug"
14242 striplib="$STRIP --strip-unneeded"
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14244 printf "%s\n" "yes" >&6; }
14245 else
14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14247 printf "%s\n" "no" >&6; }
14248 fi
14249 ;;
14250 *)
14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14252 printf "%s\n" "no" >&6; }
14253 ;;
14254 esac
14255 fi
14256 fi
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269 # Report what library types will actually be built
14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14271 printf %s "checking if libtool supports shared libraries... " >&6; }
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14273 printf "%s\n" "$can_build_shared" >&6; }
14274
14275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14276 printf %s "checking whether to build shared libraries... " >&6; }
14277 test no = "$can_build_shared" && enable_shared=no
14278
14279 # On AIX, shared libraries and static libraries use the same namespace, and
14280 # are all built from PIC.
14281 case $host_os in
14282 aix3*)
14283 test yes = "$enable_shared" && enable_static=no
14284 if test -n "$RANLIB"; then
14285 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14286 postinstall_cmds='$RANLIB $lib'
14287 fi
14288 ;;
14289
14290 aix[4-9]*)
14291 if test ia64 != "$host_cpu"; then
14292 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14293 yes,aix,yes) ;; # shared object as lib.so file only
14294 yes,svr4,*) ;; # shared object as lib.so archive member only
14295 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14296 esac
14297 fi
14298 ;;
14299 esac
14300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14301 printf "%s\n" "$enable_shared" >&6; }
14302
14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14304 printf %s "checking whether to build static libraries... " >&6; }
14305 # Make sure either enable_shared or enable_static is yes.
14306 test yes = "$enable_shared" || enable_static=yes
14307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14308 printf "%s\n" "$enable_static" >&6; }
14309
14310
14311
14312
14313 fi
14314 ac_ext=c
14315 ac_cpp='$CPP $CPPFLAGS'
14316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14319
14320 CC=$lt_save_CC
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336 ac_config_commands="$ac_config_commands libtool"
14337
14338
14339
14340
14341 # Only expand once:
14342
14343
14344
14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-MS-Windows ICC" >&5
14346 printf %s "checking for non-MS-Windows ICC... " >&6; }
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349
14350 #if (!defined(__ICC) && !defined(__INTEL_COMPILER)) || defined(_WIN32)
14351 # error "Not a non-MS-Windows ICC"
14352 error
14353 #endif
14354
14355 int
14356 main (void)
14357 {
14358
14359 ;
14360 return 0;
14361 }
14362 _ACEOF
14363 if ac_fn_c_try_compile "$LINENO"
14364 then :
14365
14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14367 printf "%s\n" "yes" >&6; }
14368 CFLAGS="-fp_port -mieee-fp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
14369
14370 else $as_nop
14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 printf "%s\n" "no" >&6; }
14373 fi
14374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14375
14376 if test "$test_CFLAGS" != set && test -n "$GCC"; then
14377 CFLAGS="-Wpointer-arith $CFLAGS"
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the selected language is C++" >&5
14379 printf %s "checking whether the selected language is C++... " >&6; }
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382
14383 #if defined (__cplusplus)
14384 # error "C++"
14385 error
14386 #endif
14387
14388 int
14389 main (void)
14390 {
14391
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 if ac_fn_c_try_compile "$LINENO"
14397 then :
14398
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400 printf "%s\n" "no" >&6; }
14401
14402 case `$CC --version | $SED -e 's/^[^ ]* //' -e 's/([^)]*) //' -e 1q` in
14403 2.*|3.*|4.0*) ;;
14404 *) CFLAGS="-Wc++-compat $CFLAGS" ;;
14405 esac
14406 CFLAGS="-Wmissing-prototypes $CFLAGS"
14407
14408
14409 else $as_nop
14410
14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14412 printf "%s\n" "yes" >&6; }
14413 CFLAGS="-Wmissing-declarations -Wno-sign-compare $CFLAGS"
14414
14415 fi
14416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14417 CFLAGS="-Wall $CFLAGS"
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS=\"$CFLAGS\"" >&5
14419 printf "%s\n" "$as_me: using CFLAGS=\"$CFLAGS\"" >&6;}
14420 fi
14421
14422
14423
14424 case $host in
14425 *-apple-darwin*)
14426 case "$LD $LDFLAGS" in
14427 *-Wl,-search_paths_first*) ;;
14428 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
14429 printf %s "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
14430 saved_LDFLAGS="$LDFLAGS"
14431 LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14434
14435 int
14436 main (void)
14437 {
14438
14439 ;
14440 return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_link "$LINENO"
14444 then :
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14446 printf "%s\n" "yes" >&6; }
14447 else $as_nop
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14449 printf "%s\n" "no" >&6; }
14450 LDFLAGS="$saved_LDFLAGS"
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14453 conftest$ac_exeext conftest.$ac_ext
14454 ;;
14455 esac
14456 ;;
14457 esac
14458
14459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14460 printf %s "checking for an ANSI C-conforming const... " >&6; }
14461 if test ${ac_cv_c_const+y}
14462 then :
14463 printf %s "(cached) " >&6
14464 else $as_nop
14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14467
14468 int
14469 main (void)
14470 {
14471
14472 #ifndef __cplusplus
14473 /* Ultrix mips cc rejects this sort of thing. */
14474 typedef int charset[2];
14475 const charset cs = { 0, 0 };
14476 /* SunOS 4.1.1 cc rejects this. */
14477 char const *const *pcpcc;
14478 char **ppc;
14479 /* NEC SVR4.0.2 mips cc rejects this. */
14480 struct point {int x, y;};
14481 static struct point const zero = {0,0};
14482 /* IBM XL C 1.02.0.0 rejects this.
14483 It does not let you subtract one const X* pointer from another in
14484 an arm of an if-expression whose if-part is not a constant
14485 expression */
14486 const char *g = "string";
14487 pcpcc = &g + (g ? g-g : 0);
14488 /* HPUX 7.0 cc rejects these. */
14489 ++pcpcc;
14490 ppc = (char**) pcpcc;
14491 pcpcc = (char const *const *) ppc;
14492 { /* SCO 3.2v4 cc rejects this sort of thing. */
14493 char tx;
14494 char *t = &tx;
14495 char const *s = 0 ? (char *) 0 : (char const *) 0;
14496
14497 *t++ = 0;
14498 if (s) return 0;
14499 }
14500 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14501 int x[] = {25, 17};
14502 const int *foo = &x[0];
14503 ++foo;
14504 }
14505 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14506 typedef const int *iptr;
14507 iptr p = 0;
14508 ++p;
14509 }
14510 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14511 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14512 struct s { int j; const int *ap[3]; } bx;
14513 struct s *b = &bx; b->j = 5;
14514 }
14515 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14516 const int foo = 10;
14517 if (!foo) return 0;
14518 }
14519 return !cs[0] && !zero.x;
14520 #endif
14521
14522 ;
14523 return 0;
14524 }
14525 _ACEOF
14526 if ac_fn_c_try_compile "$LINENO"
14527 then :
14528 ac_cv_c_const=yes
14529 else $as_nop
14530 ac_cv_c_const=no
14531 fi
14532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14533 fi
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14535 printf "%s\n" "$ac_cv_c_const" >&6; }
14536 if test $ac_cv_c_const = no; then
14537
14538 printf "%s\n" "#define const /**/" >>confdefs.h
14539
14540 fi
14541
14542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14543 printf %s "checking for working volatile... " >&6; }
14544 if test ${ac_cv_c_volatile+y}
14545 then :
14546 printf %s "(cached) " >&6
14547 else $as_nop
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14550
14551 int
14552 main (void)
14553 {
14554
14555 volatile int x;
14556 int * volatile y = (int *) 0;
14557 return !x && !y;
14558 ;
14559 return 0;
14560 }
14561 _ACEOF
14562 if ac_fn_c_try_compile "$LINENO"
14563 then :
14564 ac_cv_c_volatile=yes
14565 else $as_nop
14566 ac_cv_c_volatile=no
14567 fi
14568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14569 fi
14570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14571 printf "%s\n" "$ac_cv_c_volatile" >&6; }
14572 if test $ac_cv_c_volatile = no; then
14573
14574 printf "%s\n" "#define volatile /**/" >>confdefs.h
14575
14576 fi
14577
14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14579 printf %s "checking whether byte ordering is bigendian... " >&6; }
14580 if test ${ac_cv_c_bigendian+y}
14581 then :
14582 printf %s "(cached) " >&6
14583 else $as_nop
14584 ac_cv_c_bigendian=unknown
14585 # See if we're dealing with a universal compiler.
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14588 #ifndef __APPLE_CC__
14589 not a universal capable compiler
14590 #endif
14591 typedef int dummy;
14592
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"
14595 then :
14596
14597 # Check for potential -arch flags. It is not universal unless
14598 # there are at least two -arch flags with different values.
14599 ac_arch=
14600 ac_prev=
14601 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14602 if test -n "$ac_prev"; then
14603 case $ac_word in
14604 i?86 | x86_64 | ppc | ppc64)
14605 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14606 ac_arch=$ac_word
14607 else
14608 ac_cv_c_bigendian=universal
14609 break
14610 fi
14611 ;;
14612 esac
14613 ac_prev=
14614 elif test "x$ac_word" = "x-arch"; then
14615 ac_prev=arch
14616 fi
14617 done
14618 fi
14619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14620 if test $ac_cv_c_bigendian = unknown; then
14621 # See if sys/param.h defines the BYTE_ORDER macro.
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 #include <sys/types.h>
14625 #include <sys/param.h>
14626
14627 int
14628 main (void)
14629 {
14630 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14631 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14632 && LITTLE_ENDIAN)
14633 bogus endian macros
14634 #endif
14635
14636 ;
14637 return 0;
14638 }
14639 _ACEOF
14640 if ac_fn_c_try_compile "$LINENO"
14641 then :
14642 # It does; now see whether it defined to BIG_ENDIAN or not.
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14645 #include <sys/types.h>
14646 #include <sys/param.h>
14647
14648 int
14649 main (void)
14650 {
14651 #if BYTE_ORDER != BIG_ENDIAN
14652 not big endian
14653 #endif
14654
14655 ;
14656 return 0;
14657 }
14658 _ACEOF
14659 if ac_fn_c_try_compile "$LINENO"
14660 then :
14661 ac_cv_c_bigendian=yes
14662 else $as_nop
14663 ac_cv_c_bigendian=no
14664 fi
14665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14666 fi
14667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14668 fi
14669 if test $ac_cv_c_bigendian = unknown; then
14670 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672 /* end confdefs.h. */
14673 #include <limits.h>
14674
14675 int
14676 main (void)
14677 {
14678 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14679 bogus endian macros
14680 #endif
14681
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 if ac_fn_c_try_compile "$LINENO"
14687 then :
14688 # It does; now see whether it defined to _BIG_ENDIAN or not.
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14691 #include <limits.h>
14692
14693 int
14694 main (void)
14695 {
14696 #ifndef _BIG_ENDIAN
14697 not big endian
14698 #endif
14699
14700 ;
14701 return 0;
14702 }
14703 _ACEOF
14704 if ac_fn_c_try_compile "$LINENO"
14705 then :
14706 ac_cv_c_bigendian=yes
14707 else $as_nop
14708 ac_cv_c_bigendian=no
14709 fi
14710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14713 fi
14714 if test $ac_cv_c_bigendian = unknown; then
14715 # Compile a test program.
14716 if test "$cross_compiling" = yes
14717 then :
14718 # Try to guess by grepping values from an object file.
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721 unsigned short int ascii_mm[] =
14722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14723 unsigned short int ascii_ii[] =
14724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14725 int use_ascii (int i) {
14726 return ascii_mm[i] + ascii_ii[i];
14727 }
14728 unsigned short int ebcdic_ii[] =
14729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14730 unsigned short int ebcdic_mm[] =
14731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14732 int use_ebcdic (int i) {
14733 return ebcdic_mm[i] + ebcdic_ii[i];
14734 }
14735 extern int foo;
14736
14737 int
14738 main (void)
14739 {
14740 return use_ascii (foo) == use_ebcdic (foo);
14741 ;
14742 return 0;
14743 }
14744 _ACEOF
14745 if ac_fn_c_try_compile "$LINENO"
14746 then :
14747 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14748 ac_cv_c_bigendian=yes
14749 fi
14750 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14751 if test "$ac_cv_c_bigendian" = unknown; then
14752 ac_cv_c_bigendian=no
14753 else
14754 # finding both strings is unlikely to happen, but who knows?
14755 ac_cv_c_bigendian=unknown
14756 fi
14757 fi
14758 fi
14759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14760 else $as_nop
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 $ac_includes_default
14764 int
14765 main (void)
14766 {
14767
14768 /* Are we little or big endian? From Harbison&Steele. */
14769 union
14770 {
14771 long int l;
14772 char c[sizeof (long int)];
14773 } u;
14774 u.l = 1;
14775 return u.c[sizeof (long int) - 1] == 1;
14776
14777 ;
14778 return 0;
14779 }
14780 _ACEOF
14781 if ac_fn_c_try_run "$LINENO"
14782 then :
14783 ac_cv_c_bigendian=no
14784 else $as_nop
14785 ac_cv_c_bigendian=yes
14786 fi
14787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14788 conftest.$ac_objext conftest.beam conftest.$ac_ext
14789 fi
14790
14791 fi
14792 fi
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14794 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
14795 case $ac_cv_c_bigendian in #(
14796 yes)
14797 printf "%s\n" "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
14798 ;; #(
14799 no)
14800 printf "%s\n" "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
14801 ;; #(
14802 universal)
14803 true
14804 ;; #(
14805 *)
14806 true ;;
14807 esac
14808
14809
14810 # (Based on GMP 5.1)
14811 # clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt to
14812 # TUNE_LIBS if needed (e.g. if clock_gettime is not already in the C library).
14813 # On linux (tested on x86_32, 2.6.26), clock_getres reports ns accuracy,
14814 # while in a quick test on osf, clock_getres said only 1 millisecond.
14815 old_LIBS="$LIBS"
14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14817 printf %s "checking for library containing clock_gettime... " >&6; }
14818 if test ${ac_cv_search_clock_gettime+y}
14819 then :
14820 printf %s "(cached) " >&6
14821 else $as_nop
14822 ac_func_search_save_LIBS=$LIBS
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825
14826 /* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply. */
14829 #ifdef __cplusplus
14830 extern "C"
14831 #endif
14832 char clock_gettime ();
14833 int
14834 main (void)
14835 {
14836 return clock_gettime ();
14837 ;
14838 return 0;
14839 }
14840 _ACEOF
14841 for ac_lib in '' rt
14842 do
14843 if test -z "$ac_lib"; then
14844 ac_res="none required"
14845 else
14846 ac_res=-l$ac_lib
14847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14848 fi
14849 if ac_fn_c_try_link "$LINENO"
14850 then :
14851 ac_cv_search_clock_gettime=$ac_res
14852 fi
14853 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14854 conftest$ac_exeext
14855 if test ${ac_cv_search_clock_gettime+y}
14856 then :
14857 break
14858 fi
14859 done
14860 if test ${ac_cv_search_clock_gettime+y}
14861 then :
14862
14863 else $as_nop
14864 ac_cv_search_clock_gettime=no
14865 fi
14866 rm conftest.$ac_ext
14867 LIBS=$ac_func_search_save_LIBS
14868 fi
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14870 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
14871 ac_res=$ac_cv_search_clock_gettime
14872 if test "$ac_res" != no
14873 then :
14874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14875
14876
14877 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14878
14879 fi
14880
14881 TUNE_LIBS="$LIBS"
14882 LIBS="$old_LIBS"
14883
14884
14885 case $host in
14886 *-*-linux*)
14887 if test -n "$LD_LIBRARY_PATH"; then
14888 saved_LDFLAGS="$LDFLAGS"
14889 LDFLAGS="$LDFLAGS -Wl,--disable-new-dtags"
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
14891 printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; }
14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14894
14895 int main (void) { return 0; }
14896
14897 _ACEOF
14898 if ac_fn_c_try_link "$LINENO"
14899 then :
14900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
14901 printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
14902 else $as_nop
14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14904 printf "%s\n" "no" >&6; }
14905 LDFLAGS="$saved_LDFLAGS"
14906
14907 fi
14908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14909 conftest$ac_exeext conftest.$ac_ext
14910 fi
14911 ;;
14912 esac
14913
14914
14915
14916 MPFR_LIBM=''
14917
14918 case $host in
14919 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14920 # According to libtool.m4:
14921 # These systems don't have libm, or don't need it.
14922 ;;
14923 *-*-solaris*)
14924 # On Solaris, some additional math functions are in -lm9x.
14925 # For MPFR, https://docs.oracle.com/cd/E19957-01/806-3568/ncg_lib.html
14926 # says that ceil, floor and rint are provided by libm. We would also
14927 # like nearbyint when available, but there is no mention of it in this
14928 # doc. Just in case, let's check for it in m9x, e.g. if it is added in
14929 # the future.
14930
14931 saved_LIBS="$LIBS"
14932 LIBS="-lm9x $LIBS"
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935
14936 int
14937 main (void)
14938 {
14939
14940 ;
14941 return 0;
14942 }
14943 _ACEOF
14944 if ac_fn_c_try_link "$LINENO"
14945 then :
14946 MPFR_LIBM="-lm9x"
14947 fi
14948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS="$saved_LIBS"
14951
14952
14953 saved_LIBS="$LIBS"
14954 LIBS="-lm $LIBS"
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957
14958 int
14959 main (void)
14960 {
14961
14962 ;
14963 return 0;
14964 }
14965 _ACEOF
14966 if ac_fn_c_try_link "$LINENO"
14967 then :
14968 MPFR_LIBM="$MPFR_LIBM -lm"
14969 fi
14970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14971 conftest$ac_exeext conftest.$ac_ext
14972 LIBS="$saved_LIBS"
14973
14974 ;;
14975 *-ncr-sysv4.3*)
14976 # The following AC_CHECK_LIB line about -lmw is copied from libtool.m4,
14977 # but do we need it? This has never been tested in MPFR. See commits
14978 # 6d34bd85f038abeaeeb77aa8f65b562623cc38bc (1999-02-13)
14979 # e65f46d3fc4eb98d25ee94ad8e6f51c5846c8fe3 (1999-03-20)
14980 # in the libtool repository.
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14982 printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
14983 if test ${ac_cv_lib_mw__mwvalidcheckl+y}
14984 then :
14985 printf %s "(cached) " >&6
14986 else $as_nop
14987 ac_check_lib_save_LIBS=$LIBS
14988 LIBS="-lmw $LIBS"
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
14991
14992 /* Override any GCC internal prototype to avoid an error.
14993 Use char because int might match the return type of a GCC
14994 builtin and then its argument prototype would still apply. */
14995 #ifdef __cplusplus
14996 extern "C"
14997 #endif
14998 char _mwvalidcheckl ();
14999 int
15000 main (void)
15001 {
15002 return _mwvalidcheckl ();
15003 ;
15004 return 0;
15005 }
15006 _ACEOF
15007 if ac_fn_c_try_link "$LINENO"
15008 then :
15009 ac_cv_lib_mw__mwvalidcheckl=yes
15010 else $as_nop
15011 ac_cv_lib_mw__mwvalidcheckl=no
15012 fi
15013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15014 conftest$ac_exeext conftest.$ac_ext
15015 LIBS=$ac_check_lib_save_LIBS
15016 fi
15017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15018 printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15019 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
15020 then :
15021 MPFR_LIBM="-lmw"
15022 fi
15023
15024
15025 saved_LIBS="$LIBS"
15026 LIBS="-lm $LIBS"
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029
15030 int
15031 main (void)
15032 {
15033
15034 ;
15035 return 0;
15036 }
15037 _ACEOF
15038 if ac_fn_c_try_link "$LINENO"
15039 then :
15040 MPFR_LIBM="$MPFR_LIBM -lm"
15041 fi
15042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15043 conftest$ac_exeext conftest.$ac_ext
15044 LIBS="$saved_LIBS"
15045
15046 ;;
15047 *)
15048
15049 saved_LIBS="$LIBS"
15050 LIBS="-lm $LIBS"
15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h. */
15053
15054 int
15055 main (void)
15056 {
15057
15058 ;
15059 return 0;
15060 }
15061 _ACEOF
15062 if ac_fn_c_try_link "$LINENO"
15063 then :
15064 MPFR_LIBM="-lm"
15065 fi
15066 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15067 conftest$ac_exeext conftest.$ac_ext
15068 LIBS="$saved_LIBS"
15069
15070 ;;
15071 esac
15072
15073
15074 MPFR_LIBQUADMATH=''
15075
15076 case $host in
15077 *)
15078
15079 saved_LIBS="$LIBS"
15080 LIBS="-lquadmath $LIBS"
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15083
15084 int
15085 main (void)
15086 {
15087
15088 ;
15089 return 0;
15090 }
15091 _ACEOF
15092 if ac_fn_c_try_link "$LINENO"
15093 then :
15094 MPFR_LIBQUADMATH="-lquadmath"
15095 fi
15096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15097 conftest$ac_exeext conftest.$ac_ext
15098 LIBS="$saved_LIBS"
15099
15100 ;;
15101 esac
15102
15103
15104 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15105 if test "x$ac_cv_type_size_t" = xyes
15106 then :
15107
15108 else $as_nop
15109
15110 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
15111
15112 fi
15113
15114
15115
15116
15117
15118
15119
15120
15121 if test "$enable_shared_cache" = yes; then
15122
15123
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ISO C11 thread support" >&5
15125 printf %s "checking for ISO C11 thread support... " >&6; }
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15128
15129 #include <assert.h>
15130 #include <threads.h>
15131 mtx_t lock;
15132 once_flag once = ONCE_FLAG_INIT;
15133 thrd_t thd_idx;
15134 int x = 0;
15135 void once_call (void) { x = 1; }
15136
15137 int
15138 main (void)
15139 {
15140
15141 int err;
15142 err = mtx_init(&lock, mtx_plain);
15143 assert(err == thrd_success);
15144 err = mtx_lock(&lock);
15145 assert(err == thrd_success);
15146 err = mtx_unlock(&lock);
15147 assert(err == thrd_success);
15148 mtx_destroy(&lock);
15149 once_call(&once, once_call);
15150 return x == 1 ? 0 : -1;
15151
15152 ;
15153 return 0;
15154 }
15155 _ACEOF
15156 if ac_fn_c_try_link "$LINENO"
15157 then :
15158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15159 printf "%s\n" "yes" >&6; }
15160 mpfr_c11_thread_ok=yes
15161 else $as_nop
15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15163 printf "%s\n" "no" >&6; }
15164
15165 fi
15166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15167 conftest$ac_exeext conftest.$ac_ext
15168
15169 if test "$mpfr_c11_thread_ok" = "yes"; then
15170
15171 printf "%s\n" "#define MPFR_HAVE_C11_LOCK 1" >>confdefs.h
15172
15173 fi
15174
15175
15176 if test "$mpfr_c11_thread_ok" != yes; then
15177
15178
15179
15180
15181
15182 ac_ext=c
15183 ac_cpp='$CPP $CPPFLAGS'
15184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15187
15188 ax_pthread_ok=no
15189
15190 # We used to check for pthread.h first, but this fails if pthread.h
15191 # requires special compiler flags (e.g. on Tru64 or Sequent).
15192 # It gets checked for in the link test anyway.
15193
15194 # First of all, check if the user has set any of the PTHREAD_LIBS,
15195 # etcetera environment variables, and if threads linking works using
15196 # them:
15197 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15198 ax_pthread_save_CC="$CC"
15199 ax_pthread_save_CFLAGS="$CFLAGS"
15200 ax_pthread_save_LIBS="$LIBS"
15201 if test "x$PTHREAD_CC" != "x"
15202 then :
15203 CC="$PTHREAD_CC"
15204 fi
15205 if test "x$PTHREAD_CXX" != "x"
15206 then :
15207 CXX="$PTHREAD_CXX"
15208 fi
15209 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15210 LIBS="$PTHREAD_LIBS $LIBS"
15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15212 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215
15216 /* Override any GCC internal prototype to avoid an error.
15217 Use char because int might match the return type of a GCC
15218 builtin and then its argument prototype would still apply. */
15219 #ifdef __cplusplus
15220 extern "C"
15221 #endif
15222 char pthread_join ();
15223 int
15224 main (void)
15225 {
15226 return pthread_join ();
15227 ;
15228 return 0;
15229 }
15230 _ACEOF
15231 if ac_fn_c_try_link "$LINENO"
15232 then :
15233 ax_pthread_ok=yes
15234 fi
15235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15236 conftest$ac_exeext conftest.$ac_ext
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15238 printf "%s\n" "$ax_pthread_ok" >&6; }
15239 if test "x$ax_pthread_ok" = "xno"; then
15240 PTHREAD_LIBS=""
15241 PTHREAD_CFLAGS=""
15242 fi
15243 CC="$ax_pthread_save_CC"
15244 CFLAGS="$ax_pthread_save_CFLAGS"
15245 LIBS="$ax_pthread_save_LIBS"
15246 fi
15247
15248 # We must check for the threads library under a number of different
15249 # names; the ordering is very important because some systems
15250 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15251 # libraries is broken (non-POSIX).
15252
15253 # Create a list of thread flags to try. Items with a "," contain both
15254 # C compiler flags (before ",") and linker flags (after ","). Other items
15255 # starting with a "-" are C compiler flags, and remaining items are
15256 # library names, except for "none" which indicates that we try without
15257 # any flags at all, and "pthread-config" which is a program returning
15258 # the flags for the Pth emulation library.
15259
15260 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15261
15262 # The ordering *is* (sometimes) important. Some notes on the
15263 # individual items follow:
15264
15265 # pthreads: AIX (must check this before -lpthread)
15266 # none: in case threads are in libc; should be tried before -Kthread and
15267 # other compiler flags to prevent continual compiler warnings
15268 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15269 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15270 # (Note: HP C rejects this with "bad form for `-t' option")
15271 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15272 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15273 # doesn't hurt to check since this sometimes defines pthreads and
15274 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15275 # is present but should not be used directly; and before -mthreads,
15276 # because the compiler interprets this as "-mt" + "-hreads")
15277 # -mthreads: Mingw32/gcc, Lynx/gcc
15278 # pthread: Linux, etcetera
15279 # --thread-safe: KAI C++
15280 # pthread-config: use pthread-config program (for GNU Pth library)
15281
15282 case $host_os in
15283
15284 freebsd*)
15285
15286 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15287 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15288
15289 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15290 ;;
15291
15292 hpux*)
15293
15294 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15295 # multi-threading and also sets -lpthread."
15296
15297 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15298 ;;
15299
15300 openedition*)
15301
15302 # IBM z/OS requires a feature-test macro to be defined in order to
15303 # enable POSIX threads at all, so give the user a hint if this is
15304 # not set. (We don't define these ourselves, as they can affect
15305 # other portions of the system API in unpredictable ways.)
15306
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309
15310 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15311 AX_PTHREAD_ZOS_MISSING
15312 # endif
15313
15314 _ACEOF
15315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15316 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
15317 then :
15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15319 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15320 fi
15321 rm -rf conftest*
15322
15323 ;;
15324
15325 solaris*)
15326
15327 # On Solaris (at least, for some versions), libc contains stubbed
15328 # (non-functional) versions of the pthreads routines, so link-based
15329 # tests will erroneously succeed. (N.B.: The stubs are missing
15330 # pthread_cleanup_push, or rather a function called by this macro,
15331 # so we could check for that, but who knows whether they'll stub
15332 # that too in a future libc.) So we'll check first for the
15333 # standard Solaris way of linking pthreads (-mt -lpthread).
15334
15335 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
15336 ;;
15337 esac
15338
15339 # Are we compiling with Clang?
15340
15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15342 printf %s "checking whether $CC is Clang... " >&6; }
15343 if test ${ax_cv_PTHREAD_CLANG+y}
15344 then :
15345 printf %s "(cached) " >&6
15346 else $as_nop
15347 ax_cv_PTHREAD_CLANG=no
15348 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15349 if test "x$GCC" = "xyes"; then
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15352 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15353 # if defined(__clang__) && defined(__llvm__)
15354 AX_PTHREAD_CC_IS_CLANG
15355 # endif
15356
15357 _ACEOF
15358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15359 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
15360 then :
15361 ax_cv_PTHREAD_CLANG=yes
15362 fi
15363 rm -rf conftest*
15364
15365 fi
15366
15367 fi
15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15369 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
15370 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15371
15372
15373 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15374
15375 # Note that for GCC and Clang -pthread generally implies -lpthread,
15376 # except when -nostdlib is passed.
15377 # This is problematic using libtool to build C++ shared libraries with pthread:
15378 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
15379 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
15380 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
15381 # To solve this, first try -pthread together with -lpthread for GCC
15382
15383 if test "x$GCC" = "xyes"
15384 then :
15385 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
15386 fi
15387
15388 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
15389
15390 if test "x$ax_pthread_clang" = "xyes"
15391 then :
15392 ax_pthread_flags="-pthread,-lpthread -pthread"
15393 fi
15394
15395
15396 # The presence of a feature test macro requesting re-entrant function
15397 # definitions is, on some systems, a strong hint that pthreads support is
15398 # correctly enabled
15399
15400 case $host_os in
15401 darwin* | hpux* | linux* | osf* | solaris*)
15402 ax_pthread_check_macro="_REENTRANT"
15403 ;;
15404
15405 aix*)
15406 ax_pthread_check_macro="_THREAD_SAFE"
15407 ;;
15408
15409 *)
15410 ax_pthread_check_macro="--"
15411 ;;
15412 esac
15413 if test "x$ax_pthread_check_macro" = "x--"
15414 then :
15415 ax_pthread_check_cond=0
15416 else $as_nop
15417 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15418 fi
15419
15420
15421 if test "x$ax_pthread_ok" = "xno"; then
15422 for ax_pthread_try_flag in $ax_pthread_flags; do
15423
15424 case $ax_pthread_try_flag in
15425 none)
15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15427 printf %s "checking whether pthreads work without any flags... " >&6; }
15428 ;;
15429
15430 *,*)
15431 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
15432 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
15434 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
15435 ;;
15436
15437 -*)
15438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15439 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15440 PTHREAD_CFLAGS="$ax_pthread_try_flag"
15441 ;;
15442
15443 pthread-config)
15444 # Extract the first word of "pthread-config", so it can be a program name with args.
15445 set dummy pthread-config; ac_word=$2
15446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15447 printf %s "checking for $ac_word... " >&6; }
15448 if test ${ac_cv_prog_ax_pthread_config+y}
15449 then :
15450 printf %s "(cached) " >&6
15451 else $as_nop
15452 if test -n "$ax_pthread_config"; then
15453 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15454 else
15455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456 for as_dir in $PATH
15457 do
15458 IFS=$as_save_IFS
15459 case $as_dir in #(((
15460 '') as_dir=./ ;;
15461 */) ;;
15462 *) as_dir=$as_dir/ ;;
15463 esac
15464 for ac_exec_ext in '' $ac_executable_extensions; do
15465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15466 ac_cv_prog_ax_pthread_config="yes"
15467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15468 break 2
15469 fi
15470 done
15471 done
15472 IFS=$as_save_IFS
15473
15474 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15475 fi
15476 fi
15477 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15478 if test -n "$ax_pthread_config"; then
15479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15480 printf "%s\n" "$ax_pthread_config" >&6; }
15481 else
15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15483 printf "%s\n" "no" >&6; }
15484 fi
15485
15486
15487 if test "x$ax_pthread_config" = "xno"
15488 then :
15489 continue
15490 fi
15491 PTHREAD_CFLAGS="`pthread-config --cflags`"
15492 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15493 ;;
15494
15495 *)
15496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15497 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15498 PTHREAD_LIBS="-l$ax_pthread_try_flag"
15499 ;;
15500 esac
15501
15502 ax_pthread_save_CFLAGS="$CFLAGS"
15503 ax_pthread_save_LIBS="$LIBS"
15504 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15505 LIBS="$PTHREAD_LIBS $LIBS"
15506
15507 # Check for various functions. We must include pthread.h,
15508 # since some functions may be macros. (On the Sequent, we
15509 # need a special flag -Kthread to make this header compile.)
15510 # We check for pthread_join because it is in -lpthread on IRIX
15511 # while pthread_create is in libc. We check for pthread_attr_init
15512 # due to DEC craziness with -lpthreads. We check for
15513 # pthread_cleanup_push because it is one of the few pthread
15514 # functions on Solaris that doesn't have a non-functional libc stub.
15515 # We try pthread_create on general principles.
15516
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15519 #include <pthread.h>
15520 # if $ax_pthread_check_cond
15521 # error "$ax_pthread_check_macro must be defined"
15522 # endif
15523 static void *some_global = NULL;
15524 static void routine(void *a)
15525 {
15526 /* To avoid any unused-parameter or
15527 unused-but-set-parameter warning. */
15528 some_global = a;
15529 }
15530 static void *start_routine(void *a) { return a; }
15531 int
15532 main (void)
15533 {
15534 pthread_t th; pthread_attr_t attr;
15535 pthread_create(&th, 0, start_routine, 0);
15536 pthread_join(th, 0);
15537 pthread_attr_init(&attr);
15538 pthread_cleanup_push(routine, 0);
15539 pthread_cleanup_pop(0) /* ; */
15540 ;
15541 return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_link "$LINENO"
15545 then :
15546 ax_pthread_ok=yes
15547 fi
15548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15549 conftest$ac_exeext conftest.$ac_ext
15550
15551 CFLAGS="$ax_pthread_save_CFLAGS"
15552 LIBS="$ax_pthread_save_LIBS"
15553
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15555 printf "%s\n" "$ax_pthread_ok" >&6; }
15556 if test "x$ax_pthread_ok" = "xyes"
15557 then :
15558 break
15559 fi
15560
15561 PTHREAD_LIBS=""
15562 PTHREAD_CFLAGS=""
15563 done
15564 fi
15565
15566
15567 # Clang needs special handling, because older versions handle the -pthread
15568 # option in a rather... idiosyncratic way
15569
15570 if test "x$ax_pthread_clang" = "xyes"; then
15571
15572 # Clang takes -pthread; it has never supported any other flag
15573
15574 # (Note 1: This will need to be revisited if a system that Clang
15575 # supports has POSIX threads in a separate library. This tends not
15576 # to be the way of modern systems, but it's conceivable.)
15577
15578 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15579 # to get POSIX threads support; the API is always present and
15580 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15581 # -pthread does define _REENTRANT, and while the Darwin headers
15582 # ignore this macro, third-party headers might not.)
15583
15584 # However, older versions of Clang make a point of warning the user
15585 # that, in an invocation where only linking and no compilation is
15586 # taking place, the -pthread option has no effect ("argument unused
15587 # during compilation"). They expect -pthread to be passed in only
15588 # when source code is being compiled.
15589 #
15590 # Problem is, this is at odds with the way Automake and most other
15591 # C build frameworks function, which is that the same flags used in
15592 # compilation (CFLAGS) are also used in linking. Many systems
15593 # supported by AX_PTHREAD require exactly this for POSIX threads
15594 # support, and in fact it is often not straightforward to specify a
15595 # flag that is used only in the compilation phase and not in
15596 # linking. Such a scenario is extremely rare in practice.
15597 #
15598 # Even though use of the -pthread flag in linking would only print
15599 # a warning, this can be a nuisance for well-run software projects
15600 # that build with -Werror. So if the active version of Clang has
15601 # this misfeature, we search for an option to squash it.
15602
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15604 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15605 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
15606 then :
15607 printf %s "(cached) " >&6
15608 else $as_nop
15609 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15610 # Create an alternate version of $ac_link that compiles and
15611 # links in two steps (.c -> .o, .o -> exe) instead of one
15612 # (.c -> exe), because the warning occurs only in the second
15613 # step
15614 ax_pthread_save_ac_link="$ac_link"
15615 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15616 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
15617 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15618 ax_pthread_save_CFLAGS="$CFLAGS"
15619 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15620 if test "x$ax_pthread_try" = "xunknown"
15621 then :
15622 break
15623 fi
15624 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15625 ac_link="$ax_pthread_save_ac_link"
15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15628 int main(void){return 0;}
15629 _ACEOF
15630 if ac_fn_c_try_link "$LINENO"
15631 then :
15632 ac_link="$ax_pthread_2step_ac_link"
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 int main(void){return 0;}
15636 _ACEOF
15637 if ac_fn_c_try_link "$LINENO"
15638 then :
15639 break
15640 fi
15641 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15642 conftest$ac_exeext conftest.$ac_ext
15643
15644 fi
15645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15646 conftest$ac_exeext conftest.$ac_ext
15647 done
15648 ac_link="$ax_pthread_save_ac_link"
15649 CFLAGS="$ax_pthread_save_CFLAGS"
15650 if test "x$ax_pthread_try" = "x"
15651 then :
15652 ax_pthread_try=no
15653 fi
15654 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15655
15656 fi
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15658 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15659
15660 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15661 no | unknown) ;;
15662 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15663 esac
15664
15665 fi # $ax_pthread_clang = yes
15666
15667
15668
15669 # Various other checks:
15670 if test "x$ax_pthread_ok" = "xyes"; then
15671 ax_pthread_save_CFLAGS="$CFLAGS"
15672 ax_pthread_save_LIBS="$LIBS"
15673 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15674 LIBS="$PTHREAD_LIBS $LIBS"
15675
15676 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15678 printf %s "checking for joinable pthread attribute... " >&6; }
15679 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
15680 then :
15681 printf %s "(cached) " >&6
15682 else $as_nop
15683 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15684 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 #include <pthread.h>
15688 int
15689 main (void)
15690 {
15691 int attr = $ax_pthread_attr; return attr /* ; */
15692 ;
15693 return 0;
15694 }
15695 _ACEOF
15696 if ac_fn_c_try_link "$LINENO"
15697 then :
15698 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
15699 fi
15700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15701 conftest$ac_exeext conftest.$ac_ext
15702 done
15703
15704 fi
15705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
15706 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
15707 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
15708 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
15709 test "x$ax_pthread_joinable_attr_defined" != "xyes"
15710 then :
15711
15712 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
15713
15714 ax_pthread_joinable_attr_defined=yes
15715
15716 fi
15717
15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
15719 printf %s "checking whether more special flags are required for pthreads... " >&6; }
15720 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
15721 then :
15722 printf %s "(cached) " >&6
15723 else $as_nop
15724 ax_cv_PTHREAD_SPECIAL_FLAGS=no
15725 case $host_os in
15726 solaris*)
15727 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
15728 ;;
15729 esac
15730
15731 fi
15732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
15733 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
15734 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
15735 test "x$ax_pthread_special_flags_added" != "xyes"
15736 then :
15737 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
15738 ax_pthread_special_flags_added=yes
15739 fi
15740
15741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15742 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15743 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
15744 then :
15745 printf %s "(cached) " >&6
15746 else $as_nop
15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
15749 #include <pthread.h>
15750 int
15751 main (void)
15752 {
15753 int i = PTHREAD_PRIO_INHERIT;
15754 return i;
15755 ;
15756 return 0;
15757 }
15758 _ACEOF
15759 if ac_fn_c_try_link "$LINENO"
15760 then :
15761 ax_cv_PTHREAD_PRIO_INHERIT=yes
15762 else $as_nop
15763 ax_cv_PTHREAD_PRIO_INHERIT=no
15764 fi
15765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15766 conftest$ac_exeext conftest.$ac_ext
15767
15768 fi
15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15770 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15771 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
15772 test "x$ax_pthread_prio_inherit_defined" != "xyes"
15773 then :
15774
15775 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15776
15777 ax_pthread_prio_inherit_defined=yes
15778
15779 fi
15780
15781 CFLAGS="$ax_pthread_save_CFLAGS"
15782 LIBS="$ax_pthread_save_LIBS"
15783
15784 # More AIX lossage: compile with *_r variant
15785 if test "x$GCC" != "xyes"; then
15786 case $host_os in
15787 aix*)
15788 case "x/$CC" in #(
15789 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
15790 #handle absolute path differently from PATH based program lookup
15791 case "x$CC" in #(
15792 x/*) :
15793
15794 if as_fn_executable_p ${CC}_r
15795 then :
15796 PTHREAD_CC="${CC}_r"
15797 fi
15798 if test "x${CXX}" != "x"
15799 then :
15800 if as_fn_executable_p ${CXX}_r
15801 then :
15802 PTHREAD_CXX="${CXX}_r"
15803 fi
15804 fi
15805 ;; #(
15806 *) :
15807
15808 for ac_prog in ${CC}_r
15809 do
15810 # Extract the first word of "$ac_prog", so it can be a program name with args.
15811 set dummy $ac_prog; ac_word=$2
15812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15813 printf %s "checking for $ac_word... " >&6; }
15814 if test ${ac_cv_prog_PTHREAD_CC+y}
15815 then :
15816 printf %s "(cached) " >&6
15817 else $as_nop
15818 if test -n "$PTHREAD_CC"; then
15819 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15820 else
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $PATH
15823 do
15824 IFS=$as_save_IFS
15825 case $as_dir in #(((
15826 '') as_dir=./ ;;
15827 */) ;;
15828 *) as_dir=$as_dir/ ;;
15829 esac
15830 for ac_exec_ext in '' $ac_executable_extensions; do
15831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15832 ac_cv_prog_PTHREAD_CC="$ac_prog"
15833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15834 break 2
15835 fi
15836 done
15837 done
15838 IFS=$as_save_IFS
15839
15840 fi
15841 fi
15842 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15843 if test -n "$PTHREAD_CC"; then
15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15845 printf "%s\n" "$PTHREAD_CC" >&6; }
15846 else
15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848 printf "%s\n" "no" >&6; }
15849 fi
15850
15851
15852 test -n "$PTHREAD_CC" && break
15853 done
15854 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15855
15856 if test "x${CXX}" != "x"
15857 then :
15858 for ac_prog in ${CXX}_r
15859 do
15860 # Extract the first word of "$ac_prog", so it can be a program name with args.
15861 set dummy $ac_prog; ac_word=$2
15862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15863 printf %s "checking for $ac_word... " >&6; }
15864 if test ${ac_cv_prog_PTHREAD_CXX+y}
15865 then :
15866 printf %s "(cached) " >&6
15867 else $as_nop
15868 if test -n "$PTHREAD_CXX"; then
15869 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
15870 else
15871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in $PATH
15873 do
15874 IFS=$as_save_IFS
15875 case $as_dir in #(((
15876 '') as_dir=./ ;;
15877 */) ;;
15878 *) as_dir=$as_dir/ ;;
15879 esac
15880 for ac_exec_ext in '' $ac_executable_extensions; do
15881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15882 ac_cv_prog_PTHREAD_CXX="$ac_prog"
15883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15884 break 2
15885 fi
15886 done
15887 done
15888 IFS=$as_save_IFS
15889
15890 fi
15891 fi
15892 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
15893 if test -n "$PTHREAD_CXX"; then
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
15895 printf "%s\n" "$PTHREAD_CXX" >&6; }
15896 else
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898 printf "%s\n" "no" >&6; }
15899 fi
15900
15901
15902 test -n "$PTHREAD_CXX" && break
15903 done
15904 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
15905
15906 fi
15907
15908 ;;
15909 esac
15910 ;; #(
15911 *) :
15912 ;;
15913 esac
15914 ;;
15915 esac
15916 fi
15917 fi
15918
15919 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
15920 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
15921
15922
15923
15924
15925
15926
15927 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15928 if test "x$ax_pthread_ok" = "xyes"; then
15929
15930 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
15931
15932 :
15933 else
15934 ax_pthread_ok=no
15935
15936 fi
15937 ac_ext=c
15938 ac_cpp='$CPP $CPPFLAGS'
15939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15942
15943
15944 if test "$ax_pthread_ok" = yes; then
15945 CC="$PTHREAD_CC"
15946 CXX="$PTHREAD_CXX"
15947 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15948 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
15949 LIBS="$LIBS $PTHREAD_LIBS"
15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5
15951 printf %s "checking for pthread_rwlock_t... " >&6; }
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954
15955 #include <pthread.h>
15956
15957 int
15958 main (void)
15959 {
15960
15961 pthread_rwlock_t lock; (void) lock;
15962
15963 ;
15964 return 0;
15965 }
15966 _ACEOF
15967 if ac_fn_c_try_compile "$LINENO"
15968 then :
15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15970 printf "%s\n" "yes" >&6; }
15971 mpfr_pthread_ok=yes
15972 else $as_nop
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974 printf "%s\n" "no" >&6; }
15975 mpfr_pthread_ok=no
15976 fi
15977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15978 else
15979 mpfr_pthread_ok=no
15980 fi
15981 fi
15982
15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if shared cache can be supported" >&5
15984 printf %s "checking if shared cache can be supported... " >&6; }
15985 if test "$mpfr_c11_thread_ok" = yes; then
15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with ISO C11 threads" >&5
15987 printf "%s\n" "yes, with ISO C11 threads" >&6; }
15988 elif test "$mpfr_pthread_ok" = yes; then
15989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with pthread" >&5
15990 printf "%s\n" "yes, with pthread" >&6; }
15991 else
15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15993 printf "%s\n" "no" >&6; }
15994 as_fn_error $? "shared cache needs C11 threads or pthread support" "$LINENO" 5
15995 fi
15996
15997 fi
15998
15999
16000 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
16001 if test "x$ac_cv_header_limits_h" = xyes
16002 then :
16003
16004 else $as_nop
16005 as_fn_error $? "limits.h not found" "$LINENO" 5
16006 fi
16007
16008 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
16009 if test "x$ac_cv_header_float_h" = xyes
16010 then :
16011
16012 else $as_nop
16013 as_fn_error $? "float.h not found" "$LINENO" 5
16014 fi
16015
16016 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
16017 if test "x$ac_cv_header_string_h" = xyes
16018 then :
16019
16020 else $as_nop
16021 as_fn_error $? "string.h not found" "$LINENO" 5
16022 fi
16023
16024
16025 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16026 if test "x$ac_cv_header_locale_h" = xyes
16027 then :
16028 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
16029
16030 fi
16031
16032
16033 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
16034 if test "x$ac_cv_header_wchar_h" = xyes
16035 then :
16036 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
16037
16038 fi
16039
16040
16041 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
16042 if test "x$ac_cv_header_stdarg_h" = xyes
16043 then :
16044
16045 printf "%s\n" "#define HAVE_STDARG 1" >>confdefs.h
16046
16047 else $as_nop
16048 ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
16049 if test "x$ac_cv_header_varargs_h" = xyes
16050 then :
16051
16052 else $as_nop
16053 as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5
16054 fi
16055
16056 fi
16057
16058
16059 ac_fn_c_check_header_compile "$LINENO" "sys/fpu.h" "ac_cv_header_sys_fpu_h" "$ac_includes_default"
16060 if test "x$ac_cv_header_sys_fpu_h" = xyes
16061 then :
16062 printf "%s\n" "#define HAVE_SYS_FPU_H 1" >>confdefs.h
16063
16064 fi
16065
16066
16067 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
16068 "
16069 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
16070 then :
16071
16072 printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h
16073
16074
16075 fi
16076 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
16077 "
16078 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes
16079 then :
16080
16081 printf "%s\n" "#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1" >>confdefs.h
16082
16083
16084 fi
16085
16086
16087 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16088 # for constant arguments. Useless!
16089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16090 printf %s "checking for working alloca.h... " >&6; }
16091 if test ${ac_cv_working_alloca_h+y}
16092 then :
16093 printf %s "(cached) " >&6
16094 else $as_nop
16095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16096 /* end confdefs.h. */
16097 #include <alloca.h>
16098 int
16099 main (void)
16100 {
16101 char *p = (char *) alloca (2 * sizeof (int));
16102 if (p) return 0;
16103 ;
16104 return 0;
16105 }
16106 _ACEOF
16107 if ac_fn_c_try_link "$LINENO"
16108 then :
16109 ac_cv_working_alloca_h=yes
16110 else $as_nop
16111 ac_cv_working_alloca_h=no
16112 fi
16113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16114 conftest$ac_exeext conftest.$ac_ext
16115 fi
16116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16117 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
16118 if test $ac_cv_working_alloca_h = yes; then
16119
16120 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
16121
16122 fi
16123
16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16125 printf %s "checking for alloca... " >&6; }
16126 if test ${ac_cv_func_alloca_works+y}
16127 then :
16128 printf %s "(cached) " >&6
16129 else $as_nop
16130 if test $ac_cv_working_alloca_h = yes; then
16131 ac_cv_func_alloca_works=yes
16132 else
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h. */
16135 #include <stdlib.h>
16136 #include <stddef.h>
16137 #ifndef alloca
16138 # ifdef __GNUC__
16139 # define alloca __builtin_alloca
16140 # elif defined _MSC_VER
16141 # include <malloc.h>
16142 # define alloca _alloca
16143 # else
16144 # ifdef __cplusplus
16145 extern "C"
16146 # endif
16147 void *alloca (size_t);
16148 # endif
16149 #endif
16150
16151 int
16152 main (void)
16153 {
16154 char *p = (char *) alloca (1);
16155 if (p) return 0;
16156 ;
16157 return 0;
16158 }
16159 _ACEOF
16160 if ac_fn_c_try_link "$LINENO"
16161 then :
16162 ac_cv_func_alloca_works=yes
16163 else $as_nop
16164 ac_cv_func_alloca_works=no
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16167 conftest$ac_exeext conftest.$ac_ext
16168 fi
16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16170 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
16171 fi
16172
16173 if test $ac_cv_func_alloca_works = yes; then
16174
16175 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16176
16177 else
16178 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16179 # that cause trouble. Some versions do not even contain alloca or
16180 # contain a buggy version. If you still want to use their alloca,
16181 # use ar to extract alloca.o from them instead of compiling alloca.c.
16182
16183 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16184
16185 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
16186
16187
16188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16189 printf %s "checking stack direction for C alloca... " >&6; }
16190 if test ${ac_cv_c_stack_direction+y}
16191 then :
16192 printf %s "(cached) " >&6
16193 else $as_nop
16194 if test "$cross_compiling" = yes
16195 then :
16196 ac_cv_c_stack_direction=0
16197 else $as_nop
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16200 $ac_includes_default
16201 int
16202 find_stack_direction (int *addr, int depth)
16203 {
16204 int dir, dummy = 0;
16205 if (! addr)
16206 addr = &dummy;
16207 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16208 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16209 return dir + dummy;
16210 }
16211
16212 int
16213 main (int argc, char **argv)
16214 {
16215 return find_stack_direction (0, argc + !argv + 20) < 0;
16216 }
16217 _ACEOF
16218 if ac_fn_c_try_run "$LINENO"
16219 then :
16220 ac_cv_c_stack_direction=1
16221 else $as_nop
16222 ac_cv_c_stack_direction=-1
16223 fi
16224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16225 conftest.$ac_objext conftest.beam conftest.$ac_ext
16226 fi
16227
16228 fi
16229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16230 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
16231 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
16232
16233
16234 fi
16235
16236
16237
16238 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16239 if test "x$ac_cv_type_uintptr_t" = xyes
16240 then :
16241
16242 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
16243
16244 else $as_nop
16245 for ac_type in 'unsigned int' 'unsigned long int' \
16246 'unsigned long long int'; do
16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 $ac_includes_default
16250 int
16251 main (void)
16252 {
16253 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16254 test_array [0] = 0;
16255 return test_array [0];
16256
16257 ;
16258 return 0;
16259 }
16260 _ACEOF
16261 if ac_fn_c_try_compile "$LINENO"
16262 then :
16263
16264 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
16265
16266 ac_type=
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16269 test -z "$ac_type" && break
16270 done
16271 fi
16272
16273
16274
16275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
16276 printf %s "checking how to copy va_list... " >&6; }
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279
16280 #include <stdarg.h>
16281
16282 int
16283 main (void)
16284 {
16285
16286 va_list ap1, ap2;
16287 va_copy(ap1, ap2);
16288
16289 ;
16290 return 0;
16291 }
16292 _ACEOF
16293 if ac_fn_c_try_link "$LINENO"
16294 then :
16295
16296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
16297 printf "%s\n" "va_copy" >&6; }
16298 printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h
16299
16300
16301 else $as_nop
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304
16305 #include <stdarg.h>
16306
16307 int
16308 main (void)
16309 {
16310
16311 va_list ap1, ap2;
16312 __va_copy(ap1, ap2);
16313
16314 ;
16315 return 0;
16316 }
16317 _ACEOF
16318 if ac_fn_c_try_link "$LINENO"
16319 then :
16320 printf "%s\n" "#define HAVE___VA_COPY 1" >>confdefs.h
16321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
16322 printf "%s\n" "__va_copy" >&6; }
16323 else $as_nop
16324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
16325 printf "%s\n" "memcpy" >&6; }
16326 fi
16327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16328 conftest$ac_exeext conftest.$ac_ext
16329 fi
16330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16331 conftest$ac_exeext conftest.$ac_ext
16332
16333 saved_CFLAGS="$CFLAGS"
16334 CFLAGS=`echo " $CFLAGS" | $SED 's/ -Werror[^ ]*//g'`
16335 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
16336 if test "x$ac_cv_func_setlocale" = xyes
16337 then :
16338 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
16339
16340 fi
16341 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16342 if test "x$ac_cv_func_gettimeofday" = xyes
16343 then :
16344 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16345
16346 fi
16347 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
16348 if test "x$ac_cv_func_signal" = xyes
16349 then :
16350 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
16351
16352 fi
16353
16354 CFLAGS="$saved_CFLAGS"
16355
16356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigaction and its associated structure" >&5
16357 printf %s "checking for sigaction and its associated structure... " >&6; }
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16360
16361 #include <signal.h>
16362 static int f (int (*func)(int, const struct sigaction *, struct sigaction *))
16363 { return 0; }
16364
16365 int
16366 main (void)
16367 {
16368
16369 return f(sigaction);
16370
16371 ;
16372 return 0;
16373 }
16374 _ACEOF
16375 if ac_fn_c_try_link "$LINENO"
16376 then :
16377
16378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16379 printf "%s\n" "yes" >&6; }
16380
16381 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
16382
16383
16384 else $as_nop
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16386 printf "%s\n" "no" >&6; }
16387 fi
16388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16389 conftest$ac_exeext conftest.$ac_ext
16390
16391 ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
16392 if test "x$ac_cv_type_long_long_int" = xyes
16393 then :
16394
16395 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
16396
16397 fi
16398
16399
16400 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16401 if test "x$ac_cv_type_intmax_t" = xyes
16402 then :
16403
16404 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
16405
16406
16407 fi
16408
16409 if test "$ac_cv_type_intmax_t" = yes; then
16410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5
16411 printf %s "checking for working INTMAX_MAX... " >&6; }
16412 if test ${mpfr_cv_have_intmax_max+y}
16413 then :
16414 printf %s "(cached) " >&6
16415 else $as_nop
16416
16417 saved_CPPFLAGS="$CPPFLAGS"
16418 CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H"
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16421 #include "mpfr-intmax.h"
16422 int
16423 main (void)
16424 {
16425 intmax_t x = INTMAX_MAX; (void) x;
16426
16427 ;
16428 return 0;
16429 }
16430 _ACEOF
16431 if ac_fn_c_try_compile "$LINENO"
16432 then :
16433 mpfr_cv_have_intmax_max=yes
16434 else $as_nop
16435 mpfr_cv_have_intmax_max=no
16436 fi
16437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16438 CPPFLAGS="$saved_CPPFLAGS"
16439
16440 fi
16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5
16442 printf "%s\n" "$mpfr_cv_have_intmax_max" >&6; }
16443 if test "$mpfr_cv_have_intmax_max" = "yes"; then
16444
16445 printf "%s\n" "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h
16446
16447 fi
16448 fi
16449
16450 ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
16451 #if HAVE_SYS_FPU_H
16452 # include <sys/fpu.h>
16453 #endif
16454
16455 "
16456 if test "x$ac_cv_type_union_fpc_csr" = xyes
16457 then :
16458
16459 printf "%s\n" "#define HAVE_FPC_CSR 1" >>confdefs.h
16460
16461 fi
16462
16463
16464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Noreturn" >&5
16465 printf %s "checking for _Noreturn... " >&6; }
16466 if test ${mpfr_cv_have_noreturn+y}
16467 then :
16468 printf %s "(cached) " >&6
16469 else $as_nop
16470
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473 _Noreturn void foo(int);
16474 _ACEOF
16475 if ac_fn_c_try_compile "$LINENO"
16476 then :
16477 mpfr_cv_have_noreturn=yes
16478 else $as_nop
16479 mpfr_cv_have_noreturn=no
16480 fi
16481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16482
16483 fi
16484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_noreturn" >&5
16485 printf "%s\n" "$mpfr_cv_have_noreturn" >&6; }
16486 if test "$mpfr_cv_have_noreturn" = "yes"; then
16487
16488 printf "%s\n" "#define MPFR_HAVE_NORETURN 1" >>confdefs.h
16489
16490 fi
16491
16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
16493 printf %s "checking for __builtin_unreachable... " >&6; }
16494 if test ${mpfr_cv_have_builtin_unreachable+y}
16495 then :
16496 printf %s "(cached) " >&6
16497 else $as_nop
16498
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501 int x;
16502 int
16503 main (void)
16504 {
16505 if (x) __builtin_unreachable();
16506
16507 ;
16508 return 0;
16509 }
16510 _ACEOF
16511 if ac_fn_c_try_link "$LINENO"
16512 then :
16513 mpfr_cv_have_builtin_unreachable=yes
16514 else $as_nop
16515 mpfr_cv_have_builtin_unreachable=no
16516 fi
16517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16518 conftest$ac_exeext conftest.$ac_ext
16519
16520 fi
16521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_builtin_unreachable" >&5
16522 printf "%s\n" "$mpfr_cv_have_builtin_unreachable" >&6; }
16523 if test "$mpfr_cv_have_builtin_unreachable" = "yes"; then
16524
16525 printf "%s\n" "#define MPFR_HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h
16526
16527 fi
16528
16529
16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for constructor and destructor attributes" >&5
16531 printf %s "checking for constructor and destructor attributes... " >&6; }
16532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533 /* end confdefs.h. */
16534
16535 #include <stdlib.h>
16536 int x = 0;
16537 __attribute__((constructor)) static void
16538 call_f(void) { x = 1742; }
16539 __attribute__((destructor)) static void
16540 call_g(void) { x = 1448; }
16541
16542 int
16543 main (void)
16544 {
16545
16546 return (x == 1742) ? 0 : 1;
16547
16548 ;
16549 return 0;
16550 }
16551 _ACEOF
16552 if ac_fn_c_try_link "$LINENO"
16553 then :
16554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16555 printf "%s\n" "yes" >&6; }
16556 mpfr_have_constructor_destructor_attributes=yes
16557 else $as_nop
16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16559 printf "%s\n" "no" >&6; }
16560
16561 fi
16562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16563 conftest$ac_exeext conftest.$ac_ext
16564
16565 if test "$mpfr_have_constructor_destructor_attributes" = "yes"; then
16566
16567 printf "%s\n" "#define MPFR_HAVE_CONSTRUCTOR_ATTR 1" >>confdefs.h
16568
16569 fi
16570
16571
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
16573 printf %s "checking for fesetround... " >&6; }
16574 if test ${mpfr_cv_have_fesetround+y}
16575 then :
16576 printf %s "(cached) " >&6
16577 else $as_nop
16578
16579 saved_LIBS="$LIBS"
16580 LIBS="$LIBS $MPFR_LIBM"
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16583 #include <fenv.h>
16584 int
16585 main (void)
16586 {
16587 fesetround(FE_TONEAREST);
16588 ;
16589 return 0;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_link "$LINENO"
16593 then :
16594 mpfr_cv_have_fesetround=yes
16595 else $as_nop
16596 mpfr_cv_have_fesetround=no
16597 fi
16598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS="$saved_LIBS"
16601
16602 fi
16603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
16604 printf "%s\n" "$mpfr_cv_have_fesetround" >&6; }
16605 if test "$mpfr_cv_have_fesetround" = "yes"; then
16606
16607 printf "%s\n" "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
16608
16609 fi
16610
16611 if test -n "$GCC"; then
16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
16613 printf %s "checking for gcc float-conversion bug... " >&6; }
16614 if test ${mpfr_cv_gcc_floatconv_bug+y}
16615 then :
16616 printf %s "(cached) " >&6
16617 else $as_nop
16618
16619 saved_LIBS="$LIBS"
16620 LIBS="$LIBS $MPFR_LIBM"
16621 if test "$cross_compiling" = yes
16622 then :
16623 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
16624 else $as_nop
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16627
16628 #include <float.h>
16629 #ifdef MPFR_HAVE_FESETROUND
16630 #include <fenv.h>
16631 #endif
16632 static double get_max (void);
16633 int main (void) {
16634 double x = 0.5;
16635 double y;
16636 int i;
16637 for (i = 1; i <= 11; i++)
16638 x *= x;
16639 if (x != 0)
16640 return 1;
16641 #ifdef MPFR_HAVE_FESETROUND
16642 /* Useful test for the G4 PowerPC */
16643 fesetround(FE_TOWARDZERO);
16644 x = y = get_max ();
16645 x *= 2.0;
16646 if (x != y)
16647 return 1;
16648 #endif
16649 return 0;
16650 }
16651 static double get_max (void) { static volatile double d = DBL_MAX; return d; }
16652
16653 _ACEOF
16654 if ac_fn_c_try_run "$LINENO"
16655 then :
16656 mpfr_cv_gcc_floatconv_bug="no"
16657 else $as_nop
16658 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
16659 fi
16660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16661 conftest.$ac_objext conftest.beam conftest.$ac_ext
16662 fi
16663
16664 LIBS="$saved_LIBS"
16665
16666 fi
16667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
16668 printf "%s\n" "$mpfr_cv_gcc_floatconv_bug" >&6; }
16669 if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
16670 CFLAGS="$CFLAGS -ffloat-store"
16671 fi
16672 fi
16673
16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for subnormal double-precision numbers" >&5
16675 printf %s "checking for subnormal double-precision numbers... " >&6; }
16676 if test ${mpfr_cv_have_subnorm_dbl+y}
16677 then :
16678 printf %s "(cached) " >&6
16679 else $as_nop
16680
16681 if test "$cross_compiling" = yes
16682 then :
16683 mpfr_cv_have_subnorm_dbl="cannot test, assume no"
16684 else $as_nop
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16687
16688 #include <stdio.h>
16689 int main (void) {
16690 volatile double x = 2.22507385850720138309e-308, y;
16691 y = x / 2.0;
16692 fprintf (stderr, "%e\n", y);
16693 return 2.0 * y != x;
16694 }
16695
16696 _ACEOF
16697 if ac_fn_c_try_run "$LINENO"
16698 then :
16699 mpfr_cv_have_subnorm_dbl="yes"
16700 else $as_nop
16701 mpfr_cv_have_subnorm_dbl="no"
16702 fi
16703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16704 conftest.$ac_objext conftest.beam conftest.$ac_ext
16705 fi
16706
16707
16708 fi
16709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_dbl" >&5
16710 printf "%s\n" "$mpfr_cv_have_subnorm_dbl" >&6; }
16711 if test "$mpfr_cv_have_subnorm_dbl" = "yes"; then
16712
16713 printf "%s\n" "#define HAVE_SUBNORM_DBL 1" >>confdefs.h
16714
16715 fi
16716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for subnormal single-precision numbers" >&5
16717 printf %s "checking for subnormal single-precision numbers... " >&6; }
16718 if test ${mpfr_cv_have_subnorm_flt+y}
16719 then :
16720 printf %s "(cached) " >&6
16721 else $as_nop
16722
16723 if test "$cross_compiling" = yes
16724 then :
16725 mpfr_cv_have_subnorm_flt="cannot test, assume no"
16726 else $as_nop
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16729
16730 #include <stdio.h>
16731 int main (void) {
16732 volatile float x = 1.17549435082229e-38, y;
16733 y = x / 2.0f;
16734 fprintf (stderr, "%e\n", (double) y);
16735 return 2.0f * y != x;
16736 }
16737
16738 _ACEOF
16739 if ac_fn_c_try_run "$LINENO"
16740 then :
16741 mpfr_cv_have_subnorm_flt="yes"
16742 else $as_nop
16743 mpfr_cv_have_subnorm_flt="no"
16744 fi
16745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16746 conftest.$ac_objext conftest.beam conftest.$ac_ext
16747 fi
16748
16749
16750 fi
16751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_flt" >&5
16752 printf "%s\n" "$mpfr_cv_have_subnorm_flt" >&6; }
16753 if test "$mpfr_cv_have_subnorm_flt" = "yes"; then
16754
16755 printf "%s\n" "#define HAVE_SUBNORM_FLT 1" >>confdefs.h
16756
16757 fi
16758
16759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signed zeros" >&5
16760 printf %s "checking for signed zeros... " >&6; }
16761 if test ${mpfr_cv_have_signedz+y}
16762 then :
16763 printf %s "(cached) " >&6
16764 else $as_nop
16765
16766 if test "$cross_compiling" = yes
16767 then :
16768 mpfr_cv_have_signedz="cannot test, assume no"
16769 else $as_nop
16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h. */
16772
16773 int main (void) {
16774 return 1.0 / 0.0 == 1.0 / -0.0;
16775 }
16776
16777 _ACEOF
16778 if ac_fn_c_try_run "$LINENO"
16779 then :
16780 mpfr_cv_have_signedz="yes"
16781 else $as_nop
16782 mpfr_cv_have_signedz="no"
16783 fi
16784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16785 conftest.$ac_objext conftest.beam conftest.$ac_ext
16786 fi
16787
16788
16789 fi
16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_signedz" >&5
16791 printf "%s\n" "$mpfr_cv_have_signedz" >&6; }
16792 if test "$mpfr_cv_have_signedz" = "yes"; then
16793
16794 printf "%s\n" "#define HAVE_SIGNEDZ 1" >>confdefs.h
16795
16796 fi
16797
16798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5
16799 printf %s "checking if the FP division by 0 fails... " >&6; }
16800 if test ${mpfr_cv_errdivzero+y}
16801 then :
16802 printf %s "(cached) " >&6
16803 else $as_nop
16804
16805 if test "$cross_compiling" = yes
16806 then :
16807 mpfr_cv_errdivzero="cannot test, assume no"
16808 else $as_nop
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811
16812 int main (void) {
16813 volatile double d = 0.0, x;
16814 x = 0.0 / d;
16815 x = 1.0 / d;
16816 (void) x;
16817 return 0;
16818 }
16819
16820 _ACEOF
16821 if ac_fn_c_try_run "$LINENO"
16822 then :
16823 mpfr_cv_errdivzero="no"
16824 else $as_nop
16825 mpfr_cv_errdivzero="yes"
16826 fi
16827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16828 conftest.$ac_objext conftest.beam conftest.$ac_ext
16829 fi
16830
16831
16832 fi
16833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5
16834 printf "%s\n" "$mpfr_cv_errdivzero" >&6; }
16835 if test "$mpfr_cv_errdivzero" = "yes"; then
16836
16837 printf "%s\n" "#define MPFR_ERRDIVZERO 1" >>confdefs.h
16838
16839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5
16840 printf "%s\n" "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;}
16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5
16842 printf "%s\n" "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;}
16843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5
16844 printf "%s\n" "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;}
16845 fi
16846
16847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
16848 printf %s "checking if NAN == NAN... " >&6; }
16849 if test ${mpfr_cv_nanisnan+y}
16850 then :
16851 printf %s "(cached) " >&6
16852 else $as_nop
16853
16854 if test "$cross_compiling" = yes
16855 then :
16856 mpfr_cv_nanisnan="cannot test, assume no"
16857 else $as_nop
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16860
16861 #include <stdio.h>
16862 #include <math.h>
16863 #ifndef NAN
16864 # define NAN (0.0/0.0)
16865 #endif
16866 int main (void) {
16867 double d;
16868 d = NAN;
16869 return d != d;
16870 }
16871
16872 _ACEOF
16873 if ac_fn_c_try_run "$LINENO"
16874 then :
16875 mpfr_cv_nanisnan="yes"
16876 else $as_nop
16877 mpfr_cv_nanisnan="no"
16878 fi
16879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16880 conftest.$ac_objext conftest.beam conftest.$ac_ext
16881 fi
16882
16883
16884 fi
16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
16886 printf "%s\n" "$mpfr_cv_nanisnan" >&6; }
16887 if test "$mpfr_cv_nanisnan" = "yes"; then
16888
16889 printf "%s\n" "#define MPFR_NANISNAN 1" >>confdefs.h
16890
16891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
16892 printf "%s\n" "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
16893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
16894 printf "%s\n" "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
16896 printf "%s\n" "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used. You" >&5
16898 printf "%s\n" "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;}
16899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
16900 printf "%s\n" "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
16902 printf "%s\n" "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
16904 printf "%s\n" "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
16906 printf "%s\n" "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
16907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
16908 printf "%s\n" "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
16910 printf "%s\n" "$as_me: WARNING: platform and/or document the behavior." >&2;}
16911 fi
16912
16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
16914 printf %s "checking if charset has consecutive values... " >&6; }
16915 if test "$cross_compiling" = yes
16916 then :
16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
16918 printf "%s\n" "cannot test" >&6; }
16919 else $as_nop
16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16921 /* end confdefs.h. */
16922
16923 const char *number = "0123456789";
16924 const char *lower = "abcdefghijklmnopqrstuvwxyz";
16925 const char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
16926
16927 int
16928 main (void)
16929 {
16930
16931 int i;
16932 unsigned char *p;
16933 for (p = (unsigned char*) number, i = 0; i < 9; i++)
16934 if ( (*p)+1 != *(p+1) ) return 1;
16935 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
16936 if ( (*p)+1 != *(p+1) ) return 1;
16937 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
16938 if ( (*p)+1 != *(p+1) ) return 1;
16939
16940 ;
16941 return 0;
16942 }
16943 _ACEOF
16944 if ac_fn_c_try_run "$LINENO"
16945 then :
16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16947 printf "%s\n" "yes" >&6; }
16948 else $as_nop
16949
16950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16951 printf "%s\n" "no" >&6; }
16952
16953 printf "%s\n" "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
16954
16955
16956 fi
16957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16958 conftest.$ac_objext conftest.beam conftest.$ac_ext
16959 fi
16960
16961
16962 saved_LIBS="$LIBS"
16963 LIBS="$LIBS $MPFR_LIBM"
16964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5
16965 printf %s "checking for math/round... " >&6; }
16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16968
16969 #include <math.h>
16970 static int f (double (*func)(double)) { return 0; }
16971
16972 int
16973 main (void)
16974 {
16975
16976 return f(round);
16977
16978 ;
16979 return 0;
16980 }
16981 _ACEOF
16982 if ac_fn_c_try_link "$LINENO"
16983 then :
16984
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16986 printf "%s\n" "yes" >&6; }
16987
16988 printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
16989
16990
16991 else $as_nop
16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16993 printf "%s\n" "no" >&6; }
16994 fi
16995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16996 conftest$ac_exeext conftest.$ac_ext
16997
16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5
16999 printf %s "checking for math/trunc... " >&6; }
17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17002
17003 #include <math.h>
17004 static int f (double (*func)(double)) { return 0; }
17005
17006 int
17007 main (void)
17008 {
17009
17010 return f(trunc);
17011
17012 ;
17013 return 0;
17014 }
17015 _ACEOF
17016 if ac_fn_c_try_link "$LINENO"
17017 then :
17018
17019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17020 printf "%s\n" "yes" >&6; }
17021
17022 printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
17023
17024
17025 else $as_nop
17026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17027 printf "%s\n" "no" >&6; }
17028 fi
17029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17030 conftest$ac_exeext conftest.$ac_ext
17031
17032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5
17033 printf %s "checking for math/floor... " >&6; }
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17036
17037 #include <math.h>
17038 static int f (double (*func)(double)) { return 0; }
17039
17040 int
17041 main (void)
17042 {
17043
17044 return f(floor);
17045
17046 ;
17047 return 0;
17048 }
17049 _ACEOF
17050 if ac_fn_c_try_link "$LINENO"
17051 then :
17052
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17054 printf "%s\n" "yes" >&6; }
17055
17056 printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
17057
17058
17059 else $as_nop
17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17061 printf "%s\n" "no" >&6; }
17062 fi
17063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17064 conftest$ac_exeext conftest.$ac_ext
17065
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5
17067 printf %s "checking for math/ceil... " >&6; }
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17070
17071 #include <math.h>
17072 static int f (double (*func)(double)) { return 0; }
17073
17074 int
17075 main (void)
17076 {
17077
17078 return f(ceil);
17079
17080 ;
17081 return 0;
17082 }
17083 _ACEOF
17084 if ac_fn_c_try_link "$LINENO"
17085 then :
17086
17087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17088 printf "%s\n" "yes" >&6; }
17089
17090 printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
17091
17092
17093 else $as_nop
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 printf "%s\n" "no" >&6; }
17096 fi
17097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17098 conftest$ac_exeext conftest.$ac_ext
17099
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/nearbyint" >&5
17101 printf %s "checking for math/nearbyint... " >&6; }
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h. */
17104
17105 #include <math.h>
17106 static int f (double (*func)(double)) { return 0; }
17107
17108 int
17109 main (void)
17110 {
17111
17112 return f(nearbyint);
17113
17114 ;
17115 return 0;
17116 }
17117 _ACEOF
17118 if ac_fn_c_try_link "$LINENO"
17119 then :
17120
17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17122 printf "%s\n" "yes" >&6; }
17123
17124 printf "%s\n" "#define HAVE_NEARBYINT 1" >>confdefs.h
17125
17126
17127 else $as_nop
17128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17129 printf "%s\n" "no" >&6; }
17130 fi
17131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17132 conftest$ac_exeext conftest.$ac_ext
17133
17134 LIBS="$saved_LIBS"
17135
17136
17137
17138
17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`double'" >&5
17140 printf %s "checking format of floating-point type \`double'... " >&6; }
17141 if test ${mpfr_cv_c_double_format+y}
17142 then :
17143 printf %s "(cached) " >&6
17144 else $as_nop
17145 mpfr_cv_c_double_format=unknown
17146 cat >conftest.c <<\EOF
17147
17148 #include <stdio.h>
17149 /* "before" is 16 bytes to ensure there's no padding between it and "x".
17150 We're not expecting any type bigger than 16 bytes or with
17151 alignment requirements stricter than 16 bytes. */
17152 typedef struct {
17153 char before[16];
17154 double x;
17155 char after[8];
17156 } foo_t;
17157
17158 foo_t foo = {
17159 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
17160 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
17161 -123456789.0,
17162 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
17163 };
17164
17165 int main (void) {
17166 int i;
17167 for (i = 0; i < 8; i++)
17168 printf ("%d %f\n", foo.before[i] + foo.after[i], foo.x);
17169 return 0;
17170 }
17171
17172 EOF
17173 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1"
17174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
17175 (eval $mpfr_compile) 2>&5
17176 ac_status=$?
17177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17178 test $ac_status = 0; }; then
17179 cat >conftest.awk <<\EOF
17180
17181 BEGIN {
17182 found = 0
17183 }
17184
17185 # got[] holds a sliding window of bytes read the input. got[0] is the most
17186 # recent byte read, and got[31] the oldest byte read, so when looking to
17187 # match some data the indices are "reversed".
17188 #
17189 {
17190 for (f = 2; f <= NF; f++)
17191 {
17192 # new byte, shift others up
17193 for (i = 31; i >= 0; i--)
17194 got[i+1] = got[i];
17195 got[0] = $f;
17196
17197 # end sequence
17198 if (got[7] != "376") continue
17199 if (got[6] != "334") continue
17200 if (got[5] != "272") continue
17201 if (got[4] != "230") continue
17202 if (got[3] != "166") continue
17203 if (got[2] != "124") continue
17204 if (got[1] != "062") continue
17205 if (got[0] != "020") continue
17206
17207 # start sequence, with 8-byte body
17208 if (got[23] == "001" && \
17209 got[22] == "043" && \
17210 got[21] == "105" && \
17211 got[20] == "147" && \
17212 got[19] == "211" && \
17213 got[18] == "253" && \
17214 got[17] == "315" && \
17215 got[16] == "357")
17216 {
17217 saw = " (" got[15] \
17218 " " got[14] \
17219 " " got[13] \
17220 " " got[12] \
17221 " " got[11] \
17222 " " got[10] \
17223 " " got[9] \
17224 " " got[8] ")"
17225
17226 if (got[15] == "301" && \
17227 got[14] == "235" && \
17228 got[13] == "157" && \
17229 got[12] == "064" && \
17230 got[11] == "124" && \
17231 got[10] == "000" && \
17232 got[9] == "000" && \
17233 got[8] == "000")
17234 {
17235 print "IEEE double, big endian"
17236 found = 1
17237 exit
17238 }
17239
17240 if (got[15] == "000" && \
17241 got[14] == "000" && \
17242 got[13] == "000" && \
17243 got[12] == "124" && \
17244 got[11] == "064" && \
17245 got[10] == "157" && \
17246 got[9] == "235" && \
17247 got[8] == "301")
17248 {
17249 print "IEEE double, little endian"
17250 found = 1
17251 exit
17252 }
17253 }
17254
17255 # start sequence, with 12-byte body
17256 if (got[27] == "001" && \
17257 got[26] == "043" && \
17258 got[25] == "105" && \
17259 got[24] == "147" && \
17260 got[23] == "211" && \
17261 got[22] == "253" && \
17262 got[21] == "315" && \
17263 got[20] == "357")
17264 {
17265 saw = " (" got[19] \
17266 " " got[18] \
17267 " " got[17] \
17268 " " got[16] \
17269 " " got[15] \
17270 " " got[14] \
17271 " " got[13] \
17272 " " got[12] \
17273 " " got[11] \
17274 " " got[10] \
17275 " " got[9] \
17276 " " got[8] ")"
17277
17278 if (got[19] == "000" && \
17279 got[18] == "000" && \
17280 got[17] == "000" && \
17281 got[16] == "000" && \
17282 got[15] == "240" && \
17283 got[14] == "242" && \
17284 got[13] == "171" && \
17285 got[12] == "353" && \
17286 got[11] == "031" && \
17287 got[10] == "300")
17288 {
17289 print "IEEE extended, little endian (12 bytes)"
17290 found = 1
17291 exit
17292 }
17293
17294 if (got[19] == "300" && \
17295 got[18] == "031" && \
17296 got[17] == "000" && \
17297 got[16] == "000" && \
17298 got[15] == "353" && \
17299 got[14] == "171" && \
17300 got[13] == "242" && \
17301 got[12] == "240" && \
17302 got[11] == "000" && \
17303 got[10] == "000" && \
17304 got[09] == "000" && \
17305 got[08] == "000")
17306 {
17307 # format found on m68k
17308 print "IEEE extended, big endian (12 bytes)"
17309 found = 1
17310 exit
17311 }
17312 }
17313
17314 # start sequence, with 16-byte body
17315 if (got[31] == "001" && \
17316 got[30] == "043" && \
17317 got[29] == "105" && \
17318 got[28] == "147" && \
17319 got[27] == "211" && \
17320 got[26] == "253" && \
17321 got[25] == "315" && \
17322 got[24] == "357")
17323 {
17324 saw = " (" got[23] \
17325 " " got[22] \
17326 " " got[21] \
17327 " " got[20] \
17328 " " got[19] \
17329 " " got[18] \
17330 " " got[17] \
17331 " " got[16] \
17332 " " got[15] \
17333 " " got[14] \
17334 " " got[13] \
17335 " " got[12] \
17336 " " got[11] \
17337 " " got[10] \
17338 " " got[9] \
17339 " " got[8] ")"
17340
17341 if (got[23] == "000" && \
17342 got[22] == "000" && \
17343 got[21] == "000" && \
17344 got[20] == "000" && \
17345 got[19] == "240" && \
17346 got[18] == "242" && \
17347 got[17] == "171" && \
17348 got[16] == "353" && \
17349 got[15] == "031" && \
17350 got[14] == "300")
17351 {
17352 print "IEEE extended, little endian (16 bytes)"
17353 found = 1
17354 exit
17355 }
17356
17357 if (got[23] == "300" && \
17358 got[22] == "031" && \
17359 got[21] == "326" && \
17360 got[20] == "363" && \
17361 got[19] == "105" && \
17362 got[18] == "100" && \
17363 got[17] == "000" && \
17364 got[16] == "000" && \
17365 got[15] == "000" && \
17366 got[14] == "000" && \
17367 got[13] == "000" && \
17368 got[12] == "000" && \
17369 got[11] == "000" && \
17370 got[10] == "000" && \
17371 got[9] == "000" && \
17372 got[8] == "000")
17373 {
17374 # format used on HP 9000/785 under HP-UX
17375 print "IEEE quad, big endian"
17376 found = 1
17377 exit
17378 }
17379
17380 if (got[23] == "000" && \
17381 got[22] == "000" && \
17382 got[21] == "000" && \
17383 got[20] == "000" && \
17384 got[19] == "000" && \
17385 got[18] == "000" && \
17386 got[17] == "000" && \
17387 got[16] == "000" && \
17388 got[15] == "000" && \
17389 got[14] == "000" && \
17390 got[13] == "100" && \
17391 got[12] == "105" && \
17392 got[11] == "363" && \
17393 got[10] == "326" && \
17394 got[9] == "031" && \
17395 got[8] == "300")
17396 {
17397 print "IEEE quad, little endian"
17398 found = 1
17399 exit
17400 }
17401
17402 if (got[23] == "301" && \
17403 got[22] == "235" && \
17404 got[21] == "157" && \
17405 got[20] == "064" && \
17406 got[19] == "124" && \
17407 got[18] == "000" && \
17408 got[17] == "000" && \
17409 got[16] == "000" && \
17410 got[15] == "000" && \
17411 got[14] == "000" && \
17412 got[13] == "000" && \
17413 got[12] == "000" && \
17414 got[11] == "000" && \
17415 got[10] == "000" && \
17416 got[9] == "000" && \
17417 got[8] == "000")
17418 {
17419 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
17420 print "possibly double-double, big endian"
17421 found = 1
17422 exit
17423 }
17424
17425 if (got[23] == "000" && \
17426 got[22] == "000" && \
17427 got[21] == "000" && \
17428 got[20] == "124" && \
17429 got[19] == "064" && \
17430 got[18] == "157" && \
17431 got[17] == "235" && \
17432 got[16] == "301" && \
17433 got[15] == "000" && \
17434 got[14] == "000" && \
17435 got[13] == "000" && \
17436 got[12] == "000" && \
17437 got[11] == "000" && \
17438 got[10] == "000" && \
17439 got[9] == "000" && \
17440 got[8] == "000")
17441 {
17442 # format used on ppc64le
17443 print "possibly double-double, little endian"
17444 found = 1
17445 exit
17446 }
17447 }
17448 }
17449 }
17450
17451 END {
17452 if (! found)
17453 print "unknown", saw
17454 }
17455
17456 EOF
17457 mpfr_cv_c_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk`
17458 case $mpfr_cv_c_double_format in
17459 unknown*)
17460 echo "cannot match anything, conftest$EXEEXT contains" >&5
17461 od -b conftest$EXEEXT >&5
17462 ;;
17463 esac
17464 else
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
17466 printf "%s\n" "$as_me: WARNING: oops, cannot compile test program" >&2;}
17467 fi
17468 rm -f conftest*
17469
17470 fi
17471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_double_format" >&5
17472 printf "%s\n" "$mpfr_cv_c_double_format" >&6; }
17473 case $mpfr_cv_c_double_format in
17474 "IEEE double, big endian"*)
17475 printf "%s\n" "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
17476
17477 ;;
17478 "IEEE double, little endian"*)
17479 printf "%s\n" "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
17480
17481 ;;
17482 unknown*)
17483 ;;
17484 *)
17485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&5
17486 printf "%s\n" "$as_me: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&2;}
17487 ;;
17488 esac
17489
17490
17491
17492
17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`long double'" >&5
17494 printf %s "checking format of floating-point type \`long double'... " >&6; }
17495 if test ${mpfr_cv_c_long_double_format+y}
17496 then :
17497 printf %s "(cached) " >&6
17498 else $as_nop
17499 mpfr_cv_c_long_double_format=unknown
17500 cat >conftest.c <<\EOF
17501
17502 #include <stdio.h>
17503 /* "before" is 16 bytes to ensure there's no padding between it and "x".
17504 We're not expecting any type bigger than 16 bytes or with
17505 alignment requirements stricter than 16 bytes. */
17506 typedef struct {
17507 char before[16];
17508 long double x;
17509 char after[8];
17510 } foo_t;
17511
17512 foo_t foo = {
17513 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
17514 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
17515 -123456789.0,
17516 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
17517 };
17518
17519 int main (void) {
17520 int i;
17521 for (i = 0; i < 8; i++)
17522 printf ("%d %Lf\n", foo.before[i] + foo.after[i], foo.x);
17523 return 0;
17524 }
17525
17526 EOF
17527 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1"
17528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
17529 (eval $mpfr_compile) 2>&5
17530 ac_status=$?
17531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17532 test $ac_status = 0; }; then
17533 cat >conftest.awk <<\EOF
17534
17535 BEGIN {
17536 found = 0
17537 }
17538
17539 # got[] holds a sliding window of bytes read the input. got[0] is the most
17540 # recent byte read, and got[31] the oldest byte read, so when looking to
17541 # match some data the indices are "reversed".
17542 #
17543 {
17544 for (f = 2; f <= NF; f++)
17545 {
17546 # new byte, shift others up
17547 for (i = 31; i >= 0; i--)
17548 got[i+1] = got[i];
17549 got[0] = $f;
17550
17551 # end sequence
17552 if (got[7] != "376") continue
17553 if (got[6] != "334") continue
17554 if (got[5] != "272") continue
17555 if (got[4] != "230") continue
17556 if (got[3] != "166") continue
17557 if (got[2] != "124") continue
17558 if (got[1] != "062") continue
17559 if (got[0] != "020") continue
17560
17561 # start sequence, with 8-byte body
17562 if (got[23] == "001" && \
17563 got[22] == "043" && \
17564 got[21] == "105" && \
17565 got[20] == "147" && \
17566 got[19] == "211" && \
17567 got[18] == "253" && \
17568 got[17] == "315" && \
17569 got[16] == "357")
17570 {
17571 saw = " (" got[15] \
17572 " " got[14] \
17573 " " got[13] \
17574 " " got[12] \
17575 " " got[11] \
17576 " " got[10] \
17577 " " got[9] \
17578 " " got[8] ")"
17579
17580 if (got[15] == "301" && \
17581 got[14] == "235" && \
17582 got[13] == "157" && \
17583 got[12] == "064" && \
17584 got[11] == "124" && \
17585 got[10] == "000" && \
17586 got[9] == "000" && \
17587 got[8] == "000")
17588 {
17589 print "IEEE double, big endian"
17590 found = 1
17591 exit
17592 }
17593
17594 if (got[15] == "000" && \
17595 got[14] == "000" && \
17596 got[13] == "000" && \
17597 got[12] == "124" && \
17598 got[11] == "064" && \
17599 got[10] == "157" && \
17600 got[9] == "235" && \
17601 got[8] == "301")
17602 {
17603 print "IEEE double, little endian"
17604 found = 1
17605 exit
17606 }
17607 }
17608
17609 # start sequence, with 12-byte body
17610 if (got[27] == "001" && \
17611 got[26] == "043" && \
17612 got[25] == "105" && \
17613 got[24] == "147" && \
17614 got[23] == "211" && \
17615 got[22] == "253" && \
17616 got[21] == "315" && \
17617 got[20] == "357")
17618 {
17619 saw = " (" got[19] \
17620 " " got[18] \
17621 " " got[17] \
17622 " " got[16] \
17623 " " got[15] \
17624 " " got[14] \
17625 " " got[13] \
17626 " " got[12] \
17627 " " got[11] \
17628 " " got[10] \
17629 " " got[9] \
17630 " " got[8] ")"
17631
17632 if (got[19] == "000" && \
17633 got[18] == "000" && \
17634 got[17] == "000" && \
17635 got[16] == "000" && \
17636 got[15] == "240" && \
17637 got[14] == "242" && \
17638 got[13] == "171" && \
17639 got[12] == "353" && \
17640 got[11] == "031" && \
17641 got[10] == "300")
17642 {
17643 print "IEEE extended, little endian (12 bytes)"
17644 found = 1
17645 exit
17646 }
17647
17648 if (got[19] == "300" && \
17649 got[18] == "031" && \
17650 got[17] == "000" && \
17651 got[16] == "000" && \
17652 got[15] == "353" && \
17653 got[14] == "171" && \
17654 got[13] == "242" && \
17655 got[12] == "240" && \
17656 got[11] == "000" && \
17657 got[10] == "000" && \
17658 got[09] == "000" && \
17659 got[08] == "000")
17660 {
17661 # format found on m68k
17662 print "IEEE extended, big endian (12 bytes)"
17663 found = 1
17664 exit
17665 }
17666 }
17667
17668 # start sequence, with 16-byte body
17669 if (got[31] == "001" && \
17670 got[30] == "043" && \
17671 got[29] == "105" && \
17672 got[28] == "147" && \
17673 got[27] == "211" && \
17674 got[26] == "253" && \
17675 got[25] == "315" && \
17676 got[24] == "357")
17677 {
17678 saw = " (" got[23] \
17679 " " got[22] \
17680 " " got[21] \
17681 " " got[20] \
17682 " " got[19] \
17683 " " got[18] \
17684 " " got[17] \
17685 " " got[16] \
17686 " " got[15] \
17687 " " got[14] \
17688 " " got[13] \
17689 " " got[12] \
17690 " " got[11] \
17691 " " got[10] \
17692 " " got[9] \
17693 " " got[8] ")"
17694
17695 if (got[23] == "000" && \
17696 got[22] == "000" && \
17697 got[21] == "000" && \
17698 got[20] == "000" && \
17699 got[19] == "240" && \
17700 got[18] == "242" && \
17701 got[17] == "171" && \
17702 got[16] == "353" && \
17703 got[15] == "031" && \
17704 got[14] == "300")
17705 {
17706 print "IEEE extended, little endian (16 bytes)"
17707 found = 1
17708 exit
17709 }
17710
17711 if (got[23] == "300" && \
17712 got[22] == "031" && \
17713 got[21] == "326" && \
17714 got[20] == "363" && \
17715 got[19] == "105" && \
17716 got[18] == "100" && \
17717 got[17] == "000" && \
17718 got[16] == "000" && \
17719 got[15] == "000" && \
17720 got[14] == "000" && \
17721 got[13] == "000" && \
17722 got[12] == "000" && \
17723 got[11] == "000" && \
17724 got[10] == "000" && \
17725 got[9] == "000" && \
17726 got[8] == "000")
17727 {
17728 # format used on HP 9000/785 under HP-UX
17729 print "IEEE quad, big endian"
17730 found = 1
17731 exit
17732 }
17733
17734 if (got[23] == "000" && \
17735 got[22] == "000" && \
17736 got[21] == "000" && \
17737 got[20] == "000" && \
17738 got[19] == "000" && \
17739 got[18] == "000" && \
17740 got[17] == "000" && \
17741 got[16] == "000" && \
17742 got[15] == "000" && \
17743 got[14] == "000" && \
17744 got[13] == "100" && \
17745 got[12] == "105" && \
17746 got[11] == "363" && \
17747 got[10] == "326" && \
17748 got[9] == "031" && \
17749 got[8] == "300")
17750 {
17751 print "IEEE quad, little endian"
17752 found = 1
17753 exit
17754 }
17755
17756 if (got[23] == "301" && \
17757 got[22] == "235" && \
17758 got[21] == "157" && \
17759 got[20] == "064" && \
17760 got[19] == "124" && \
17761 got[18] == "000" && \
17762 got[17] == "000" && \
17763 got[16] == "000" && \
17764 got[15] == "000" && \
17765 got[14] == "000" && \
17766 got[13] == "000" && \
17767 got[12] == "000" && \
17768 got[11] == "000" && \
17769 got[10] == "000" && \
17770 got[9] == "000" && \
17771 got[8] == "000")
17772 {
17773 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux)
17774 print "possibly double-double, big endian"
17775 found = 1
17776 exit
17777 }
17778
17779 if (got[23] == "000" && \
17780 got[22] == "000" && \
17781 got[21] == "000" && \
17782 got[20] == "124" && \
17783 got[19] == "064" && \
17784 got[18] == "157" && \
17785 got[17] == "235" && \
17786 got[16] == "301" && \
17787 got[15] == "000" && \
17788 got[14] == "000" && \
17789 got[13] == "000" && \
17790 got[12] == "000" && \
17791 got[11] == "000" && \
17792 got[10] == "000" && \
17793 got[9] == "000" && \
17794 got[8] == "000")
17795 {
17796 # format used on ppc64le
17797 print "possibly double-double, little endian"
17798 found = 1
17799 exit
17800 }
17801 }
17802 }
17803 }
17804
17805 END {
17806 if (! found)
17807 print "unknown", saw
17808 }
17809
17810 EOF
17811 mpfr_cv_c_long_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk`
17812 case $mpfr_cv_c_long_double_format in
17813 unknown*)
17814 echo "cannot match anything, conftest$EXEEXT contains" >&5
17815 od -b conftest$EXEEXT >&5
17816 ;;
17817 esac
17818 else
17819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
17820 printf "%s\n" "$as_me: WARNING: oops, cannot compile test program" >&2;}
17821 fi
17822 rm -f conftest*
17823
17824 fi
17825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
17826 printf "%s\n" "$mpfr_cv_c_long_double_format" >&6; }
17827 case $mpfr_cv_c_long_double_format in
17828 "IEEE double, big endian"*)
17829 printf "%s\n" "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h
17830
17831 ;;
17832 "IEEE double, little endian"*)
17833 printf "%s\n" "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h
17834
17835 ;;
17836 "IEEE extended, little endian"*)
17837 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
17838
17839 ;;
17840 "IEEE extended, big endian"*)
17841 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_EXT_BIG 1" >>confdefs.h
17842
17843 ;;
17844 "IEEE quad, big endian"*)
17845 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
17846
17847 ;;
17848 "IEEE quad, little endian"*)
17849 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h
17850
17851 ;;
17852 "possibly double-double, big endian"*)
17853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
17854 printf "%s\n" "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
17856 printf "%s\n" "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
17857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
17858 printf "%s\n" "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
17859 printf "%s\n" "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h
17860
17861 ;;
17862 "possibly double-double, little endian"*)
17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5
17864 printf "%s\n" "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;}
17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5
17866 printf "%s\n" "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;}
17867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5
17868 printf "%s\n" "$as_me: WARNING: You can safely ignore this warning, though." >&2;}
17869 printf "%s\n" "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h
17870
17871 ;;
17872 unknown*)
17873 ;;
17874 *)
17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&5
17876 printf "%s\n" "$as_me: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&2;}
17877 ;;
17878 esac
17879
17880 if test "$enable_thread_safe" != no; then
17881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support using C11" >&5
17882 printf %s "checking for TLS support using C11... " >&6; }
17883 saved_CPPFLAGS="$CPPFLAGS"
17884 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
17885 if test "$cross_compiling" = yes
17886 then :
17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
17888 printf "%s\n" "cannot test, assume no" >&6; }
17889
17890 else $as_nop
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17893
17894 #define MPFR_USE_THREAD_SAFE 1
17895 #define MPFR_USE_C11_THREAD_SAFE 1
17896 #include "mpfr-thread.h"
17897 MPFR_THREAD_ATTR int x = 17;
17898 int main (void) {
17899 return x != 17;
17900 }
17901
17902 _ACEOF
17903 if ac_fn_c_try_run "$LINENO"
17904 then :
17905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17906 printf "%s\n" "yes" >&6; }
17907
17908 printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
17909
17910
17911 printf "%s\n" "#define MPFR_USE_C11_THREAD_SAFE 1" >>confdefs.h
17912
17913 tls_c11_support=yes
17914 enable_thread_safe=yes
17915
17916 else $as_nop
17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17918 printf "%s\n" "no" >&6; }
17919
17920 fi
17921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17922 conftest.$ac_objext conftest.beam conftest.$ac_ext
17923 fi
17924
17925 CPPFLAGS="$saved_CPPFLAGS"
17926
17927 if test "$tls_c11_support" != "yes"
17928 then
17929
17930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
17931 printf %s "checking for TLS support... " >&6; }
17932 saved_CPPFLAGS="$CPPFLAGS"
17933 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
17934 if test "$cross_compiling" = yes
17935 then :
17936 if test "$enable_thread_safe" = yes; then
17937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume yes" >&5
17938 printf "%s\n" "cannot test, assume yes" >&6; }
17939
17940 printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
17941
17942 else
17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5
17944 printf "%s\n" "cannot test, assume no" >&6; }
17945 fi
17946
17947 else $as_nop
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17950
17951 #define MPFR_USE_THREAD_SAFE 1
17952 #include "mpfr-thread.h"
17953 MPFR_THREAD_ATTR int x = 17;
17954 int main (void) {
17955 return x != 17;
17956 }
17957
17958 _ACEOF
17959 if ac_fn_c_try_run "$LINENO"
17960 then :
17961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17962 printf "%s\n" "yes" >&6; }
17963
17964 printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
17965
17966 enable_thread_safe=yes
17967
17968 else $as_nop
17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17970 printf "%s\n" "no" >&6; }
17971 if test "$enable_thread_safe" = yes; then
17972 as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5
17973 fi
17974
17975 fi
17976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17977 conftest.$ac_objext conftest.beam conftest.$ac_ext
17978 fi
17979
17980 CPPFLAGS="$saved_CPPFLAGS"
17981 fi
17982 fi
17983
17984 if test "$enable_decimal_float" != no; then
17985
17986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5
17987 printf %s "checking if compiler knows _Decimal64... " >&6; }
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17990 _Decimal64 x;
17991 int
17992 main (void)
17993 {
17994
17995 ;
17996 return 0;
17997 }
17998 _ACEOF
17999 if ac_fn_c_try_compile "$LINENO"
18000 then :
18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18002 printf "%s\n" "yes" >&6; }
18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5
18004 printf %s "checking decimal float format... " >&6; }
18005 if test "$cross_compiling" = yes
18006 then :
18007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
18008 printf "%s\n" "cannot test" >&6; }
18009 enable_decimal_float=compile-time
18010 else $as_nop
18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18012 /* end confdefs.h. */
18013
18014 #include <stdlib.h>
18015
18016 int
18017 main (void)
18018 {
18019
18020 volatile _Decimal64 x = 1;
18021 union { double d; _Decimal64 d64; } y;
18022 if (x != x) return 83;
18023 y.d64 = 1234567890123456.0dd;
18024 return y.d == 0.14894469406741037E-123 ? 80 :
18025 y.d == 0.59075095508629822E-68 ? 81 : 82;
18026
18027 ;
18028 return 0;
18029 }
18030 _ACEOF
18031 if ac_fn_c_try_run "$LINENO"
18032 then :
18033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal error" >&5
18034 printf "%s\n" "internal error" >&6; }
18035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18036 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18037 as_fn_error $? "unexpected exit status 0
18038 See \`config.log' for more details" "$LINENO" 5; }
18039 else $as_nop
18040 d64_exit_status=$?
18041 case "$d64_exit_status" in
18042 80) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DPD" >&5
18043 printf "%s\n" "DPD" >&6; }
18044 if test "$enable_decimal_float" = bid; then
18045 as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5
18046 fi
18047 if test "$enable_decimal_float" != generic; then
18048 enable_decimal_float=dpd
18049 fi ;;
18050 81) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: BID" >&5
18051 printf "%s\n" "BID" >&6; }
18052 if test "$enable_decimal_float" = dpd; then
18053 as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5
18054 fi
18055 if test "$enable_decimal_float" != generic; then
18056 enable_decimal_float=bid
18057 fi ;;
18058 82) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither DPD nor BID" >&5
18059 printf "%s\n" "neither DPD nor BID" >&6; }
18060 if test "$enable_decimal_float" = dpd; then
18061 as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5
18062 fi
18063 if test "$enable_decimal_float" = bid; then
18064 as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5
18065 fi
18066 enable_decimal_float=generic
18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The _Decimal64 encoding is non-standard or there was an" >&5
18068 printf "%s\n" "$as_me: WARNING: The _Decimal64 encoding is non-standard or there was an" >&2;}
18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: issue with its detection. The generic code will be used." >&5
18070 printf "%s\n" "$as_me: WARNING: issue with its detection. The generic code will be used." >&2;}
18071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please do not forget to test with \`make check'." >&5
18072 printf "%s\n" "$as_me: WARNING: Please do not forget to test with \`make check'." >&2;}
18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: In case of failure of a decimal test, you should rebuild" >&5
18074 printf "%s\n" "$as_me: WARNING: In case of failure of a decimal test, you should rebuild" >&2;}
18075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MPFR without --enable-decimal-float." >&5
18076 printf "%s\n" "$as_me: WARNING: MPFR without --enable-decimal-float." >&2;} ;;
18077 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error (exit status $d64_exit_status)" >&5
18078 printf "%s\n" "error (exit status $d64_exit_status)" >&6; }
18079 case "$enable_decimal_float" in
18080 yes|bid|dpd|generic) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18081 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18082 as_fn_error $? "internal or link error.
18083 Please build MPFR without --enable-decimal-float.
18084 See \`config.log' for more details" "$LINENO" 5; } ;;
18085 *) enable_decimal_float=no ;;
18086 esac ;;
18087 esac
18088 fi
18089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18090 conftest.$ac_objext conftest.beam conftest.$ac_ext
18091 fi
18092
18093
18094 else $as_nop
18095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18096 printf "%s\n" "no" >&6; }
18097 case "$enable_decimal_float" in
18098 yes|bid|dpd|generic)
18099 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18100 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18101 as_fn_error $? "compiler doesn't know _Decimal64 (ISO/IEC TR 24732).
18102 Please use another compiler or build MPFR without --enable-decimal-float.
18103 See \`config.log' for more details" "$LINENO" 5; } ;;
18104 *) enable_decimal_float=no ;;
18105 esac
18106 fi
18107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18108 if test "$enable_decimal_float" != no; then
18109
18110 printf "%s\n" "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
18111
18112 case "$enable_decimal_float" in
18113 dpd) printf "%s\n" "#define DECIMAL_DPD_FORMAT 1" >>confdefs.h
18114 ;;
18115 bid) printf "%s\n" "#define DECIMAL_BID_FORMAT 1" >>confdefs.h
18116 ;;
18117 generic) printf "%s\n" "#define DECIMAL_GENERIC_CODE 1" >>confdefs.h
18118 ;;
18119 compile-time) ;;
18120 *) as_fn_error $? "internal error" "$LINENO" 5 ;;
18121 esac
18122 fi
18123
18124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bit-field ordering for _Decimal128" >&5
18125 printf %s "checking bit-field ordering for _Decimal128... " >&6; }
18126 if test "$cross_compiling" = yes
18127 then :
18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
18129 printf "%s\n" "cannot test" >&6; }
18130 else $as_nop
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18133
18134
18135 int
18136 main (void)
18137 {
18138
18139 union ieee_decimal128
18140 {
18141 struct
18142 {
18143 unsigned int t3:32;
18144 unsigned int t2:32;
18145 unsigned int t1:32;
18146 unsigned int t0:14;
18147 unsigned int comb:17;
18148 unsigned int sig:1;
18149 } s;
18150 _Decimal128 d128;
18151 } x;
18152
18153 x.d128 = 1.0dl;
18154 if (x.s.sig == 0 && x.s.comb == 49400 &&
18155 x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 10)
18156 return 80; /* little endian */
18157 else if (x.s.sig == 0 && x.s.comb == 8 &&
18158 x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 570933248)
18159 return 81; /* big endian */
18160 else
18161 return 82; /* unknown encoding */
18162
18163 ;
18164 return 0;
18165 }
18166 _ACEOF
18167 if ac_fn_c_try_run "$LINENO"
18168 then :
18169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal error" >&5
18170 printf "%s\n" "internal error" >&6; }
18171 else $as_nop
18172 d128_exit_status=$?
18173 case "$d128_exit_status" in
18174 80) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little endian" >&5
18175 printf "%s\n" "little endian" >&6; }
18176 printf "%s\n" "#define HAVE_DECIMAL128_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
18177 ;;
18178 81) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big endian" >&5
18179 printf "%s\n" "big endian" >&6; }
18180 printf "%s\n" "#define HAVE_DECIMAL128_IEEE_BIG_ENDIAN 1" >>confdefs.h
18181 ;;
18182 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unavailable or unknown" >&5
18183 printf "%s\n" "unavailable or unknown" >&6; } ;;
18184 esac
18185 fi
18186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18187 conftest.$ac_objext conftest.beam conftest.$ac_ext
18188 fi
18189
18190
18191 fi
18192 # End of decimal float checks
18193
18194 if test "$enable_float128" != no; then
18195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Float128 with hex constants is supported" >&5
18196 printf %s "checking if _Float128 with hex constants is supported... " >&6; }
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18199
18200 int
18201 main (void)
18202 {
18203
18204 volatile _Float128 x = 0x1.fp+16383f128;
18205 return x == 0;
18206
18207 ;
18208 return 0;
18209 }
18210 _ACEOF
18211 if ac_fn_c_try_link "$LINENO"
18212 then :
18213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18214 printf "%s\n" "yes" >&6; }
18215
18216 printf "%s\n" "#define MPFR_WANT_FLOAT128 1" >>confdefs.h
18217
18218 else $as_nop
18219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220 printf "%s\n" "no" >&6; }
18221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __float128 can be used as a fallback" >&5
18222 printf %s "checking if __float128 can be used as a fallback... " >&6; }
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225
18226 #define _Float128 __float128
18227
18228 int
18229 main (void)
18230 {
18231
18232 volatile _Float128 x = 0x1.fp+16383q;
18233 return x == 0;
18234
18235 ;
18236 return 0;
18237 }
18238 _ACEOF
18239 if ac_fn_c_try_link "$LINENO"
18240 then :
18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18242 printf "%s\n" "yes" >&6; }
18243
18244 printf "%s\n" "#define MPFR_WANT_FLOAT128 2" >>confdefs.h
18245
18246
18247 printf "%s\n" "#define _Float128 __float128" >>confdefs.h
18248
18249 else $as_nop
18250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 printf "%s\n" "no" >&6; }
18252 if test "$enable_float128" = yes; then
18253 as_fn_error $? "compiler doesn't know _Float128 or __float128 with hex constants.
18254 Please use another compiler or build MPFR without --enable-float128." "$LINENO" 5
18255 fi
18256 fi
18257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18258 conftest$ac_exeext conftest.$ac_ext
18259
18260 fi
18261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18262 conftest$ac_exeext conftest.$ac_ext
18263 fi
18264
18265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Static Assertion support" >&5
18266 printf %s "checking for Static Assertion support... " >&6; }
18267 saved_CPPFLAGS="$CPPFLAGS"
18268 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270 /* end confdefs.h. */
18271
18272 #define MPFR_USE_STATIC_ASSERT 1
18273 #include "mpfr-sassert.h"
18274
18275 /* Test if Static Assertions work */
18276
18277 int main (void) {
18278 int x;
18279 (void) (x = 1); /* cast to void: avoid a warning, at least with GCC */
18280 /* Test of the macro after a declaraction and a statement. */
18281 MPFR_STAT_STATIC_ASSERT(sizeof(short) <= sizeof(int));
18282 return 0;
18283 }
18284
18285 _ACEOF
18286 if ac_fn_c_try_compile "$LINENO"
18287 then :
18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18289 printf "%s\n" "yes" >&6; }
18290
18291 printf "%s\n" "#define MPFR_USE_STATIC_ASSERT 1" >>confdefs.h
18292
18293
18294 else $as_nop
18295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18296 printf "%s\n" "no" >&6; }
18297
18298 fi
18299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18300 CPPFLAGS="$saved_CPPFLAGS"
18301
18302 if test "$enable_lto" = "yes" ; then
18303
18304 CFLAGS="$CFLAGS -flto"
18305
18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation flag '-flto' is supported..." >&5
18307 printf %s "checking if Link Time Optimisation flag '-flto' is supported...... " >&6; }
18308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18309 /* end confdefs.h. */
18310
18311 int main(void) { return 0; }
18312
18313 _ACEOF
18314 if ac_fn_c_try_compile "$LINENO"
18315 then :
18316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18317 printf "%s\n" "yes" >&6; }
18318
18319 else $as_nop
18320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18321 printf "%s\n" "no" >&6; }
18322 as_fn_error $? "Link Time Optimisation flag '-flto' is not supported." "$LINENO" 5
18323
18324 fi
18325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18326
18327 mpfr_compile_and_link()
18328 {
18329 echo "int f(int); int f(int n) { return n; }" > conftest-f.c
18330 echo "int f(int); int main() { return f(0); }" > conftest-m.c
18331 echo "$CC $CFLAGS -c -o conftest-f.o conftest-f.c" >&2
18332 $CC $CFLAGS -c -o conftest-f.o conftest-f.c || return 1
18333 echo "$AR cru conftest-lib.a conftest-f.o" >&2
18334 $AR cru conftest-lib.a conftest-f.o || return 1
18335 echo "$RANLIB conftest-lib.a" >&2
18336 $RANLIB conftest-lib.a || return 1
18337 echo "$CC $CFLAGS conftest-m.c conftest-lib.a" >&2
18338 $CC $CFLAGS conftest-m.c conftest-lib.a || return 1
18339 return 0
18340 }
18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5
18342 printf %s "checking if Link Time Optimisation works with AR=$AR... " >&6; }
18343 if mpfr_compile_and_link 2> conftest-log1.txt ; then
18344 cat conftest-log1.txt >&5
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18346 printf "%s\n" "yes" >&6; }
18347 else
18348 cat conftest-log1.txt >&5
18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350 printf "%s\n" "no" >&6; }
18351 AR=gcc-ar
18352 RANLIB=gcc-ranlib
18353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5
18354 printf %s "checking if Link Time Optimisation works with AR=$AR... " >&6; }
18355 if mpfr_compile_and_link 2> conftest-log2.txt; then
18356 cat conftest-log2.txt >&5
18357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18358 printf "%s\n" "yes" >&6; }
18359 else
18360 cat conftest-log2.txt >&5
18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362 printf "%s\n" "no" >&6; }
18363 as_fn_error $? "Link Time Optimisation is not supported (see config.log for details)." "$LINENO" 5
18364 fi
18365 fi
18366 rm -f conftest*
18367
18368 fi
18369
18370 if test "$enable_logging" = yes; then
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nested functions and 'cleanup' attribute" >&5
18372 printf %s "checking for nested functions and 'cleanup' attribute... " >&6; }
18373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18374 /* end confdefs.h. */
18375
18376 int main (void) {
18377 auto void f_cleanup (int *p);
18378 void f_cleanup (int *p) { int v = *p; (void) v; }
18379 int v __attribute__ ((cleanup (f_cleanup)));
18380 v = 0;
18381 return 0;
18382 }
18383
18384 _ACEOF
18385 if ac_fn_c_try_compile "$LINENO"
18386 then :
18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18388 printf "%s\n" "yes" >&6; }
18389 else $as_nop
18390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18391 printf "%s\n" "no" >&6; }
18392 as_fn_error $? "logging support needs nested functions and the 'cleanup' attribute" "$LINENO" 5
18393
18394 fi
18395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18396 fi
18397
18398
18399
18400
18401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
18402 printf %s "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
18403 if test ${gmp_cv_c_attribute_mode+y}
18404 then :
18405 printf %s "(cached) " >&6
18406 else $as_nop
18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408 /* end confdefs.h. */
18409 typedef int SItype __attribute__ ((mode (SI)));
18410 int
18411 main (void)
18412 {
18413
18414 ;
18415 return 0;
18416 }
18417 _ACEOF
18418 if ac_fn_c_try_compile "$LINENO"
18419 then :
18420 gmp_cv_c_attribute_mode=yes
18421 else $as_nop
18422 gmp_cv_c_attribute_mode=no
18423 fi
18424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18425
18426 fi
18427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
18428 printf "%s\n" "$gmp_cv_c_attribute_mode" >&6; }
18429 if test $gmp_cv_c_attribute_mode = yes; then
18430
18431 printf "%s\n" "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
18432
18433 fi
18434
18435
18436
18437
18438 if test -z "$mini_gmp_path" ; then
18439
18440
18441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
18442 printf %s "checking for gmp.h... " >&6; }
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h. */
18445
18446 #include "gmp.h"
18447
18448 _ACEOF
18449 if ac_fn_c_try_compile "$LINENO"
18450 then :
18451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18452 printf "%s\n" "yes" >&6; }
18453 else $as_nop
18454
18455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18456 printf "%s\n" "no" >&6; }
18457 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5
18458
18459 fi
18460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18461
18462
18463
18464 case $host in
18465 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
18467 printf %s "checking for DLL/static GMP... " >&6; }
18468 if test "$enable_shared" = yes; then
18469 MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined"
18470 LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-6.dll.def"
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18473
18474 #include "gmp.h"
18475 #if !__GMP_LIBGMP_DLL
18476 # error "Dead man"
18477 error
18478 #endif
18479
18480 int
18481 main (void)
18482 {
18483
18484 ;
18485 return 0;
18486 }
18487 _ACEOF
18488 if ac_fn_c_try_compile "$LINENO"
18489 then :
18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
18491 printf "%s\n" "DLL" >&6; }
18492 else $as_nop
18493
18494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
18495 printf "%s\n" "static" >&6; }
18496 as_fn_error $? "libgmp isn't provided as a DLL: use --enable-static --disable-shared" "$LINENO" 5
18497 fi
18498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18499 else
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502
18503 #include "gmp.h"
18504 #if __GMP_LIBGMP_DLL
18505 # error "Dead man"
18506 error
18507 #endif
18508
18509 int
18510 main (void)
18511 {
18512
18513 ;
18514 return 0;
18515 }
18516 _ACEOF
18517 if ac_fn_c_try_compile "$LINENO"
18518 then :
18519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5
18520 printf "%s\n" "static" >&6; }
18521 else $as_nop
18522
18523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
18524 printf "%s\n" "DLL" >&6; }
18525 as_fn_error $? "libgmp is provided as a DLL: use --disable-static --enable-shared" "$LINENO" 5
18526 fi
18527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18528 fi
18529 ;;
18530 esac
18531
18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
18533 printf %s "checking for recent GMP... " >&6; }
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18536
18537 #include "gmp.h"
18538 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 500)
18539 # error "GMP 5.0.0 or newer is required"
18540 error
18541 #endif
18542
18543 _ACEOF
18544 if ac_fn_c_try_compile "$LINENO"
18545 then :
18546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18547 printf "%s\n" "yes" >&6; }
18548 else $as_nop
18549
18550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18551 printf "%s\n" "no" >&6; }
18552 as_fn_error $? "GMP 5.0.0 or newer is required" "$LINENO" 5
18553
18554 fi
18555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18556
18557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking usable gmp.h at link time" >&5
18558 printf %s "checking usable gmp.h at link time... " >&6; }
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18561
18562 #include "gmp.h"
18563
18564 int
18565 main (void)
18566 {
18567
18568 ;
18569 return 0;
18570 }
18571 _ACEOF
18572 if ac_fn_c_try_link "$LINENO"
18573 then :
18574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18575 printf "%s\n" "yes" >&6; }
18576 else $as_nop
18577
18578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18579 printf "%s\n" "no" >&6; }
18580 as_fn_error $? "there is an incompatibility between gmp.h and the compiler.
18581 See 'config.log' for details." "$LINENO" 5
18582
18583 fi
18584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18585 conftest$ac_exeext conftest.$ac_ext
18586
18587 if test "$use_gmp_build" = yes ; then
18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5
18589 printf %s "checking for gmp internal files... " >&6; }
18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18591 /* end confdefs.h. */
18592
18593 #include "gmp.h"
18594 #include "gmp-impl.h"
18595 #include "longlong.h"
18596
18597 _ACEOF
18598 if ac_fn_c_try_compile "$LINENO"
18599 then :
18600
18601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18602 printf "%s\n" "yes" >&6; }
18603
18604 printf "%s\n" "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
18605
18606
18607 else $as_nop
18608
18609 as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5
18610
18611 fi
18612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18613 fi
18614
18615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency" >&5
18616 printf %s "checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... " >&6; }
18617 if test "$cross_compiling" = yes
18618 then :
18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
18620 printf "%s\n" "cannot test" >&6; }
18621 else $as_nop
18622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18623 /* end confdefs.h. */
18624
18625 #include <stdio.h>
18626 #include <limits.h>
18627 #include "gmp.h"
18628
18629 int
18630 main (void)
18631 {
18632
18633 if (GMP_NUMB_BITS == sizeof(mp_limb_t) * CHAR_BIT)
18634 return 0;
18635 fprintf (stderr, "GMP_NUMB_BITS = %ld\n", (long) GMP_NUMB_BITS);
18636 fprintf (stderr, "sizeof(mp_limb_t) = %ld\n", (long) sizeof(mp_limb_t));
18637 fprintf (stderr, "sizeof(mp_limb_t) * CHAR_BIT = %ld != GMP_NUMB_BITS\n",
18638 (long) (sizeof(mp_limb_t) * CHAR_BIT));
18639 return 1;
18640
18641 ;
18642 return 0;
18643 }
18644 _ACEOF
18645 if ac_fn_c_try_run "$LINENO"
18646 then :
18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18648 printf "%s\n" "yes" >&6; }
18649 else $as_nop
18650
18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18652 printf "%s\n" "no" >&6; }
18653 as_fn_error $? "GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent.
18654 You probably need to change some of the GMP or MPFR compile options.
18655 See 'config.log' for details (search for GMP_NUMB_BITS)." "$LINENO" 5
18656 fi
18657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18658 conftest.$ac_objext conftest.beam conftest.$ac_ext
18659 fi
18660
18661
18662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
18663 printf %s "checking for __gmpz_init in -lgmp... " >&6; }
18664 if test ${ac_cv_lib_gmp___gmpz_init+y}
18665 then :
18666 printf %s "(cached) " >&6
18667 else $as_nop
18668 ac_check_lib_save_LIBS=$LIBS
18669 LIBS="-lgmp $LIBS"
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18672
18673 /* Override any GCC internal prototype to avoid an error.
18674 Use char because int might match the return type of a GCC
18675 builtin and then its argument prototype would still apply. */
18676 #ifdef __cplusplus
18677 extern "C"
18678 #endif
18679 char __gmpz_init ();
18680 int
18681 main (void)
18682 {
18683 return __gmpz_init ();
18684 ;
18685 return 0;
18686 }
18687 _ACEOF
18688 if ac_fn_c_try_link "$LINENO"
18689 then :
18690 ac_cv_lib_gmp___gmpz_init=yes
18691 else $as_nop
18692 ac_cv_lib_gmp___gmpz_init=no
18693 fi
18694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18695 conftest$ac_exeext conftest.$ac_ext
18696 LIBS=$ac_check_lib_save_LIBS
18697 fi
18698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
18699 printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; }
18700 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes
18701 then :
18702 LIBS="-lgmp $LIBS"
18703 else $as_nop
18704 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared).
18705 Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5
18706 fi
18707
18708
18709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
18710 printf %s "checking if gmp.h version and libgmp version are the same... " >&6; }
18711 saved_LD_RUN_PATH="$LD_RUN_PATH"
18712 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
18713 export LD_RUN_PATH
18714 if test "$cross_compiling" = yes
18715 then :
18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
18717 printf "%s\n" "cannot test" >&6; }
18718
18719 else $as_nop
18720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721 /* end confdefs.h. */
18722
18723 #include <stdio.h>
18724 #include <string.h>
18725 #include "gmp.h"
18726
18727 int
18728 main (void)
18729 {
18730
18731 char buffer[100];
18732 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
18733 __GNU_MP_VERSION_PATCHLEVEL);
18734 printf ("(%s/%s) ", buffer, gmp_version);
18735 fflush (stdout);
18736 /* Also put information in config.log (stderr) */
18737 fprintf (stderr, "gmp.h: %s / libgmp: %s\n", buffer, gmp_version);
18738 if (strcmp (buffer, gmp_version) == 0)
18739 return 0;
18740 if (__GNU_MP_VERSION_PATCHLEVEL != 0)
18741 return 1;
18742 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
18743 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
18744
18745 ;
18746 return 0;
18747 }
18748 _ACEOF
18749 if ac_fn_c_try_run "$LINENO"
18750 then :
18751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18752 printf "%s\n" "yes" >&6; }
18753
18754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP library vs header correctness" >&5
18755 printf %s "checking for GMP library vs header correctness... " >&6; }
18756 if test ${mpfr_cv_check_gmp+y}
18757 then :
18758 printf %s "(cached) " >&6
18759 else $as_nop
18760
18761 if test "$cross_compiling" = yes
18762 then :
18763 mpfr_cv_check_gmp="cannot test, assume yes"
18764 else $as_nop
18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766 /* end confdefs.h. */
18767
18768 #include <stdio.h>
18769 #include <limits.h>
18770 #include <gmp.h>
18771
18772 int
18773 main (void)
18774 {
18775
18776 fprintf (stderr, "GMP_NAIL_BITS = %d\n", (int) GMP_NAIL_BITS);
18777 fprintf (stderr, "GMP_NUMB_BITS = %d\n", (int) GMP_NUMB_BITS);
18778 fprintf (stderr, "mp_bits_per_limb = %d\n", (int) mp_bits_per_limb);
18779 fprintf (stderr, "sizeof(mp_limb_t) = %d\n", (int) sizeof(mp_limb_t));
18780 if (GMP_NAIL_BITS != 0)
18781 {
18782 fprintf (stderr, "GMP_NAIL_BITS != 0\n");
18783 return 81;
18784 }
18785 if (GMP_NUMB_BITS != mp_bits_per_limb)
18786 {
18787 fprintf (stderr, "GMP_NUMB_BITS != mp_bits_per_limb\n");
18788 return 82;
18789 }
18790 if (GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT)
18791 {
18792 fprintf (stderr, "GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT\n");
18793 return 83;
18794 }
18795 return 0;
18796
18797 ;
18798 return 0;
18799 }
18800 _ACEOF
18801 if ac_fn_c_try_run "$LINENO"
18802 then :
18803 mpfr_cv_check_gmp="yes"
18804 else $as_nop
18805 mpfr_cv_check_gmp="no (exit status is $?)"
18806 fi
18807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18808 conftest.$ac_objext conftest.beam conftest.$ac_ext
18809 fi
18810
18811
18812 fi
18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_check_gmp" >&5
18814 printf "%s\n" "$mpfr_cv_check_gmp" >&6; }
18815 case $mpfr_cv_check_gmp in
18816 no*)
18817 as_fn_error $? "bad GMP library or header - ABI problem?
18818 See 'config.log' for details." "$LINENO" 5 ;;
18819 esac
18820
18821
18822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for double-to-integer conversion bug" >&5
18823 printf %s "checking for double-to-integer conversion bug... " >&6; }
18824 if test ${mpfr_cv_dbl_int_bug+y}
18825 then :
18826 printf %s "(cached) " >&6
18827 else $as_nop
18828
18829 if test "$cross_compiling" = yes
18830 then :
18831 mpfr_cv_dbl_int_bug="cannot test, assume not present"
18832 else $as_nop
18833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18834 /* end confdefs.h. */
18835
18836 #include <stdio.h>
18837 #include <gmp.h>
18838
18839 int
18840 main (void)
18841 {
18842
18843 double d;
18844 mp_limb_t u;
18845 int i;
18846
18847 d = 1.0;
18848 for (i = 0; i < GMP_NUMB_BITS - 1; i++)
18849 d = d + d;
18850 u = (mp_limb_t) d;
18851 for (; i > 0; i--)
18852 {
18853 if (u & 1)
18854 break;
18855 u = u >> 1;
18856 }
18857 if (i == 0 && u == 1UL)
18858 return 0;
18859 fprintf (stderr, "Failure: i = %d, (unsigned long) u = %lu\n",
18860 i, (unsigned long) u);
18861 return 1;
18862
18863 ;
18864 return 0;
18865 }
18866 _ACEOF
18867 if ac_fn_c_try_run "$LINENO"
18868 then :
18869 mpfr_cv_dbl_int_bug="no"
18870 else $as_nop
18871 mpfr_cv_dbl_int_bug="yes or failed to exec (exit status is $?)"
18872 fi
18873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18874 conftest.$ac_objext conftest.beam conftest.$ac_ext
18875 fi
18876
18877
18878 fi
18879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_dbl_int_bug" >&5
18880 printf "%s\n" "$mpfr_cv_dbl_int_bug" >&6; }
18881 case $mpfr_cv_dbl_int_bug in
18882 yes*)
18883 as_fn_error $? "double-to-integer conversion is incorrect.
18884 You need to use another compiler (or lower the optimization level)." "$LINENO" 5 ;;
18885 esac
18886
18887
18888 if test "$ac_cv_type_intmax_t" = yes; then
18889
18890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
18891 printf %s "checking if gmp_printf supports \"%jd\"... " >&6; }
18892 if test "$cross_compiling" = yes
18893 then :
18894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
18895 printf "%s\n" "cross-compiling" >&6; }
18896
18897 else $as_nop
18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h. */
18900
18901 #include <stdio.h>
18902 #include <string.h>
18903
18904 #ifdef HAVE_INTTYPES_H
18905 # include <inttypes.h>
18906 #endif
18907 #ifdef HAVE_STDINT_H
18908 # include <stdint.h>
18909 #endif
18910
18911 #include <gmp.h>
18912
18913 int
18914 main (void)
18915 {
18916
18917 char s[256];
18918 intmax_t a = 17;
18919
18920 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
18921 precision, as -Werror=format yields an error, even though this
18922 flag is allowed by the ISO C standard (it is just ignored).
18923 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
18924 if (sprintf (s, "(%.0jd)(%d)", a, 42) != 8 ||
18925 strcmp (s, "(17)(42)") != 0)
18926 return 1;
18927
18928 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1 ||
18929 strcmp (s, "(17)(42)") != 0)
18930 return 1;
18931
18932 return 0;
18933
18934 ;
18935 return 0;
18936 }
18937 _ACEOF
18938 if ac_fn_c_try_run "$LINENO"
18939 then :
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18941 printf "%s\n" "yes" >&6; }
18942
18943 else $as_nop
18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18945 printf "%s\n" "no" >&6; }
18946
18947 printf "%s\n" "#define NPRINTF_J 1" >>confdefs.h
18948
18949 fi
18950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18951 conftest.$ac_objext conftest.beam conftest.$ac_ext
18952 fi
18953
18954
18955 fi
18956
18957
18958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
18959 printf %s "checking if gmp_printf supports \"%hhd\"... " >&6; }
18960 if test "$cross_compiling" = yes
18961 then :
18962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
18963 printf "%s\n" "cross-compiling" >&6; }
18964
18965 else $as_nop
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18968
18969 #include <stdio.h>
18970 #include <string.h>
18971
18972 #include <gmp.h>
18973
18974 #include <gmp.h>
18975
18976 int
18977 main (void)
18978 {
18979
18980 char s[256];
18981 char a = 17;
18982
18983 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
18984 precision, as -Werror=format yields an error, even though this
18985 flag is allowed by the ISO C standard (it is just ignored).
18986 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
18987 if (sprintf (s, "(%.0hhd)(%d)", a, 42) != 8 ||
18988 strcmp (s, "(17)(42)") != 0)
18989 return 1;
18990
18991 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1 ||
18992 strcmp (s, "(17)(42)") != 0)
18993 return 1;
18994
18995 return 0;
18996
18997 ;
18998 return 0;
18999 }
19000 _ACEOF
19001 if ac_fn_c_try_run "$LINENO"
19002 then :
19003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19004 printf "%s\n" "yes" >&6; }
19005
19006 else $as_nop
19007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19008 printf "%s\n" "no" >&6; }
19009
19010 printf "%s\n" "#define NPRINTF_HH 1" >>confdefs.h
19011
19012 fi
19013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19014 conftest.$ac_objext conftest.beam conftest.$ac_ext
19015 fi
19016
19017
19018
19019
19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
19021 printf %s "checking if gmp_printf supports \"%lld\"... " >&6; }
19022 if test "$cross_compiling" = yes
19023 then :
19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
19025 printf "%s\n" "cross-compiling" >&6; }
19026
19027 else $as_nop
19028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h. */
19030
19031 #include <stdio.h>
19032 #include <string.h>
19033
19034 #include <gmp.h>
19035
19036 #include <gmp.h>
19037
19038 int
19039 main (void)
19040 {
19041
19042 char s[256];
19043 long long int a = 17;
19044
19045 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
19046 precision, as -Werror=format yields an error, even though this
19047 flag is allowed by the ISO C standard (it is just ignored).
19048 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
19049 if (sprintf (s, "(%.0lld)(%d)", a, 42) != 8 ||
19050 strcmp (s, "(17)(42)") != 0)
19051 return 1;
19052
19053 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1 ||
19054 strcmp (s, "(17)(42)") != 0)
19055 return 1;
19056
19057 return 0;
19058
19059 ;
19060 return 0;
19061 }
19062 _ACEOF
19063 if ac_fn_c_try_run "$LINENO"
19064 then :
19065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19066 printf "%s\n" "yes" >&6; }
19067
19068 else $as_nop
19069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070 printf "%s\n" "no" >&6; }
19071
19072 printf "%s\n" "#define NPRINTF_LL 1" >>confdefs.h
19073
19074 fi
19075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19076 conftest.$ac_objext conftest.beam conftest.$ac_ext
19077 fi
19078
19079
19080
19081
19082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
19083 printf %s "checking if gmp_printf supports \"%Lf\"... " >&6; }
19084 if test "$cross_compiling" = yes
19085 then :
19086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
19087 printf "%s\n" "cross-compiling" >&6; }
19088
19089 printf "%s\n" "#define PRINTF_L 1" >>confdefs.h
19090
19091 else $as_nop
19092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19093 /* end confdefs.h. */
19094
19095 #include <stdio.h>
19096 #include <string.h>
19097
19098 #include <gmp.h>
19099
19100 #include <gmp.h>
19101
19102 int
19103 main (void)
19104 {
19105
19106 char s[256];
19107 long double a = 17;
19108
19109 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
19110 precision, as -Werror=format yields an error, even though this
19111 flag is allowed by the ISO C standard (it is just ignored).
19112 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
19113 if (sprintf (s, "(%.0Lf)(%d)", a, 42) != 8 ||
19114 strcmp (s, "(17)(42)") != 0)
19115 return 1;
19116
19117 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1 ||
19118 strcmp (s, "(17)(42)") != 0)
19119 return 1;
19120
19121 return 0;
19122
19123 ;
19124 return 0;
19125 }
19126 _ACEOF
19127 if ac_fn_c_try_run "$LINENO"
19128 then :
19129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19130 printf "%s\n" "yes" >&6; }
19131
19132 printf "%s\n" "#define PRINTF_L 1" >>confdefs.h
19133
19134 else $as_nop
19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136 printf "%s\n" "no" >&6; }
19137
19138 printf "%s\n" "#define NPRINTF_L 1" >>confdefs.h
19139
19140 fi
19141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19142 conftest.$ac_objext conftest.beam conftest.$ac_ext
19143 fi
19144
19145
19146
19147
19148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
19149 printf %s "checking if gmp_printf supports \"%td\"... " >&6; }
19150 if test "$cross_compiling" = yes
19151 then :
19152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
19153 printf "%s\n" "cross-compiling" >&6; }
19154
19155 printf "%s\n" "#define PRINTF_T 1" >>confdefs.h
19156
19157 else $as_nop
19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h. */
19160
19161 #include <stdio.h>
19162 #include <string.h>
19163
19164 #if defined (__cplusplus)
19165 #include <cstddef>
19166 #else
19167 #include <stddef.h>
19168 #endif
19169 #include <gmp.h>
19170
19171 #include <gmp.h>
19172
19173 int
19174 main (void)
19175 {
19176
19177 char s[256];
19178 ptrdiff_t a = 17;
19179
19180 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the
19181 precision, as -Werror=format yields an error, even though this
19182 flag is allowed by the ISO C standard (it is just ignored).
19183 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */
19184 if (sprintf (s, "(%.0td)(%d)", a, 42) != 8 ||
19185 strcmp (s, "(17)(42)") != 0)
19186 return 1;
19187
19188 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1 ||
19189 strcmp (s, "(17)(42)") != 0)
19190 return 1;
19191
19192 return 0;
19193
19194 ;
19195 return 0;
19196 }
19197 _ACEOF
19198 if ac_fn_c_try_run "$LINENO"
19199 then :
19200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19201 printf "%s\n" "yes" >&6; }
19202
19203 printf "%s\n" "#define PRINTF_T 1" >>confdefs.h
19204
19205 else $as_nop
19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19207 printf "%s\n" "no" >&6; }
19208
19209 printf "%s\n" "#define NPRINTF_T 1" >>confdefs.h
19210
19211 fi
19212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19213 conftest.$ac_objext conftest.beam conftest.$ac_ext
19214 fi
19215
19216
19217
19218
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports the ' group flag" >&5
19220 printf %s "checking if gmp_printf supports the ' group flag... " >&6; }
19221 if test "$cross_compiling" = yes
19222 then :
19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5
19224 printf "%s\n" "cannot test" >&6; }
19225 else $as_nop
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228
19229 #include <string.h>
19230 #include <gmp.h>
19231
19232 int
19233 main (void)
19234 {
19235
19236 char s[256];
19237
19238 if (gmp_sprintf (s, "%'d", 17) == -1) return 1;
19239 return (strcmp (s, "17") != 0);
19240
19241 ;
19242 return 0;
19243 }
19244 _ACEOF
19245 if ac_fn_c_try_run "$LINENO"
19246 then :
19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19248 printf "%s\n" "yes" >&6; }
19249
19250 printf "%s\n" "#define PRINTF_GROUPFLAG 1" >>confdefs.h
19251
19252 else $as_nop
19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19254 printf "%s\n" "no" >&6; }
19255 fi
19256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19257 conftest.$ac_objext conftest.beam conftest.$ac_ext
19258 fi
19259
19260
19261 else $as_nop
19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19263 printf "%s\n" "no" >&6; }
19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
19265 printf "%s\n" "$as_me: WARNING: ==========================================================" >&2;}
19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5
19267 printf "%s\n" "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;}
19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
19269 printf "%s\n" "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5
19271 printf "%s\n" "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;}
19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&5
19273 printf "%s\n" "$as_me: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&2;}
19274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: or --with-gmp-include with a system include directory" >&5
19275 printf "%s\n" "$as_me: WARNING: or --with-gmp-include with a system include directory" >&2;}
19276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: (such as /usr/include or /usr/local/include). Another" >&5
19277 printf "%s\n" "$as_me: WARNING: (such as /usr/include or /usr/local/include). Another" >&2;}
19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&5
19279 printf "%s\n" "$as_me: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&2;}
19280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: seen under OpenBSD 6.6 and with the GNU gold linker)." >&5
19281 printf "%s\n" "$as_me: WARNING: seen under OpenBSD 6.6 and with the GNU gold linker)." >&2;}
19282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: However, since we can't use 'libtool' inside the configure," >&5
19283 printf "%s\n" "$as_me: WARNING: However, since we can't use 'libtool' inside the configure," >&2;}
19284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5
19285 printf "%s\n" "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CC=\"$CC\"" >&5
19287 printf "%s\n" "$as_me: WARNING: CC=\"$CC\"" >&2;}
19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CFLAGS=\"$CFLAGS\"" >&5
19289 printf "%s\n" "$as_me: WARNING: CFLAGS=\"$CFLAGS\"" >&2;}
19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&5
19291 printf "%s\n" "$as_me: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&2;}
19292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LDFLAGS=\"$LDFLAGS\"" >&5
19293 printf "%s\n" "$as_me: WARNING: LDFLAGS=\"$LDFLAGS\"" >&2;}
19294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LIBS=\"$LIBS\"" >&5
19295 printf "%s\n" "$as_me: WARNING: LIBS=\"$LIBS\"" >&2;}
19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&5
19297 printf "%s\n" "$as_me: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&2;}
19298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5
19299 printf "%s\n" "$as_me: WARNING: ==========================================================" >&2;}
19300
19301 fi
19302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19303 conftest.$ac_objext conftest.beam conftest.$ac_ext
19304 fi
19305
19306 LD_RUN_PATH="$saved_LD_RUN_PATH"
19307
19308 ac_fn_c_check_func "$LINENO" "__gmpn_sbpi1_divappr_q" "ac_cv_func___gmpn_sbpi1_divappr_q"
19309 if test "x$ac_cv_func___gmpn_sbpi1_divappr_q" = xyes
19310 then :
19311 printf "%s\n" "#define HAVE___GMPN_SBPI1_DIVAPPR_Q 1" >>confdefs.h
19312
19313 fi
19314
19315 ac_fn_c_check_func "$LINENO" "__gmpn_invert_limb" "ac_cv_func___gmpn_invert_limb"
19316 if test "x$ac_cv_func___gmpn_invert_limb" = xyes
19317 then :
19318 printf "%s\n" "#define HAVE___GMPN_INVERT_LIMB 1" >>confdefs.h
19319
19320 fi
19321
19322 ac_fn_c_check_func "$LINENO" "__gmpn_rsblsh1_n" "ac_cv_func___gmpn_rsblsh1_n"
19323 if test "x$ac_cv_func___gmpn_rsblsh1_n" = xyes
19324 then :
19325 printf "%s\n" "#define HAVE___GMPN_RSBLSH1_N 1" >>confdefs.h
19326
19327 fi
19328
19329
19330
19331
19332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long to fit in mp_limb_t" >&5
19333 printf %s "checking for long to fit in mp_limb_t... " >&6; }
19334 if test ${mpfr_cv_long_within_limb+y}
19335 then :
19336 printf %s "(cached) " >&6
19337 else $as_nop
19338
19339 saved_CPPFLAGS="$CPPFLAGS"
19340 CPPFLAGS="$CPPFLAGS -I$srcdir/src"
19341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19342 /* end confdefs.h. */
19343
19344 #include <gmp.h>
19345 /* Make sure that a static assertion is used (not MPFR_ASSERTN). */
19346 #undef MPFR_USE_STATIC_ASSERT
19347 #define MPFR_USE_STATIC_ASSERT 1
19348 #include "mpfr-sassert.h"
19349
19350 int
19351 main (void)
19352 {
19353
19354 MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (unsigned long) -1);
19355 return 0;
19356
19357 ;
19358 return 0;
19359 }
19360 _ACEOF
19361 if ac_fn_c_try_link "$LINENO"
19362 then :
19363 mpfr_cv_long_within_limb="yes"
19364 else $as_nop
19365 mpfr_cv_long_within_limb="no"
19366 fi
19367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19368 conftest$ac_exeext conftest.$ac_ext
19369
19370 fi
19371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_long_within_limb" >&5
19372 printf "%s\n" "$mpfr_cv_long_within_limb" >&6; }
19373 case $mpfr_cv_long_within_limb in
19374 yes*)
19375
19376 printf "%s\n" "#define MPFR_LONG_WITHIN_LIMB 1" >>confdefs.h
19377 ;;
19378 esac
19379 CPPFLAGS="$saved_CPPFLAGS"
19380
19381
19382
19383 if test "$ac_cv_type_intmax_t" = yes; then
19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t to fit in mp_limb_t" >&5
19385 printf %s "checking for intmax_t to fit in mp_limb_t... " >&6; }
19386 if test ${mpfr_cv_intmax_within_limb+y}
19387 then :
19388 printf %s "(cached) " >&6
19389 else $as_nop
19390
19391 saved_CPPFLAGS="$CPPFLAGS"
19392 CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H"
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19395
19396 #include <gmp.h>
19397 /* Make sure that a static assertion is used (not MPFR_ASSERTN). */
19398 #undef MPFR_USE_STATIC_ASSERT
19399 #define MPFR_USE_STATIC_ASSERT 1
19400 #include "mpfr-sassert.h"
19401 #include "mpfr-intmax.h"
19402
19403 int
19404 main (void)
19405 {
19406
19407 MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (uintmax_t) -1);
19408 return 0;
19409
19410 ;
19411 return 0;
19412 }
19413 _ACEOF
19414 if ac_fn_c_try_link "$LINENO"
19415 then :
19416 mpfr_cv_intmax_within_limb="yes"
19417 else $as_nop
19418 mpfr_cv_intmax_within_limb="no"
19419 fi
19420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19421 conftest$ac_exeext conftest.$ac_ext
19422
19423 fi
19424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_intmax_within_limb" >&5
19425 printf "%s\n" "$mpfr_cv_intmax_within_limb" >&6; }
19426 case $mpfr_cv_intmax_within_limb in
19427 yes*)
19428
19429 printf "%s\n" "#define MPFR_INTMAX_WITHIN_LIMB 1" >>confdefs.h
19430 ;;
19431 esac
19432 CPPFLAGS="$saved_CPPFLAGS"
19433 fi
19434
19435
19436 else
19437
19438
19439 mpfr_build_src="${ac_top_build_prefix}src"
19440 mkdir -p "$mpfr_build_src"
19441 rm -f -- "$mpfr_build_src"/mini-gmp.*
19442 for i in c h
19443 do
19444 ln -s -- "$mini_gmp_path/mini-gmp.$i" "$mpfr_build_src/mini-gmp.$i"
19445 done
19446
19447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS" >&5
19448 printf %s "checking for GMP_NUMB_BITS... " >&6; }
19449 how="from mini-gmp.h"
19450 saved_CPPFLAGS="$CPPFLAGS"
19451 CPPFLAGS="$CPPFLAGS -I$mpfr_build_src"
19452 if ac_fn_c_compute_int "$LINENO" "(GMP_NUMB_BITS)" "mini_gmp_numb_bits" "#include <mini-gmp.h>"
19453 then :
19454
19455 else $as_nop
19456 how="not in mini-gmp.h; guessed"
19457 if ac_fn_c_compute_int "$LINENO" "(sizeof(mp_limb_t) * CHAR_BIT)" "mini_gmp_numb_bits" "#include <limits.h>
19458 #include <mini-gmp.h>"
19459 then :
19460
19461 else $as_nop
19462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19463 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19464 as_fn_error $? "cannot define GMP_NUMB_BITS
19465 See \`config.log' for more details" "$LINENO" 5; }
19466 fi
19467
19468
19469 printf "%s\n" "#define GMP_NUMB_BITS $mini_gmp_numb_bits" >>confdefs.h
19470
19471
19472 fi
19473
19474 CPPFLAGS="$saved_CPPFLAGS"
19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mini_gmp_numb_bits bits ($how)" >&5
19476 printf "%s\n" "$mini_gmp_numb_bits bits ($how)" >&6; }
19477
19478 fi
19479
19480
19481 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
19482 if test "x$ac_cv_func_getrusage" = xyes
19483 then :
19484 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
19485
19486 fi
19487
19488
19489 if test -f confdefs.h; then
19490 for i in PACKAGE_ HAVE_STRING HAVE_DLFCN_H HAVE_MEM STDC_HEADERS \
19491 HAVE_STDLIB_H HAVE_UNISTD_H HAVE_STDC_HEADERS \
19492 HAVE_SYS_STAT_H HAVE_SYS_TYPES_H PROTOTYPES __PROTOTYPES
19493 do
19494 $SED "/#define $i/d" < confdefs.h > confdefs.tmp
19495 mv confdefs.tmp confdefs.h
19496 done
19497 fi
19498
19499 if $EGREP -q -e '-dev$' $srcdir/VERSION; then
19500 DATAFILES=`echo \`$SED -n \
19501 's/^ *data_check *("\(data\/[^"]*\)".*/tests\/\1/p' \
19502 $srcdir/tests/*.c\``
19503 fi
19504
19505 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"
19506
19507 cat >confcache <<\_ACEOF
19508 # This file is a shell script that caches the results of configure
19509 # tests run on this system so they can be shared between configure
19510 # scripts and configure runs, see configure's option --config-cache.
19511 # It is not useful on other systems. If it contains results you don't
19512 # want to keep, you may remove or edit it.
19513 #
19514 # config.status only pays attention to the cache file if you give it
19515 # the --recheck option to rerun configure.
19516 #
19517 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19518 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19519 # following values.
19520
19521 _ACEOF
19522
19523 # The following way of writing the cache mishandles newlines in values,
19524 # but we know of no workaround that is simple, portable, and efficient.
19525 # So, we kill variables containing newlines.
19526 # Ultrix sh set writes to stderr and can't be redirected directly,
19527 # and sets the high bit in the cache file unless we assign to the vars.
19528 (
19529 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19530 eval ac_val=\$$ac_var
19531 case $ac_val in #(
19532 *${as_nl}*)
19533 case $ac_var in #(
19534 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19535 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19536 esac
19537 case $ac_var in #(
19538 _ | IFS | as_nl) ;; #(
19539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19540 *) { eval $ac_var=; unset $ac_var;} ;;
19541 esac ;;
19542 esac
19543 done
19544
19545 (set) 2>&1 |
19546 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19547 *${as_nl}ac_space=\ *)
19548 # `set' does not quote correctly, so add quotes: double-quote
19549 # substitution turns \\\\ into \\, and sed turns \\ into \.
19550 sed -n \
19551 "s/'/'\\\\''/g;
19552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19553 ;; #(
19554 *)
19555 # `set' quotes correctly as required by POSIX, so do not add quotes.
19556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19557 ;;
19558 esac |
19559 sort
19560 ) |
19561 sed '
19562 /^ac_cv_env_/b end
19563 t clear
19564 :clear
19565 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19566 t end
19567 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19568 :end' >>confcache
19569 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19570 if test -w "$cache_file"; then
19571 if test "x$cache_file" != "x/dev/null"; then
19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19573 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19574 if test ! -f "$cache_file" || test -h "$cache_file"; then
19575 cat confcache >"$cache_file"
19576 else
19577 case $cache_file in #(
19578 */* | ?:*)
19579 mv -f confcache "$cache_file"$$ &&
19580 mv -f "$cache_file"$$ "$cache_file" ;; #(
19581 *)
19582 mv -f confcache "$cache_file" ;;
19583 esac
19584 fi
19585 fi
19586 else
19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19588 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19589 fi
19590 fi
19591 rm -f confcache
19592
19593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19594 # Let make expand exec_prefix.
19595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19596
19597 # Transform confdefs.h into DEFS.
19598 # Protect against shell expansion while executing Makefile rules.
19599 # Protect against Makefile macro expansion.
19600 #
19601 # If the first sed substitution is executed (which looks for macros that
19602 # take arguments), then branch to the quote section. Otherwise,
19603 # look for a macro that doesn't take arguments.
19604 ac_script='
19605 :mline
19606 /\\$/{
19607 N
19608 s,\\\n,,
19609 b mline
19610 }
19611 t clear
19612 :clear
19613 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
19614 t quote
19615 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
19616 t quote
19617 b any
19618 :quote
19619 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19620 s/\[/\\&/g
19621 s/\]/\\&/g
19622 s/\$/$$/g
19623 H
19624 :any
19625 ${
19626 g
19627 s/^\n//
19628 s/\n/ /g
19629 p
19630 }
19631 '
19632 DEFS=`sed -n "$ac_script" confdefs.h`
19633
19634
19635 ac_libobjs=
19636 ac_ltlibobjs=
19637 U=
19638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19639 # 1. Remove the extension, and $U if already installed.
19640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19641 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19643 # will be set to the directory where LIBOBJS objects are built.
19644 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19645 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19646 done
19647 LIBOBJS=$ac_libobjs
19648
19649 LTLIBOBJS=$ac_ltlibobjs
19650
19651
19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19653 printf %s "checking that generated files are newer than configure... " >&6; }
19654 if test -n "$am_sleep_pid"; then
19655 # Hide warnings about reused PIDs.
19656 wait $am_sleep_pid 2>/dev/null
19657 fi
19658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19659 printf "%s\n" "done" >&6; }
19660 if test -n "$EXEEXT"; then
19661 am__EXEEXT_TRUE=
19662 am__EXEEXT_FALSE='#'
19663 else
19664 am__EXEEXT_TRUE='#'
19665 am__EXEEXT_FALSE=
19666 fi
19667
19668 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19669 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19671 fi
19672 if test -z "${MINI_GMP_TRUE}" && test -z "${MINI_GMP_FALSE}"; then
19673 as_fn_error $? "conditional \"MINI_GMP\" was never defined.
19674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19675 fi
19676 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19677 as_fn_error $? "conditional \"AMDEP\" was never defined.
19678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19679 fi
19680 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19681 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19683 fi
19684
19685 : "${CONFIG_STATUS=./config.status}"
19686 ac_write_fail=0
19687 ac_clean_files_save=$ac_clean_files
19688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19690 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19691 as_write_fail=0
19692 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19693 #! $SHELL
19694 # Generated by $as_me.
19695 # Run this file to recreate the current configuration.
19696 # Compiler output produced by configure, useful for debugging
19697 # configure, is in config.log if it exists.
19698
19699 debug=false
19700 ac_cs_recheck=false
19701 ac_cs_silent=false
19702
19703 SHELL=\${CONFIG_SHELL-$SHELL}
19704 export SHELL
19705 _ASEOF
19706 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19707 ## -------------------- ##
19708 ## M4sh Initialization. ##
19709 ## -------------------- ##
19710
19711 # Be more Bourne compatible
19712 DUALCASE=1; export DUALCASE # for MKS sh
19713 as_nop=:
19714 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19715 then :
19716 emulate sh
19717 NULLCMD=:
19718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19719 # is contrary to our usage. Disable this feature.
19720 alias -g '${1+"$@"}'='"$@"'
19721 setopt NO_GLOB_SUBST
19722 else $as_nop
19723 case `(set -o) 2>/dev/null` in #(
19724 *posix*) :
19725 set -o posix ;; #(
19726 *) :
19727 ;;
19728 esac
19729 fi
19730
19731
19732
19733 # Reset variables that may have inherited troublesome values from
19734 # the environment.
19735
19736 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19737 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19738 # side effect of setting IFS to empty, thus disabling word splitting.)
19739 # Quoting is to prevent editors from complaining about space-tab.
19740 as_nl='
19741 '
19742 export as_nl
19743 IFS=" "" $as_nl"
19744
19745 PS1='$ '
19746 PS2='> '
19747 PS4='+ '
19748
19749 # Ensure predictable behavior from utilities with locale-dependent output.
19750 LC_ALL=C
19751 export LC_ALL
19752 LANGUAGE=C
19753 export LANGUAGE
19754
19755 # We cannot yet rely on "unset" to work, but we need these variables
19756 # to be unset--not just set to an empty or harmless value--now, to
19757 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19758 # also avoids known problems related to "unset" and subshell syntax
19759 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19760 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19761 do eval test \${$as_var+y} \
19762 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19763 done
19764
19765 # Ensure that fds 0, 1, and 2 are open.
19766 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19767 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19768 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19769
19770 # The user is always right.
19771 if ${PATH_SEPARATOR+false} :; then
19772 PATH_SEPARATOR=:
19773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19775 PATH_SEPARATOR=';'
19776 }
19777 fi
19778
19779
19780 # Find who we are. Look in the path if we contain no directory separator.
19781 as_myself=
19782 case $0 in #((
19783 *[\\/]* ) as_myself=$0 ;;
19784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19785 for as_dir in $PATH
19786 do
19787 IFS=$as_save_IFS
19788 case $as_dir in #(((
19789 '') as_dir=./ ;;
19790 */) ;;
19791 *) as_dir=$as_dir/ ;;
19792 esac
19793 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19794 done
19795 IFS=$as_save_IFS
19796
19797 ;;
19798 esac
19799 # We did not find ourselves, most probably we were run as `sh COMMAND'
19800 # in which case we are not to be found in the path.
19801 if test "x$as_myself" = x; then
19802 as_myself=$0
19803 fi
19804 if test ! -f "$as_myself"; then
19805 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19806 exit 1
19807 fi
19808
19809
19810
19811 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19812 # ----------------------------------------
19813 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19814 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19815 # script with STATUS, using 1 if that was 0.
19816 as_fn_error ()
19817 {
19818 as_status=$1; test $as_status -eq 0 && as_status=1
19819 if test "$4"; then
19820 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19822 fi
19823 printf "%s\n" "$as_me: error: $2" >&2
19824 as_fn_exit $as_status
19825 } # as_fn_error
19826
19827
19828
19829 # as_fn_set_status STATUS
19830 # -----------------------
19831 # Set $? to STATUS, without forking.
19832 as_fn_set_status ()
19833 {
19834 return $1
19835 } # as_fn_set_status
19836
19837 # as_fn_exit STATUS
19838 # -----------------
19839 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19840 as_fn_exit ()
19841 {
19842 set +e
19843 as_fn_set_status $1
19844 exit $1
19845 } # as_fn_exit
19846
19847 # as_fn_unset VAR
19848 # ---------------
19849 # Portably unset VAR.
19850 as_fn_unset ()
19851 {
19852 { eval $1=; unset $1;}
19853 }
19854 as_unset=as_fn_unset
19855
19856 # as_fn_append VAR VALUE
19857 # ----------------------
19858 # Append the text in VALUE to the end of the definition contained in VAR. Take
19859 # advantage of any shell optimizations that allow amortized linear growth over
19860 # repeated appends, instead of the typical quadratic growth present in naive
19861 # implementations.
19862 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19863 then :
19864 eval 'as_fn_append ()
19865 {
19866 eval $1+=\$2
19867 }'
19868 else $as_nop
19869 as_fn_append ()
19870 {
19871 eval $1=\$$1\$2
19872 }
19873 fi # as_fn_append
19874
19875 # as_fn_arith ARG...
19876 # ------------------
19877 # Perform arithmetic evaluation on the ARGs, and store the result in the
19878 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19879 # must be portable across $(()) and expr.
19880 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19881 then :
19882 eval 'as_fn_arith ()
19883 {
19884 as_val=$(( $* ))
19885 }'
19886 else $as_nop
19887 as_fn_arith ()
19888 {
19889 as_val=`expr "$@" || test $? -eq 1`
19890 }
19891 fi # as_fn_arith
19892
19893
19894 if expr a : '\(a\)' >/dev/null 2>&1 &&
19895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19896 as_expr=expr
19897 else
19898 as_expr=false
19899 fi
19900
19901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19902 as_basename=basename
19903 else
19904 as_basename=false
19905 fi
19906
19907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19908 as_dirname=dirname
19909 else
19910 as_dirname=false
19911 fi
19912
19913 as_me=`$as_basename -- "$0" ||
19914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19915 X"$0" : 'X\(//\)$' \| \
19916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19917 printf "%s\n" X/"$0" |
19918 sed '/^.*\/\([^/][^/]*\)\/*$/{
19919 s//\1/
19920 q
19921 }
19922 /^X\/\(\/\/\)$/{
19923 s//\1/
19924 q
19925 }
19926 /^X\/\(\/\).*/{
19927 s//\1/
19928 q
19929 }
19930 s/.*/./; q'`
19931
19932 # Avoid depending upon Character Ranges.
19933 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19934 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19935 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19936 as_cr_digits='0123456789'
19937 as_cr_alnum=$as_cr_Letters$as_cr_digits
19938
19939
19940 # Determine whether it's possible to make 'echo' print without a newline.
19941 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19942 # for compatibility with existing Makefiles.
19943 ECHO_C= ECHO_N= ECHO_T=
19944 case `echo -n x` in #(((((
19945 -n*)
19946 case `echo 'xy\c'` in
19947 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19948 xy) ECHO_C='\c';;
19949 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19950 ECHO_T=' ';;
19951 esac;;
19952 *)
19953 ECHO_N='-n';;
19954 esac
19955
19956 # For backward compatibility with old third-party macros, we provide
19957 # the shell variables $as_echo and $as_echo_n. New code should use
19958 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19959 as_echo='printf %s\n'
19960 as_echo_n='printf %s'
19961
19962 rm -f conf$$ conf$$.exe conf$$.file
19963 if test -d conf$$.dir; then
19964 rm -f conf$$.dir/conf$$.file
19965 else
19966 rm -f conf$$.dir
19967 mkdir conf$$.dir 2>/dev/null
19968 fi
19969 if (echo >conf$$.file) 2>/dev/null; then
19970 if ln -s conf$$.file conf$$ 2>/dev/null; then
19971 as_ln_s='ln -s'
19972 # ... but there are two gotchas:
19973 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19974 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19975 # In both cases, we have to default to `cp -pR'.
19976 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19977 as_ln_s='cp -pR'
19978 elif ln conf$$.file conf$$ 2>/dev/null; then
19979 as_ln_s=ln
19980 else
19981 as_ln_s='cp -pR'
19982 fi
19983 else
19984 as_ln_s='cp -pR'
19985 fi
19986 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19987 rmdir conf$$.dir 2>/dev/null
19988
19989
19990 # as_fn_mkdir_p
19991 # -------------
19992 # Create "$as_dir" as a directory, including parents if necessary.
19993 as_fn_mkdir_p ()
19994 {
19995
19996 case $as_dir in #(
19997 -*) as_dir=./$as_dir;;
19998 esac
19999 test -d "$as_dir" || eval $as_mkdir_p || {
20000 as_dirs=
20001 while :; do
20002 case $as_dir in #(
20003 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20004 *) as_qdir=$as_dir;;
20005 esac
20006 as_dirs="'$as_qdir' $as_dirs"
20007 as_dir=`$as_dirname -- "$as_dir" ||
20008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20009 X"$as_dir" : 'X\(//\)[^/]' \| \
20010 X"$as_dir" : 'X\(//\)$' \| \
20011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20012 printf "%s\n" X"$as_dir" |
20013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20014 s//\1/
20015 q
20016 }
20017 /^X\(\/\/\)[^/].*/{
20018 s//\1/
20019 q
20020 }
20021 /^X\(\/\/\)$/{
20022 s//\1/
20023 q
20024 }
20025 /^X\(\/\).*/{
20026 s//\1/
20027 q
20028 }
20029 s/.*/./; q'`
20030 test -d "$as_dir" && break
20031 done
20032 test -z "$as_dirs" || eval "mkdir $as_dirs"
20033 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20034
20035
20036 } # as_fn_mkdir_p
20037 if mkdir -p . 2>/dev/null; then
20038 as_mkdir_p='mkdir -p "$as_dir"'
20039 else
20040 test -d ./-p && rmdir ./-p
20041 as_mkdir_p=false
20042 fi
20043
20044
20045 # as_fn_executable_p FILE
20046 # -----------------------
20047 # Test if FILE is an executable regular file.
20048 as_fn_executable_p ()
20049 {
20050 test -f "$1" && test -x "$1"
20051 } # as_fn_executable_p
20052 as_test_x='test -x'
20053 as_executable_p=as_fn_executable_p
20054
20055 # Sed expression to map a string onto a valid CPP name.
20056 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20057
20058 # Sed expression to map a string onto a valid variable name.
20059 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20060
20061
20062 exec 6>&1
20063 ## ----------------------------------- ##
20064 ## Main body of $CONFIG_STATUS script. ##
20065 ## ----------------------------------- ##
20066 _ASEOF
20067 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20068
20069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20070 # Save the log message, to keep $0 and so on meaningful, and to
20071 # report actual input values of CONFIG_FILES etc. instead of their
20072 # values after options handling.
20073 ac_log="
20074 This file was extended by MPFR $as_me 4.2.0, which was
20075 generated by GNU Autoconf 2.71. Invocation command line was
20076
20077 CONFIG_FILES = $CONFIG_FILES
20078 CONFIG_HEADERS = $CONFIG_HEADERS
20079 CONFIG_LINKS = $CONFIG_LINKS
20080 CONFIG_COMMANDS = $CONFIG_COMMANDS
20081 $ $0 $@
20082
20083 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20084 "
20085
20086 _ACEOF
20087
20088 case $ac_config_files in *"
20089 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20090 esac
20091
20092
20093
20094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20095 # Files that config.status was made for.
20096 config_files="$ac_config_files"
20097 config_commands="$ac_config_commands"
20098
20099 _ACEOF
20100
20101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20102 ac_cs_usage="\
20103 \`$as_me' instantiates files and other configuration actions
20104 from templates according to the current configuration. Unless the files
20105 and actions are specified as TAGs, all are instantiated by default.
20106
20107 Usage: $0 [OPTION]... [TAG]...
20108
20109 -h, --help print this help, then exit
20110 -V, --version print version number and configuration settings, then exit
20111 --config print configuration, then exit
20112 -q, --quiet, --silent
20113 do not print progress messages
20114 -d, --debug don't remove temporary files
20115 --recheck update $as_me by reconfiguring in the same conditions
20116 --file=FILE[:TEMPLATE]
20117 instantiate the configuration file FILE
20118
20119 Configuration files:
20120 $config_files
20121
20122 Configuration commands:
20123 $config_commands
20124
20125 Report bugs to the package provider."
20126
20127 _ACEOF
20128 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20129 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20131 ac_cs_config='$ac_cs_config_escaped'
20132 ac_cs_version="\\
20133 MPFR config.status 4.2.0
20134 configured by $0, generated by GNU Autoconf 2.71,
20135 with options \\"\$ac_cs_config\\"
20136
20137 Copyright (C) 2021 Free Software Foundation, Inc.
20138 This config.status script is free software; the Free Software Foundation
20139 gives unlimited permission to copy, distribute and modify it."
20140
20141 ac_pwd='$ac_pwd'
20142 srcdir='$srcdir'
20143 INSTALL='$INSTALL'
20144 MKDIR_P='$MKDIR_P'
20145 AWK='$AWK'
20146 test -n "\$AWK" || AWK=awk
20147 _ACEOF
20148
20149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20150 # The default lists apply if the user does not specify any file.
20151 ac_need_defaults=:
20152 while test $# != 0
20153 do
20154 case $1 in
20155 --*=?*)
20156 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20157 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20158 ac_shift=:
20159 ;;
20160 --*=)
20161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20162 ac_optarg=
20163 ac_shift=:
20164 ;;
20165 *)
20166 ac_option=$1
20167 ac_optarg=$2
20168 ac_shift=shift
20169 ;;
20170 esac
20171
20172 case $ac_option in
20173 # Handling of the options.
20174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20175 ac_cs_recheck=: ;;
20176 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20177 printf "%s\n" "$ac_cs_version"; exit ;;
20178 --config | --confi | --conf | --con | --co | --c )
20179 printf "%s\n" "$ac_cs_config"; exit ;;
20180 --debug | --debu | --deb | --de | --d | -d )
20181 debug=: ;;
20182 --file | --fil | --fi | --f )
20183 $ac_shift
20184 case $ac_optarg in
20185 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20186 '') as_fn_error $? "missing file argument" ;;
20187 esac
20188 as_fn_append CONFIG_FILES " '$ac_optarg'"
20189 ac_need_defaults=false;;
20190 --he | --h | --help | --hel | -h )
20191 printf "%s\n" "$ac_cs_usage"; exit ;;
20192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20193 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20194 ac_cs_silent=: ;;
20195
20196 # This is an error.
20197 -*) as_fn_error $? "unrecognized option: \`$1'
20198 Try \`$0 --help' for more information." ;;
20199
20200 *) as_fn_append ac_config_targets " $1"
20201 ac_need_defaults=false ;;
20202
20203 esac
20204 shift
20205 done
20206
20207 ac_configure_extra_args=
20208
20209 if $ac_cs_silent; then
20210 exec 6>/dev/null
20211 ac_configure_extra_args="$ac_configure_extra_args --silent"
20212 fi
20213
20214 _ACEOF
20215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20216 if \$ac_cs_recheck; then
20217 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20218 shift
20219 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20220 CONFIG_SHELL='$SHELL'
20221 export CONFIG_SHELL
20222 exec "\$@"
20223 fi
20224
20225 _ACEOF
20226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20227 exec 5>>config.log
20228 {
20229 echo
20230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20231 ## Running $as_me. ##
20232 _ASBOX
20233 printf "%s\n" "$ac_log"
20234 } >&5
20235
20236 _ACEOF
20237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20238 #
20239 # INIT-COMMANDS
20240 #
20241 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20242
20243
20244 # The HP-UX ksh and POSIX shell print the target directory to stdout
20245 # if CDPATH is set.
20246 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20247
20248 sed_quote_subst='$sed_quote_subst'
20249 double_quote_subst='$double_quote_subst'
20250 delay_variable_subst='$delay_variable_subst'
20251 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20252 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20253 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20254 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20255 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20256 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20257 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20258 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20259 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20260 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20261 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20262 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20263 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20264 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20265 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20266 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20267 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20268 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20269 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20270 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20271 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20272 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20273 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20274 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20275 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20276 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20277 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20278 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20279 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20280 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20281 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20282 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20283 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20284 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20285 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20286 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20287 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20288 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20289 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20290 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20291 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20292 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20293 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20294 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20295 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20296 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20297 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20298 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20299 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20300 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20301 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20302 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20303 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20304 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20305 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20306 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20307 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20308 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20309 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20310 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20311 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20312 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"`'
20313 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20314 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20315 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20316 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20317 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20318 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20319 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20320 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20321 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20322 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20323 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20324 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20325 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20326 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20327 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20328 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20329 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20330 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20331 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20332 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20333 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20334 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20335 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20336 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20337 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20338 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20339 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20340 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20341 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20342 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20343 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20344 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20345 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20346 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20347 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20348 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20349 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20350 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20351 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20352 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20353 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20354 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20355 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20356 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20357 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20358 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20359 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20360 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20361 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20362 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20363 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20364 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20365 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20366 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20367 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20368 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20369 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20370 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20371 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20372 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20373 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20374 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20375 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20376 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20377 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20378 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20379 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20380 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20381 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20382 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20383 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20384 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20385 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20386 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20387 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20388 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20389
20390 LTCC='$LTCC'
20391 LTCFLAGS='$LTCFLAGS'
20392 compiler='$compiler_DEFAULT'
20393
20394 # A function that is used when there is no print builtin or printf.
20395 func_fallback_echo ()
20396 {
20397 eval 'cat <<_LTECHO_EOF
20398 \$1
20399 _LTECHO_EOF'
20400 }
20401
20402 # Quote evaled strings.
20403 for var in AS \
20404 DLLTOOL \
20405 OBJDUMP \
20406 SHELL \
20407 ECHO \
20408 PATH_SEPARATOR \
20409 SED \
20410 GREP \
20411 EGREP \
20412 FGREP \
20413 LD \
20414 NM \
20415 LN_S \
20416 lt_SP2NL \
20417 lt_NL2SP \
20418 reload_flag \
20419 FILECMD \
20420 deplibs_check_method \
20421 file_magic_cmd \
20422 file_magic_glob \
20423 want_nocaseglob \
20424 sharedlib_from_linklib_cmd \
20425 AR \
20426 archiver_list_spec \
20427 STRIP \
20428 RANLIB \
20429 CC \
20430 CFLAGS \
20431 compiler \
20432 lt_cv_sys_global_symbol_pipe \
20433 lt_cv_sys_global_symbol_to_cdecl \
20434 lt_cv_sys_global_symbol_to_import \
20435 lt_cv_sys_global_symbol_to_c_name_address \
20436 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20437 lt_cv_nm_interface \
20438 nm_file_list_spec \
20439 lt_cv_truncate_bin \
20440 lt_prog_compiler_no_builtin_flag \
20441 lt_prog_compiler_pic \
20442 lt_prog_compiler_wl \
20443 lt_prog_compiler_static \
20444 lt_cv_prog_compiler_c_o \
20445 need_locks \
20446 MANIFEST_TOOL \
20447 DSYMUTIL \
20448 NMEDIT \
20449 LIPO \
20450 OTOOL \
20451 OTOOL64 \
20452 shrext_cmds \
20453 export_dynamic_flag_spec \
20454 whole_archive_flag_spec \
20455 compiler_needs_object \
20456 with_gnu_ld \
20457 allow_undefined_flag \
20458 no_undefined_flag \
20459 hardcode_libdir_flag_spec \
20460 hardcode_libdir_separator \
20461 exclude_expsyms \
20462 include_expsyms \
20463 file_list_spec \
20464 variables_saved_for_relink \
20465 libname_spec \
20466 library_names_spec \
20467 soname_spec \
20468 install_override_mode \
20469 finish_eval \
20470 old_striplib \
20471 striplib; do
20472 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20473 *[\\\\\\\`\\"\\\$]*)
20474 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20475 ;;
20476 *)
20477 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20478 ;;
20479 esac
20480 done
20481
20482 # Double-quote double-evaled strings.
20483 for var in reload_cmds \
20484 old_postinstall_cmds \
20485 old_postuninstall_cmds \
20486 old_archive_cmds \
20487 extract_expsyms_cmds \
20488 old_archive_from_new_cmds \
20489 old_archive_from_expsyms_cmds \
20490 archive_cmds \
20491 archive_expsym_cmds \
20492 module_cmds \
20493 module_expsym_cmds \
20494 export_symbols_cmds \
20495 prelink_cmds \
20496 postlink_cmds \
20497 postinstall_cmds \
20498 postuninstall_cmds \
20499 finish_cmds \
20500 sys_lib_search_path_spec \
20501 configure_time_dlsearch_path \
20502 configure_time_lt_sys_library_path; do
20503 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20504 *[\\\\\\\`\\"\\\$]*)
20505 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20506 ;;
20507 *)
20508 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20509 ;;
20510 esac
20511 done
20512
20513 ac_aux_dir='$ac_aux_dir'
20514
20515 # See if we are running on zsh, and set the options that allow our
20516 # commands through without removal of \ escapes INIT.
20517 if test -n "\${ZSH_VERSION+set}"; then
20518 setopt NO_GLOB_SUBST
20519 fi
20520
20521
20522 PACKAGE='$PACKAGE'
20523 VERSION='$VERSION'
20524 RM='$RM'
20525 ofile='$ofile'
20526
20527
20528
20529
20530 _ACEOF
20531
20532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20533
20534 # Handling of arguments.
20535 for ac_config_target in $ac_config_targets
20536 do
20537 case $ac_config_target in
20538 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20539 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20540 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20541 "mpfr.pc") CONFIG_FILES="$CONFIG_FILES mpfr.pc" ;;
20542 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20543 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20544 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20545 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
20546 "src/mparam.h") CONFIG_FILES="$CONFIG_FILES src/mparam.h:src/mparam_h.in" ;;
20547 "tools/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tools/bench/Makefile" ;;
20548
20549 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20550 esac
20551 done
20552
20553
20554 # If the user did not use the arguments to specify the items to instantiate,
20555 # then the envvar interface is used. Set only those that are not.
20556 # We use the long form for the default assignment because of an extremely
20557 # bizarre bug on SunOS 4.1.3.
20558 if $ac_need_defaults; then
20559 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20560 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20561 fi
20562
20563 # Have a temporary directory for convenience. Make it in the build tree
20564 # simply because there is no reason against having it here, and in addition,
20565 # creating and moving files from /tmp can sometimes cause problems.
20566 # Hook for its removal unless debugging.
20567 # Note that there is a small window in which the directory will not be cleaned:
20568 # after its creation but before its name has been assigned to `$tmp'.
20569 $debug ||
20570 {
20571 tmp= ac_tmp=
20572 trap 'exit_status=$?
20573 : "${ac_tmp:=$tmp}"
20574 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20575 ' 0
20576 trap 'as_fn_exit 1' 1 2 13 15
20577 }
20578 # Create a (secure) tmp directory for tmp files.
20579
20580 {
20581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20582 test -d "$tmp"
20583 } ||
20584 {
20585 tmp=./conf$$-$RANDOM
20586 (umask 077 && mkdir "$tmp")
20587 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20588 ac_tmp=$tmp
20589
20590 # Set up the scripts for CONFIG_FILES section.
20591 # No need to generate them if there are no CONFIG_FILES.
20592 # This happens for instance with `./config.status config.h'.
20593 if test -n "$CONFIG_FILES"; then
20594
20595
20596 ac_cr=`echo X | tr X '\015'`
20597 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20598 # But we know of no other shell where ac_cr would be empty at this
20599 # point, so we can use a bashism as a fallback.
20600 if test "x$ac_cr" = x; then
20601 eval ac_cr=\$\'\\r\'
20602 fi
20603 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20604 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20605 ac_cs_awk_cr='\\r'
20606 else
20607 ac_cs_awk_cr=$ac_cr
20608 fi
20609
20610 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20611 _ACEOF
20612
20613
20614 {
20615 echo "cat >conf$$subs.awk <<_ACEOF" &&
20616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20617 echo "_ACEOF"
20618 } >conf$$subs.sh ||
20619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20620 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20621 ac_delim='%!_!# '
20622 for ac_last_try in false false false false false :; do
20623 . ./conf$$subs.sh ||
20624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20625
20626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20627 if test $ac_delim_n = $ac_delim_num; then
20628 break
20629 elif $ac_last_try; then
20630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20631 else
20632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20633 fi
20634 done
20635 rm -f conf$$subs.sh
20636
20637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20638 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20639 _ACEOF
20640 sed -n '
20641 h
20642 s/^/S["/; s/!.*/"]=/
20643 p
20644 g
20645 s/^[^!]*!//
20646 :repl
20647 t repl
20648 s/'"$ac_delim"'$//
20649 t delim
20650 :nl
20651 h
20652 s/\(.\{148\}\)..*/\1/
20653 t more1
20654 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20655 p
20656 n
20657 b repl
20658 :more1
20659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20660 p
20661 g
20662 s/.\{148\}//
20663 t nl
20664 :delim
20665 h
20666 s/\(.\{148\}\)..*/\1/
20667 t more2
20668 s/["\\]/\\&/g; s/^/"/; s/$/"/
20669 p
20670 b
20671 :more2
20672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20673 p
20674 g
20675 s/.\{148\}//
20676 t delim
20677 ' <conf$$subs.awk | sed '
20678 /^[^""]/{
20679 N
20680 s/\n//
20681 }
20682 ' >>$CONFIG_STATUS || ac_write_fail=1
20683 rm -f conf$$subs.awk
20684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20685 _ACAWK
20686 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20687 for (key in S) S_is_set[key] = 1
20688 FS = ""
20689
20690 }
20691 {
20692 line = $ 0
20693 nfields = split(line, field, "@")
20694 substed = 0
20695 len = length(field[1])
20696 for (i = 2; i < nfields; i++) {
20697 key = field[i]
20698 keylen = length(key)
20699 if (S_is_set[key]) {
20700 value = S[key]
20701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20702 len += length(value) + length(field[++i])
20703 substed = 1
20704 } else
20705 len += 1 + keylen
20706 }
20707
20708 print line
20709 }
20710
20711 _ACAWK
20712 _ACEOF
20713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20714 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20716 else
20717 cat
20718 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20719 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20720 _ACEOF
20721
20722 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20723 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20724 # trailing colons and then remove the whole line if VPATH becomes empty
20725 # (actually we leave an empty line to preserve line numbers).
20726 if test "x$srcdir" = x.; then
20727 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20728 h
20729 s///
20730 s/^/:/
20731 s/[ ]*$/:/
20732 s/:\$(srcdir):/:/g
20733 s/:\${srcdir}:/:/g
20734 s/:@srcdir@:/:/g
20735 s/^:*//
20736 s/:*$//
20737 x
20738 s/\(=[ ]*\).*/\1/
20739 G
20740 s/\n//
20741 s/^[^=]*=[ ]*$//
20742 }'
20743 fi
20744
20745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20746 fi # test -n "$CONFIG_FILES"
20747
20748
20749 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
20750 shift
20751 for ac_tag
20752 do
20753 case $ac_tag in
20754 :[FHLC]) ac_mode=$ac_tag; continue;;
20755 esac
20756 case $ac_mode$ac_tag in
20757 :[FHL]*:*);;
20758 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20759 :[FH]-) ac_tag=-:-;;
20760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20761 esac
20762 ac_save_IFS=$IFS
20763 IFS=:
20764 set x $ac_tag
20765 IFS=$ac_save_IFS
20766 shift
20767 ac_file=$1
20768 shift
20769
20770 case $ac_mode in
20771 :L) ac_source=$1;;
20772 :[FH])
20773 ac_file_inputs=
20774 for ac_f
20775 do
20776 case $ac_f in
20777 -) ac_f="$ac_tmp/stdin";;
20778 *) # Look for the file first in the build tree, then in the source tree
20779 # (if the path is not absolute). The absolute path cannot be DOS-style,
20780 # because $ac_f cannot contain `:'.
20781 test -f "$ac_f" ||
20782 case $ac_f in
20783 [\\/$]*) false;;
20784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20785 esac ||
20786 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20787 esac
20788 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20789 as_fn_append ac_file_inputs " '$ac_f'"
20790 done
20791
20792 # Let's still pretend it is `configure' which instantiates (i.e., don't
20793 # use $as_me), people would be surprised to read:
20794 # /* config.h. Generated by config.status. */
20795 configure_input='Generated from '`
20796 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20797 `' by configure.'
20798 if test x"$ac_file" != x-; then
20799 configure_input="$ac_file. $configure_input"
20800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20801 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20802 fi
20803 # Neutralize special characters interpreted by sed in replacement strings.
20804 case $configure_input in #(
20805 *\&* | *\|* | *\\* )
20806 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20807 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20808 *) ac_sed_conf_input=$configure_input;;
20809 esac
20810
20811 case $ac_tag in
20812 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20814 esac
20815 ;;
20816 esac
20817
20818 ac_dir=`$as_dirname -- "$ac_file" ||
20819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20820 X"$ac_file" : 'X\(//\)[^/]' \| \
20821 X"$ac_file" : 'X\(//\)$' \| \
20822 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20823 printf "%s\n" X"$ac_file" |
20824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20825 s//\1/
20826 q
20827 }
20828 /^X\(\/\/\)[^/].*/{
20829 s//\1/
20830 q
20831 }
20832 /^X\(\/\/\)$/{
20833 s//\1/
20834 q
20835 }
20836 /^X\(\/\).*/{
20837 s//\1/
20838 q
20839 }
20840 s/.*/./; q'`
20841 as_dir="$ac_dir"; as_fn_mkdir_p
20842 ac_builddir=.
20843
20844 case "$ac_dir" in
20845 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20846 *)
20847 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20848 # A ".." for each directory in $ac_dir_suffix.
20849 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20850 case $ac_top_builddir_sub in
20851 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20852 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20853 esac ;;
20854 esac
20855 ac_abs_top_builddir=$ac_pwd
20856 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20857 # for backward compatibility:
20858 ac_top_builddir=$ac_top_build_prefix
20859
20860 case $srcdir in
20861 .) # We are building in place.
20862 ac_srcdir=.
20863 ac_top_srcdir=$ac_top_builddir_sub
20864 ac_abs_top_srcdir=$ac_pwd ;;
20865 [\\/]* | ?:[\\/]* ) # Absolute name.
20866 ac_srcdir=$srcdir$ac_dir_suffix;
20867 ac_top_srcdir=$srcdir
20868 ac_abs_top_srcdir=$srcdir ;;
20869 *) # Relative name.
20870 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20871 ac_top_srcdir=$ac_top_build_prefix$srcdir
20872 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20873 esac
20874 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20875
20876
20877 case $ac_mode in
20878 :F)
20879 #
20880 # CONFIG_FILE
20881 #
20882
20883 case $INSTALL in
20884 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20885 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20886 esac
20887 ac_MKDIR_P=$MKDIR_P
20888 case $MKDIR_P in
20889 [\\/$]* | ?:[\\/]* ) ;;
20890 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20891 esac
20892 _ACEOF
20893
20894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20895 # If the template does not know about datarootdir, expand it.
20896 # FIXME: This hack should be removed a few years after 2.60.
20897 ac_datarootdir_hack=; ac_datarootdir_seen=
20898 ac_sed_dataroot='
20899 /datarootdir/ {
20900 p
20901 q
20902 }
20903 /@datadir@/p
20904 /@docdir@/p
20905 /@infodir@/p
20906 /@localedir@/p
20907 /@mandir@/p'
20908 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20909 *datarootdir*) ac_datarootdir_seen=yes;;
20910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20912 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20913 _ACEOF
20914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20915 ac_datarootdir_hack='
20916 s&@datadir@&$datadir&g
20917 s&@docdir@&$docdir&g
20918 s&@infodir@&$infodir&g
20919 s&@localedir@&$localedir&g
20920 s&@mandir@&$mandir&g
20921 s&\\\${datarootdir}&$datarootdir&g' ;;
20922 esac
20923 _ACEOF
20924
20925 # Neutralize VPATH when `$srcdir' = `.'.
20926 # Shell code in configure.ac might set extrasub.
20927 # FIXME: do we really want to maintain this feature?
20928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20929 ac_sed_extra="$ac_vpsub
20930 $extrasub
20931 _ACEOF
20932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20933 :t
20934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20935 s|@configure_input@|$ac_sed_conf_input|;t t
20936 s&@top_builddir@&$ac_top_builddir_sub&;t t
20937 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20938 s&@srcdir@&$ac_srcdir&;t t
20939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20940 s&@top_srcdir@&$ac_top_srcdir&;t t
20941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20942 s&@builddir@&$ac_builddir&;t t
20943 s&@abs_builddir@&$ac_abs_builddir&;t t
20944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20945 s&@INSTALL@&$ac_INSTALL&;t t
20946 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20947 $ac_datarootdir_hack
20948 "
20949 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20950 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20951
20952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20953 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20955 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20957 which seems to be undefined. Please make sure it is defined" >&5
20958 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20959 which seems to be undefined. Please make sure it is defined" >&2;}
20960
20961 rm -f "$ac_tmp/stdin"
20962 case $ac_file in
20963 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20964 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20965 esac \
20966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20967 ;;
20968
20969
20970 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20971 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20972 ;;
20973 esac
20974
20975
20976 case $ac_file$ac_mode in
20977 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20978 # Older Autoconf quotes --file arguments for eval, but not when files
20979 # are listed without --file. Let's play safe and only enable the eval
20980 # if we detect the quoting.
20981 # TODO: see whether this extra hack can be removed once we start
20982 # requiring Autoconf 2.70 or later.
20983 case $CONFIG_FILES in #(
20984 *\'*) :
20985 eval set x "$CONFIG_FILES" ;; #(
20986 *) :
20987 set x $CONFIG_FILES ;; #(
20988 *) :
20989 ;;
20990 esac
20991 shift
20992 # Used to flag and report bootstrapping failures.
20993 am_rc=0
20994 for am_mf
20995 do
20996 # Strip MF so we end up with the name of the file.
20997 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20998 # Check whether this is an Automake generated Makefile which includes
20999 # dependency-tracking related rules and includes.
21000 # Grep'ing the whole file directly is not great: AIX grep has a line
21001 # limit of 2048, but all sed's we know have understand at least 4000.
21002 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21003 || continue
21004 am_dirpart=`$as_dirname -- "$am_mf" ||
21005 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21006 X"$am_mf" : 'X\(//\)[^/]' \| \
21007 X"$am_mf" : 'X\(//\)$' \| \
21008 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21009 printf "%s\n" X"$am_mf" |
21010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21011 s//\1/
21012 q
21013 }
21014 /^X\(\/\/\)[^/].*/{
21015 s//\1/
21016 q
21017 }
21018 /^X\(\/\/\)$/{
21019 s//\1/
21020 q
21021 }
21022 /^X\(\/\).*/{
21023 s//\1/
21024 q
21025 }
21026 s/.*/./; q'`
21027 am_filepart=`$as_basename -- "$am_mf" ||
21028 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21029 X"$am_mf" : 'X\(//\)$' \| \
21030 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21031 printf "%s\n" X/"$am_mf" |
21032 sed '/^.*\/\([^/][^/]*\)\/*$/{
21033 s//\1/
21034 q
21035 }
21036 /^X\/\(\/\/\)$/{
21037 s//\1/
21038 q
21039 }
21040 /^X\/\(\/\).*/{
21041 s//\1/
21042 q
21043 }
21044 s/.*/./; q'`
21045 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21046 && sed -e '/# am--include-marker/d' "$am_filepart" \
21047 | $MAKE -f - am--depfiles" >&5
21048 (cd "$am_dirpart" \
21049 && sed -e '/# am--include-marker/d' "$am_filepart" \
21050 | $MAKE -f - am--depfiles) >&5 2>&5
21051 ac_status=$?
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); } || am_rc=$?
21054 done
21055 if test $am_rc -ne 0; then
21056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21057 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21058 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21059 for automatic dependency tracking. If GNU make was not used, consider
21060 re-running the configure script with MAKE=\"gmake\" (or whatever is
21061 necessary). You can also try re-running configure with the
21062 '--disable-dependency-tracking' option to at least be able to build
21063 the package (albeit without support for automatic dependency tracking).
21064 See \`config.log' for more details" "$LINENO" 5; }
21065 fi
21066 { am_dirpart=; unset am_dirpart;}
21067 { am_filepart=; unset am_filepart;}
21068 { am_mf=; unset am_mf;}
21069 { am_rc=; unset am_rc;}
21070 rm -f conftest-deps.mk
21071 }
21072 ;;
21073 "libtool":C)
21074
21075 # See if we are running on zsh, and set the options that allow our
21076 # commands through without removal of \ escapes.
21077 if test -n "${ZSH_VERSION+set}"; then
21078 setopt NO_GLOB_SUBST
21079 fi
21080
21081 cfgfile=${ofile}T
21082 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21083 $RM "$cfgfile"
21084
21085 cat <<_LT_EOF >> "$cfgfile"
21086 #! $SHELL
21087 # Generated automatically by $as_me ($PACKAGE) $VERSION
21088 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21089
21090 # Provide generalized library-building support services.
21091 # Written by Gordon Matzigkeit, 1996
21092
21093 # Copyright (C) 2014 Free Software Foundation, Inc.
21094 # This is free software; see the source for copying conditions. There is NO
21095 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21096
21097 # GNU Libtool is free software; you can redistribute it and/or modify
21098 # it under the terms of the GNU General Public License as published by
21099 # the Free Software Foundation; either version 2 of of the License, or
21100 # (at your option) any later version.
21101 #
21102 # As a special exception to the GNU General Public License, if you
21103 # distribute this file as part of a program or library that is built
21104 # using GNU Libtool, you may include this file under the same
21105 # distribution terms that you use for the rest of that program.
21106 #
21107 # GNU Libtool is distributed in the hope that it will be useful, but
21108 # WITHOUT ANY WARRANTY; without even the implied warranty of
21109 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21110 # GNU General Public License for more details.
21111 #
21112 # You should have received a copy of the GNU General Public License
21113 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21114
21115
21116 # The names of the tagged configurations supported by this script.
21117 available_tags=''
21118
21119 # Configured defaults for sys_lib_dlsearch_path munging.
21120 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21121
21122 # ### BEGIN LIBTOOL CONFIG
21123
21124 # Which release of libtool.m4 was used?
21125 macro_version=$macro_version
21126 macro_revision=$macro_revision
21127
21128 # Assembler program.
21129 AS=$lt_AS
21130
21131 # DLL creation program.
21132 DLLTOOL=$lt_DLLTOOL
21133
21134 # Object dumper program.
21135 OBJDUMP=$lt_OBJDUMP
21136
21137 # Whether or not to build shared libraries.
21138 build_libtool_libs=$enable_shared
21139
21140 # Whether or not to build static libraries.
21141 build_old_libs=$enable_static
21142
21143 # What type of objects to build.
21144 pic_mode=$pic_mode
21145
21146 # Whether or not to optimize for fast installation.
21147 fast_install=$enable_fast_install
21148
21149 # Shared archive member basename,for filename based shared library versioning on AIX.
21150 shared_archive_member_spec=$shared_archive_member_spec
21151
21152 # Shell to use when invoking shell scripts.
21153 SHELL=$lt_SHELL
21154
21155 # An echo program that protects backslashes.
21156 ECHO=$lt_ECHO
21157
21158 # The PATH separator for the build system.
21159 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21160
21161 # The host system.
21162 host_alias=$host_alias
21163 host=$host
21164 host_os=$host_os
21165
21166 # The build system.
21167 build_alias=$build_alias
21168 build=$build
21169 build_os=$build_os
21170
21171 # A sed program that does not truncate output.
21172 SED=$lt_SED
21173
21174 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21175 Xsed="\$SED -e 1s/^X//"
21176
21177 # A grep program that handles long lines.
21178 GREP=$lt_GREP
21179
21180 # An ERE matcher.
21181 EGREP=$lt_EGREP
21182
21183 # A literal string matcher.
21184 FGREP=$lt_FGREP
21185
21186 # A BSD- or MS-compatible name lister.
21187 NM=$lt_NM
21188
21189 # Whether we need soft or hard links.
21190 LN_S=$lt_LN_S
21191
21192 # What is the maximum length of a command?
21193 max_cmd_len=$max_cmd_len
21194
21195 # Object file suffix (normally "o").
21196 objext=$ac_objext
21197
21198 # Executable file suffix (normally "").
21199 exeext=$exeext
21200
21201 # whether the shell understands "unset".
21202 lt_unset=$lt_unset
21203
21204 # turn spaces into newlines.
21205 SP2NL=$lt_lt_SP2NL
21206
21207 # turn newlines into spaces.
21208 NL2SP=$lt_lt_NL2SP
21209
21210 # convert \$build file names to \$host format.
21211 to_host_file_cmd=$lt_cv_to_host_file_cmd
21212
21213 # convert \$build files to toolchain format.
21214 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21215
21216 # A file(cmd) program that detects file types.
21217 FILECMD=$lt_FILECMD
21218
21219 # Method to check whether dependent libraries are shared objects.
21220 deplibs_check_method=$lt_deplibs_check_method
21221
21222 # Command to use when deplibs_check_method = "file_magic".
21223 file_magic_cmd=$lt_file_magic_cmd
21224
21225 # How to find potential files when deplibs_check_method = "file_magic".
21226 file_magic_glob=$lt_file_magic_glob
21227
21228 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21229 want_nocaseglob=$lt_want_nocaseglob
21230
21231 # Command to associate shared and link libraries.
21232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21233
21234 # The archiver.
21235 AR=$lt_AR
21236
21237 # Flags to create an archive (by configure).
21238 lt_ar_flags=$lt_ar_flags
21239
21240 # Flags to create an archive.
21241 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21242
21243 # How to feed a file listing to the archiver.
21244 archiver_list_spec=$lt_archiver_list_spec
21245
21246 # A symbol stripping program.
21247 STRIP=$lt_STRIP
21248
21249 # Commands used to install an old-style archive.
21250 RANLIB=$lt_RANLIB
21251 old_postinstall_cmds=$lt_old_postinstall_cmds
21252 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21253
21254 # Whether to use a lock for old archive extraction.
21255 lock_old_archive_extraction=$lock_old_archive_extraction
21256
21257 # A C compiler.
21258 LTCC=$lt_CC
21259
21260 # LTCC compiler flags.
21261 LTCFLAGS=$lt_CFLAGS
21262
21263 # Take the output of nm and produce a listing of raw symbols and C names.
21264 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21265
21266 # Transform the output of nm in a proper C declaration.
21267 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21268
21269 # Transform the output of nm into a list of symbols to manually relocate.
21270 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21271
21272 # Transform the output of nm in a C name address pair.
21273 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21274
21275 # Transform the output of nm in a C name address pair when lib prefix is needed.
21276 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21277
21278 # The name lister interface.
21279 nm_interface=$lt_lt_cv_nm_interface
21280
21281 # Specify filename containing input files for \$NM.
21282 nm_file_list_spec=$lt_nm_file_list_spec
21283
21284 # The root where to search for dependent libraries,and where our libraries should be installed.
21285 lt_sysroot=$lt_sysroot
21286
21287 # Command to truncate a binary pipe.
21288 lt_truncate_bin=$lt_lt_cv_truncate_bin
21289
21290 # The name of the directory that contains temporary libtool files.
21291 objdir=$objdir
21292
21293 # Used to examine libraries when file_magic_cmd begins with "file".
21294 MAGIC_CMD=$MAGIC_CMD
21295
21296 # Must we lock files when doing compilation?
21297 need_locks=$lt_need_locks
21298
21299 # Manifest tool.
21300 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21301
21302 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21303 DSYMUTIL=$lt_DSYMUTIL
21304
21305 # Tool to change global to local symbols on Mac OS X.
21306 NMEDIT=$lt_NMEDIT
21307
21308 # Tool to manipulate fat objects and archives on Mac OS X.
21309 LIPO=$lt_LIPO
21310
21311 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21312 OTOOL=$lt_OTOOL
21313
21314 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21315 OTOOL64=$lt_OTOOL64
21316
21317 # Old archive suffix (normally "a").
21318 libext=$libext
21319
21320 # Shared library suffix (normally ".so").
21321 shrext_cmds=$lt_shrext_cmds
21322
21323 # The commands to extract the exported symbol list from a shared archive.
21324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21325
21326 # Variables whose values should be saved in libtool wrapper scripts and
21327 # restored at link time.
21328 variables_saved_for_relink=$lt_variables_saved_for_relink
21329
21330 # Do we need the "lib" prefix for modules?
21331 need_lib_prefix=$need_lib_prefix
21332
21333 # Do we need a version for libraries?
21334 need_version=$need_version
21335
21336 # Library versioning type.
21337 version_type=$version_type
21338
21339 # Shared library runtime path variable.
21340 runpath_var=$runpath_var
21341
21342 # Shared library path variable.
21343 shlibpath_var=$shlibpath_var
21344
21345 # Is shlibpath searched before the hard-coded library search path?
21346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21347
21348 # Format of library name prefix.
21349 libname_spec=$lt_libname_spec
21350
21351 # List of archive names. First name is the real one, the rest are links.
21352 # The last name is the one that the linker finds with -lNAME
21353 library_names_spec=$lt_library_names_spec
21354
21355 # The coded name of the library, if different from the real name.
21356 soname_spec=$lt_soname_spec
21357
21358 # Permission mode override for installation of shared libraries.
21359 install_override_mode=$lt_install_override_mode
21360
21361 # Command to use after installation of a shared archive.
21362 postinstall_cmds=$lt_postinstall_cmds
21363
21364 # Command to use after uninstallation of a shared archive.
21365 postuninstall_cmds=$lt_postuninstall_cmds
21366
21367 # Commands used to finish a libtool library installation in a directory.
21368 finish_cmds=$lt_finish_cmds
21369
21370 # As "finish_cmds", except a single script fragment to be evaled but
21371 # not shown.
21372 finish_eval=$lt_finish_eval
21373
21374 # Whether we should hardcode library paths into libraries.
21375 hardcode_into_libs=$hardcode_into_libs
21376
21377 # Compile-time system search path for libraries.
21378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21379
21380 # Detected run-time system search path for libraries.
21381 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21382
21383 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21384 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21385
21386 # Whether dlopen is supported.
21387 dlopen_support=$enable_dlopen
21388
21389 # Whether dlopen of programs is supported.
21390 dlopen_self=$enable_dlopen_self
21391
21392 # Whether dlopen of statically linked programs is supported.
21393 dlopen_self_static=$enable_dlopen_self_static
21394
21395 # Commands to strip libraries.
21396 old_striplib=$lt_old_striplib
21397 striplib=$lt_striplib
21398
21399
21400 # The linker used to build libraries.
21401 LD=$lt_LD
21402
21403 # How to create reloadable object files.
21404 reload_flag=$lt_reload_flag
21405 reload_cmds=$lt_reload_cmds
21406
21407 # Commands used to build an old-style archive.
21408 old_archive_cmds=$lt_old_archive_cmds
21409
21410 # A language specific compiler.
21411 CC=$lt_compiler
21412
21413 # Is the compiler the GNU compiler?
21414 with_gcc=$GCC
21415
21416 # Compiler flag to turn off builtin functions.
21417 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21418
21419 # Additional compiler flags for building library objects.
21420 pic_flag=$lt_lt_prog_compiler_pic
21421
21422 # How to pass a linker flag through the compiler.
21423 wl=$lt_lt_prog_compiler_wl
21424
21425 # Compiler flag to prevent dynamic linking.
21426 link_static_flag=$lt_lt_prog_compiler_static
21427
21428 # Does compiler simultaneously support -c and -o options?
21429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21430
21431 # Whether or not to add -lc for building shared libraries.
21432 build_libtool_need_lc=$archive_cmds_need_lc
21433
21434 # Whether or not to disallow shared libs when runtime libs are static.
21435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21436
21437 # Compiler flag to allow reflexive dlopens.
21438 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21439
21440 # Compiler flag to generate shared objects directly from archives.
21441 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21442
21443 # Whether the compiler copes with passing no objects directly.
21444 compiler_needs_object=$lt_compiler_needs_object
21445
21446 # Create an old-style archive from a shared archive.
21447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21448
21449 # Create a temporary old-style archive to link instead of a shared archive.
21450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21451
21452 # Commands used to build a shared archive.
21453 archive_cmds=$lt_archive_cmds
21454 archive_expsym_cmds=$lt_archive_expsym_cmds
21455
21456 # Commands used to build a loadable module if different from building
21457 # a shared archive.
21458 module_cmds=$lt_module_cmds
21459 module_expsym_cmds=$lt_module_expsym_cmds
21460
21461 # Whether we are building with GNU ld or not.
21462 with_gnu_ld=$lt_with_gnu_ld
21463
21464 # Flag that allows shared libraries with undefined symbols to be built.
21465 allow_undefined_flag=$lt_allow_undefined_flag
21466
21467 # Flag that enforces no undefined symbols.
21468 no_undefined_flag=$lt_no_undefined_flag
21469
21470 # Flag to hardcode \$libdir into a binary during linking.
21471 # This must work even if \$libdir does not exist
21472 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21473
21474 # Whether we need a single "-rpath" flag with a separated argument.
21475 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21476
21477 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21478 # DIR into the resulting binary.
21479 hardcode_direct=$hardcode_direct
21480
21481 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21482 # DIR into the resulting binary and the resulting library dependency is
21483 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21484 # library is relocated.
21485 hardcode_direct_absolute=$hardcode_direct_absolute
21486
21487 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21488 # into the resulting binary.
21489 hardcode_minus_L=$hardcode_minus_L
21490
21491 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21492 # into the resulting binary.
21493 hardcode_shlibpath_var=$hardcode_shlibpath_var
21494
21495 # Set to "yes" if building a shared library automatically hardcodes DIR
21496 # into the library and all subsequent libraries and executables linked
21497 # against it.
21498 hardcode_automatic=$hardcode_automatic
21499
21500 # Set to yes if linker adds runtime paths of dependent libraries
21501 # to runtime path list.
21502 inherit_rpath=$inherit_rpath
21503
21504 # Whether libtool must link a program against all its dependency libraries.
21505 link_all_deplibs=$link_all_deplibs
21506
21507 # Set to "yes" if exported symbols are required.
21508 always_export_symbols=$always_export_symbols
21509
21510 # The commands to list exported symbols.
21511 export_symbols_cmds=$lt_export_symbols_cmds
21512
21513 # Symbols that should not be listed in the preloaded symbols.
21514 exclude_expsyms=$lt_exclude_expsyms
21515
21516 # Symbols that must always be exported.
21517 include_expsyms=$lt_include_expsyms
21518
21519 # Commands necessary for linking programs (against libraries) with templates.
21520 prelink_cmds=$lt_prelink_cmds
21521
21522 # Commands necessary for finishing linking programs.
21523 postlink_cmds=$lt_postlink_cmds
21524
21525 # Specify filename containing input files.
21526 file_list_spec=$lt_file_list_spec
21527
21528 # How to hardcode a shared library path into an executable.
21529 hardcode_action=$hardcode_action
21530
21531 # ### END LIBTOOL CONFIG
21532
21533 _LT_EOF
21534
21535 cat <<'_LT_EOF' >> "$cfgfile"
21536
21537 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21538
21539 # func_munge_path_list VARIABLE PATH
21540 # -----------------------------------
21541 # VARIABLE is name of variable containing _space_ separated list of
21542 # directories to be munged by the contents of PATH, which is string
21543 # having a format:
21544 # "DIR[:DIR]:"
21545 # string "DIR[ DIR]" will be prepended to VARIABLE
21546 # ":DIR[:DIR]"
21547 # string "DIR[ DIR]" will be appended to VARIABLE
21548 # "DIRP[:DIRP]::[DIRA:]DIRA"
21549 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21550 # "DIRA[ DIRA]" will be appended to VARIABLE
21551 # "DIR[:DIR]"
21552 # VARIABLE will be replaced by "DIR[ DIR]"
21553 func_munge_path_list ()
21554 {
21555 case x$2 in
21556 x)
21557 ;;
21558 *:)
21559 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21560 ;;
21561 x:*)
21562 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21563 ;;
21564 *::*)
21565 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21566 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21567 ;;
21568 *)
21569 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21570 ;;
21571 esac
21572 }
21573
21574
21575 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21576 func_cc_basename ()
21577 {
21578 for cc_temp in $*""; do
21579 case $cc_temp in
21580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21582 \-*) ;;
21583 *) break;;
21584 esac
21585 done
21586 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21587 }
21588
21589
21590 # ### END FUNCTIONS SHARED WITH CONFIGURE
21591
21592 _LT_EOF
21593
21594 case $host_os in
21595 aix3*)
21596 cat <<\_LT_EOF >> "$cfgfile"
21597 # AIX sometimes has problems with the GCC collect2 program. For some
21598 # reason, if we set the COLLECT_NAMES environment variable, the problems
21599 # vanish in a puff of smoke.
21600 if test set != "${COLLECT_NAMES+set}"; then
21601 COLLECT_NAMES=
21602 export COLLECT_NAMES
21603 fi
21604 _LT_EOF
21605 ;;
21606 esac
21607
21608
21609
21610 ltmain=$ac_aux_dir/ltmain.sh
21611
21612
21613 # We use sed instead of cat because bash on DJGPP gets confused if
21614 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21615 # text mode, it properly converts lines to CR/LF. This bash problem
21616 # is reportedly fixed, but why not run on old versions too?
21617 $SED '$q' "$ltmain" >> "$cfgfile" \
21618 || (rm -f "$cfgfile"; exit 1)
21619
21620 mv -f "$cfgfile" "$ofile" ||
21621 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21622 chmod +x "$ofile"
21623
21624 ;;
21625
21626 esac
21627 done # for ac_tag
21628
21629
21630 as_fn_exit 0
21631 _ACEOF
21632 ac_clean_files=$ac_clean_files_save
21633
21634 test $ac_write_fail = 0 ||
21635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21636
21637
21638 # configure is writing to config.log, and then calls config.status.
21639 # config.status does its own redirection, appending to config.log.
21640 # Unfortunately, on DOS this fails, as config.log is still kept open
21641 # by configure, so config.status won't be able to write to it; its
21642 # output is simply discarded. So we exec the FD to /dev/null,
21643 # effectively closing config.log, so it can be properly (re)opened and
21644 # appended to by config.status. When coming back to configure, we
21645 # need to make the FD available again.
21646 if test "$no_create" != yes; then
21647 ac_cs_success=:
21648 ac_config_status_args=
21649 test "$silent" = yes &&
21650 ac_config_status_args="$ac_config_status_args --quiet"
21651 exec 5>/dev/null
21652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21653 exec 5>>config.log
21654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21655 # would make configure fail if this is the last instruction.
21656 $ac_cs_success || as_fn_exit 1
21657 fi
21658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21660 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21661 fi
21662
21663
21664
21665