remove kerberos/heimdal
[dragonfly.git] / contrib / mpfr / configure
blobf13a922056493a534958389ee944aeebc8928569
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for MPFR 2.4.1.
6 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
7 # Contributed by the Arenaire and Cacao projects, INRIA.
9 # This file is part of the GNU MPFR Library.
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 2.1 of the License, or (at
14 # your option) any later version.
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.
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.LIB. If not, write to
23 # the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 # MA 02110-1301, USA.
27 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
28 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
29 # This configure script is free software; the Free Software Foundation
30 # gives unlimited permission to copy, distribute and modify it.
31 ## --------------------- ##
32 ## M4sh Initialization. ##
33 ## --------------------- ##
35 # Be more Bourne compatible
36 DUALCASE=1; export DUALCASE # for MKS sh
37 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38 emulate sh
39 NULLCMD=:
40 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41 # is contrary to our usage. Disable this feature.
42 alias -g '${1+"$@"}'='"$@"'
43 setopt NO_GLOB_SUBST
44 else
45 case `(set -o) 2>/dev/null` in
46 *posix*) set -o posix ;;
47 esac
54 # PATH needs CR
55 # Avoid depending upon Character Ranges.
56 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
57 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
58 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
59 as_cr_digits='0123456789'
60 as_cr_alnum=$as_cr_Letters$as_cr_digits
62 as_nl='
64 export as_nl
65 # Printing a long string crashes Solaris 7 /usr/bin/printf.
66 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
67 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
68 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
69 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
70 as_echo='printf %s\n'
71 as_echo_n='printf %s'
72 else
73 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
75 as_echo_n='/usr/ucb/echo -n'
76 else
77 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
78 as_echo_n_body='eval
79 arg=$1;
80 case $arg in
81 *"$as_nl"*)
82 expr "X$arg" : "X\\(.*\\)$as_nl";
83 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
84 esac;
85 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
87 export as_echo_n_body
88 as_echo_n='sh -c $as_echo_n_body as_echo'
90 export as_echo_body
91 as_echo='sh -c $as_echo_body as_echo'
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
96 PATH_SEPARATOR=:
97 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
99 PATH_SEPARATOR=';'
103 # Support unset when possible.
104 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
105 as_unset=unset
106 else
107 as_unset=false
111 # IFS
112 # We need space, tab and new line, in precisely that order. Quoting is
113 # there to prevent editors from complaining about space-tab.
114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
115 # splitting by setting IFS to empty value.)
116 IFS=" "" $as_nl"
118 # Find who we are. Look in the path if we contain no directory separator.
119 case $0 in
120 *[\\/]* ) as_myself=$0 ;;
121 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
122 for as_dir in $PATH
124 IFS=$as_save_IFS
125 test -z "$as_dir" && as_dir=.
126 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
127 done
128 IFS=$as_save_IFS
131 esac
132 # We did not find ourselves, most probably we were run as `sh COMMAND'
133 # in which case we are not to be found in the path.
134 if test "x$as_myself" = x; then
135 as_myself=$0
137 if test ! -f "$as_myself"; then
138 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
139 { (exit 1); exit 1; }
142 # Work around bugs in pre-3.0 UWIN ksh.
143 for as_var in ENV MAIL MAILPATH
144 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
145 done
146 PS1='$ '
147 PS2='> '
148 PS4='+ '
150 # NLS nuisances.
151 LC_ALL=C
152 export LC_ALL
153 LANGUAGE=C
154 export LANGUAGE
156 # Required to use basename.
157 if expr a : '\(a\)' >/dev/null 2>&1 &&
158 test "X`expr 00001 : '.*\(...\)'`" = X001; then
159 as_expr=expr
160 else
161 as_expr=false
164 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
165 as_basename=basename
166 else
167 as_basename=false
171 # Name of the executable.
172 as_me=`$as_basename -- "$0" ||
173 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
174 X"$0" : 'X\(//\)$' \| \
175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
176 $as_echo X/"$0" |
177 sed '/^.*\/\([^/][^/]*\)\/*$/{
178 s//\1/
181 /^X\/\(\/\/\)$/{
182 s//\1/
185 /^X\/\(\/\).*/{
186 s//\1/
189 s/.*/./; q'`
191 # CDPATH.
192 $as_unset CDPATH
195 if test "x$CONFIG_SHELL" = x; then
196 if (eval ":") 2>/dev/null; then
197 as_have_required=yes
198 else
199 as_have_required=no
202 if test $as_have_required = yes && (eval ":
203 (as_func_return () {
204 (exit \$1)
206 as_func_success () {
207 as_func_return 0
209 as_func_failure () {
210 as_func_return 1
212 as_func_ret_success () {
213 return 0
215 as_func_ret_failure () {
216 return 1
219 exitcode=0
220 if as_func_success; then
222 else
223 exitcode=1
224 echo as_func_success failed.
227 if as_func_failure; then
228 exitcode=1
229 echo as_func_failure succeeded.
232 if as_func_ret_success; then
234 else
235 exitcode=1
236 echo as_func_ret_success failed.
239 if as_func_ret_failure; then
240 exitcode=1
241 echo as_func_ret_failure succeeded.
244 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
246 else
247 exitcode=1
248 echo positional parameters were not saved.
251 test \$exitcode = 0) || { (exit 1); exit 1; }
254 as_lineno_1=\$LINENO
255 as_lineno_2=\$LINENO
256 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
257 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
258 ") 2> /dev/null; then
260 else
261 as_candidate_shells=
262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
263 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
265 IFS=$as_save_IFS
266 test -z "$as_dir" && as_dir=.
267 case $as_dir in
269 for as_base in sh bash ksh sh5; do
270 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
271 done;;
272 esac
273 done
274 IFS=$as_save_IFS
277 for as_shell in $as_candidate_shells $SHELL; do
278 # Try only shells that exist, to save several forks.
279 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
280 { ("$as_shell") 2> /dev/null <<\_ASEOF
281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
282 emulate sh
283 NULLCMD=:
284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
285 # is contrary to our usage. Disable this feature.
286 alias -g '${1+"$@"}'='"$@"'
287 setopt NO_GLOB_SUBST
288 else
289 case `(set -o) 2>/dev/null` in
290 *posix*) set -o posix ;;
291 esac
297 _ASEOF
298 }; then
299 CONFIG_SHELL=$as_shell
300 as_have_required=yes
301 if { "$as_shell" 2> /dev/null <<\_ASEOF
302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
303 emulate sh
304 NULLCMD=:
305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
306 # is contrary to our usage. Disable this feature.
307 alias -g '${1+"$@"}'='"$@"'
308 setopt NO_GLOB_SUBST
309 else
310 case `(set -o) 2>/dev/null` in
311 *posix*) set -o posix ;;
312 esac
318 (as_func_return () {
319 (exit $1)
321 as_func_success () {
322 as_func_return 0
324 as_func_failure () {
325 as_func_return 1
327 as_func_ret_success () {
328 return 0
330 as_func_ret_failure () {
331 return 1
334 exitcode=0
335 if as_func_success; then
337 else
338 exitcode=1
339 echo as_func_success failed.
342 if as_func_failure; then
343 exitcode=1
344 echo as_func_failure succeeded.
347 if as_func_ret_success; then
349 else
350 exitcode=1
351 echo as_func_ret_success failed.
354 if as_func_ret_failure; then
355 exitcode=1
356 echo as_func_ret_failure succeeded.
359 if ( set x; as_func_ret_success y && test x = "$1" ); then
361 else
362 exitcode=1
363 echo positional parameters were not saved.
366 test $exitcode = 0) || { (exit 1); exit 1; }
369 as_lineno_1=$LINENO
370 as_lineno_2=$LINENO
371 test "x$as_lineno_1" != "x$as_lineno_2" &&
372 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
374 _ASEOF
375 }; then
376 break
381 done
383 if test "x$CONFIG_SHELL" != x; then
384 for as_var in BASH_ENV ENV
385 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
386 done
387 export CONFIG_SHELL
388 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
392 if test $as_have_required = no; then
393 echo This script requires a shell more modern than all the
394 echo shells that I found on your system. Please install a
395 echo modern shell, or manually run the script under such a
396 echo shell if you do have one.
397 { (exit 1); exit 1; }
407 (eval "as_func_return () {
408 (exit \$1)
410 as_func_success () {
411 as_func_return 0
413 as_func_failure () {
414 as_func_return 1
416 as_func_ret_success () {
417 return 0
419 as_func_ret_failure () {
420 return 1
423 exitcode=0
424 if as_func_success; then
426 else
427 exitcode=1
428 echo as_func_success failed.
431 if as_func_failure; then
432 exitcode=1
433 echo as_func_failure succeeded.
436 if as_func_ret_success; then
438 else
439 exitcode=1
440 echo as_func_ret_success failed.
443 if as_func_ret_failure; then
444 exitcode=1
445 echo as_func_ret_failure succeeded.
448 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
450 else
451 exitcode=1
452 echo positional parameters were not saved.
455 test \$exitcode = 0") || {
456 echo No shell found that supports shell functions.
457 echo Please tell bug-autoconf@gnu.org about your system,
458 echo including any error possibly output before this message.
459 echo This can help us improve future autoconf versions.
460 echo Configuration will now proceed without shell functions.
465 as_lineno_1=$LINENO
466 as_lineno_2=$LINENO
467 test "x$as_lineno_1" != "x$as_lineno_2" &&
468 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
470 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
471 # uniformly replaced by the line number. The first 'sed' inserts a
472 # line-number line after each line using $LINENO; the second 'sed'
473 # does the real work. The second script uses 'N' to pair each
474 # line-number line with the line containing $LINENO, and appends
475 # trailing '-' during substitution so that $LINENO is not a special
476 # case at line end.
477 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
478 # scripts with optimization help from Paolo Bonzini. Blame Lee
479 # E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
488 :lineno
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
497 { (exit 1); exit 1; }; }
499 # Don't try to exec as it changes $[0], causing all sort of problems
500 # (the dirname of $[0] is not the place where we might find the
501 # original and so on. Autoconf is especially sensitive to this).
502 . "./$as_me.lineno"
503 # Exit status is that of the last command.
504 exit
508 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
509 as_dirname=dirname
510 else
511 as_dirname=false
514 ECHO_C= ECHO_N= ECHO_T=
515 case `echo -n x` in
516 -n*)
517 case `echo 'x\c'` in
518 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
519 *) ECHO_C='\c';;
520 esac;;
522 ECHO_N='-n';;
523 esac
524 if expr a : '\(a\)' >/dev/null 2>&1 &&
525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
526 as_expr=expr
527 else
528 as_expr=false
531 rm -f conf$$ conf$$.exe conf$$.file
532 if test -d conf$$.dir; then
533 rm -f conf$$.dir/conf$$.file
534 else
535 rm -f conf$$.dir
536 mkdir conf$$.dir 2>/dev/null
538 if (echo >conf$$.file) 2>/dev/null; then
539 if ln -s conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s='ln -s'
541 # ... but there are two gotchas:
542 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
543 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
544 # In both cases, we have to default to `cp -p'.
545 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
546 as_ln_s='cp -p'
547 elif ln conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s=ln
549 else
550 as_ln_s='cp -p'
552 else
553 as_ln_s='cp -p'
555 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
556 rmdir conf$$.dir 2>/dev/null
558 if mkdir -p . 2>/dev/null; then
559 as_mkdir_p=:
560 else
561 test -d ./-p && rmdir ./-p
562 as_mkdir_p=false
565 if test -x / >/dev/null 2>&1; then
566 as_test_x='test -x'
567 else
568 if ls -dL / >/dev/null 2>&1; then
569 as_ls_L_option=L
570 else
571 as_ls_L_option=
573 as_test_x='
574 eval sh -c '\''
575 if test -d "$1"; then
576 test -d "$1/.";
577 else
578 case $1 in
579 -*)set "./$1";;
580 esac;
581 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
582 ???[sx]*):;;*)false;;esac;fi
583 '\'' sh
586 as_executable_p=$as_test_x
588 # Sed expression to map a string onto a valid CPP name.
589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591 # Sed expression to map a string onto a valid variable name.
592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597 # Check that we are running under the correct shell.
598 SHELL=${CONFIG_SHELL-/bin/sh}
600 case X$lt_ECHO in
601 X*--fallback-echo)
602 # Remove one level of quotation (which was required for Make).
603 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
605 esac
607 ECHO=${lt_ECHO-echo}
608 if test "X$1" = X--no-reexec; then
609 # Discard the --no-reexec flag, and continue.
610 shift
611 elif test "X$1" = X--fallback-echo; then
612 # Avoid inline document here, it may be left over
614 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
615 # Yippee, $ECHO works!
617 else
618 # Restart under the correct shell.
619 exec $SHELL "$0" --no-reexec ${1+"$@"}
622 if test "X$1" = X--fallback-echo; then
623 # used as fallback echo
624 shift
625 cat <<_LT_EOF
627 _LT_EOF
628 exit 0
631 # The HP-UX ksh and POSIX shell print the target directory to stdout
632 # if CDPATH is set.
633 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
635 if test -z "$lt_ECHO"; then
636 if test "X${echo_test_string+set}" != Xset; then
637 # find a string as large as possible, as long as the shell can cope with it
638 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
639 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
640 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
641 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
642 then
643 break
645 done
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
652 else
653 # The Solaris, AIX, and Digital Unix default echo programs unquote
654 # backslashes. This makes it impossible to quote backslashes using
655 # echo "$something" | sed 's/\\/\\\\/g'
657 # So, first we look for a working echo in the user's PATH.
659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
660 for dir in $PATH /usr/ucb; do
661 IFS="$lt_save_ifs"
662 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
663 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
664 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 ECHO="$dir/echo"
667 break
669 done
670 IFS="$lt_save_ifs"
672 if test "X$ECHO" = Xecho; then
673 # We didn't find a better echo, so look for alternatives.
674 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
675 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 # This shell has a builtin print -r that does the trick.
678 ECHO='print -r'
679 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
680 test "X$CONFIG_SHELL" != X/bin/ksh; then
681 # If we have ksh, try running configure again with it.
682 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
683 export ORIGINAL_CONFIG_SHELL
684 CONFIG_SHELL=/bin/ksh
685 export CONFIG_SHELL
686 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
687 else
688 # Try using printf.
689 ECHO='printf %s\n'
690 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
691 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
692 test "X$echo_testing_string" = "X$echo_test_string"; then
693 # Cool, printf works
695 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
696 test "X$echo_testing_string" = 'X\t' &&
697 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
698 test "X$echo_testing_string" = "X$echo_test_string"; then
699 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
700 export CONFIG_SHELL
701 SHELL="$CONFIG_SHELL"
702 export SHELL
703 ECHO="$CONFIG_SHELL $0 --fallback-echo"
704 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
705 test "X$echo_testing_string" = 'X\t' &&
706 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
707 test "X$echo_testing_string" = "X$echo_test_string"; then
708 ECHO="$CONFIG_SHELL $0 --fallback-echo"
709 else
710 # maybe with a smaller string...
711 prev=:
713 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
714 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
715 then
716 break
718 prev="$cmd"
719 done
721 if test "$prev" != 'sed 50q "$0"'; then
722 echo_test_string=`eval $prev`
723 export echo_test_string
724 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
725 else
726 # Oops. We lost completely, so just stick with echo.
727 ECHO=echo
735 # Copy echo and quote the copy suitably for passing to libtool from
736 # the Makefile, instead of quoting the original, which is used later.
737 lt_ECHO=$ECHO
738 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
739 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
745 exec 7<&0 </dev/null 6>&1
747 # Name of the host.
748 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
749 # so uname gets run too.
750 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
753 # Initializations.
755 ac_default_prefix=/usr/local
756 ac_clean_files=
757 ac_config_libobj_dir=.
758 LIBOBJS=
759 cross_compiling=no
760 subdirs=
761 MFLAGS=
762 MAKEFLAGS=
763 SHELL=${CONFIG_SHELL-/bin/sh}
765 # Identity of this package.
766 PACKAGE_NAME='MPFR'
767 PACKAGE_TARNAME='mpfr'
768 PACKAGE_VERSION='2.4.1'
769 PACKAGE_STRING='MPFR 2.4.1'
770 PACKAGE_BUGREPORT=''
772 # Factoring default headers for most tests.
773 ac_includes_default="\
774 #include <stdio.h>
775 #ifdef HAVE_SYS_TYPES_H
776 # include <sys/types.h>
777 #endif
778 #ifdef HAVE_SYS_STAT_H
779 # include <sys/stat.h>
780 #endif
781 #ifdef STDC_HEADERS
782 # include <stdlib.h>
783 # include <stddef.h>
784 #else
785 # ifdef HAVE_STDLIB_H
786 # include <stdlib.h>
787 # endif
788 #endif
789 #ifdef HAVE_STRING_H
790 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
791 # include <memory.h>
792 # endif
793 # include <string.h>
794 #endif
795 #ifdef HAVE_STRINGS_H
796 # include <strings.h>
797 #endif
798 #ifdef HAVE_INTTYPES_H
799 # include <inttypes.h>
800 #endif
801 #ifdef HAVE_STDINT_H
802 # include <stdint.h>
803 #endif
804 #ifdef HAVE_UNISTD_H
805 # include <unistd.h>
806 #endif"
808 ac_subst_vars='LTLIBOBJS
809 LIBOBJS
810 ALLOCA
811 NMEDIT
812 DSYMUTIL
813 lt_ECHO
814 RANLIB
816 LN_S
818 ac_ct_DUMPBIN
819 DUMPBIN
821 FGREP
822 LIBTOOL
823 OBJDUMP
824 DLLTOOL
826 CXXCPP
827 ac_ct_F77
828 FFLAGS
830 am__fastdepCXX_FALSE
831 am__fastdepCXX_TRUE
832 CXXDEPMODE
833 ac_ct_CXX
834 CXXFLAGS
836 MPFR_LIBM
837 ANSI2KNR
840 EGREP
841 GREP
843 am__fastdepCC_FALSE
844 am__fastdepCC_TRUE
845 CCDEPMODE
846 AMDEPBACKSLASH
847 AMDEP_FALSE
848 AMDEP_TRUE
849 am__quote
850 am__include
851 DEPDIR
852 OBJEXT
853 EXEEXT
854 ac_ct_CC
855 CPPFLAGS
856 LDFLAGS
857 CFLAGS
859 host_os
860 host_vendor
861 host_cpu
862 host
863 build_os
864 build_vendor
865 build_cpu
866 build
867 MAINT
868 MAINTAINER_MODE_FALSE
869 MAINTAINER_MODE_TRUE
870 am__untar
871 am__tar
872 AMTAR
873 am__leading_dot
874 SET_MAKE
876 mkdir_p
877 MKDIR_P
878 INSTALL_STRIP_PROGRAM
879 STRIP
880 install_sh
881 MAKEINFO
882 AUTOHEADER
883 AUTOMAKE
884 AUTOCONF
885 ACLOCAL
886 VERSION
887 PACKAGE
888 CYGPATH_W
889 am__isrc
890 INSTALL_DATA
891 INSTALL_SCRIPT
892 INSTALL_PROGRAM
893 target_alias
894 host_alias
895 build_alias
896 LIBS
897 ECHO_T
898 ECHO_N
899 ECHO_C
900 DEFS
901 mandir
902 localedir
903 libdir
904 psdir
905 pdfdir
906 dvidir
907 htmldir
908 infodir
909 docdir
910 oldincludedir
911 includedir
912 localstatedir
913 sharedstatedir
914 sysconfdir
915 datadir
916 datarootdir
917 libexecdir
918 sbindir
919 bindir
920 program_transform_name
921 prefix
922 exec_prefix
923 PACKAGE_BUGREPORT
924 PACKAGE_STRING
925 PACKAGE_VERSION
926 PACKAGE_TARNAME
927 PACKAGE_NAME
928 PATH_SEPARATOR
929 SHELL'
930 ac_subst_files=''
931 ac_user_opts='
932 enable_option_checking
933 enable_maintainer_mode
934 with_gmp_include
935 with_gmp_lib
936 with_gmp
937 with_gmp_build
938 with_mulhigh_size
939 enable_assert
940 enable_logging
941 enable_thread_safe
942 enable_warnings
943 enable_tests_timeout
944 enable_dependency_tracking
945 enable_decimal_float
946 enable_shared
947 enable_static
948 with_pic
949 enable_fast_install
950 with_gnu_ld
951 enable_libtool_lock
953 ac_precious_vars='build_alias
954 host_alias
955 target_alias
957 CFLAGS
958 LDFLAGS
959 LIBS
960 CPPFLAGS
963 CXXFLAGS
966 FFLAGS
967 CXXCPP'
970 # Initialize some variables set by options.
971 ac_init_help=
972 ac_init_version=false
973 ac_unrecognized_opts=
974 ac_unrecognized_sep=
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1025 ac_prev=
1026 continue
1029 case $ac_option in
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 *) ac_optarg=yes ;;
1032 esac
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1038 ac_dashdash=yes ;;
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 ac_prev=bindir ;;
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1060 -datadir | --datadir | --datadi | --datad)
1061 ac_prev=datadir ;;
1062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063 datadir=$ac_optarg ;;
1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1072 -disable-* | --disable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_useropt_orig=$ac_useropt
1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1080 case $ac_user_opts in
1082 "enable_$ac_useropt"
1083 "*) ;;
1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1085 ac_unrecognized_sep=', ';;
1086 esac
1087 eval enable_$ac_useropt=no ;;
1089 -docdir | --docdir | --docdi | --doc | --do)
1090 ac_prev=docdir ;;
1091 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1092 docdir=$ac_optarg ;;
1094 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 ac_prev=dvidir ;;
1096 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1097 dvidir=$ac_optarg ;;
1099 -enable-* | --enable-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "enable_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval enable_$ac_useropt=\$ac_optarg ;;
1116 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1117 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1118 | --exec | --exe | --ex)
1119 ac_prev=exec_prefix ;;
1120 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1121 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1122 | --exec=* | --exe=* | --ex=*)
1123 exec_prefix=$ac_optarg ;;
1125 -gas | --gas | --ga | --g)
1126 # Obsolete; use --with-gas.
1127 with_gas=yes ;;
1129 -help | --help | --hel | --he | -h)
1130 ac_init_help=long ;;
1131 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1132 ac_init_help=recursive ;;
1133 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1134 ac_init_help=short ;;
1136 -host | --host | --hos | --ho)
1137 ac_prev=host_alias ;;
1138 -host=* | --host=* | --hos=* | --ho=*)
1139 host_alias=$ac_optarg ;;
1141 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1142 ac_prev=htmldir ;;
1143 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1144 | --ht=*)
1145 htmldir=$ac_optarg ;;
1147 -includedir | --includedir | --includedi | --included | --include \
1148 | --includ | --inclu | --incl | --inc)
1149 ac_prev=includedir ;;
1150 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1151 | --includ=* | --inclu=* | --incl=* | --inc=*)
1152 includedir=$ac_optarg ;;
1154 -infodir | --infodir | --infodi | --infod | --info | --inf)
1155 ac_prev=infodir ;;
1156 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1157 infodir=$ac_optarg ;;
1159 -libdir | --libdir | --libdi | --libd)
1160 ac_prev=libdir ;;
1161 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1162 libdir=$ac_optarg ;;
1164 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1165 | --libexe | --libex | --libe)
1166 ac_prev=libexecdir ;;
1167 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1168 | --libexe=* | --libex=* | --libe=*)
1169 libexecdir=$ac_optarg ;;
1171 -localedir | --localedir | --localedi | --localed | --locale)
1172 ac_prev=localedir ;;
1173 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1174 localedir=$ac_optarg ;;
1176 -localstatedir | --localstatedir | --localstatedi | --localstated \
1177 | --localstate | --localstat | --localsta | --localst | --locals)
1178 ac_prev=localstatedir ;;
1179 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1180 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1181 localstatedir=$ac_optarg ;;
1183 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1184 ac_prev=mandir ;;
1185 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1186 mandir=$ac_optarg ;;
1188 -nfp | --nfp | --nf)
1189 # Obsolete; use --without-fp.
1190 with_fp=no ;;
1192 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193 | --no-cr | --no-c | -n)
1194 no_create=yes ;;
1196 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1197 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1198 no_recursion=yes ;;
1200 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1201 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1202 | --oldin | --oldi | --old | --ol | --o)
1203 ac_prev=oldincludedir ;;
1204 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1205 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1206 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1207 oldincludedir=$ac_optarg ;;
1209 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1210 ac_prev=prefix ;;
1211 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1212 prefix=$ac_optarg ;;
1214 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1215 | --program-pre | --program-pr | --program-p)
1216 ac_prev=program_prefix ;;
1217 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1218 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1219 program_prefix=$ac_optarg ;;
1221 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1222 | --program-suf | --program-su | --program-s)
1223 ac_prev=program_suffix ;;
1224 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1225 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1226 program_suffix=$ac_optarg ;;
1228 -program-transform-name | --program-transform-name \
1229 | --program-transform-nam | --program-transform-na \
1230 | --program-transform-n | --program-transform- \
1231 | --program-transform | --program-transfor \
1232 | --program-transfo | --program-transf \
1233 | --program-trans | --program-tran \
1234 | --progr-tra | --program-tr | --program-t)
1235 ac_prev=program_transform_name ;;
1236 -program-transform-name=* | --program-transform-name=* \
1237 | --program-transform-nam=* | --program-transform-na=* \
1238 | --program-transform-n=* | --program-transform-=* \
1239 | --program-transform=* | --program-transfor=* \
1240 | --program-transfo=* | --program-transf=* \
1241 | --program-trans=* | --program-tran=* \
1242 | --progr-tra=* | --program-tr=* | --program-t=*)
1243 program_transform_name=$ac_optarg ;;
1245 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1246 ac_prev=pdfdir ;;
1247 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1248 pdfdir=$ac_optarg ;;
1250 -psdir | --psdir | --psdi | --psd | --ps)
1251 ac_prev=psdir ;;
1252 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1253 psdir=$ac_optarg ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 silent=yes ;;
1259 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1260 ac_prev=sbindir ;;
1261 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1262 | --sbi=* | --sb=*)
1263 sbindir=$ac_optarg ;;
1265 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267 | --sharedst | --shareds | --shared | --share | --shar \
1268 | --sha | --sh)
1269 ac_prev=sharedstatedir ;;
1270 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1273 | --sha=* | --sh=*)
1274 sharedstatedir=$ac_optarg ;;
1276 -site | --site | --sit)
1277 ac_prev=site ;;
1278 -site=* | --site=* | --sit=*)
1279 site=$ac_optarg ;;
1281 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1282 ac_prev=srcdir ;;
1283 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284 srcdir=$ac_optarg ;;
1286 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287 | --syscon | --sysco | --sysc | --sys | --sy)
1288 ac_prev=sysconfdir ;;
1289 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291 sysconfdir=$ac_optarg ;;
1293 -target | --target | --targe | --targ | --tar | --ta | --t)
1294 ac_prev=target_alias ;;
1295 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296 target_alias=$ac_optarg ;;
1298 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1299 verbose=yes ;;
1301 -version | --version | --versio | --versi | --vers | -V)
1302 ac_init_version=: ;;
1304 -with-* | --with-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1309 { (exit 1); exit 1; }; }
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1326 { (exit 1); exit 1; }; }
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1356 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1357 Try \`$0 --help' for more information." >&2
1358 { (exit 1); exit 1; }; }
1361 *=*)
1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1365 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1366 { (exit 1); exit 1; }; }
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1378 esac
1379 done
1381 if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1384 { (exit 1); exit 1; }; }
1387 if test -n "$ac_unrecognized_opts"; then
1388 case $enable_option_checking in
1389 no) ;;
1390 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1391 { (exit 1); exit 1; }; } ;;
1392 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1393 esac
1396 # Check all directory arguments for consistency.
1397 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398 datadir sysconfdir sharedstatedir localstatedir includedir \
1399 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400 libdir localedir mandir
1402 eval ac_val=\$$ac_var
1403 # Remove trailing slashes.
1404 case $ac_val in
1405 */ )
1406 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407 eval $ac_var=\$ac_val;;
1408 esac
1409 # Be sure to have absolute directory names.
1410 case $ac_val in
1411 [\\/$]* | ?:[\\/]* ) continue;;
1412 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1413 esac
1414 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1415 { (exit 1); exit 1; }; }
1416 done
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430 If a cross compiler is detected then cross compile mode will be used." >&2
1431 elif test "x$build_alias" != "x$host_alias"; then
1432 cross_compiling=yes
1436 ac_tool_prefix=
1437 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1439 test "$silent" = yes && exec 6>/dev/null
1442 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di=`ls -di .` &&
1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1446 { (exit 1); exit 1; }; }
1447 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1448 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1449 { (exit 1); exit 1; }; }
1452 # Find the source files, if location was not specified.
1453 if test -z "$srcdir"; then
1454 ac_srcdir_defaulted=yes
1455 # Try the directory containing this script, then the parent directory.
1456 ac_confdir=`$as_dirname -- "$as_myself" ||
1457 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458 X"$as_myself" : 'X\(//\)[^/]' \| \
1459 X"$as_myself" : 'X\(//\)$' \| \
1460 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461 $as_echo X"$as_myself" |
1462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463 s//\1/
1466 /^X\(\/\/\)[^/].*/{
1467 s//\1/
1470 /^X\(\/\/\)$/{
1471 s//\1/
1474 /^X\(\/\).*/{
1475 s//\1/
1478 s/.*/./; q'`
1479 srcdir=$ac_confdir
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 srcdir=..
1483 else
1484 ac_srcdir_defaulted=no
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1489 { (exit 1); exit 1; }; }
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492 ac_abs_confdir=`(
1493 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1494 { (exit 1); exit 1; }; }
1495 pwd)`
1496 # When building in place, set srcdir=.
1497 if test "$ac_abs_confdir" = "$ac_pwd"; then
1498 srcdir=.
1500 # Remove unnecessary trailing slashes from srcdir.
1501 # Double slashes in file names in object file debugging info
1502 # mess up M-x gdb in Emacs.
1503 case $srcdir in
1504 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 esac
1506 for ac_var in $ac_precious_vars; do
1507 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_env_${ac_var}_value=\$${ac_var}
1509 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1511 done
1514 # Report the --help message.
1516 if test "$ac_init_help" = "long"; then
1517 # Omit some internal or obsolete options to make the list less imposing.
1518 # This message is too long to be a string in the A/UX 3.1 sh.
1519 cat <<_ACEOF
1520 \`configure' configures MPFR 2.4.1 to adapt to many kinds of systems.
1522 Usage: $0 [OPTION]... [VAR=VALUE]...
1524 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525 VAR=VALUE. See below for descriptions of some of the useful variables.
1527 Defaults for the options are specified in brackets.
1529 Configuration:
1530 -h, --help display this help and exit
1531 --help=short display options specific to this package
1532 --help=recursive display the short help of all the included packages
1533 -V, --version display version information and exit
1534 -q, --quiet, --silent do not print \`checking...' messages
1535 --cache-file=FILE cache test results in FILE [disabled]
1536 -C, --config-cache alias for \`--cache-file=config.cache'
1537 -n, --no-create do not create output files
1538 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1540 Installation directories:
1541 --prefix=PREFIX install architecture-independent files in PREFIX
1542 [$ac_default_prefix]
1543 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1544 [PREFIX]
1546 By default, \`make install' will install all the files in
1547 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1548 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549 for instance \`--prefix=\$HOME'.
1551 For better control, use the options below.
1553 Fine tuning of the installation directories:
1554 --bindir=DIR user executables [EPREFIX/bin]
1555 --sbindir=DIR system admin executables [EPREFIX/sbin]
1556 --libexecdir=DIR program executables [EPREFIX/libexec]
1557 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1558 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1559 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1560 --libdir=DIR object code libraries [EPREFIX/lib]
1561 --includedir=DIR C header files [PREFIX/include]
1562 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1563 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1564 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1565 --infodir=DIR info documentation [DATAROOTDIR/info]
1566 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1567 --mandir=DIR man documentation [DATAROOTDIR/man]
1568 --docdir=DIR documentation root [DATAROOTDIR/doc/mpfr]
1569 --htmldir=DIR html documentation [DOCDIR]
1570 --dvidir=DIR dvi documentation [DOCDIR]
1571 --pdfdir=DIR pdf documentation [DOCDIR]
1572 --psdir=DIR ps documentation [DOCDIR]
1573 _ACEOF
1575 cat <<\_ACEOF
1577 Program names:
1578 --program-prefix=PREFIX prepend PREFIX to installed program names
1579 --program-suffix=SUFFIX append SUFFIX to installed program names
1580 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1582 System types:
1583 --build=BUILD configure for building on BUILD [guessed]
1584 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1585 _ACEOF
1588 if test -n "$ac_init_help"; then
1589 case $ac_init_help in
1590 short | recursive ) echo "Configuration of MPFR 2.4.1:";;
1591 esac
1592 cat <<\_ACEOF
1594 Optional Features:
1595 --disable-option-checking ignore unrecognized --enable/--with options
1596 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1597 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1598 --disable-maintainer-mode disable make rules and dependencies not useful
1599 (and sometimes confusing) to the casual installer
1600 --enable-assert enable ASSERT checking [default=no]
1601 --enable-logging enable MPFR logging (the system must support it)
1602 [default=no]
1603 --enable-thread-safe build MPFR as thread safe (the system must support
1604 it) [default=no]
1605 --enable-warnings allow MPFR to output warnings to stderr [default=no]
1606 --enable-tests-timeout=NUM enable timeout (NUM seconds) for test programs
1607 (NUM <= 9999) [default=no]; if enabled, env variable
1608 $MPFR_TESTS_TIMEOUT overrides NUM (0: no timeout).
1609 --disable-dependency-tracking speeds up one-time build
1610 --enable-dependency-tracking do not reject slow dependency extractors
1611 --enable-decimal-float build conversion functions from/to decimal floats
1612 [default=no]
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-static[=PKGS] build static libraries [default=yes]
1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1619 Optional Packages:
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-gmp-include=DIR GMP include directory
1623 --with-gmp-lib=DIR GMP lib directory
1624 --with-gmp=DIR GMP install directory
1625 --with-gmp-build=DIR GMP build directory (please read INSTALL file)
1626 --with-mulhigh-size=NUM internal threshold table for mulhigh
1627 --with-pic try to use only PIC/non-PIC objects [default=use
1628 both]
1629 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1631 Some influential environment variables:
1632 CC C compiler command
1633 CFLAGS C compiler flags
1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1635 nonstandard directory <lib dir>
1636 LIBS libraries to pass to the linker, e.g. -l<library>
1637 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1638 you have headers in a nonstandard directory <include dir>
1639 CPP C preprocessor
1640 CXX C++ compiler command
1641 CXXFLAGS C++ compiler flags
1642 F77 Fortran 77 compiler command
1643 FFLAGS Fortran 77 compiler flags
1644 CXXCPP C++ preprocessor
1646 Use these variables to override the choices made by `configure' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1649 _ACEOF
1650 ac_status=$?
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 continue
1659 ac_builddir=.
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1677 case $srcdir in
1678 .) # We are building in place.
1679 ac_srcdir=.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1686 *) # Relative name.
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1699 echo &&
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1701 else
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 fi || ac_status=$?
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1705 done
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710 cat <<\_ACEOF
1711 MPFR configure 2.4.1
1712 generated by GNU Autoconf 2.63
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1720 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1721 Contributed by the Arenaire and Cacao projects, INRIA.
1723 This file is part of the GNU MPFR Library.
1725 The GNU MPFR Library is free software; you can redistribute it and/or modify
1726 it under the terms of the GNU Lesser General Public License as published
1727 by the Free Software Foundation; either version 2.1 of the License, or (at
1728 your option) any later version.
1730 The GNU MPFR Library is distributed in the hope that it will be useful, but
1731 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1732 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1733 License for more details.
1735 You should have received a copy of the GNU Lesser General Public License
1736 along with the GNU MPFR Library; see the file COPYING.LIB. If not, write to
1737 the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
1738 MA 02110-1301, USA.
1740 _ACEOF
1741 exit
1743 cat >config.log <<_ACEOF
1744 This file contains any messages produced by compilers while
1745 running configure, to aid debugging if configure makes a mistake.
1747 It was created by MPFR $as_me 2.4.1, which was
1748 generated by GNU Autoconf 2.63. Invocation command line was
1750 $ $0 $@
1752 _ACEOF
1753 exec 5>>config.log
1755 cat <<_ASUNAME
1756 ## --------- ##
1757 ## Platform. ##
1758 ## --------- ##
1760 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1761 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1762 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1763 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1764 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1766 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1767 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1769 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1770 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1771 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1772 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1773 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1774 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1775 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1777 _ASUNAME
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 for as_dir in $PATH
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 $as_echo "PATH: $as_dir"
1785 done
1786 IFS=$as_save_IFS
1788 } >&5
1790 cat >&5 <<_ACEOF
1793 ## ----------- ##
1794 ## Core tests. ##
1795 ## ----------- ##
1797 _ACEOF
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_configure_args=
1806 ac_configure_args0=
1807 ac_configure_args1=
1808 ac_must_keep_next=false
1809 for ac_pass in 1 2
1811 for ac_arg
1813 case $ac_arg in
1814 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816 | -silent | --silent | --silen | --sile | --sil)
1817 continue ;;
1818 *\'*)
1819 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 esac
1821 case $ac_pass in
1822 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1824 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1825 if test $ac_must_keep_next = true; then
1826 ac_must_keep_next=false # Got value, back to normal.
1827 else
1828 case $ac_arg in
1829 *=* | --config-cache | -C | -disable-* | --disable-* \
1830 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832 | -with-* | --with-* | -without-* | --without-* | --x)
1833 case "$ac_configure_args0 " in
1834 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 esac
1837 -* ) ac_must_keep_next=true ;;
1838 esac
1840 ac_configure_args="$ac_configure_args '$ac_arg'"
1842 esac
1843 done
1844 done
1845 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1846 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log. We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854 # Save into config.log some information that might help in debugging.
1856 echo
1858 cat <<\_ASBOX
1859 ## ---------------- ##
1860 ## Cache variables. ##
1861 ## ---------------- ##
1862 _ASBOX
1863 echo
1864 # The following way of writing the cache mishandles newlines in values,
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in #(
1869 *${as_nl}*)
1870 case $ac_var in #(
1871 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 esac
1874 case $ac_var in #(
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) $as_unset $ac_var ;;
1878 esac ;;
1879 esac
1880 done
1881 (set) 2>&1 |
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1884 sed -n \
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 ;; #(
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1891 esac |
1892 sort
1894 echo
1896 cat <<\_ASBOX
1897 ## ----------------- ##
1898 ## Output variables. ##
1899 ## ----------------- ##
1900 _ASBOX
1901 echo
1902 for ac_var in $ac_subst_vars
1904 eval ac_val=\$$ac_var
1905 case $ac_val in
1906 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907 esac
1908 $as_echo "$ac_var='\''$ac_val'\''"
1909 done | sort
1910 echo
1912 if test -n "$ac_subst_files"; then
1913 cat <<\_ASBOX
1914 ## ------------------- ##
1915 ## File substitutions. ##
1916 ## ------------------- ##
1917 _ASBOX
1918 echo
1919 for ac_var in $ac_subst_files
1921 eval ac_val=\$$ac_var
1922 case $ac_val in
1923 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1924 esac
1925 $as_echo "$ac_var='\''$ac_val'\''"
1926 done | sort
1927 echo
1930 if test -s confdefs.h; then
1931 cat <<\_ASBOX
1932 ## ----------- ##
1933 ## confdefs.h. ##
1934 ## ----------- ##
1935 _ASBOX
1936 echo
1937 cat confdefs.h
1938 echo
1940 test "$ac_signal" != 0 &&
1941 $as_echo "$as_me: caught signal $ac_signal"
1942 $as_echo "$as_me: exit $exit_status"
1943 } >&5
1944 rm -f core *.core core.conftest.* &&
1945 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946 exit $exit_status
1948 for ac_signal in 1 2 13 15; do
1949 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1950 done
1951 ac_signal=0
1953 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1954 rm -f -r conftest* confdefs.h
1956 # Predefined preprocessor variables.
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_NAME "$PACKAGE_NAME"
1960 _ACEOF
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1965 _ACEOF
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1970 _ACEOF
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_STRING "$PACKAGE_STRING"
1975 _ACEOF
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1980 _ACEOF
1983 # Let the site file select an alternate cache file if it wants to.
1984 # Prefer an explicitly selected file to automatically selected ones.
1985 ac_site_file1=NONE
1986 ac_site_file2=NONE
1987 if test -n "$CONFIG_SITE"; then
1988 ac_site_file1=$CONFIG_SITE
1989 elif test "x$prefix" != xNONE; then
1990 ac_site_file1=$prefix/share/config.site
1991 ac_site_file2=$prefix/etc/config.site
1992 else
1993 ac_site_file1=$ac_default_prefix/share/config.site
1994 ac_site_file2=$ac_default_prefix/etc/config.site
1996 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1998 test "x$ac_site_file" = xNONE && continue
1999 if test -r "$ac_site_file"; then
2000 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2001 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2002 sed 's/^/| /' "$ac_site_file" >&5
2003 . "$ac_site_file"
2005 done
2007 if test -r "$cache_file"; then
2008 # Some versions of bash will fail to source /dev/null (special
2009 # files actually), so we avoid doing that.
2010 if test -f "$cache_file"; then
2011 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2012 $as_echo "$as_me: loading cache $cache_file" >&6;}
2013 case $cache_file in
2014 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2015 *) . "./$cache_file";;
2016 esac
2018 else
2019 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2020 $as_echo "$as_me: creating cache $cache_file" >&6;}
2021 >$cache_file
2024 # Check that the precious variables saved in the cache have kept the same
2025 # value.
2026 ac_cache_corrupted=false
2027 for ac_var in $ac_precious_vars; do
2028 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2029 eval ac_new_set=\$ac_env_${ac_var}_set
2030 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2031 eval ac_new_val=\$ac_env_${ac_var}_value
2032 case $ac_old_set,$ac_new_set in
2033 set,)
2034 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2035 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2036 ac_cache_corrupted=: ;;
2037 ,set)
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2039 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2040 ac_cache_corrupted=: ;;
2041 ,);;
2043 if test "x$ac_old_val" != "x$ac_new_val"; then
2044 # differences in whitespace do not lead to failure.
2045 ac_old_val_w=`echo x $ac_old_val`
2046 ac_new_val_w=`echo x $ac_new_val`
2047 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2048 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2049 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2050 ac_cache_corrupted=:
2051 else
2052 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2053 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2054 eval $ac_var=\$ac_old_val
2056 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2057 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2058 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2059 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2060 fi;;
2061 esac
2062 # Pass precious variables to config.status.
2063 if test "$ac_new_set" = set; then
2064 case $ac_new_val in
2065 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2066 *) ac_arg=$ac_var=$ac_new_val ;;
2067 esac
2068 case " $ac_configure_args " in
2069 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2070 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2071 esac
2073 done
2074 if $ac_cache_corrupted; then
2075 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2077 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2078 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2079 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2080 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2081 { (exit 1); exit 1; }; }
2108 ac_ext=c
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2115 am__api_version='1.10'
2117 ac_aux_dir=
2118 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2119 if test -f "$ac_dir/install-sh"; then
2120 ac_aux_dir=$ac_dir
2121 ac_install_sh="$ac_aux_dir/install-sh -c"
2122 break
2123 elif test -f "$ac_dir/install.sh"; then
2124 ac_aux_dir=$ac_dir
2125 ac_install_sh="$ac_aux_dir/install.sh -c"
2126 break
2127 elif test -f "$ac_dir/shtool"; then
2128 ac_aux_dir=$ac_dir
2129 ac_install_sh="$ac_aux_dir/shtool install -c"
2130 break
2132 done
2133 if test -z "$ac_aux_dir"; then
2134 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2135 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2136 { (exit 1); exit 1; }; }
2139 # These three variables are undocumented and unsupported,
2140 # and are intended to be withdrawn in a future Autoconf release.
2141 # They can cause serious problems if a builder's source tree is in a directory
2142 # whose full name contains unusual characters.
2143 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2144 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2145 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2148 # Find a good install program. We prefer a C program (faster),
2149 # so one script is as good as another. But avoid the broken or
2150 # incompatible versions:
2151 # SysV /etc/install, /usr/sbin/install
2152 # SunOS /usr/etc/install
2153 # IRIX /sbin/install
2154 # AIX /bin/install
2155 # AmigaOS /C/install, which installs bootblocks on floppy discs
2156 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2157 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2158 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2159 # OS/2's system install, which has a completely different semantic
2160 # ./install, which can be erroneously created by make from ./install.sh.
2161 # Reject install programs that cannot install multiple files.
2162 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2163 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2164 if test -z "$INSTALL"; then
2165 if test "${ac_cv_path_install+set}" = set; then
2166 $as_echo_n "(cached) " >&6
2167 else
2168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 # Account for people who put trailing slashes in PATH elements.
2174 case $as_dir/ in
2175 ./ | .// | /cC/* | \
2176 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2177 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2178 /usr/ucb/* ) ;;
2180 # OSF1 and SCO ODT 3.0 have their own names for install.
2181 # Don't use installbsd from OSF since it installs stuff as root
2182 # by default.
2183 for ac_prog in ginstall scoinst install; do
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2186 if test $ac_prog = install &&
2187 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2188 # AIX install. It has an incompatible calling convention.
2190 elif test $ac_prog = install &&
2191 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2192 # program-specific install script used by HP pwplus--don't use.
2194 else
2195 rm -rf conftest.one conftest.two conftest.dir
2196 echo one > conftest.one
2197 echo two > conftest.two
2198 mkdir conftest.dir
2199 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2200 test -s conftest.one && test -s conftest.two &&
2201 test -s conftest.dir/conftest.one &&
2202 test -s conftest.dir/conftest.two
2203 then
2204 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2205 break 3
2209 done
2210 done
2212 esac
2214 done
2215 IFS=$as_save_IFS
2217 rm -rf conftest.one conftest.two conftest.dir
2220 if test "${ac_cv_path_install+set}" = set; then
2221 INSTALL=$ac_cv_path_install
2222 else
2223 # As a last resort, use the slow shell script. Don't cache a
2224 # value for INSTALL within a source directory, because that will
2225 # break other packages using the cache if that directory is
2226 # removed, or if the value is a relative name.
2227 INSTALL=$ac_install_sh
2230 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2231 $as_echo "$INSTALL" >&6; }
2233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2234 # It thinks the first close brace ends the variable substitution.
2235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2239 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2241 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2242 $as_echo_n "checking whether build environment is sane... " >&6; }
2243 # Just in case
2244 sleep 1
2245 echo timestamp > conftest.file
2246 # Do `set' in a subshell so we don't clobber the current shell's
2247 # arguments. Must try -L first in case configure is actually a
2248 # symlink; some systems play weird games with the mod time of symlinks
2249 # (eg FreeBSD returns the mod time of the symlink's containing
2250 # directory).
2251 if (
2252 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2253 if test "$*" = "X"; then
2254 # -L didn't work.
2255 set X `ls -t $srcdir/configure conftest.file`
2257 rm -f conftest.file
2258 if test "$*" != "X $srcdir/configure conftest.file" \
2259 && test "$*" != "X conftest.file $srcdir/configure"; then
2261 # If neither matched, then we have a broken ls. This can happen
2262 # if, for instance, CONFIG_SHELL is bash and it inherits a
2263 # broken ls alias from the environment. This has actually
2264 # happened. Such a system could not be considered "sane".
2265 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2266 alias in your environment" >&5
2267 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2268 alias in your environment" >&2;}
2269 { (exit 1); exit 1; }; }
2272 test "$2" = conftest.file
2274 then
2275 # Ok.
2277 else
2278 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2279 Check your system clock" >&5
2280 $as_echo "$as_me: error: newly created file is older than distributed files!
2281 Check your system clock" >&2;}
2282 { (exit 1); exit 1; }; }
2284 { $as_echo "$as_me:$LINENO: result: yes" >&5
2285 $as_echo "yes" >&6; }
2286 test "$program_prefix" != NONE &&
2287 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2288 # Use a double $ so make ignores it.
2289 test "$program_suffix" != NONE &&
2290 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2291 # Double any \ or $.
2292 # By default was `s,x,x', remove it if useless.
2293 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2294 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2296 # expand $ac_aux_dir to an absolute path
2297 am_aux_dir=`cd $ac_aux_dir && pwd`
2299 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2300 # Use eval to expand $SHELL
2301 if eval "$MISSING --run true"; then
2302 am_missing_run="$MISSING --run "
2303 else
2304 am_missing_run=
2305 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2306 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2309 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2310 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2311 if test -z "$MKDIR_P"; then
2312 if test "${ac_cv_path_mkdir+set}" = set; then
2313 $as_echo_n "(cached) " >&6
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2318 IFS=$as_save_IFS
2319 test -z "$as_dir" && as_dir=.
2320 for ac_prog in mkdir gmkdir; do
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2323 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2324 'mkdir (GNU coreutils) '* | \
2325 'mkdir (coreutils) '* | \
2326 'mkdir (fileutils) '4.1*)
2327 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2328 break 3;;
2329 esac
2330 done
2331 done
2332 done
2333 IFS=$as_save_IFS
2337 if test "${ac_cv_path_mkdir+set}" = set; then
2338 MKDIR_P="$ac_cv_path_mkdir -p"
2339 else
2340 # As a last resort, use the slow shell script. Don't cache a
2341 # value for MKDIR_P within a source directory, because that will
2342 # break other packages using the cache if that directory is
2343 # removed, or if the value is a relative name.
2344 test -d ./--version && rmdir ./--version
2345 MKDIR_P="$ac_install_sh -d"
2348 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2349 $as_echo "$MKDIR_P" >&6; }
2351 mkdir_p="$MKDIR_P"
2352 case $mkdir_p in
2353 [\\/$]* | ?:[\\/]*) ;;
2354 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2355 esac
2357 for ac_prog in gawk mawk nawk awk
2359 # Extract the first word of "$ac_prog", so it can be a program name with args.
2360 set dummy $ac_prog; ac_word=$2
2361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2362 $as_echo_n "checking for $ac_word... " >&6; }
2363 if test "${ac_cv_prog_AWK+set}" = set; then
2364 $as_echo_n "(cached) " >&6
2365 else
2366 if test -n "$AWK"; then
2367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2368 else
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_AWK="$ac_prog"
2377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 break 2
2380 done
2381 done
2382 IFS=$as_save_IFS
2386 AWK=$ac_cv_prog_AWK
2387 if test -n "$AWK"; then
2388 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2389 $as_echo "$AWK" >&6; }
2390 else
2391 { $as_echo "$as_me:$LINENO: result: no" >&5
2392 $as_echo "no" >&6; }
2396 test -n "$AWK" && break
2397 done
2399 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2401 set x ${MAKE-make}
2402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2403 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2404 $as_echo_n "(cached) " >&6
2405 else
2406 cat >conftest.make <<\_ACEOF
2407 SHELL = /bin/sh
2408 all:
2409 @echo '@@@%%%=$(MAKE)=@@@%%%'
2410 _ACEOF
2411 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2413 *@@@%%%=?*=@@@%%%*)
2414 eval ac_cv_prog_make_${ac_make}_set=yes;;
2416 eval ac_cv_prog_make_${ac_make}_set=no;;
2417 esac
2418 rm -f conftest.make
2420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2421 { $as_echo "$as_me:$LINENO: result: yes" >&5
2422 $as_echo "yes" >&6; }
2423 SET_MAKE=
2424 else
2425 { $as_echo "$as_me:$LINENO: result: no" >&5
2426 $as_echo "no" >&6; }
2427 SET_MAKE="MAKE=${MAKE-make}"
2430 rm -rf .tst 2>/dev/null
2431 mkdir .tst 2>/dev/null
2432 if test -d .tst; then
2433 am__leading_dot=.
2434 else
2435 am__leading_dot=_
2437 rmdir .tst 2>/dev/null
2439 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2440 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2441 # is not polluted with repeated "-I."
2442 am__isrc=' -I$(srcdir)'
2443 # test to see if srcdir already configured
2444 if test -f $srcdir/config.status; then
2445 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2446 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2447 { (exit 1); exit 1; }; }
2451 # test whether we have cygpath
2452 if test -z "$CYGPATH_W"; then
2453 if (cygpath --version) >/dev/null 2>/dev/null; then
2454 CYGPATH_W='cygpath -w'
2455 else
2456 CYGPATH_W=echo
2461 # Define the identity of the package.
2462 PACKAGE='mpfr'
2463 VERSION='2.4.1'
2466 # Some tools Automake needs.
2468 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2471 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2474 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2477 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2480 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2482 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2484 # Installed binaries are usually stripped using `strip' when the user
2485 # run `make install-strip'. However `strip' might not be the right
2486 # tool to use in cross-compilation environments, therefore Automake
2487 # will honor the `STRIP' environment variable to overrule this program.
2488 if test "$cross_compiling" != no; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2491 set dummy ${ac_tool_prefix}strip; ac_word=$2
2492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if test "${ac_cv_prog_STRIP+set}" = set; then
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test -n "$STRIP"; then
2498 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2511 done
2512 done
2513 IFS=$as_save_IFS
2517 STRIP=$ac_cv_prog_STRIP
2518 if test -n "$STRIP"; then
2519 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2520 $as_echo "$STRIP" >&6; }
2521 else
2522 { $as_echo "$as_me:$LINENO: result: no" >&5
2523 $as_echo "no" >&6; }
2528 if test -z "$ac_cv_prog_STRIP"; then
2529 ac_ct_STRIP=$STRIP
2530 # Extract the first word of "strip", so it can be a program name with args.
2531 set dummy strip; ac_word=$2
2532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$ac_ct_STRIP"; then
2538 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_ac_ct_STRIP="strip"
2548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2551 done
2552 done
2553 IFS=$as_save_IFS
2557 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2558 if test -n "$ac_ct_STRIP"; then
2559 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2560 $as_echo "$ac_ct_STRIP" >&6; }
2561 else
2562 { $as_echo "$as_me:$LINENO: result: no" >&5
2563 $as_echo "no" >&6; }
2566 if test "x$ac_ct_STRIP" = x; then
2567 STRIP=":"
2568 else
2569 case $cross_compiling:$ac_tool_warned in
2570 yes:)
2571 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2573 ac_tool_warned=yes ;;
2574 esac
2575 STRIP=$ac_ct_STRIP
2577 else
2578 STRIP="$ac_cv_prog_STRIP"
2582 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2584 # We need awk for the "check" target. The system "awk" is bad on
2585 # some platforms.
2586 # Always define AMTAR for backward compatibility.
2588 AMTAR=${AMTAR-"${am_missing_run}tar"}
2590 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2597 { $as_echo "$as_me:$LINENO: checking whether to disable maintainer-specific portions of Makefiles" >&5
2598 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
2599 # Check whether --enable-maintainer-mode was given.
2600 if test "${enable_maintainer_mode+set}" = set; then
2601 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2602 else
2603 USE_MAINTAINER_MODE=yes
2606 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2607 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2608 if test $USE_MAINTAINER_MODE = yes; then
2609 MAINTAINER_MODE_TRUE=
2610 MAINTAINER_MODE_FALSE='#'
2611 else
2612 MAINTAINER_MODE_TRUE='#'
2613 MAINTAINER_MODE_FALSE=
2616 MAINT=$MAINTAINER_MODE_TRUE
2623 test_CFLAGS=${CFLAGS+set}
2625 # Make sure we can run config.sub.
2626 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2628 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2629 { (exit 1); exit 1; }; }
2631 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2632 $as_echo_n "checking build system type... " >&6; }
2633 if test "${ac_cv_build+set}" = set; then
2634 $as_echo_n "(cached) " >&6
2635 else
2636 ac_build_alias=$build_alias
2637 test "x$ac_build_alias" = x &&
2638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2639 test "x$ac_build_alias" = x &&
2640 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2641 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2642 { (exit 1); exit 1; }; }
2643 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2644 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2645 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2646 { (exit 1); exit 1; }; }
2649 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2650 $as_echo "$ac_cv_build" >&6; }
2651 case $ac_cv_build in
2652 *-*-*) ;;
2653 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2654 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2655 { (exit 1); exit 1; }; };;
2656 esac
2657 build=$ac_cv_build
2658 ac_save_IFS=$IFS; IFS='-'
2659 set x $ac_cv_build
2660 shift
2661 build_cpu=$1
2662 build_vendor=$2
2663 shift; shift
2664 # Remember, the first character of IFS is used to create $*,
2665 # except with old shells:
2666 build_os=$*
2667 IFS=$ac_save_IFS
2668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2671 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2672 $as_echo_n "checking host system type... " >&6; }
2673 if test "${ac_cv_host+set}" = set; then
2674 $as_echo_n "(cached) " >&6
2675 else
2676 if test "x$host_alias" = x; then
2677 ac_cv_host=$ac_cv_build
2678 else
2679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2680 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2681 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2682 { (exit 1); exit 1; }; }
2686 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2687 $as_echo "$ac_cv_host" >&6; }
2688 case $ac_cv_host in
2689 *-*-*) ;;
2690 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2691 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2692 { (exit 1); exit 1; }; };;
2693 esac
2694 host=$ac_cv_host
2695 ac_save_IFS=$IFS; IFS='-'
2696 set x $ac_cv_host
2697 shift
2698 host_cpu=$1
2699 host_vendor=$2
2700 shift; shift
2701 # Remember, the first character of IFS is used to create $*,
2702 # except with old shells:
2703 host_os=$*
2704 IFS=$ac_save_IFS
2705 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2710 unset gmp_lib_path GMP_CFLAGS GMP_CC
2712 # Check whether --with-gmp_include was given.
2713 if test "${with_gmp_include+set}" = set; then
2714 withval=$with_gmp_include; CPPFLAGS="$CPPFLAGS -I$withval"
2718 # Check whether --with-gmp_lib was given.
2719 if test "${with_gmp_lib+set}" = set; then
2720 withval=$with_gmp_lib;
2721 LDFLAGS="$LDFLAGS -L$withval"
2722 gmp_lib_path="$withval"
2727 # Check whether --with-gmp was given.
2728 if test "${with_gmp+set}" = set; then
2729 withval=$with_gmp;
2730 if test -z "$with_gmp_lib" -a -z "$with_gmp_include" ; then
2731 CPPFLAGS="$CPPFLAGS -I$withval/include"
2732 LDFLAGS="$LDFLAGS -L$withval/lib"
2733 gmp_lib_path="$withval/lib"
2734 else
2735 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 { { $as_echo "$as_me:$LINENO: error: Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
2738 See \`config.log' for more details." >&5
2739 $as_echo "$as_me: error: Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
2740 See \`config.log' for more details." >&2;}
2741 { (exit 1); exit 1; }; }; }
2748 # Check whether --with-gmp_build was given.
2749 if test "${with_gmp_build+set}" = set; then
2750 withval=$with_gmp_build;
2751 if test -z "$gmp_lib_path" -a -z "$with_gmp_include" ; then
2752 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
2753 LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune/"
2754 gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
2755 if test -r $withval/Makefile ; then
2756 GMP_CFLAGS=`grep -w "CFLAGS =" $withval/Makefile | sed 's/CFLAGS = //'`
2757 GMP_CC=`grep -w "CC =" $withval/Makefile | sed 's/CC = //'`
2759 use_gmp_build=yes
2760 else
2761 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2763 { { $as_echo "$as_me:$LINENO: error: Do not use --with-gmp-build and other --with-gmp options simultaneously.
2764 See \`config.log' for more details." >&5
2765 $as_echo "$as_me: error: Do not use --with-gmp-build and other --with-gmp options simultaneously.
2766 See \`config.log' for more details." >&2;}
2767 { (exit 1); exit 1; }; }; }
2774 # Check whether --with-mulhigh_size was given.
2775 if test "${with_mulhigh_size+set}" = set; then
2776 withval=$with_mulhigh_size;
2777 cat >>confdefs.h <<_ACEOF
2778 #define MPFR_MULHIGH_SIZE $withval
2779 _ACEOF
2784 # Check whether --enable-assert was given.
2785 if test "${enable_assert+set}" = set; then
2786 enableval=$enable_assert; case $enableval in
2787 yes)
2788 cat >>confdefs.h <<\_ACEOF
2789 #define WANT_ASSERT 1
2790 _ACEOF
2792 no) ;;
2793 full)
2794 cat >>confdefs.h <<\_ACEOF
2795 #define WANT_ASSERT 2
2796 _ACEOF
2798 *) { { $as_echo "$as_me:$LINENO: error: bad value for --enable-assert: yes, no or full" >&5
2799 $as_echo "$as_me: error: bad value for --enable-assert: yes, no or full" >&2;}
2800 { (exit 1); exit 1; }; } ;;
2801 esac
2804 # Check whether --enable-logging was given.
2805 if test "${enable_logging+set}" = set; then
2806 enableval=$enable_logging; disable_gcc_format_warning=yes
2807 case $enableval in
2808 yes)
2809 cat >>confdefs.h <<\_ACEOF
2810 #define MPFR_USE_LOGGING 1
2811 _ACEOF
2813 no) ;;
2814 *) { { $as_echo "$as_me:$LINENO: error: bad value for --enable-logging: yes or no" >&5
2815 $as_echo "$as_me: error: bad value for --enable-logging: yes or no" >&2;}
2816 { (exit 1); exit 1; }; } ;;
2817 esac
2820 # Check whether --enable-thread-safe was given.
2821 if test "${enable_thread_safe+set}" = set; then
2822 enableval=$enable_thread_safe; case $enableval in
2823 yes)
2824 cat >>confdefs.h <<\_ACEOF
2825 #define MPFR_USE_THREAD_SAFE 1
2826 _ACEOF
2828 no) ;;
2829 *) { { $as_echo "$as_me:$LINENO: error: bad value for --enable-thread-safe: yes or no" >&5
2830 $as_echo "$as_me: error: bad value for --enable-thread-safe: yes or no" >&2;}
2831 { (exit 1); exit 1; }; } ;;
2832 esac
2835 # Check whether --enable-warnings was given.
2836 if test "${enable_warnings+set}" = set; then
2837 enableval=$enable_warnings; case $enableval in
2838 yes)
2839 cat >>confdefs.h <<\_ACEOF
2840 #define MPFR_USE_WARNINGS 1
2841 _ACEOF
2843 no) ;;
2844 *) { { $as_echo "$as_me:$LINENO: error: bad value for --enable-warnings: yes or no" >&5
2845 $as_echo "$as_me: error: bad value for --enable-warnings: yes or no" >&2;}
2846 { (exit 1); exit 1; }; } ;;
2847 esac
2851 # Check whether --enable-tests-timeout was given.
2852 if test "${enable_tests_timeout+set}" = set; then
2853 enableval=$enable_tests_timeout; case $enableval in
2854 no) ;;
2855 yes)
2856 cat >>confdefs.h <<\_ACEOF
2857 #define MPFR_TESTS_TIMEOUT 0
2858 _ACEOF
2860 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
2862 cat >>confdefs.h <<_ACEOF
2863 #define MPFR_TESTS_TIMEOUT $enableval
2864 _ACEOF
2866 *) { { $as_echo "$as_me:$LINENO: error: bad value for --enable-tests-timeout" >&5
2867 $as_echo "$as_me: error: bad value for --enable-tests-timeout" >&2;}
2868 { (exit 1); exit 1; }; } ;;
2869 esac
2875 if test -n "$CFLAGS" || test -n "$CC" ; then
2876 user_redefine_cc=yes
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_CC+set}" = set; then
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2905 done
2906 done
2907 IFS=$as_save_IFS
2911 CC=$ac_cv_prog_CC
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2915 else
2916 { $as_echo "$as_me:$LINENO: result: no" >&5
2917 $as_echo "no" >&6; }
2922 if test -z "$ac_cv_prog_CC"; then
2923 ac_ct_CC=$CC
2924 # Extract the first word of "gcc", so it can be a program name with args.
2925 set dummy gcc; ac_word=$2
2926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2929 $as_echo_n "(cached) " >&6
2930 else
2931 if test -n "$ac_ct_CC"; then
2932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_CC="gcc"
2942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2945 done
2946 done
2947 IFS=$as_save_IFS
2951 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2952 if test -n "$ac_ct_CC"; then
2953 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2954 $as_echo "$ac_ct_CC" >&6; }
2955 else
2956 { $as_echo "$as_me:$LINENO: result: no" >&5
2957 $as_echo "no" >&6; }
2960 if test "x$ac_ct_CC" = x; then
2961 CC=""
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 CC=$ac_ct_CC
2971 else
2972 CC="$ac_cv_prog_CC"
2975 if test -z "$CC"; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}cc; ac_word=$2
2979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if test "${ac_cv_prog_CC+set}" = set; then
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994 ac_cv_prog_CC="${ac_tool_prefix}cc"
2995 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2998 done
2999 done
3000 IFS=$as_save_IFS
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3007 $as_echo "$CC" >&6; }
3008 else
3009 { $as_echo "$as_me:$LINENO: result: no" >&5
3010 $as_echo "no" >&6; }
3016 if test -z "$CC"; then
3017 # Extract the first word of "cc", so it can be a program name with args.
3018 set dummy cc; ac_word=$2
3019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if test "${ac_cv_prog_CC+set}" = set; then
3022 $as_echo_n "(cached) " >&6
3023 else
3024 if test -n "$CC"; then
3025 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 else
3027 ac_prog_rejected=no
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3036 ac_prog_rejected=yes
3037 continue
3039 ac_cv_prog_CC="cc"
3040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3043 done
3044 done
3045 IFS=$as_save_IFS
3047 if test $ac_prog_rejected = yes; then
3048 # We found a bogon in the path, so make sure we never use it.
3049 set dummy $ac_cv_prog_CC
3050 shift
3051 if test $# != 0; then
3052 # We chose a different compiler from the bogus one.
3053 # However, it has the same basename, so the bogon will be chosen
3054 # first if we set CC to just the basename; use the full file name.
3055 shift
3056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3061 CC=$ac_cv_prog_CC
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3065 else
3066 { $as_echo "$as_me:$LINENO: result: no" >&5
3067 $as_echo "no" >&6; }
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 for ac_prog in cl.exe
3076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3097 done
3098 done
3099 IFS=$as_save_IFS
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108 { $as_echo "$as_me:$LINENO: result: no" >&5
3109 $as_echo "no" >&6; }
3113 test -n "$CC" && break
3114 done
3116 if test -z "$CC"; then
3117 ac_ct_CC=$CC
3118 for ac_prog in cl.exe
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$ac_ct_CC"; then
3128 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_ac_ct_CC="$ac_prog"
3138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3141 done
3142 done
3143 IFS=$as_save_IFS
3147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3148 if test -n "$ac_ct_CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3150 $as_echo "$ac_ct_CC" >&6; }
3151 else
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3157 test -n "$ac_ct_CC" && break
3158 done
3160 if test "x$ac_ct_CC" = x; then
3161 CC=""
3162 else
3163 case $cross_compiling:$ac_tool_warned in
3164 yes:)
3165 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3167 ac_tool_warned=yes ;;
3168 esac
3169 CC=$ac_ct_CC
3176 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3179 See \`config.log' for more details." >&5
3180 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3181 See \`config.log' for more details." >&2;}
3182 { (exit 1); exit 1; }; }; }
3184 # Provide some information about the compiler.
3185 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3186 set X $ac_compile
3187 ac_compiler=$2
3188 { (ac_try="$ac_compiler --version >&5"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3194 $as_echo "$ac_try_echo") >&5
3195 (eval "$ac_compiler --version >&5") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }
3199 { (ac_try="$ac_compiler -v >&5"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205 $as_echo "$ac_try_echo") >&5
3206 (eval "$ac_compiler -v >&5") 2>&5
3207 ac_status=$?
3208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }
3210 { (ac_try="$ac_compiler -V >&5"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3216 $as_echo "$ac_try_echo") >&5
3217 (eval "$ac_compiler -V >&5") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3230 main ()
3234 return 0;
3236 _ACEOF
3237 ac_clean_files_save=$ac_clean_files
3238 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3241 # of exeext.
3242 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3243 $as_echo_n "checking for C compiler default output file name... " >&6; }
3244 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3246 # The possible output files:
3247 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3249 ac_rmfiles=
3250 for ac_file in $ac_files
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3255 esac
3256 done
3257 rm -f $ac_rmfiles
3259 if { (ac_try="$ac_link_default"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_link_default") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; then
3270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3273 # so that the user can short-circuit this test for compilers unknown to
3274 # Autoconf.
3275 for ac_file in $ac_files ''
3277 test -f "$ac_file" || continue
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3281 [ab].out )
3282 # We found the default executable, but exeext='' is most
3283 # certainly right.
3284 break;;
3285 *.* )
3286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3287 then :; else
3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290 # We set ac_cv_exeext here because the later test for it is not
3291 # safe: cross compilers may not add the suffix if given an `-o'
3292 # argument, so we may need to know it at that point already.
3293 # Even if this section looks crufty: it has the advantage of
3294 # actually working.
3295 break;;
3297 break;;
3298 esac
3299 done
3300 test "$ac_cv_exeext" = no && ac_cv_exeext=
3302 else
3303 ac_file=''
3306 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3307 $as_echo "$ac_file" >&6; }
3308 if test -z "$ac_file"; then
3309 $as_echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3315 See \`config.log' for more details." >&5
3316 $as_echo "$as_me: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&2;}
3318 { (exit 77); exit 77; }; }; }
3321 ac_exeext=$ac_cv_exeext
3323 # Check that the compiler produces executables we can run. If not, either
3324 # the compiler is broken, or we cross compile.
3325 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3326 $as_echo_n "checking whether the C compiler works... " >&6; }
3327 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3328 # If not cross compiling, check that we can run a simple program.
3329 if test "$cross_compiling" != yes; then
3330 if { ac_try='./$ac_file'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3336 $as_echo "$ac_try_echo") >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 cross_compiling=no
3342 else
3343 if test "$cross_compiling" = maybe; then
3344 cross_compiling=yes
3345 else
3346 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details." >&5
3351 $as_echo "$as_me: error: cannot run C compiled programs.
3352 If you meant to cross compile, use \`--host'.
3353 See \`config.log' for more details." >&2;}
3354 { (exit 1); exit 1; }; }; }
3358 { $as_echo "$as_me:$LINENO: result: yes" >&5
3359 $as_echo "yes" >&6; }
3361 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3366 $as_echo_n "checking whether we are cross compiling... " >&6; }
3367 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3368 $as_echo "$cross_compiling" >&6; }
3370 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3371 $as_echo_n "checking for suffix of executables... " >&6; }
3372 if { (ac_try="$ac_link"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378 $as_echo "$ac_try_echo") >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; then
3383 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3385 # work properly (i.e., refer to `conftest.exe'), while it won't with
3386 # `rm'.
3387 for ac_file in conftest.exe conftest conftest.*; do
3388 test -f "$ac_file" || continue
3389 case $ac_file in
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392 break;;
3393 * ) break;;
3394 esac
3395 done
3396 else
3397 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3400 See \`config.log' for more details." >&5
3401 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3402 See \`config.log' for more details." >&2;}
3403 { (exit 1); exit 1; }; }; }
3406 rm -f conftest$ac_cv_exeext
3407 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3408 $as_echo "$ac_cv_exeext" >&6; }
3410 rm -f conftest.$ac_ext
3411 EXEEXT=$ac_cv_exeext
3412 ac_exeext=$EXEEXT
3413 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3414 $as_echo_n "checking for suffix of object files... " >&6; }
3415 if test "${ac_cv_objext+set}" = set; then
3416 $as_echo_n "(cached) " >&6
3417 else
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3426 main ()
3430 return 0;
3432 _ACEOF
3433 rm -f conftest.o conftest.obj
3434 if { (ac_try="$ac_compile"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3440 $as_echo "$ac_try_echo") >&5
3441 (eval "$ac_compile") 2>&5
3442 ac_status=$?
3443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; then
3445 for ac_file in conftest.o conftest.obj conftest.*; do
3446 test -f "$ac_file" || continue;
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3449 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3450 break;;
3451 esac
3452 done
3453 else
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3460 See \`config.log' for more details." >&5
3461 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3462 See \`config.log' for more details." >&2;}
3463 { (exit 1); exit 1; }; }; }
3466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3469 $as_echo "$ac_cv_objext" >&6; }
3470 OBJEXT=$ac_cv_objext
3471 ac_objext=$OBJEXT
3472 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3474 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3475 $as_echo_n "(cached) " >&6
3476 else
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3485 main ()
3487 #ifndef __GNUC__
3488 choke me
3489 #endif
3492 return 0;
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3502 $as_echo "$ac_try_echo") >&5
3503 (eval "$ac_compile") 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } && {
3510 test -z "$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3512 } && test -s conftest.$ac_objext; then
3513 ac_compiler_gnu=yes
3514 else
3515 $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 ac_compiler_gnu=no
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3525 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3526 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3527 if test $ac_compiler_gnu = yes; then
3528 GCC=yes
3529 else
3530 GCC=
3532 ac_test_CFLAGS=${CFLAGS+set}
3533 ac_save_CFLAGS=$CFLAGS
3534 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3535 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3536 if test "${ac_cv_prog_cc_g+set}" = set; then
3537 $as_echo_n "(cached) " >&6
3538 else
3539 ac_save_c_werror_flag=$ac_c_werror_flag
3540 ac_c_werror_flag=yes
3541 ac_cv_prog_cc_g=no
3542 CFLAGS="-g"
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3551 main ()
3555 return 0;
3557 _ACEOF
3558 rm -f conftest.$ac_objext
3559 if { (ac_try="$ac_compile"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565 $as_echo "$ac_try_echo") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 ac_cv_prog_cc_g=yes
3577 else
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 CFLAGS=""
3582 cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h. */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3590 main ()
3594 return 0;
3596 _ACEOF
3597 rm -f conftest.$ac_objext
3598 if { (ac_try="$ac_compile"
3599 case "(($ac_try" in
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3604 $as_echo "$ac_try_echo") >&5
3605 (eval "$ac_compile") 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } && {
3612 test -z "$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 } && test -s conftest.$ac_objext; then
3616 else
3617 $as_echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 ac_c_werror_flag=$ac_save_c_werror_flag
3621 CFLAGS="-g"
3622 cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h. */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3630 main ()
3634 return 0;
3636 _ACEOF
3637 rm -f conftest.$ac_objext
3638 if { (ac_try="$ac_compile"
3639 case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645 (eval "$ac_compile") 2>conftest.er1
3646 ac_status=$?
3647 grep -v '^ *+' conftest.er1 >conftest.err
3648 rm -f conftest.er1
3649 cat conftest.err >&5
3650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && {
3652 test -z "$ac_c_werror_flag" ||
3653 test ! -s conftest.err
3654 } && test -s conftest.$ac_objext; then
3655 ac_cv_prog_cc_g=yes
3656 else
3657 $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 ac_c_werror_flag=$ac_save_c_werror_flag
3672 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3673 $as_echo "$ac_cv_prog_cc_g" >&6; }
3674 if test "$ac_test_CFLAGS" = set; then
3675 CFLAGS=$ac_save_CFLAGS
3676 elif test $ac_cv_prog_cc_g = yes; then
3677 if test "$GCC" = yes; then
3678 CFLAGS="-g -O2"
3679 else
3680 CFLAGS="-g"
3682 else
3683 if test "$GCC" = yes; then
3684 CFLAGS="-O2"
3685 else
3686 CFLAGS=
3689 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3691 if test "${ac_cv_prog_cc_c89+set}" = set; then
3692 $as_echo_n "(cached) " >&6
3693 else
3694 ac_cv_prog_cc_c89=no
3695 ac_save_CC=$CC
3696 cat >conftest.$ac_ext <<_ACEOF
3697 /* confdefs.h. */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 #include <stdarg.h>
3703 #include <stdio.h>
3704 #include <sys/types.h>
3705 #include <sys/stat.h>
3706 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3707 struct buf { int x; };
3708 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3709 static char *e (p, i)
3710 char **p;
3711 int i;
3713 return p[i];
3715 static char *f (char * (*g) (char **, int), char **p, ...)
3717 char *s;
3718 va_list v;
3719 va_start (v,p);
3720 s = g (p, va_arg (v,int));
3721 va_end (v);
3722 return s;
3725 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3726 function prototypes and stuff, but not '\xHH' hex character constants.
3727 These don't provoke an error unfortunately, instead are silently treated
3728 as 'x'. The following induces an error, until -std is added to get
3729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3730 array size at least. It's necessary to write '\x00'==0 to get something
3731 that's true only with -std. */
3732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3735 inside strings and character constants. */
3736 #define FOO(x) 'x'
3737 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3739 int test (int i, double x);
3740 struct s1 {int (*f) (int a);};
3741 struct s2 {int (*f) (double a);};
3742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3743 int argc;
3744 char **argv;
3746 main ()
3748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3750 return 0;
3752 _ACEOF
3753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3756 CC="$ac_save_CC $ac_arg"
3757 rm -f conftest.$ac_objext
3758 if { (ac_try="$ac_compile"
3759 case "(($ac_try" in
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3764 $as_echo "$ac_try_echo") >&5
3765 (eval "$ac_compile") 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } && {
3772 test -z "$ac_c_werror_flag" ||
3773 test ! -s conftest.err
3774 } && test -s conftest.$ac_objext; then
3775 ac_cv_prog_cc_c89=$ac_arg
3776 else
3777 $as_echo "$as_me: failed program was:" >&5
3778 sed 's/^/| /' conftest.$ac_ext >&5
3783 rm -f core conftest.err conftest.$ac_objext
3784 test "x$ac_cv_prog_cc_c89" != "xno" && break
3785 done
3786 rm -f conftest.$ac_ext
3787 CC=$ac_save_CC
3790 # AC_CACHE_VAL
3791 case "x$ac_cv_prog_cc_c89" in
3793 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3794 $as_echo "none needed" >&6; } ;;
3795 xno)
3796 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3797 $as_echo "unsupported" >&6; } ;;
3799 CC="$CC $ac_cv_prog_cc_c89"
3800 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3802 esac
3805 ac_ext=c
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810 DEPDIR="${am__leading_dot}deps"
3812 ac_config_commands="$ac_config_commands depfiles"
3815 am_make=${MAKE-make}
3816 cat > confinc << 'END'
3817 am__doit:
3818 @echo done
3819 .PHONY: am__doit
3821 # If we don't find an include directive, just comment out the code.
3822 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3823 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3824 am__include="#"
3825 am__quote=
3826 _am_result=none
3827 # First try GNU make style include.
3828 echo "include confinc" > confmf
3829 # We grep out `Entering directory' and `Leaving directory'
3830 # messages which can occur if `w' ends up in MAKEFLAGS.
3831 # In particular we don't look at `^make:' because GNU make might
3832 # be invoked under some other name (usually "gmake"), in which
3833 # case it prints its new name instead of `make'.
3834 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3835 am__include=include
3836 am__quote=
3837 _am_result=GNU
3839 # Now try BSD make style include.
3840 if test "$am__include" = "#"; then
3841 echo '.include "confinc"' > confmf
3842 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3843 am__include=.include
3844 am__quote="\""
3845 _am_result=BSD
3850 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3851 $as_echo "$_am_result" >&6; }
3852 rm -f confinc confmf
3854 # Check whether --enable-dependency-tracking was given.
3855 if test "${enable_dependency_tracking+set}" = set; then
3856 enableval=$enable_dependency_tracking;
3859 if test "x$enable_dependency_tracking" != xno; then
3860 am_depcomp="$ac_aux_dir/depcomp"
3861 AMDEPBACKSLASH='\'
3863 if test "x$enable_dependency_tracking" != xno; then
3864 AMDEP_TRUE=
3865 AMDEP_FALSE='#'
3866 else
3867 AMDEP_TRUE='#'
3868 AMDEP_FALSE=
3873 depcc="$CC" am_compiler_list=
3875 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3876 $as_echo_n "checking dependency style of $depcc... " >&6; }
3877 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3881 # We make a subdir and do the tests there. Otherwise we can end up
3882 # making bogus files that we don't know about and never remove. For
3883 # instance it was reported that on HP-UX the gcc test will end up
3884 # making a dummy file named `D' -- because `-MD' means `put the output
3885 # in D'.
3886 mkdir conftest.dir
3887 # Copy depcomp to subdir because otherwise we won't find it if we're
3888 # using a relative directory.
3889 cp "$am_depcomp" conftest.dir
3890 cd conftest.dir
3891 # We will build objects and dependencies in a subdirectory because
3892 # it helps to detect inapplicable dependency modes. For instance
3893 # both Tru64's cc and ICC support -MD to output dependencies as a
3894 # side effect of compilation, but ICC will put the dependencies in
3895 # the current directory while Tru64 will put them in the object
3896 # directory.
3897 mkdir sub
3899 am_cv_CC_dependencies_compiler_type=none
3900 if test "$am_compiler_list" = ""; then
3901 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3903 for depmode in $am_compiler_list; do
3904 # Setup a source with many dependencies, because some compilers
3905 # like to wrap large dependency lists on column 80 (with \), and
3906 # we should not choose a depcomp mode which is confused by this.
3908 # We need to recreate these files for each test, as the compiler may
3909 # overwrite some of them when testing with obscure command lines.
3910 # This happens at least with the AIX C compiler.
3911 : > sub/conftest.c
3912 for i in 1 2 3 4 5 6; do
3913 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3914 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3915 # Solaris 8's {/usr,}/bin/sh.
3916 touch sub/conftst$i.h
3917 done
3918 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3920 case $depmode in
3921 nosideeffect)
3922 # after this tag, mechanisms are not by side-effect, so they'll
3923 # only be used when explicitly requested
3924 if test "x$enable_dependency_tracking" = xyes; then
3925 continue
3926 else
3927 break
3930 none) break ;;
3931 esac
3932 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3933 # mode. It turns out that the SunPro C++ compiler does not properly
3934 # handle `-M -o', and we need to detect this.
3935 if depmode=$depmode \
3936 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3938 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3939 >/dev/null 2>conftest.err &&
3940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3942 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3944 # icc doesn't choke on unknown options, it will just issue warnings
3945 # or remarks (even with -Werror). So we grep stderr for any message
3946 # that says an option was ignored or not supported.
3947 # When given -MP, icc 7.0 and 7.1 complain thusly:
3948 # icc: Command line warning: ignoring option '-M'; no argument required
3949 # The diagnosis changed in icc 8.0:
3950 # icc: Command line remark: option '-MP' not supported
3951 if (grep 'ignoring option' conftest.err ||
3952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3953 am_cv_CC_dependencies_compiler_type=$depmode
3954 break
3957 done
3959 cd ..
3960 rm -rf conftest.dir
3961 else
3962 am_cv_CC_dependencies_compiler_type=none
3966 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3967 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3968 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3971 test "x$enable_dependency_tracking" != xno \
3972 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3973 am__fastdepCC_TRUE=
3974 am__fastdepCC_FALSE='#'
3975 else
3976 am__fastdepCC_TRUE='#'
3977 am__fastdepCC_FALSE=
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3987 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3988 # On Suns, sometimes $CPP names a directory.
3989 if test -n "$CPP" && test -d "$CPP"; then
3990 CPP=
3992 if test -z "$CPP"; then
3993 if test "${ac_cv_prog_CPP+set}" = set; then
3994 $as_echo_n "(cached) " >&6
3995 else
3996 # Double quotes because CPP needs to be expanded
3997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3999 ac_preproc_ok=false
4000 for ac_c_preproc_warn_flag in '' yes
4002 # Use a header file that comes with gcc, so configuring glibc
4003 # with a fresh cross-compiler works.
4004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005 # <limits.h> exists even on freestanding compilers.
4006 # On the NeXT, cc -E runs the code through the compiler's parser,
4007 # not just through cpp. "Syntax error" is here to catch this case.
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 #ifdef __STDC__
4015 # include <limits.h>
4016 #else
4017 # include <assert.h>
4018 #endif
4019 Syntax error
4020 _ACEOF
4021 if { (ac_try="$ac_cpp conftest.$ac_ext"
4022 case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4027 $as_echo "$ac_try_echo") >&5
4028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } >/dev/null && {
4035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4036 test ! -s conftest.err
4037 }; then
4039 else
4040 $as_echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 # Broken: fails on valid input.
4044 continue
4047 rm -f conftest.err conftest.$ac_ext
4049 # OK, works on sane cases. Now check whether nonexistent headers
4050 # can be detected and how.
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 #include <ac_nonexistent.h>
4058 _ACEOF
4059 if { (ac_try="$ac_cpp conftest.$ac_ext"
4060 case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063 esac
4064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4065 $as_echo "$ac_try_echo") >&5
4066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } >/dev/null && {
4073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4074 test ! -s conftest.err
4075 }; then
4076 # Broken: success on invalid input.
4077 continue
4078 else
4079 $as_echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4082 # Passes both tests.
4083 ac_preproc_ok=:
4084 break
4087 rm -f conftest.err conftest.$ac_ext
4089 done
4090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091 rm -f conftest.err conftest.$ac_ext
4092 if $ac_preproc_ok; then
4093 break
4096 done
4097 ac_cv_prog_CPP=$CPP
4100 CPP=$ac_cv_prog_CPP
4101 else
4102 ac_cv_prog_CPP=$CPP
4104 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4105 $as_echo "$CPP" >&6; }
4106 ac_preproc_ok=false
4107 for ac_c_preproc_warn_flag in '' yes
4109 # Use a header file that comes with gcc, so configuring glibc
4110 # with a fresh cross-compiler works.
4111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112 # <limits.h> exists even on freestanding compilers.
4113 # On the NeXT, cc -E runs the code through the compiler's parser,
4114 # not just through cpp. "Syntax error" is here to catch this case.
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h. */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h. */
4121 #ifdef __STDC__
4122 # include <limits.h>
4123 #else
4124 # include <assert.h>
4125 #endif
4126 Syntax error
4127 _ACEOF
4128 if { (ac_try="$ac_cpp conftest.$ac_ext"
4129 case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132 esac
4133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4134 $as_echo "$ac_try_echo") >&5
4135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } >/dev/null && {
4142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4143 test ! -s conftest.err
4144 }; then
4146 else
4147 $as_echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 # Broken: fails on valid input.
4151 continue
4154 rm -f conftest.err conftest.$ac_ext
4156 # OK, works on sane cases. Now check whether nonexistent headers
4157 # can be detected and how.
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h. */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4164 #include <ac_nonexistent.h>
4165 _ACEOF
4166 if { (ac_try="$ac_cpp conftest.$ac_ext"
4167 case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170 esac
4171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4172 $as_echo "$ac_try_echo") >&5
4173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } >/dev/null && {
4180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4181 test ! -s conftest.err
4182 }; then
4183 # Broken: success on invalid input.
4184 continue
4185 else
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 # Passes both tests.
4190 ac_preproc_ok=:
4191 break
4194 rm -f conftest.err conftest.$ac_ext
4196 done
4197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4198 rm -f conftest.err conftest.$ac_ext
4199 if $ac_preproc_ok; then
4201 else
4202 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4205 See \`config.log' for more details." >&5
4206 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4207 See \`config.log' for more details." >&2;}
4208 { (exit 1); exit 1; }; }; }
4211 ac_ext=c
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4219 if test "${ac_cv_path_GREP+set}" = set; then
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -z "$GREP"; then
4223 ac_path_GREP_found=false
4224 # Loop through the user's path and test for each of PROGNAME-LIST
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in grep ggrep; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4234 # Check for GNU ac_path_GREP and select it if it is found.
4235 # Check for GNU $ac_path_GREP
4236 case `"$ac_path_GREP" --version 2>&1` in
4237 *GNU*)
4238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4240 ac_count=0
4241 $as_echo_n 0123456789 >"conftest.in"
4242 while :
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo 'GREP' >> "conftest.nl"
4248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250 ac_count=`expr $ac_count + 1`
4251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_GREP="$ac_path_GREP"
4254 ac_path_GREP_max=$ac_count
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4258 done
4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260 esac
4262 $ac_path_GREP_found && break 3
4263 done
4264 done
4265 done
4266 IFS=$as_save_IFS
4267 if test -z "$ac_cv_path_GREP"; then
4268 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4269 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4270 { (exit 1); exit 1; }; }
4272 else
4273 ac_cv_path_GREP=$GREP
4277 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4278 $as_echo "$ac_cv_path_GREP" >&6; }
4279 GREP="$ac_cv_path_GREP"
4282 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4283 $as_echo_n "checking for egrep... " >&6; }
4284 if test "${ac_cv_path_EGREP+set}" = set; then
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4288 then ac_cv_path_EGREP="$GREP -E"
4289 else
4290 if test -z "$EGREP"; then
4291 ac_path_EGREP_found=false
4292 # Loop through the user's path and test for each of PROGNAME-LIST
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_prog in egrep; do
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4301 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4302 # Check for GNU ac_path_EGREP and select it if it is found.
4303 # Check for GNU $ac_path_EGREP
4304 case `"$ac_path_EGREP" --version 2>&1` in
4305 *GNU*)
4306 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4308 ac_count=0
4309 $as_echo_n 0123456789 >"conftest.in"
4310 while :
4312 cat "conftest.in" "conftest.in" >"conftest.tmp"
4313 mv "conftest.tmp" "conftest.in"
4314 cp "conftest.in" "conftest.nl"
4315 $as_echo 'EGREP' >> "conftest.nl"
4316 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4318 ac_count=`expr $ac_count + 1`
4319 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4320 # Best one so far, save it but keep looking for a better one
4321 ac_cv_path_EGREP="$ac_path_EGREP"
4322 ac_path_EGREP_max=$ac_count
4324 # 10*(2^10) chars as input seems more than enough
4325 test $ac_count -gt 10 && break
4326 done
4327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4328 esac
4330 $ac_path_EGREP_found && break 3
4331 done
4332 done
4333 done
4334 IFS=$as_save_IFS
4335 if test -z "$ac_cv_path_EGREP"; then
4336 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4337 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4338 { (exit 1); exit 1; }; }
4340 else
4341 ac_cv_path_EGREP=$EGREP
4346 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4347 $as_echo "$ac_cv_path_EGREP" >&6; }
4348 EGREP="$ac_cv_path_EGREP"
4351 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4352 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4353 if test "${ac_cv_path_SED+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4355 else
4356 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4357 for ac_i in 1 2 3 4 5 6 7; do
4358 ac_script="$ac_script$as_nl$ac_script"
4359 done
4360 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4361 $as_unset ac_script || ac_script=
4362 if test -z "$SED"; then
4363 ac_path_SED_found=false
4364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_prog in sed gsed; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4373 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4374 # Check for GNU ac_path_SED and select it if it is found.
4375 # Check for GNU $ac_path_SED
4376 case `"$ac_path_SED" --version 2>&1` in
4377 *GNU*)
4378 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4380 ac_count=0
4381 $as_echo_n 0123456789 >"conftest.in"
4382 while :
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
4387 $as_echo '' >> "conftest.nl"
4388 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390 ac_count=`expr $ac_count + 1`
4391 if test $ac_count -gt ${ac_path_SED_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_SED="$ac_path_SED"
4394 ac_path_SED_max=$ac_count
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4398 done
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 esac
4402 $ac_path_SED_found && break 3
4403 done
4404 done
4405 done
4406 IFS=$as_save_IFS
4407 if test -z "$ac_cv_path_SED"; then
4408 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4409 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4410 { (exit 1); exit 1; }; }
4412 else
4413 ac_cv_path_SED=$SED
4417 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4418 $as_echo "$ac_cv_path_SED" >&6; }
4419 SED="$ac_cv_path_SED"
4420 rm -f conftest.sed
4422 ac_ext=c
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429 if test -z "$GMP_CFLAGS" -a -z "$user_redefine_cc" ; then
4430 { $as_echo "$as_me:$LINENO: checking for CC and CFLAGS in gmp.h" >&5
4431 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
4432 # FIXME: Move this in aclocal ?
4433 # Get CC
4434 echo "#include \"gmp.h\"" > conftest.c
4435 echo "MPFR_OPTION __GMP_CC" >> conftest.c
4436 GMP_CC="`$CPP $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g' | $SED -e 's/"//g'`"
4437 #Get CFLAGS
4438 echo "#include \"gmp.h\"" > conftest.c
4439 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
4440 GMP_CFLAGS="`$CPP $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g'| $SED -e 's/"//g'`"
4441 rm -f conftest*
4442 if test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" -o "x$GMP_CC" = "x__GMP_CC" ; then
4443 { $as_echo "$as_me:$LINENO: result: no" >&5
4444 $as_echo "no" >&6; }
4445 GMP_CFLAGS=
4446 GMP_CC=
4447 else
4448 { $as_echo "$as_me:$LINENO: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
4449 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
4453 if test -n "$GMP_CFLAGS" && test -z "$user_redefine_cc" ; then
4454 old_cflags=$CFLAGS
4455 old_cc=$CC
4456 CFLAGS=$GMP_CFLAGS
4457 CC=$GMP_CC
4458 { $as_echo "$as_me:$LINENO: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
4459 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
4461 if test "$cross_compiling" = yes; then
4463 { $as_echo "$as_me:$LINENO: result: can't test" >&5
4464 $as_echo "can't test" >&6; }
4465 CFLAGS=$old_cflags
4466 CC=$old_cc
4468 else
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 /*hello*/
4477 main ()
4479 /*world*/
4481 return 0;
4483 _ACEOF
4484 rm -f conftest$ac_exeext
4485 if { (ac_try="$ac_link"
4486 case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489 esac
4490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4491 $as_echo "$ac_try_echo") >&5
4492 (eval "$ac_link") 2>&5
4493 ac_status=$?
4494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4496 { (case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4501 $as_echo "$ac_try_echo") >&5
4502 (eval "$ac_try") 2>&5
4503 ac_status=$?
4504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4507 { $as_echo "$as_me:$LINENO: result: yes" >&5
4508 $as_echo "yes" >&6; }
4510 else
4511 $as_echo "$as_me: program exited with status $ac_status" >&5
4512 $as_echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 ( exit $ac_status )
4517 { $as_echo "$as_me:$LINENO: result: no" >&5
4518 $as_echo "no" >&6; }
4519 CFLAGS=$old_cflags
4520 CC=$old_cc
4523 rm -rf conftest.dSYM
4524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4528 GCC=
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4536 #ifndef __GNUC__
4537 # error "GCC Not Found"
4538 error
4539 #endif
4542 main ()
4546 return 0;
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4556 $as_echo "$ac_try_echo") >&5
4557 (eval "$ac_compile") 2>conftest.er1
4558 ac_status=$?
4559 grep -v '^ *+' conftest.er1 >conftest.err
4560 rm -f conftest.er1
4561 cat conftest.err >&5
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && {
4564 test -z "$ac_c_werror_flag" ||
4565 test ! -s conftest.err
4566 } && test -s conftest.$ac_objext; then
4568 GCC=yes
4570 else
4571 $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 # Check whether --enable-decimal-float was given.
4581 if test "${enable_decimal_float+set}" = set; then
4582 enableval=$enable_decimal_float; case $enableval in
4583 yes)
4584 cat >>confdefs.h <<\_ACEOF
4585 #define MPFR_WANT_DECIMAL_FLOATS 1
4586 _ACEOF
4588 { $as_echo "$as_me:$LINENO: checking if compiler knows _Decimal64" >&5
4589 $as_echo_n "checking if compiler knows _Decimal64... " >&6; }
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 _Decimal64 x;
4598 main ()
4602 return 0;
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4607 case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610 esac
4611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612 $as_echo "$ac_try_echo") >&5
4613 (eval "$ac_compile") 2>conftest.er1
4614 ac_status=$?
4615 grep -v '^ *+' conftest.er1 >conftest.err
4616 rm -f conftest.er1
4617 cat conftest.err >&5
4618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } && {
4620 test -z "$ac_c_werror_flag" ||
4621 test ! -s conftest.err
4622 } && test -s conftest.$ac_objext; then
4623 { $as_echo "$as_me:$LINENO: result: yes" >&5
4624 $as_echo "yes" >&6; }
4625 if test "$use_gmp_build" != yes ; then
4626 { { $as_echo "$as_me:$LINENO: error: decimal float support requires --with-gmp-build" >&5
4627 $as_echo "$as_me: error: decimal float support requires --with-gmp-build" >&2;}
4628 { (exit 1); exit 1; }; }
4630 { $as_echo "$as_me:$LINENO: checking if _GMP_IEEE_FLOATS is defined" >&5
4631 $as_echo_n "checking if _GMP_IEEE_FLOATS is defined... " >&6; }
4632 cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h. */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4639 #include "gmp.h"
4640 #include "gmp-impl.h"
4641 #ifndef _GMP_IEEE_FLOATS
4642 #error "_GMP_IEEE_FLOATS is not defined"
4643 #endif
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (ac_try="$ac_compile"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653 (eval "$ac_compile") 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && {
4660 test -z "$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 } && test -s conftest.$ac_objext; then
4663 { $as_echo "$as_me:$LINENO: result: yes" >&5
4664 $as_echo "yes" >&6; }
4665 else
4666 $as_echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 { $as_echo "$as_me:$LINENO: result: no" >&5
4670 $as_echo "no" >&6; }
4671 { { $as_echo "$as_me:$LINENO: error: decimal float support requires _GMP_IEEE_FLOATS" >&5
4672 $as_echo "$as_me: error: decimal float support requires _GMP_IEEE_FLOATS" >&2;}
4673 { (exit 1); exit 1; }; }
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 else
4679 $as_echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 { { $as_echo "$as_me:$LINENO: error: Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
4683 " >&5
4684 $as_echo "$as_me: error: Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
4685 " >&2;}
4686 { (exit 1); exit 1; }; }
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 { $as_echo "$as_me:$LINENO: checking decimal float format" >&5
4691 $as_echo_n "checking decimal float format... " >&6; }
4692 if test "$cross_compiling" = yes; then
4693 { $as_echo "$as_me:$LINENO: result: assuming DPD" >&5
4694 $as_echo "assuming DPD" >&6; }
4695 cat >>confdefs.h <<\_ACEOF
4696 #define DPD_FORMAT 1
4697 _ACEOF
4699 else
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4707 #include <stdlib.h>
4710 main ()
4713 union { double d; _Decimal64 d64; } y;
4714 y.d64 = 1234567890123456.0dd;
4715 return y.d == 0.14894469406741037E-123 ? 0 :
4716 y.d == 0.59075095508629822E-68 ? 1 : 2;
4719 return 0;
4721 _ACEOF
4722 rm -f conftest$ac_exeext
4723 if { (ac_try="$ac_link"
4724 case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729 $as_echo "$ac_try_echo") >&5
4730 (eval "$ac_link") 2>&5
4731 ac_status=$?
4732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4734 { (case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740 (eval "$ac_try") 2>&5
4741 ac_status=$?
4742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 { $as_echo "$as_me:$LINENO: result: DPD" >&5
4745 $as_echo "DPD" >&6; }
4746 cat >>confdefs.h <<\_ACEOF
4747 #define DPD_FORMAT 1
4748 _ACEOF
4750 else
4751 $as_echo "$as_me: program exited with status $ac_status" >&5
4752 $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 ( exit $ac_status )
4756 if test "$?" != 1 ; then
4757 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4759 { { $as_echo "$as_me:$LINENO: error: neither DPD nor BID
4760 See \`config.log' for more details." >&5
4761 $as_echo "$as_me: error: neither DPD nor BID
4762 See \`config.log' for more details." >&2;}
4763 { (exit 1); exit 1; }; }; }
4765 { $as_echo "$as_me:$LINENO: result: BID" >&5
4766 $as_echo "BID" >&6; }
4768 rm -rf conftest.dSYM
4769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4774 no) ;;
4775 *) { { $as_echo "$as_me:$LINENO: error: bad value for --enable-decimal-float: yes or no" >&5
4776 $as_echo "$as_me: error: bad value for --enable-decimal-float: yes or no" >&2;}
4777 { (exit 1); exit 1; }; } ;;
4778 esac
4782 { $as_echo "$as_me:$LINENO: checking for ICC" >&5
4783 $as_echo_n "checking for ICC... " >&6; }
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4791 #if !defined(__ICC)
4792 # error "ICC Not Found"
4793 error
4794 #endif
4797 main ()
4801 return 0;
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (ac_try="$ac_compile"
4806 case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809 esac
4810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4811 $as_echo "$ac_try_echo") >&5
4812 (eval "$ac_compile") 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && {
4819 test -z "$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 } && test -s conftest.$ac_objext; then
4823 { $as_echo "$as_me:$LINENO: result: yes" >&5
4824 $as_echo "yes" >&6; }
4825 CFLAGS="-fp_port -mp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
4827 else
4828 $as_echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 { $as_echo "$as_me:$LINENO: result: no" >&5
4832 $as_echo "no" >&6; }
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 if test "$test_CFLAGS" != set && test -n "$GCC"; then
4838 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith $CFLAGS"
4839 if test -n "$disable_gcc_format_warning" ; then
4840 CFLAGS="$CFLAGS -Wno-format"
4844 if test "x$CC" != xcc; then
4845 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4846 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4847 else
4848 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4849 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4851 set dummy $CC; ac_cc=`$as_echo "$2" |
4852 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4853 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4854 $as_echo_n "(cached) " >&6
4855 else
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h. */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4864 main ()
4868 return 0;
4870 _ACEOF
4871 # Make sure it works both with $CC and with simple cc.
4872 # We do the test twice because some compilers refuse to overwrite an
4873 # existing .o file with -o, though they will create one.
4874 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4875 rm -f conftest2.*
4876 if { (case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4881 $as_echo "$ac_try_echo") >&5
4882 (eval "$ac_try") 2>&5
4883 ac_status=$?
4884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } &&
4886 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889 esac
4890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4891 $as_echo "$ac_try_echo") >&5
4892 (eval "$ac_try") 2>&5
4893 ac_status=$?
4894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); };
4896 then
4897 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4898 if test "x$CC" != xcc; then
4899 # Test first that cc exists at all.
4900 if { ac_try='cc -c conftest.$ac_ext >&5'
4901 { (case "(($ac_try" in
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4904 esac
4905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4906 $as_echo "$ac_try_echo") >&5
4907 (eval "$ac_try") 2>&5
4908 ac_status=$?
4909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4912 rm -f conftest2.*
4913 if { (case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916 esac
4917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4918 $as_echo "$ac_try_echo") >&5
4919 (eval "$ac_try") 2>&5
4920 ac_status=$?
4921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } &&
4923 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4928 $as_echo "$ac_try_echo") >&5
4929 (eval "$ac_try") 2>&5
4930 ac_status=$?
4931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); };
4933 then
4934 # cc works too.
4936 else
4937 # cc exists but doesn't like -o.
4938 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4942 else
4943 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4945 rm -f core conftest*
4948 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4949 { $as_echo "$as_me:$LINENO: result: yes" >&5
4950 $as_echo "yes" >&6; }
4951 else
4952 { $as_echo "$as_me:$LINENO: result: no" >&5
4953 $as_echo "no" >&6; }
4955 cat >>confdefs.h <<\_ACEOF
4956 #define NO_MINUS_C_MINUS_O 1
4957 _ACEOF
4961 # FIXME: we rely on the cache variable name because
4962 # there is no other way.
4963 set dummy $CC
4964 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4965 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4966 # Losing compiler, so override with the script.
4967 # FIXME: It is wrong to rewrite CC.
4968 # But if we don't then we get into trouble of one sort or another.
4969 # A longer-term fix would be to have automake use am__CC in this case,
4970 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4971 CC="$am_aux_dir/compile $CC"
4975 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
4976 $as_echo_n "checking for function prototypes... " >&6; }
4977 if test "$ac_cv_prog_cc_c89" != no; then
4978 { $as_echo "$as_me:$LINENO: result: yes" >&5
4979 $as_echo "yes" >&6; }
4981 cat >>confdefs.h <<\_ACEOF
4982 #define PROTOTYPES 1
4983 _ACEOF
4986 cat >>confdefs.h <<\_ACEOF
4987 #define __PROTOTYPES 1
4988 _ACEOF
4990 else
4991 { $as_echo "$as_me:$LINENO: result: no" >&5
4992 $as_echo "no" >&6; }
4996 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4997 $as_echo_n "checking for ANSI C header files... " >&6; }
4998 if test "${ac_cv_header_stdc+set}" = set; then
4999 $as_echo_n "(cached) " >&6
5000 else
5001 cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h. */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #include <stdlib.h>
5008 #include <stdarg.h>
5009 #include <string.h>
5010 #include <float.h>
5013 main ()
5017 return 0;
5019 _ACEOF
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5022 case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025 esac
5026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5027 $as_echo "$ac_try_echo") >&5
5028 (eval "$ac_compile") 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } && {
5035 test -z "$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 } && test -s conftest.$ac_objext; then
5038 ac_cv_header_stdc=yes
5039 else
5040 $as_echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 ac_cv_header_stdc=no
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 if test $ac_cv_header_stdc = yes; then
5049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5050 cat >conftest.$ac_ext <<_ACEOF
5051 /* confdefs.h. */
5052 _ACEOF
5053 cat confdefs.h >>conftest.$ac_ext
5054 cat >>conftest.$ac_ext <<_ACEOF
5055 /* end confdefs.h. */
5056 #include <string.h>
5058 _ACEOF
5059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5060 $EGREP "memchr" >/dev/null 2>&1; then
5062 else
5063 ac_cv_header_stdc=no
5065 rm -f conftest*
5069 if test $ac_cv_header_stdc = yes; then
5070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5071 cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h. */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h. */
5077 #include <stdlib.h>
5079 _ACEOF
5080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5081 $EGREP "free" >/dev/null 2>&1; then
5083 else
5084 ac_cv_header_stdc=no
5086 rm -f conftest*
5090 if test $ac_cv_header_stdc = yes; then
5091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5092 if test "$cross_compiling" = yes; then
5094 else
5095 cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 #include <ctype.h>
5102 #include <stdlib.h>
5103 #if ((' ' & 0x0FF) == 0x020)
5104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5106 #else
5107 # define ISLOWER(c) \
5108 (('a' <= (c) && (c) <= 'i') \
5109 || ('j' <= (c) && (c) <= 'r') \
5110 || ('s' <= (c) && (c) <= 'z'))
5111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5112 #endif
5114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5116 main ()
5118 int i;
5119 for (i = 0; i < 256; i++)
5120 if (XOR (islower (i), ISLOWER (i))
5121 || toupper (i) != TOUPPER (i))
5122 return 2;
5123 return 0;
5125 _ACEOF
5126 rm -f conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5128 case "(($ac_try" in
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5131 esac
5132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5133 $as_echo "$ac_try_echo") >&5
5134 (eval "$ac_link") 2>&5
5135 ac_status=$?
5136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5138 { (case "(($ac_try" in
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5141 esac
5142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5143 $as_echo "$ac_try_echo") >&5
5144 (eval "$ac_try") 2>&5
5145 ac_status=$?
5146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5149 else
5150 $as_echo "$as_me: program exited with status $ac_status" >&5
5151 $as_echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ( exit $ac_status )
5155 ac_cv_header_stdc=no
5157 rm -rf conftest.dSYM
5158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5164 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5165 $as_echo "$ac_cv_header_stdc" >&6; }
5166 if test $ac_cv_header_stdc = yes; then
5168 cat >>confdefs.h <<\_ACEOF
5169 #define STDC_HEADERS 1
5170 _ACEOF
5174 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5184 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5185 inttypes.h stdint.h unistd.h
5187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5188 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5189 $as_echo_n "checking for $ac_header... " >&6; }
5190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5191 $as_echo_n "(cached) " >&6
5192 else
5193 cat >conftest.$ac_ext <<_ACEOF
5194 /* confdefs.h. */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 $ac_includes_default
5201 #include <$ac_header>
5202 _ACEOF
5203 rm -f conftest.$ac_objext
5204 if { (ac_try="$ac_compile"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5210 $as_echo "$ac_try_echo") >&5
5211 (eval "$ac_compile") 2>conftest.er1
5212 ac_status=$?
5213 grep -v '^ *+' conftest.er1 >conftest.err
5214 rm -f conftest.er1
5215 cat conftest.err >&5
5216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } && {
5218 test -z "$ac_c_werror_flag" ||
5219 test ! -s conftest.err
5220 } && test -s conftest.$ac_objext; then
5221 eval "$as_ac_Header=yes"
5222 else
5223 $as_echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5226 eval "$as_ac_Header=no"
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 ac_res=`eval 'as_val=${'$as_ac_Header'}
5232 $as_echo "$as_val"'`
5233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5234 $as_echo "$ac_res" >&6; }
5235 as_val=`eval 'as_val=${'$as_ac_Header'}
5236 $as_echo "$as_val"'`
5237 if test "x$as_val" = x""yes; then
5238 cat >>confdefs.h <<_ACEOF
5239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240 _ACEOF
5244 done
5248 if test "$ac_cv_prog_cc_stdc" != no; then
5249 U= ANSI2KNR=
5250 else
5251 U=_ ANSI2KNR=./ansi2knr
5253 # Ensure some checks needed by ansi2knr itself.
5256 for ac_header in string.h
5258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5260 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5261 $as_echo_n "checking for $ac_header... " >&6; }
5262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5263 $as_echo_n "(cached) " >&6
5265 ac_res=`eval 'as_val=${'$as_ac_Header'}
5266 $as_echo "$as_val"'`
5267 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5268 $as_echo "$ac_res" >&6; }
5269 else
5270 # Is the header compilable?
5271 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5272 $as_echo_n "checking $ac_header usability... " >&6; }
5273 cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h. */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 $ac_includes_default
5280 #include <$ac_header>
5281 _ACEOF
5282 rm -f conftest.$ac_objext
5283 if { (ac_try="$ac_compile"
5284 case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287 esac
5288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5289 $as_echo "$ac_try_echo") >&5
5290 (eval "$ac_compile") 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
5295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && {
5297 test -z "$ac_c_werror_flag" ||
5298 test ! -s conftest.err
5299 } && test -s conftest.$ac_objext; then
5300 ac_header_compiler=yes
5301 else
5302 $as_echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5305 ac_header_compiler=no
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5310 $as_echo "$ac_header_compiler" >&6; }
5312 # Is the header present?
5313 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5314 $as_echo_n "checking $ac_header presence... " >&6; }
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 #include <$ac_header>
5322 _ACEOF
5323 if { (ac_try="$ac_cpp conftest.$ac_ext"
5324 case "(($ac_try" in
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null && {
5337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5339 }; then
5340 ac_header_preproc=yes
5341 else
5342 $as_echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 ac_header_preproc=no
5348 rm -f conftest.err conftest.$ac_ext
5349 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5350 $as_echo "$ac_header_preproc" >&6; }
5352 # So? What about this header?
5353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5354 yes:no: )
5355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5356 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5359 ac_header_preproc=yes
5361 no:yes:* )
5362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5363 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5365 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5367 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5369 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5371 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5373 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5376 esac
5377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5378 $as_echo_n "checking for $ac_header... " >&6; }
5379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5380 $as_echo_n "(cached) " >&6
5381 else
5382 eval "$as_ac_Header=\$ac_header_preproc"
5384 ac_res=`eval 'as_val=${'$as_ac_Header'}
5385 $as_echo "$as_val"'`
5386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5387 $as_echo "$ac_res" >&6; }
5390 as_val=`eval 'as_val=${'$as_ac_Header'}
5391 $as_echo "$as_val"'`
5392 if test "x$as_val" = x""yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5395 _ACEOF
5399 done
5403 case $host in
5404 *-apple-darwin*)
5405 case "$LD $LDFLAGS" in
5406 *-Wl,-search_paths_first*) ;;
5407 *) { $as_echo "$as_me:$LINENO: checking if the compiler understands -Wl,-search_paths_first" >&5
5408 $as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
5409 saved_LDFLAGS="$LDFLAGS"
5410 LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5419 main ()
5423 return 0;
5425 _ACEOF
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (ac_try="$ac_link"
5428 case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431 esac
5432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5433 $as_echo "$ac_try_echo") >&5
5434 (eval "$ac_link") 2>conftest.er1
5435 ac_status=$?
5436 grep -v '^ *+' conftest.er1 >conftest.err
5437 rm -f conftest.er1
5438 cat conftest.err >&5
5439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && {
5441 test -z "$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5443 } && test -s conftest$ac_exeext && {
5444 test "$cross_compiling" = yes ||
5445 $as_test_x conftest$ac_exeext
5446 }; then
5447 { $as_echo "$as_me:$LINENO: result: yes" >&5
5448 $as_echo "yes" >&6; }
5449 else
5450 $as_echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 { $as_echo "$as_me:$LINENO: result: no" >&5
5454 $as_echo "no" >&6; }
5455 LDFLAGS="$saved_LDFLAGS"
5458 rm -rf conftest.dSYM
5459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460 conftest$ac_exeext conftest.$ac_ext
5462 esac
5464 esac
5466 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5467 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5468 if test "${ac_cv_c_const+set}" = set; then
5469 $as_echo_n "(cached) " >&6
5470 else
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h. */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5479 main ()
5481 /* FIXME: Include the comments suggested by Paul. */
5482 #ifndef __cplusplus
5483 /* Ultrix mips cc rejects this. */
5484 typedef int charset[2];
5485 const charset cs;
5486 /* SunOS 4.1.1 cc rejects this. */
5487 char const *const *pcpcc;
5488 char **ppc;
5489 /* NEC SVR4.0.2 mips cc rejects this. */
5490 struct point {int x, y;};
5491 static struct point const zero = {0,0};
5492 /* AIX XL C 1.02.0.0 rejects this.
5493 It does not let you subtract one const X* pointer from another in
5494 an arm of an if-expression whose if-part is not a constant
5495 expression */
5496 const char *g = "string";
5497 pcpcc = &g + (g ? g-g : 0);
5498 /* HPUX 7.0 cc rejects these. */
5499 ++pcpcc;
5500 ppc = (char**) pcpcc;
5501 pcpcc = (char const *const *) ppc;
5502 { /* SCO 3.2v4 cc rejects this. */
5503 char *t;
5504 char const *s = 0 ? (char *) 0 : (char const *) 0;
5506 *t++ = 0;
5507 if (s) return 0;
5509 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5510 int x[] = {25, 17};
5511 const int *foo = &x[0];
5512 ++foo;
5514 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5515 typedef const int *iptr;
5516 iptr p = 0;
5517 ++p;
5519 { /* AIX XL C 1.02.0.0 rejects this saying
5520 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5521 struct s { int j; const int *ap[3]; };
5522 struct s *b; b->j = 5;
5524 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5525 const int foo = 10;
5526 if (!foo) return 0;
5528 return !cs[0] && !zero.x;
5529 #endif
5532 return 0;
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540 esac
5541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542 $as_echo "$ac_try_echo") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5553 ac_cv_c_const=yes
5554 else
5555 $as_echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 ac_cv_c_const=no
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5564 $as_echo "$ac_cv_c_const" >&6; }
5565 if test $ac_cv_c_const = no; then
5567 cat >>confdefs.h <<\_ACEOF
5568 #define const /**/
5569 _ACEOF
5573 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
5574 $as_echo_n "checking for working volatile... " >&6; }
5575 if test "${ac_cv_c_volatile+set}" = set; then
5576 $as_echo_n "(cached) " >&6
5577 else
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5586 main ()
5589 volatile int x;
5590 int * volatile y = (int *) 0;
5591 return !x && !y;
5593 return 0;
5595 _ACEOF
5596 rm -f conftest.$ac_objext
5597 if { (ac_try="$ac_compile"
5598 case "(($ac_try" in
5599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600 *) ac_try_echo=$ac_try;;
5601 esac
5602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5603 $as_echo "$ac_try_echo") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5614 ac_cv_c_volatile=yes
5615 else
5616 $as_echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5619 ac_cv_c_volatile=no
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5625 $as_echo "$ac_cv_c_volatile" >&6; }
5626 if test $ac_cv_c_volatile = no; then
5628 cat >>confdefs.h <<\_ACEOF
5629 #define volatile /**/
5630 _ACEOF
5636 MPFR_LIBM=''
5638 case $host in
5639 *-*-beos* | *-*-cygwin* | *-*-pw32*)
5640 # According to libtool AC CHECK LIBM, these systems don't have libm
5642 *-*-hpux*)
5643 # -lM means something subtly different to -lm, SVID style error handling
5644 # or something. FIXME: Why exactly do we want this?
5645 { $as_echo "$as_me:$LINENO: checking for main in -lM" >&5
5646 $as_echo_n "checking for main in -lM... " >&6; }
5647 if test "${ac_cv_lib_M_main+set}" = set; then
5648 $as_echo_n "(cached) " >&6
5649 else
5650 ac_check_lib_save_LIBS=$LIBS
5651 LIBS="-lM $LIBS"
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5661 main ()
5663 return main ();
5665 return 0;
5667 _ACEOF
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (ac_try="$ac_link"
5670 case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673 esac
5674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5675 $as_echo "$ac_try_echo") >&5
5676 (eval "$ac_link") 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest$ac_exeext && {
5686 test "$cross_compiling" = yes ||
5687 $as_test_x conftest$ac_exeext
5688 }; then
5689 ac_cv_lib_M_main=yes
5690 else
5691 $as_echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5694 ac_cv_lib_M_main=no
5697 rm -rf conftest.dSYM
5698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5699 conftest$ac_exeext conftest.$ac_ext
5700 LIBS=$ac_check_lib_save_LIBS
5702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_M_main" >&5
5703 $as_echo "$ac_cv_lib_M_main" >&6; }
5704 if test "x$ac_cv_lib_M_main" = x""yes; then
5705 MPFR_LIBM="-lM"
5709 *-*-solaris*)
5710 # On Solaris the math functions new in C99 are in -lm9x.
5711 # FIXME: Do we need -lm9x as well as -lm, or just instead of?
5712 { $as_echo "$as_me:$LINENO: checking for main in -lm9x" >&5
5713 $as_echo_n "checking for main in -lm9x... " >&6; }
5714 if test "${ac_cv_lib_m9x_main+set}" = set; then
5715 $as_echo_n "(cached) " >&6
5716 else
5717 ac_check_lib_save_LIBS=$LIBS
5718 LIBS="-lm9x $LIBS"
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h. */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5728 main ()
5730 return main ();
5732 return 0;
5734 _ACEOF
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (ac_try="$ac_link"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5742 $as_echo "$ac_try_echo") >&5
5743 (eval "$ac_link") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest$ac_exeext && {
5753 test "$cross_compiling" = yes ||
5754 $as_test_x conftest$ac_exeext
5755 }; then
5756 ac_cv_lib_m9x_main=yes
5757 else
5758 $as_echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5761 ac_cv_lib_m9x_main=no
5764 rm -rf conftest.dSYM
5765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5766 conftest$ac_exeext conftest.$ac_ext
5767 LIBS=$ac_check_lib_save_LIBS
5769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m9x_main" >&5
5770 $as_echo "$ac_cv_lib_m9x_main" >&6; }
5771 if test "x$ac_cv_lib_m9x_main" = x""yes; then
5772 MPFR_LIBM="-lm9x"
5775 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
5776 $as_echo_n "checking for main in -lm... " >&6; }
5777 if test "${ac_cv_lib_m_main+set}" = set; then
5778 $as_echo_n "(cached) " >&6
5779 else
5780 ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lm $LIBS"
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h. */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5791 main ()
5793 return main ();
5795 return 0;
5797 _ACEOF
5798 rm -f conftest.$ac_objext conftest$ac_exeext
5799 if { (ac_try="$ac_link"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5805 $as_echo "$ac_try_echo") >&5
5806 (eval "$ac_link") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest$ac_exeext && {
5816 test "$cross_compiling" = yes ||
5817 $as_test_x conftest$ac_exeext
5818 }; then
5819 ac_cv_lib_m_main=yes
5820 else
5821 $as_echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 ac_cv_lib_m_main=no
5827 rm -rf conftest.dSYM
5828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5829 conftest$ac_exeext conftest.$ac_ext
5830 LIBS=$ac_check_lib_save_LIBS
5832 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5833 $as_echo "$ac_cv_lib_m_main" >&6; }
5834 if test "x$ac_cv_lib_m_main" = x""yes; then
5835 MPFR_LIBM="$MPFR_LIBM -lm"
5839 *-ncr-sysv4.3*)
5840 # FIXME: What does -lmw mean? Libtool AC CHECK LIBM does it this way.
5841 { $as_echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
5842 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
5843 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
5844 $as_echo_n "(cached) " >&6
5845 else
5846 ac_check_lib_save_LIBS=$LIBS
5847 LIBS="-lmw $LIBS"
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5855 /* Override any GCC internal prototype to avoid an error.
5856 Use char because int might match the return type of a GCC
5857 builtin and then its argument prototype would still apply. */
5858 #ifdef __cplusplus
5859 extern "C"
5860 #endif
5861 char _mwvalidcheckl ();
5863 main ()
5865 return _mwvalidcheckl ();
5867 return 0;
5869 _ACEOF
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (ac_try="$ac_link"
5872 case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875 esac
5876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5877 $as_echo "$ac_try_echo") >&5
5878 (eval "$ac_link") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_c_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest$ac_exeext && {
5888 test "$cross_compiling" = yes ||
5889 $as_test_x conftest$ac_exeext
5890 }; then
5891 ac_cv_lib_mw__mwvalidcheckl=yes
5892 else
5893 $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 ac_cv_lib_mw__mwvalidcheckl=no
5899 rm -rf conftest.dSYM
5900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5901 conftest$ac_exeext conftest.$ac_ext
5902 LIBS=$ac_check_lib_save_LIBS
5904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
5905 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
5906 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then
5907 MPFR_LIBM="-lmw"
5910 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
5911 $as_echo_n "checking for main in -lm... " >&6; }
5912 if test "${ac_cv_lib_m_main+set}" = set; then
5913 $as_echo_n "(cached) " >&6
5914 else
5915 ac_check_lib_save_LIBS=$LIBS
5916 LIBS="-lm $LIBS"
5917 cat >conftest.$ac_ext <<_ACEOF
5918 /* confdefs.h. */
5919 _ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5926 main ()
5928 return main ();
5930 return 0;
5932 _ACEOF
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941 (eval "$ac_link") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest$ac_exeext && {
5951 test "$cross_compiling" = yes ||
5952 $as_test_x conftest$ac_exeext
5953 }; then
5954 ac_cv_lib_m_main=yes
5955 else
5956 $as_echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 ac_cv_lib_m_main=no
5962 rm -rf conftest.dSYM
5963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5964 conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5968 $as_echo "$ac_cv_lib_m_main" >&6; }
5969 if test "x$ac_cv_lib_m_main" = x""yes; then
5970 MPFR_LIBM="$MPFR_LIBM -lm"
5975 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
5976 $as_echo_n "checking for main in -lm... " >&6; }
5977 if test "${ac_cv_lib_m_main+set}" = set; then
5978 $as_echo_n "(cached) " >&6
5979 else
5980 ac_check_lib_save_LIBS=$LIBS
5981 LIBS="-lm $LIBS"
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5991 main ()
5993 return main ();
5995 return 0;
5997 _ACEOF
5998 rm -f conftest.$ac_objext conftest$ac_exeext
5999 if { (ac_try="$ac_link"
6000 case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003 esac
6004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005 $as_echo "$ac_try_echo") >&5
6006 (eval "$ac_link") 2>conftest.er1
6007 ac_status=$?
6008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } && {
6013 test -z "$ac_c_werror_flag" ||
6014 test ! -s conftest.err
6015 } && test -s conftest$ac_exeext && {
6016 test "$cross_compiling" = yes ||
6017 $as_test_x conftest$ac_exeext
6018 }; then
6019 ac_cv_lib_m_main=yes
6020 else
6021 $as_echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_cv_lib_m_main=no
6027 rm -rf conftest.dSYM
6028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029 conftest$ac_exeext conftest.$ac_ext
6030 LIBS=$ac_check_lib_save_LIBS
6032 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6033 $as_echo "$ac_cv_lib_m_main" >&6; }
6034 if test "x$ac_cv_lib_m_main" = x""yes; then
6035 MPFR_LIBM="-lm"
6039 esac
6041 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6042 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6043 if test "${ac_cv_header_time+set}" = set; then
6044 $as_echo_n "(cached) " >&6
6045 else
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 #include <sys/types.h>
6053 #include <sys/time.h>
6054 #include <time.h>
6057 main ()
6059 if ((struct tm *) 0)
6060 return 0;
6062 return 0;
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (ac_try="$ac_compile"
6067 case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070 esac
6071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6072 $as_echo "$ac_try_echo") >&5
6073 (eval "$ac_compile") 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest.$ac_objext; then
6083 ac_cv_header_time=yes
6084 else
6085 $as_echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088 ac_cv_header_time=no
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6093 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6094 $as_echo "$ac_cv_header_time" >&6; }
6095 if test $ac_cv_header_time = yes; then
6097 cat >>confdefs.h <<\_ACEOF
6098 #define TIME_WITH_SYS_TIME 1
6099 _ACEOF
6109 if test "${ac_cv_header_limits_h+set}" = set; then
6110 { $as_echo "$as_me:$LINENO: checking for limits.h" >&5
6111 $as_echo_n "checking for limits.h... " >&6; }
6112 if test "${ac_cv_header_limits_h+set}" = set; then
6113 $as_echo_n "(cached) " >&6
6115 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
6116 $as_echo "$ac_cv_header_limits_h" >&6; }
6117 else
6118 # Is the header compilable?
6119 { $as_echo "$as_me:$LINENO: checking limits.h usability" >&5
6120 $as_echo_n "checking limits.h usability... " >&6; }
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6128 #include <limits.h>
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6139 ac_status=$?
6140 grep -v '^ *+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_header_compiler=yes
6149 else
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6153 ac_header_compiler=no
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6158 $as_echo "$ac_header_compiler" >&6; }
6160 # Is the header present?
6161 { $as_echo "$as_me:$LINENO: checking limits.h presence" >&5
6162 $as_echo_n "checking limits.h presence... " >&6; }
6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6169 #include <limits.h>
6170 _ACEOF
6171 if { (ac_try="$ac_cpp conftest.$ac_ext"
6172 case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177 $as_echo "$ac_try_echo") >&5
6178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } >/dev/null && {
6185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 }; then
6188 ac_header_preproc=yes
6189 else
6190 $as_echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 ac_header_preproc=no
6196 rm -f conftest.err conftest.$ac_ext
6197 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6198 $as_echo "$ac_header_preproc" >&6; }
6200 # So? What about this header?
6201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6202 yes:no: )
6203 { $as_echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5
6204 $as_echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6205 { $as_echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5
6206 $as_echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;}
6207 ac_header_preproc=yes
6209 no:yes:* )
6210 { $as_echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5
6211 $as_echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;}
6212 { $as_echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5
6213 $as_echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;}
6214 { $as_echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5
6215 $as_echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;}
6216 { $as_echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5
6217 $as_echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;}
6218 { $as_echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5
6219 $as_echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;}
6220 { $as_echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5
6221 $as_echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;}
6224 esac
6225 { $as_echo "$as_me:$LINENO: checking for limits.h" >&5
6226 $as_echo_n "checking for limits.h... " >&6; }
6227 if test "${ac_cv_header_limits_h+set}" = set; then
6228 $as_echo_n "(cached) " >&6
6229 else
6230 ac_cv_header_limits_h=$ac_header_preproc
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5
6233 $as_echo "$ac_cv_header_limits_h" >&6; }
6236 if test "x$ac_cv_header_limits_h" = x""yes; then
6238 else
6239 { { $as_echo "$as_me:$LINENO: error: limits.h not found" >&5
6240 $as_echo "$as_me: error: limits.h not found" >&2;}
6241 { (exit 1); exit 1; }; }
6245 if test "${ac_cv_header_float_h+set}" = set; then
6246 { $as_echo "$as_me:$LINENO: checking for float.h" >&5
6247 $as_echo_n "checking for float.h... " >&6; }
6248 if test "${ac_cv_header_float_h+set}" = set; then
6249 $as_echo_n "(cached) " >&6
6251 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
6252 $as_echo "$ac_cv_header_float_h" >&6; }
6253 else
6254 # Is the header compilable?
6255 { $as_echo "$as_me:$LINENO: checking float.h usability" >&5
6256 $as_echo_n "checking float.h usability... " >&6; }
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6264 #include <float.h>
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (ac_try="$ac_compile"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6273 $as_echo "$ac_try_echo") >&5
6274 (eval "$ac_compile") 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } && {
6281 test -z "$ac_c_werror_flag" ||
6282 test ! -s conftest.err
6283 } && test -s conftest.$ac_objext; then
6284 ac_header_compiler=yes
6285 else
6286 $as_echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6289 ac_header_compiler=no
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6294 $as_echo "$ac_header_compiler" >&6; }
6296 # Is the header present?
6297 { $as_echo "$as_me:$LINENO: checking float.h presence" >&5
6298 $as_echo_n "checking float.h presence... " >&6; }
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <float.h>
6306 _ACEOF
6307 if { (ac_try="$ac_cpp conftest.$ac_ext"
6308 case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311 esac
6312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6313 $as_echo "$ac_try_echo") >&5
6314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } >/dev/null && {
6321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6322 test ! -s conftest.err
6323 }; then
6324 ac_header_preproc=yes
6325 else
6326 $as_echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 ac_header_preproc=no
6332 rm -f conftest.err conftest.$ac_ext
6333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6334 $as_echo "$ac_header_preproc" >&6; }
6336 # So? What about this header?
6337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6338 yes:no: )
6339 { $as_echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5
6340 $as_echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6341 { $as_echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5
6342 $as_echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;}
6343 ac_header_preproc=yes
6345 no:yes:* )
6346 { $as_echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5
6347 $as_echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;}
6348 { $as_echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5
6349 $as_echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;}
6350 { $as_echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5
6351 $as_echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;}
6352 { $as_echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5
6353 $as_echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;}
6354 { $as_echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5
6355 $as_echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;}
6356 { $as_echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5
6357 $as_echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;}
6360 esac
6361 { $as_echo "$as_me:$LINENO: checking for float.h" >&5
6362 $as_echo_n "checking for float.h... " >&6; }
6363 if test "${ac_cv_header_float_h+set}" = set; then
6364 $as_echo_n "(cached) " >&6
6365 else
6366 ac_cv_header_float_h=$ac_header_preproc
6368 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5
6369 $as_echo "$ac_cv_header_float_h" >&6; }
6372 if test "x$ac_cv_header_float_h" = x""yes; then
6374 else
6375 { { $as_echo "$as_me:$LINENO: error: float.h not found" >&5
6376 $as_echo "$as_me: error: float.h not found" >&2;}
6377 { (exit 1); exit 1; }; }
6381 if test "${ac_cv_header_string_h+set}" = set; then
6382 { $as_echo "$as_me:$LINENO: checking for string.h" >&5
6383 $as_echo_n "checking for string.h... " >&6; }
6384 if test "${ac_cv_header_string_h+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6387 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6388 $as_echo "$ac_cv_header_string_h" >&6; }
6389 else
6390 # Is the header compilable?
6391 { $as_echo "$as_me:$LINENO: checking string.h usability" >&5
6392 $as_echo_n "checking string.h usability... " >&6; }
6393 cat >conftest.$ac_ext <<_ACEOF
6394 /* confdefs.h. */
6395 _ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 $ac_includes_default
6400 #include <string.h>
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6404 case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407 esac
6408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6409 $as_echo "$ac_try_echo") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 ac_header_compiler=yes
6421 else
6422 $as_echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_header_compiler=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 $as_echo "$ac_header_compiler" >&6; }
6432 # Is the header present?
6433 { $as_echo "$as_me:$LINENO: checking string.h presence" >&5
6434 $as_echo_n "checking string.h presence... " >&6; }
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h. */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6441 #include <string.h>
6442 _ACEOF
6443 if { (ac_try="$ac_cpp conftest.$ac_ext"
6444 case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447 esac
6448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6449 $as_echo "$ac_try_echo") >&5
6450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
6455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } >/dev/null && {
6457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6458 test ! -s conftest.err
6459 }; then
6460 ac_header_preproc=yes
6461 else
6462 $as_echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6465 ac_header_preproc=no
6468 rm -f conftest.err conftest.$ac_ext
6469 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 $as_echo "$ac_header_preproc" >&6; }
6472 # So? What about this header?
6473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474 yes:no: )
6475 { $as_echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
6476 $as_echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
6478 $as_echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
6479 ac_header_preproc=yes
6481 no:yes:* )
6482 { $as_echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
6483 $as_echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
6484 { $as_echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
6485 $as_echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
6486 { $as_echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
6487 $as_echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
6488 { $as_echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
6489 $as_echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
6490 { $as_echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
6491 $as_echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
6492 { $as_echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
6493 $as_echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
6496 esac
6497 { $as_echo "$as_me:$LINENO: checking for string.h" >&5
6498 $as_echo_n "checking for string.h... " >&6; }
6499 if test "${ac_cv_header_string_h+set}" = set; then
6500 $as_echo_n "(cached) " >&6
6501 else
6502 ac_cv_header_string_h=$ac_header_preproc
6504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
6505 $as_echo "$ac_cv_header_string_h" >&6; }
6508 if test "x$ac_cv_header_string_h" = x""yes; then
6510 else
6511 { { $as_echo "$as_me:$LINENO: error: string.h not found" >&5
6512 $as_echo "$as_me: error: string.h not found" >&2;}
6513 { (exit 1); exit 1; }; }
6519 for ac_header in locale.h
6521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6523 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6524 $as_echo_n "checking for $ac_header... " >&6; }
6525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6526 $as_echo_n "(cached) " >&6
6528 ac_res=`eval 'as_val=${'$as_ac_Header'}
6529 $as_echo "$as_val"'`
6530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6531 $as_echo "$ac_res" >&6; }
6532 else
6533 # Is the header compilable?
6534 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6535 $as_echo_n "checking $ac_header usability... " >&6; }
6536 cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h. */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 $ac_includes_default
6543 #include <$ac_header>
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (ac_try="$ac_compile"
6547 case "(($ac_try" in
6548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6549 *) ac_try_echo=$ac_try;;
6550 esac
6551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6552 $as_echo "$ac_try_echo") >&5
6553 (eval "$ac_compile") 2>conftest.er1
6554 ac_status=$?
6555 grep -v '^ *+' conftest.er1 >conftest.err
6556 rm -f conftest.er1
6557 cat conftest.err >&5
6558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } && {
6560 test -z "$ac_c_werror_flag" ||
6561 test ! -s conftest.err
6562 } && test -s conftest.$ac_objext; then
6563 ac_header_compiler=yes
6564 else
6565 $as_echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 ac_header_compiler=no
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6573 $as_echo "$ac_header_compiler" >&6; }
6575 # Is the header present?
6576 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6577 $as_echo_n "checking $ac_header presence... " >&6; }
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 #include <$ac_header>
6585 _ACEOF
6586 if { (ac_try="$ac_cpp conftest.$ac_ext"
6587 case "(($ac_try" in
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6590 esac
6591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6592 $as_echo "$ac_try_echo") >&5
6593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev/null && {
6600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6601 test ! -s conftest.err
6602 }; then
6603 ac_header_preproc=yes
6604 else
6605 $as_echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6608 ac_header_preproc=no
6611 rm -f conftest.err conftest.$ac_ext
6612 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6613 $as_echo "$ac_header_preproc" >&6; }
6615 # So? What about this header?
6616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6617 yes:no: )
6618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6619 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6622 ac_header_preproc=yes
6624 no:yes:* )
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6628 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6630 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6632 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6636 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6639 esac
6640 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6641 $as_echo_n "checking for $ac_header... " >&6; }
6642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6643 $as_echo_n "(cached) " >&6
6644 else
6645 eval "$as_ac_Header=\$ac_header_preproc"
6647 ac_res=`eval 'as_val=${'$as_ac_Header'}
6648 $as_echo "$as_val"'`
6649 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6650 $as_echo "$ac_res" >&6; }
6653 as_val=`eval 'as_val=${'$as_ac_Header'}
6654 $as_echo "$as_val"'`
6655 if test "x$as_val" = x""yes; then
6656 cat >>confdefs.h <<_ACEOF
6657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6658 _ACEOF
6662 done
6666 for ac_header in wchar.h
6668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6671 $as_echo_n "checking for $ac_header... " >&6; }
6672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6673 $as_echo_n "(cached) " >&6
6675 ac_res=`eval 'as_val=${'$as_ac_Header'}
6676 $as_echo "$as_val"'`
6677 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6678 $as_echo "$ac_res" >&6; }
6679 else
6680 # Is the header compilable?
6681 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6682 $as_echo_n "checking $ac_header usability... " >&6; }
6683 cat >conftest.$ac_ext <<_ACEOF
6684 /* confdefs.h. */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 $ac_includes_default
6690 #include <$ac_header>
6691 _ACEOF
6692 rm -f conftest.$ac_objext
6693 if { (ac_try="$ac_compile"
6694 case "(($ac_try" in
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6697 esac
6698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6699 $as_echo "$ac_try_echo") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6710 ac_header_compiler=yes
6711 else
6712 $as_echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 ac_header_compiler=no
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6720 $as_echo "$ac_header_compiler" >&6; }
6722 # Is the header present?
6723 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6724 $as_echo_n "checking $ac_header presence... " >&6; }
6725 cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h. */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h. */
6731 #include <$ac_header>
6732 _ACEOF
6733 if { (ac_try="$ac_cpp conftest.$ac_ext"
6734 case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737 esac
6738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739 $as_echo "$ac_try_echo") >&5
6740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } >/dev/null && {
6747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6748 test ! -s conftest.err
6749 }; then
6750 ac_header_preproc=yes
6751 else
6752 $as_echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6755 ac_header_preproc=no
6758 rm -f conftest.err conftest.$ac_ext
6759 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6760 $as_echo "$ac_header_preproc" >&6; }
6762 # So? What about this header?
6763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6764 yes:no: )
6765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6766 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6768 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6769 ac_header_preproc=yes
6771 no:yes:* )
6772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6773 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6775 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6777 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6779 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6781 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6783 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6786 esac
6787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6788 $as_echo_n "checking for $ac_header... " >&6; }
6789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6790 $as_echo_n "(cached) " >&6
6791 else
6792 eval "$as_ac_Header=\$ac_header_preproc"
6794 ac_res=`eval 'as_val=${'$as_ac_Header'}
6795 $as_echo "$as_val"'`
6796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6797 $as_echo "$ac_res" >&6; }
6800 as_val=`eval 'as_val=${'$as_ac_Header'}
6801 $as_echo "$as_val"'`
6802 if test "x$as_val" = x""yes; then
6803 cat >>confdefs.h <<_ACEOF
6804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6805 _ACEOF
6809 done
6812 if test "${ac_cv_header_stdarg_h+set}" = set; then
6813 { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
6814 $as_echo_n "checking for stdarg.h... " >&6; }
6815 if test "${ac_cv_header_stdarg_h+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6818 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6819 $as_echo "$ac_cv_header_stdarg_h" >&6; }
6820 else
6821 # Is the header compilable?
6822 { $as_echo "$as_me:$LINENO: checking stdarg.h usability" >&5
6823 $as_echo_n "checking stdarg.h usability... " >&6; }
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 $ac_includes_default
6831 #include <stdarg.h>
6832 _ACEOF
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6835 case "(($ac_try" in
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6838 esac
6839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6840 $as_echo "$ac_try_echo") >&5
6841 (eval "$ac_compile") 2>conftest.er1
6842 ac_status=$?
6843 grep -v '^ *+' conftest.er1 >conftest.err
6844 rm -f conftest.er1
6845 cat conftest.err >&5
6846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } && {
6848 test -z "$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6850 } && test -s conftest.$ac_objext; then
6851 ac_header_compiler=yes
6852 else
6853 $as_echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6856 ac_header_compiler=no
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6861 $as_echo "$ac_header_compiler" >&6; }
6863 # Is the header present?
6864 { $as_echo "$as_me:$LINENO: checking stdarg.h presence" >&5
6865 $as_echo_n "checking stdarg.h presence... " >&6; }
6866 cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h. */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 #include <stdarg.h>
6873 _ACEOF
6874 if { (ac_try="$ac_cpp conftest.$ac_ext"
6875 case "(($ac_try" in
6876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6877 *) ac_try_echo=$ac_try;;
6878 esac
6879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6880 $as_echo "$ac_try_echo") >&5
6881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } >/dev/null && {
6888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6889 test ! -s conftest.err
6890 }; then
6891 ac_header_preproc=yes
6892 else
6893 $as_echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 ac_header_preproc=no
6899 rm -f conftest.err conftest.$ac_ext
6900 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6901 $as_echo "$ac_header_preproc" >&6; }
6903 # So? What about this header?
6904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6905 yes:no: )
6906 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
6907 $as_echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6908 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
6909 $as_echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
6910 ac_header_preproc=yes
6912 no:yes:* )
6913 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
6914 $as_echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
6915 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
6916 $as_echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
6917 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
6918 $as_echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
6919 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
6920 $as_echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
6921 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
6922 $as_echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
6923 { $as_echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
6924 $as_echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
6927 esac
6928 { $as_echo "$as_me:$LINENO: checking for stdarg.h" >&5
6929 $as_echo_n "checking for stdarg.h... " >&6; }
6930 if test "${ac_cv_header_stdarg_h+set}" = set; then
6931 $as_echo_n "(cached) " >&6
6932 else
6933 ac_cv_header_stdarg_h=$ac_header_preproc
6935 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
6936 $as_echo "$ac_cv_header_stdarg_h" >&6; }
6939 if test "x$ac_cv_header_stdarg_h" = x""yes; then
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_STDARG 1
6943 _ACEOF
6945 else
6946 if test "${ac_cv_header_varargs_h+set}" = set; then
6947 { $as_echo "$as_me:$LINENO: checking for varargs.h" >&5
6948 $as_echo_n "checking for varargs.h... " >&6; }
6949 if test "${ac_cv_header_varargs_h+set}" = set; then
6950 $as_echo_n "(cached) " >&6
6952 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
6953 $as_echo "$ac_cv_header_varargs_h" >&6; }
6954 else
6955 # Is the header compilable?
6956 { $as_echo "$as_me:$LINENO: checking varargs.h usability" >&5
6957 $as_echo_n "checking varargs.h usability... " >&6; }
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 $ac_includes_default
6965 #include <varargs.h>
6966 _ACEOF
6967 rm -f conftest.$ac_objext
6968 if { (ac_try="$ac_compile"
6969 case "(($ac_try" in
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6972 esac
6973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6974 $as_echo "$ac_try_echo") >&5
6975 (eval "$ac_compile") 2>conftest.er1
6976 ac_status=$?
6977 grep -v '^ *+' conftest.er1 >conftest.err
6978 rm -f conftest.er1
6979 cat conftest.err >&5
6980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && {
6982 test -z "$ac_c_werror_flag" ||
6983 test ! -s conftest.err
6984 } && test -s conftest.$ac_objext; then
6985 ac_header_compiler=yes
6986 else
6987 $as_echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.$ac_ext >&5
6990 ac_header_compiler=no
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6995 $as_echo "$ac_header_compiler" >&6; }
6997 # Is the header present?
6998 { $as_echo "$as_me:$LINENO: checking varargs.h presence" >&5
6999 $as_echo_n "checking varargs.h presence... " >&6; }
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <varargs.h>
7007 _ACEOF
7008 if { (ac_try="$ac_cpp conftest.$ac_ext"
7009 case "(($ac_try" in
7010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011 *) ac_try_echo=$ac_try;;
7012 esac
7013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7014 $as_echo "$ac_try_echo") >&5
7015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } >/dev/null && {
7022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 }; then
7025 ac_header_preproc=yes
7026 else
7027 $as_echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_header_preproc=no
7033 rm -f conftest.err conftest.$ac_ext
7034 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7035 $as_echo "$ac_header_preproc" >&6; }
7037 # So? What about this header?
7038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7039 yes:no: )
7040 { $as_echo "$as_me:$LINENO: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&5
7041 $as_echo "$as_me: WARNING: varargs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7042 { $as_echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the compiler's result" >&5
7043 $as_echo "$as_me: WARNING: varargs.h: proceeding with the compiler's result" >&2;}
7044 ac_header_preproc=yes
7046 no:yes:* )
7047 { $as_echo "$as_me:$LINENO: WARNING: varargs.h: present but cannot be compiled" >&5
7048 $as_echo "$as_me: WARNING: varargs.h: present but cannot be compiled" >&2;}
7049 { $as_echo "$as_me:$LINENO: WARNING: varargs.h: check for missing prerequisite headers?" >&5
7050 $as_echo "$as_me: WARNING: varargs.h: check for missing prerequisite headers?" >&2;}
7051 { $as_echo "$as_me:$LINENO: WARNING: varargs.h: see the Autoconf documentation" >&5
7052 $as_echo "$as_me: WARNING: varargs.h: see the Autoconf documentation" >&2;}
7053 { $as_echo "$as_me:$LINENO: WARNING: varargs.h: section \"Present But Cannot Be Compiled\"" >&5
7054 $as_echo "$as_me: WARNING: varargs.h: section \"Present But Cannot Be Compiled\"" >&2;}
7055 { $as_echo "$as_me:$LINENO: WARNING: varargs.h: proceeding with the preprocessor's result" >&5
7056 $as_echo "$as_me: WARNING: varargs.h: proceeding with the preprocessor's result" >&2;}
7057 { $as_echo "$as_me:$LINENO: WARNING: varargs.h: in the future, the compiler will take precedence" >&5
7058 $as_echo "$as_me: WARNING: varargs.h: in the future, the compiler will take precedence" >&2;}
7061 esac
7062 { $as_echo "$as_me:$LINENO: checking for varargs.h" >&5
7063 $as_echo_n "checking for varargs.h... " >&6; }
7064 if test "${ac_cv_header_varargs_h+set}" = set; then
7065 $as_echo_n "(cached) " >&6
7066 else
7067 ac_cv_header_varargs_h=$ac_header_preproc
7069 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_varargs_h" >&5
7070 $as_echo "$ac_cv_header_varargs_h" >&6; }
7073 if test "x$ac_cv_header_varargs_h" = x""yes; then
7075 else
7076 { { $as_echo "$as_me:$LINENO: error: stdarg.h or varargs.h not found" >&5
7077 $as_echo "$as_me: error: stdarg.h or varargs.h not found" >&2;}
7078 { (exit 1); exit 1; }; }
7088 for ac_header in sys/time.h sys/fpu.h
7090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7092 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7093 $as_echo_n "checking for $ac_header... " >&6; }
7094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7095 $as_echo_n "(cached) " >&6
7097 ac_res=`eval 'as_val=${'$as_ac_Header'}
7098 $as_echo "$as_val"'`
7099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7100 $as_echo "$ac_res" >&6; }
7101 else
7102 # Is the header compilable?
7103 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7104 $as_echo_n "checking $ac_header usability... " >&6; }
7105 cat >conftest.$ac_ext <<_ACEOF
7106 /* confdefs.h. */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 $ac_includes_default
7112 #include <$ac_header>
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7116 case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119 esac
7120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7121 $as_echo "$ac_try_echo") >&5
7122 (eval "$ac_compile") 2>conftest.er1
7123 ac_status=$?
7124 grep -v '^ *+' conftest.er1 >conftest.err
7125 rm -f conftest.er1
7126 cat conftest.err >&5
7127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && {
7129 test -z "$ac_c_werror_flag" ||
7130 test ! -s conftest.err
7131 } && test -s conftest.$ac_objext; then
7132 ac_header_compiler=yes
7133 else
7134 $as_echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 ac_header_compiler=no
7140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7142 $as_echo "$ac_header_compiler" >&6; }
7144 # Is the header present?
7145 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7146 $as_echo_n "checking $ac_header presence... " >&6; }
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h. */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 #include <$ac_header>
7154 _ACEOF
7155 if { (ac_try="$ac_cpp conftest.$ac_ext"
7156 case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159 esac
7160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7161 $as_echo "$ac_try_echo") >&5
7162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7163 ac_status=$?
7164 grep -v '^ *+' conftest.er1 >conftest.err
7165 rm -f conftest.er1
7166 cat conftest.err >&5
7167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } >/dev/null && {
7169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7170 test ! -s conftest.err
7171 }; then
7172 ac_header_preproc=yes
7173 else
7174 $as_echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7177 ac_header_preproc=no
7180 rm -f conftest.err conftest.$ac_ext
7181 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182 $as_echo "$ac_header_preproc" >&6; }
7184 # So? What about this header?
7185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186 yes:no: )
7187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191 ac_header_preproc=yes
7193 no:yes:* )
7194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7197 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7201 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7208 esac
7209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 $as_echo_n "checking for $ac_header... " >&6; }
7211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7212 $as_echo_n "(cached) " >&6
7213 else
7214 eval "$as_ac_Header=\$ac_header_preproc"
7216 ac_res=`eval 'as_val=${'$as_ac_Header'}
7217 $as_echo "$as_val"'`
7218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7219 $as_echo "$ac_res" >&6; }
7222 as_val=`eval 'as_val=${'$as_ac_Header'}
7223 $as_echo "$as_val"'`
7224 if test "x$as_val" = x""yes; then
7225 cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 _ACEOF
7231 done
7236 for ac_header in stdint.h
7238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7241 $as_echo_n "checking for $ac_header... " >&6; }
7242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7243 $as_echo_n "(cached) " >&6
7245 ac_res=`eval 'as_val=${'$as_ac_Header'}
7246 $as_echo "$as_val"'`
7247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7248 $as_echo "$ac_res" >&6; }
7249 else
7250 # Is the header compilable?
7251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 $as_echo_n "checking $ac_header usability... " >&6; }
7253 cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h. */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7260 #include <$ac_header>
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7264 case "(($ac_try" in
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7267 esac
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7280 ac_header_compiler=yes
7281 else
7282 $as_echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 ac_header_compiler=no
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7290 $as_echo "$ac_header_compiler" >&6; }
7292 # Is the header present?
7293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7294 $as_echo_n "checking $ac_header presence... " >&6; }
7295 cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h. */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7301 #include <$ac_header>
7302 _ACEOF
7303 if { (ac_try="$ac_cpp conftest.$ac_ext"
7304 case "(($ac_try" in
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7307 esac
7308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7309 $as_echo "$ac_try_echo") >&5
7310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } >/dev/null && {
7317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 }; then
7320 ac_header_preproc=yes
7321 else
7322 $as_echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_header_preproc=no
7328 rm -f conftest.err conftest.$ac_ext
7329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7330 $as_echo "$ac_header_preproc" >&6; }
7332 # So? What about this header?
7333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7334 yes:no: )
7335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7339 ac_header_preproc=yes
7341 no:yes:* )
7342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7345 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7349 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7356 esac
7357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7358 $as_echo_n "checking for $ac_header... " >&6; }
7359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360 $as_echo_n "(cached) " >&6
7361 else
7362 eval "$as_ac_Header=\$ac_header_preproc"
7364 ac_res=`eval 'as_val=${'$as_ac_Header'}
7365 $as_echo "$as_val"'`
7366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7367 $as_echo "$ac_res" >&6; }
7370 as_val=`eval 'as_val=${'$as_ac_Header'}
7371 $as_echo "$as_val"'`
7372 if test "x$as_val" = x""yes; then
7373 cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 _ACEOF
7379 done
7381 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7382 $as_echo_n "checking for SIZE_MAX... " >&6; }
7383 if test "${gl_cv_size_max+set}" = set; then
7384 $as_echo_n "(cached) " >&6
7385 else
7387 gl_cv_size_max=
7388 cat >conftest.$ac_ext <<_ACEOF
7389 /* confdefs.h. */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
7393 /* end confdefs.h. */
7395 #include <limits.h>
7396 #if HAVE_STDINT_H
7397 #include <stdint.h>
7398 #endif
7399 #ifdef SIZE_MAX
7400 Found it
7401 #endif
7403 _ACEOF
7404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7405 $EGREP "Found it" >/dev/null 2>&1; then
7406 gl_cv_size_max=yes
7408 rm -f conftest*
7410 if test -z "$gl_cv_size_max"; then
7411 if test "$cross_compiling" = yes; then
7412 # Depending upon the size, compute the lo and hi bounds.
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <stddef.h>
7420 #include <limits.h>
7422 main ()
7424 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
7425 test_array [0] = 0
7428 return 0;
7430 _ACEOF
7431 rm -f conftest.$ac_objext
7432 if { (ac_try="$ac_compile"
7433 case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436 esac
7437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7438 $as_echo "$ac_try_echo") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7449 ac_lo=0 ac_mid=0
7450 while :; do
7451 cat >conftest.$ac_ext <<_ACEOF
7452 /* confdefs.h. */
7453 _ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #include <stddef.h>
7458 #include <limits.h>
7460 main ()
7462 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
7463 test_array [0] = 0
7466 return 0;
7468 _ACEOF
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
7471 case "(($ac_try" in
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7474 esac
7475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7476 $as_echo "$ac_try_echo") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7478 ac_status=$?
7479 grep -v '^ *+' conftest.er1 >conftest.err
7480 rm -f conftest.er1
7481 cat conftest.err >&5
7482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 ac_hi=$ac_mid; break
7488 else
7489 $as_echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 ac_lo=`expr $ac_mid + 1`
7493 if test $ac_lo -le $ac_mid; then
7494 ac_lo= ac_hi=
7495 break
7497 ac_mid=`expr 2 '*' $ac_mid + 1`
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 done
7502 else
7503 $as_echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h. */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 #include <stddef.h>
7513 #include <limits.h>
7515 main ()
7517 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
7518 test_array [0] = 0
7521 return 0;
7523 _ACEOF
7524 rm -f conftest.$ac_objext
7525 if { (ac_try="$ac_compile"
7526 case "(($ac_try" in
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7529 esac
7530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7531 $as_echo "$ac_try_echo") >&5
7532 (eval "$ac_compile") 2>conftest.er1
7533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest.$ac_objext; then
7542 ac_hi=-1 ac_mid=-1
7543 while :; do
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #include <stddef.h>
7551 #include <limits.h>
7553 main ()
7555 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
7556 test_array [0] = 0
7559 return 0;
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (ac_try="$ac_compile"
7564 case "(($ac_try" in
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7567 esac
7568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7569 $as_echo "$ac_try_echo") >&5
7570 (eval "$ac_compile") 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest.$ac_objext; then
7580 ac_lo=$ac_mid; break
7581 else
7582 $as_echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 ac_hi=`expr '(' $ac_mid ')' - 1`
7586 if test $ac_mid -le $ac_hi; then
7587 ac_lo= ac_hi=
7588 break
7590 ac_mid=`expr 2 '*' $ac_mid`
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 done
7595 else
7596 $as_echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7599 ac_lo= ac_hi=
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 # Binary search between lo and hi bounds.
7607 while test "x$ac_lo" != "x$ac_hi"; do
7608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 #include <stddef.h>
7616 #include <limits.h>
7618 main ()
7620 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
7621 test_array [0] = 0
7624 return 0;
7626 _ACEOF
7627 rm -f conftest.$ac_objext
7628 if { (ac_try="$ac_compile"
7629 case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632 esac
7633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7634 $as_echo "$ac_try_echo") >&5
7635 (eval "$ac_compile") 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest.$ac_objext; then
7645 ac_hi=$ac_mid
7646 else
7647 $as_echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_lo=`expr '(' $ac_mid ')' + 1`
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7654 done
7655 case $ac_lo in
7656 ?*) size_t_bits_minus_1=$ac_lo;;
7657 '') size_t_bits_minus_1= ;;
7658 esac
7659 else
7660 cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h. */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7666 #include <stddef.h>
7667 #include <limits.h>
7668 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
7669 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
7670 #include <stdio.h>
7671 #include <stdlib.h>
7673 main ()
7676 FILE *f = fopen ("conftest.val", "w");
7677 if (! f)
7678 return 1;
7679 if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
7681 long int i = longval ();
7682 if (i != (sizeof (size_t) * CHAR_BIT - 1))
7683 return 1;
7684 fprintf (f, "%ld", i);
7686 else
7688 unsigned long int i = ulongval ();
7689 if (i != (sizeof (size_t) * CHAR_BIT - 1))
7690 return 1;
7691 fprintf (f, "%lu", i);
7693 /* Do not output a trailing newline, as this causes \r\n confusion
7694 on some platforms. */
7695 return ferror (f) || fclose (f) != 0;
7698 return 0;
7700 _ACEOF
7701 rm -f conftest$ac_exeext
7702 if { (ac_try="$ac_link"
7703 case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706 esac
7707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7708 $as_echo "$ac_try_echo") >&5
7709 (eval "$ac_link") 2>&5
7710 ac_status=$?
7711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7713 { (case "(($ac_try" in
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7716 esac
7717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7718 $as_echo "$ac_try_echo") >&5
7719 (eval "$ac_try") 2>&5
7720 ac_status=$?
7721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 size_t_bits_minus_1=`cat conftest.val`
7724 else
7725 $as_echo "$as_me: program exited with status $ac_status" >&5
7726 $as_echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7729 ( exit $ac_status )
7730 size_t_bits_minus_1=
7732 rm -rf conftest.dSYM
7733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7735 rm -f conftest.val
7736 if test "$cross_compiling" = yes; then
7737 # Depending upon the size, compute the lo and hi bounds.
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <stddef.h>
7746 main ()
7748 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7749 test_array [0] = 0
7752 return 0;
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_compile") 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest.$ac_objext; then
7773 ac_lo=0 ac_mid=0
7774 while :; do
7775 cat >conftest.$ac_ext <<_ACEOF
7776 /* confdefs.h. */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 #include <stddef.h>
7783 main ()
7785 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7786 test_array [0] = 0
7789 return 0;
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797 esac
7798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799 $as_echo "$ac_try_echo") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7801 ac_status=$?
7802 grep -v '^ *+' conftest.er1 >conftest.err
7803 rm -f conftest.er1
7804 cat conftest.err >&5
7805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_hi=$ac_mid; break
7811 else
7812 $as_echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_lo=`expr $ac_mid + 1`
7816 if test $ac_lo -le $ac_mid; then
7817 ac_lo= ac_hi=
7818 break
7820 ac_mid=`expr 2 '*' $ac_mid + 1`
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824 done
7825 else
7826 $as_echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #include <stddef.h>
7837 main ()
7839 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7840 test_array [0] = 0
7843 return 0;
7845 _ACEOF
7846 rm -f conftest.$ac_objext
7847 if { (ac_try="$ac_compile"
7848 case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851 esac
7852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.$ac_objext; then
7864 ac_hi=-1 ac_mid=-1
7865 while :; do
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #include <stddef.h>
7874 main ()
7876 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7877 test_array [0] = 0
7880 return 0;
7882 _ACEOF
7883 rm -f conftest.$ac_objext
7884 if { (ac_try="$ac_compile"
7885 case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_compile") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest.$ac_objext; then
7901 ac_lo=$ac_mid; break
7902 else
7903 $as_echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7906 ac_hi=`expr '(' $ac_mid ')' - 1`
7907 if test $ac_mid -le $ac_hi; then
7908 ac_lo= ac_hi=
7909 break
7911 ac_mid=`expr 2 '*' $ac_mid`
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 done
7916 else
7917 $as_echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_lo= ac_hi=
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 # Binary search between lo and hi bounds.
7928 while test "x$ac_lo" != "x$ac_hi"; do
7929 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7930 cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h. */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7936 #include <stddef.h>
7938 main ()
7940 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7941 test_array [0] = 0
7944 return 0;
7946 _ACEOF
7947 rm -f conftest.$ac_objext
7948 if { (ac_try="$ac_compile"
7949 case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952 esac
7953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7954 $as_echo "$ac_try_echo") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
7965 ac_hi=$ac_mid
7966 else
7967 $as_echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 ac_lo=`expr '(' $ac_mid ')' + 1`
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 done
7975 case $ac_lo in
7976 ?*) fits_in_uint=$ac_lo;;
7977 '') fits_in_uint= ;;
7978 esac
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <stddef.h>
7987 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7988 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7989 #include <stdio.h>
7990 #include <stdlib.h>
7992 main ()
7995 FILE *f = fopen ("conftest.val", "w");
7996 if (! f)
7997 return 1;
7998 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8000 long int i = longval ();
8001 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8002 return 1;
8003 fprintf (f, "%ld", i);
8005 else
8007 unsigned long int i = ulongval ();
8008 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8009 return 1;
8010 fprintf (f, "%lu", i);
8012 /* Do not output a trailing newline, as this causes \r\n confusion
8013 on some platforms. */
8014 return ferror (f) || fclose (f) != 0;
8017 return 0;
8019 _ACEOF
8020 rm -f conftest$ac_exeext
8021 if { (ac_try="$ac_link"
8022 case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8027 $as_echo "$ac_try_echo") >&5
8028 (eval "$ac_link") 2>&5
8029 ac_status=$?
8030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8032 { (case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8035 esac
8036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8037 $as_echo "$ac_try_echo") >&5
8038 (eval "$ac_try") 2>&5
8039 ac_status=$?
8040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 fits_in_uint=`cat conftest.val`
8043 else
8044 $as_echo "$as_me: program exited with status $ac_status" >&5
8045 $as_echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ( exit $ac_status )
8049 fits_in_uint=
8051 rm -rf conftest.dSYM
8052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8054 rm -f conftest.val
8055 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8056 if test $fits_in_uint = 1; then
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 #include <stddef.h>
8064 extern size_t foo;
8065 extern unsigned long foo;
8068 main ()
8072 return 0;
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8077 case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080 esac
8081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082 $as_echo "$ac_try_echo") >&5
8083 (eval "$ac_compile") 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest.$ac_objext; then
8093 fits_in_uint=0
8094 else
8095 $as_echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 if test $fits_in_uint = 1; then
8104 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8105 else
8106 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8108 else
8109 gl_cv_size_max='((size_t)~(size_t)0)'
8115 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
8116 $as_echo "$gl_cv_size_max" >&6; }
8117 if test "$gl_cv_size_max" != yes; then
8119 cat >>confdefs.h <<_ACEOF
8120 #define SIZE_MAX $gl_cv_size_max
8121 _ACEOF
8126 { $as_echo "$as_me:$LINENO: checking how to copy va_list" >&5
8127 $as_echo_n "checking how to copy va_list... " >&6; }
8128 cat >conftest.$ac_ext <<_ACEOF
8129 /* confdefs.h. */
8130 _ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8135 #include <stdarg.h>
8138 main ()
8141 va_list ap1, ap2;
8142 va_copy(ap1, ap2);
8145 return 0;
8147 _ACEOF
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (ac_try="$ac_link"
8150 case "(($ac_try" in
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8153 esac
8154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8155 $as_echo "$ac_try_echo") >&5
8156 (eval "$ac_link") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest$ac_exeext && {
8166 test "$cross_compiling" = yes ||
8167 $as_test_x conftest$ac_exeext
8168 }; then
8169 { $as_echo "$as_me:$LINENO: result: va_copy" >&5
8170 $as_echo "va_copy" >&6; }
8171 else
8172 $as_echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8182 #include <stdarg.h>
8185 main ()
8188 va_list ap1, ap2;
8189 __va_copy(ap1, ap2);
8192 return 0;
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8197 case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200 esac
8201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8202 $as_echo "$ac_try_echo") >&5
8203 (eval "$ac_link") 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && {
8210 test -z "$ac_c_werror_flag" ||
8211 test ! -s conftest.err
8212 } && test -s conftest$ac_exeext && {
8213 test "$cross_compiling" = yes ||
8214 $as_test_x conftest$ac_exeext
8215 }; then
8216 cat >>confdefs.h <<\_ACEOF
8217 #define va_copy __va_copy
8218 _ACEOF
8219 { $as_echo "$as_me:$LINENO: result: __va_copy" >&5
8220 $as_echo "__va_copy" >&6; }
8221 else
8222 $as_echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8225 cat >>confdefs.h <<\_ACEOF
8226 #define va_copy(dest,src) memcpy(&dest,&src,sizeof(va_list))
8227 _ACEOF
8229 { $as_echo "$as_me:$LINENO: result: memcpy" >&5
8230 $as_echo "memcpy" >&6; }
8233 rm -rf conftest.dSYM
8234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8235 conftest$ac_exeext conftest.$ac_ext
8239 rm -rf conftest.dSYM
8240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8241 conftest$ac_exeext conftest.$ac_ext
8248 for ac_func in memmove memset setlocale strtol gettimeofday
8250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8252 $as_echo_n "checking for $ac_func... " >&6; }
8253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8254 $as_echo_n "(cached) " >&6
8255 else
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8264 #define $ac_func innocuous_$ac_func
8266 /* System header to define __stub macros and hopefully few prototypes,
8267 which can conflict with char $ac_func (); below.
8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269 <limits.h> exists even on freestanding compilers. */
8271 #ifdef __STDC__
8272 # include <limits.h>
8273 #else
8274 # include <assert.h>
8275 #endif
8277 #undef $ac_func
8279 /* Override any GCC internal prototype to avoid an error.
8280 Use char because int might match the return type of a GCC
8281 builtin and then its argument prototype would still apply. */
8282 #ifdef __cplusplus
8283 extern "C"
8284 #endif
8285 char $ac_func ();
8286 /* The GNU C library defines this for functions which it implements
8287 to always fail with ENOSYS. Some functions are actually named
8288 something starting with __ and the normal name is an alias. */
8289 #if defined __stub_$ac_func || defined __stub___$ac_func
8290 choke me
8291 #endif
8294 main ()
8296 return $ac_func ();
8298 return 0;
8300 _ACEOF
8301 rm -f conftest.$ac_objext conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8308 $as_echo "$ac_try_echo") >&5
8309 (eval "$ac_link") 2>conftest.er1
8310 ac_status=$?
8311 grep -v '^ *+' conftest.er1 >conftest.err
8312 rm -f conftest.er1
8313 cat conftest.err >&5
8314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest$ac_exeext && {
8319 test "$cross_compiling" = yes ||
8320 $as_test_x conftest$ac_exeext
8321 }; then
8322 eval "$as_ac_var=yes"
8323 else
8324 $as_echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 eval "$as_ac_var=no"
8330 rm -rf conftest.dSYM
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332 conftest$ac_exeext conftest.$ac_ext
8334 ac_res=`eval 'as_val=${'$as_ac_var'}
8335 $as_echo "$as_val"'`
8336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8337 $as_echo "$ac_res" >&6; }
8338 as_val=`eval 'as_val=${'$as_ac_var'}
8339 $as_echo "$as_val"'`
8340 if test "x$as_val" = x""yes; then
8341 cat >>confdefs.h <<_ACEOF
8342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8343 _ACEOF
8346 done
8349 case $host in
8350 alpha*-*-*)
8351 saved_CFLAGS="$CFLAGS"
8352 { $as_echo "$as_me:$LINENO: checking for IEEE-754 switches" >&5
8353 $as_echo_n "checking for IEEE-754 switches... " >&6; }
8354 if test "${mpfr_cv_ieee_switches+set}" = set; then
8355 $as_echo_n "(cached) " >&6
8356 else
8358 if test -n "$GCC"; then
8359 mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
8360 else
8361 mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
8363 CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8372 main ()
8376 return 0;
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (ac_try="$ac_compile"
8381 case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8384 esac
8385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8386 $as_echo "$ac_try_echo") >&5
8387 (eval "$ac_compile") 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } && {
8394 test -z "$ac_c_werror_flag" ||
8395 test ! -s conftest.err
8396 } && test -s conftest.$ac_objext; then
8398 else
8399 $as_echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8402 mpfr_cv_ieee_switches="none"
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_ieee_switches" >&5
8409 $as_echo "$mpfr_cv_ieee_switches" >&6; }
8410 if test "$mpfr_cv_ieee_switches" = "none"; then
8411 CFLAGS="$saved_CFLAGS"
8412 else
8413 CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
8415 esac
8417 case $host in
8418 x86_64-*linux*)
8419 case `sed -n '/^vendor_id/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
8420 *Intel*)
8421 cat >>confdefs.h <<\_ACEOF
8422 #define HAVE_HOST_CORE2 1
8423 _ACEOF
8425 esac
8426 esac
8428 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
8429 $as_echo_n "checking for long long int... " >&6; }
8430 if test "${ac_cv_type_long_long_int+set}" = set; then
8431 $as_echo_n "(cached) " >&6
8432 else
8433 ac_cv_type_long_long_int=no
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8442 main ()
8444 if (sizeof (long long int))
8445 return 0;
8447 return 0;
8449 _ACEOF
8450 rm -f conftest.$ac_objext
8451 if { (ac_try="$ac_compile"
8452 case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8455 esac
8456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8457 $as_echo "$ac_try_echo") >&5
8458 (eval "$ac_compile") 2>conftest.er1
8459 ac_status=$?
8460 grep -v '^ *+' conftest.er1 >conftest.err
8461 rm -f conftest.er1
8462 cat conftest.err >&5
8463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && {
8465 test -z "$ac_c_werror_flag" ||
8466 test ! -s conftest.err
8467 } && test -s conftest.$ac_objext; then
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h. */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 $ac_includes_default
8476 main ()
8478 if (sizeof ((long long int)))
8479 return 0;
8481 return 0;
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489 esac
8490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8491 $as_echo "$ac_try_echo") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.$ac_objext; then
8503 else
8504 $as_echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_cv_type_long_long_int=yes
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 else
8512 $as_echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
8521 $as_echo "$ac_cv_type_long_long_int" >&6; }
8522 if test "x$ac_cv_type_long_long_int" = x""yes; then
8524 cat >>confdefs.h <<\_ACEOF
8525 #define HAVE_LONG_LONG 1
8526 _ACEOF
8531 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
8532 $as_echo_n "checking for intmax_t... " >&6; }
8533 if test "${ac_cv_type_intmax_t+set}" = set; then
8534 $as_echo_n "(cached) " >&6
8535 else
8536 ac_cv_type_intmax_t=no
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 $ac_includes_default
8545 main ()
8547 if (sizeof (intmax_t))
8548 return 0;
8550 return 0;
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8555 case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558 esac
8559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8560 $as_echo "$ac_try_echo") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8571 cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h. */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 $ac_includes_default
8579 main ()
8581 if (sizeof ((intmax_t)))
8582 return 0;
8584 return 0;
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (ac_try="$ac_compile"
8589 case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592 esac
8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8594 $as_echo "$ac_try_echo") >&5
8595 (eval "$ac_compile") 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } && {
8602 test -z "$ac_c_werror_flag" ||
8603 test ! -s conftest.err
8604 } && test -s conftest.$ac_objext; then
8606 else
8607 $as_echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_cv_type_intmax_t=yes
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 else
8615 $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8624 $as_echo "$ac_cv_type_intmax_t" >&6; }
8625 if test "x$ac_cv_type_intmax_t" = x""yes; then
8627 cat >>confdefs.h <<_ACEOF
8628 #define HAVE_INTMAX_T 1
8629 _ACEOF
8635 { $as_echo "$as_me:$LINENO: checking for union fpc_csr" >&5
8636 $as_echo_n "checking for union fpc_csr... " >&6; }
8637 if test "${ac_cv_type_union_fpc_csr+set}" = set; then
8638 $as_echo_n "(cached) " >&6
8639 else
8640 ac_cv_type_union_fpc_csr=no
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h. */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8648 #if HAVE_SYS_FPU_H
8649 # include <sys/fpu.h>
8650 #endif
8654 main ()
8656 if (sizeof (union fpc_csr))
8657 return 0;
8659 return 0;
8661 _ACEOF
8662 rm -f conftest.$ac_objext
8663 if { (ac_try="$ac_compile"
8664 case "(($ac_try" in
8665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8666 *) ac_try_echo=$ac_try;;
8667 esac
8668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8669 $as_echo "$ac_try_echo") >&5
8670 (eval "$ac_compile") 2>conftest.er1
8671 ac_status=$?
8672 grep -v '^ *+' conftest.er1 >conftest.err
8673 rm -f conftest.er1
8674 cat conftest.err >&5
8675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && {
8677 test -z "$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8679 } && test -s conftest.$ac_objext; then
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8687 #if HAVE_SYS_FPU_H
8688 # include <sys/fpu.h>
8689 #endif
8693 main ()
8695 if (sizeof ((union fpc_csr)))
8696 return 0;
8698 return 0;
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8703 case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8708 $as_echo "$ac_try_echo") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.$ac_objext; then
8720 else
8721 $as_echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_cv_type_union_fpc_csr=yes
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 else
8729 $as_echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_fpc_csr" >&5
8738 $as_echo "$ac_cv_type_union_fpc_csr" >&6; }
8739 if test "x$ac_cv_type_union_fpc_csr" = x""yes; then
8741 cat >>confdefs.h <<\_ACEOF
8742 #define HAVE_FPC_CSR 1
8743 _ACEOF
8748 { $as_echo "$as_me:$LINENO: checking for fesetround" >&5
8749 $as_echo_n "checking for fesetround... " >&6; }
8750 if test "${mpfr_cv_have_fesetround+set}" = set; then
8751 $as_echo_n "(cached) " >&6
8752 else
8754 saved_LIBS="$LIBS"
8755 LIBS="$LIBS $MPFR_LIBM"
8756 cat >conftest.$ac_ext <<_ACEOF
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 #include <fenv.h>
8764 main ()
8766 fesetround(FE_TONEAREST);
8768 return 0;
8770 _ACEOF
8771 rm -f conftest.$ac_objext conftest$ac_exeext
8772 if { (ac_try="$ac_link"
8773 case "(($ac_try" in
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8776 esac
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779 (eval "$ac_link") 2>conftest.er1
8780 ac_status=$?
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
8784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest$ac_exeext && {
8789 test "$cross_compiling" = yes ||
8790 $as_test_x conftest$ac_exeext
8791 }; then
8792 mpfr_cv_have_fesetround=yes
8793 else
8794 $as_echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 mpfr_cv_have_fesetround=no
8800 rm -rf conftest.dSYM
8801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8802 conftest$ac_exeext conftest.$ac_ext
8803 LIBS="$saved_LIBS"
8806 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_have_fesetround" >&5
8807 $as_echo "$mpfr_cv_have_fesetround" >&6; }
8808 if test "$mpfr_cv_have_fesetround" = "yes"; then
8810 cat >>confdefs.h <<\_ACEOF
8811 #define MPFR_HAVE_FESETROUND 1
8812 _ACEOF
8816 if test -n "$GCC"; then
8817 { $as_echo "$as_me:$LINENO: checking for gcc float-conversion bug" >&5
8818 $as_echo_n "checking for gcc float-conversion bug... " >&6; }
8819 if test "${mpfr_cv_gcc_floatconv_bug+set}" = set; then
8820 $as_echo_n "(cached) " >&6
8821 else
8823 saved_LIBS="$LIBS"
8824 LIBS="$LIBS $MPFR_LIBM"
8825 if test "$cross_compiling" = yes; then
8826 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
8827 else
8828 cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h. */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8835 #include <float.h>
8836 #ifdef MPFR_HAVE_FESETROUND
8837 #include <fenv.h>
8838 #endif
8839 static double get_max (void);
8840 int main() {
8841 double x = 0.5;
8842 int i;
8843 for (i = 1; i <= 11; i++)
8844 x *= x;
8845 if (x != 0)
8846 return 1;
8847 #ifdef MPFR_HAVE_FESETROUND
8848 /* Useful test for the G4 PowerPC */
8849 fesetround(FE_TOWARDZERO);
8850 x = get_max ();
8851 x *= 2.0;
8852 if (x != get_max ())
8853 return 1;
8854 #endif
8855 return 0;
8857 static double get_max (void) { return DBL_MAX; }
8859 _ACEOF
8860 rm -f conftest$ac_exeext
8861 if { (ac_try="$ac_link"
8862 case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8865 esac
8866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8867 $as_echo "$ac_try_echo") >&5
8868 (eval "$ac_link") 2>&5
8869 ac_status=$?
8870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8872 { (case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8875 esac
8876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8877 $as_echo "$ac_try_echo") >&5
8878 (eval "$ac_try") 2>&5
8879 ac_status=$?
8880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 mpfr_cv_gcc_floatconv_bug="no"
8883 else
8884 $as_echo "$as_me: program exited with status $ac_status" >&5
8885 $as_echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8888 ( exit $ac_status )
8889 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
8891 rm -rf conftest.dSYM
8892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8896 LIBS="$saved_LIBS"
8899 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_gcc_floatconv_bug" >&5
8900 $as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
8901 if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
8902 CFLAGS="$CFLAGS -ffloat-store"
8906 { $as_echo "$as_me:$LINENO: checking for denormalized numbers" >&5
8907 $as_echo_n "checking for denormalized numbers... " >&6; }
8908 if test "${mpfr_cv_have_denorms+set}" = set; then
8909 $as_echo_n "(cached) " >&6
8910 else
8912 if test "$cross_compiling" = yes; then
8913 mpfr_cv_have_denorms=no
8914 else
8915 cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h. */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8922 #include <math.h>
8923 #include <stdio.h>
8924 int main() {
8925 double x = 2.22507385850720138309e-308;
8926 fprintf (stderr, "%e\n", x / 2.0);
8927 return 2.0 * (x / 2.0) != x;
8930 _ACEOF
8931 rm -f conftest$ac_exeext
8932 if { (ac_try="$ac_link"
8933 case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8936 esac
8937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8938 $as_echo "$ac_try_echo") >&5
8939 (eval "$ac_link") 2>&5
8940 ac_status=$?
8941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8943 { (case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8948 $as_echo "$ac_try_echo") >&5
8949 (eval "$ac_try") 2>&5
8950 ac_status=$?
8951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 mpfr_cv_have_denorms=yes
8954 else
8955 $as_echo "$as_me: program exited with status $ac_status" >&5
8956 $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8959 ( exit $ac_status )
8960 mpfr_cv_have_denorms=no
8962 rm -rf conftest.dSYM
8963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8969 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_have_denorms" >&5
8970 $as_echo "$mpfr_cv_have_denorms" >&6; }
8971 if test "$mpfr_cv_have_denorms" = "yes"; then
8973 cat >>confdefs.h <<\_ACEOF
8974 #define HAVE_DENORMS 1
8975 _ACEOF
8979 { $as_echo "$as_me:$LINENO: checking if NAN == NAN" >&5
8980 $as_echo_n "checking if NAN == NAN... " >&6; }
8981 if test "${mpfr_cv_nanisnan+set}" = set; then
8982 $as_echo_n "(cached) " >&6
8983 else
8985 if test "$cross_compiling" = yes; then
8986 mpfr_cv_nanisnan="cannot test, assume no"
8987 else
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h. */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8995 #include <stdio.h>
8996 #include <math.h>
8997 #ifndef NAN
8998 # define NAN (0.0/0.0)
8999 #endif
9000 int main() {
9001 double d;
9002 d = NAN;
9003 return d != d;
9006 _ACEOF
9007 rm -f conftest$ac_exeext
9008 if { (ac_try="$ac_link"
9009 case "(($ac_try" in
9010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011 *) ac_try_echo=$ac_try;;
9012 esac
9013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9014 $as_echo "$ac_try_echo") >&5
9015 (eval "$ac_link") 2>&5
9016 ac_status=$?
9017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9019 { (case "(($ac_try" in
9020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9022 esac
9023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9024 $as_echo "$ac_try_echo") >&5
9025 (eval "$ac_try") 2>&5
9026 ac_status=$?
9027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; }; then
9029 mpfr_cv_nanisnan="yes"
9030 else
9031 $as_echo "$as_me: program exited with status $ac_status" >&5
9032 $as_echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 ( exit $ac_status )
9036 mpfr_cv_nanisnan="no"
9038 rm -rf conftest.dSYM
9039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9045 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_nanisnan" >&5
9046 $as_echo "$mpfr_cv_nanisnan" >&6; }
9047 if test "$mpfr_cv_nanisnan" = "yes"; then
9049 cat >>confdefs.h <<\_ACEOF
9050 #define MPFR_NANISNAN 1
9051 _ACEOF
9053 { $as_echo "$as_me:$LINENO: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
9054 $as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
9055 { $as_echo "$as_me:$LINENO: WARNING: your compiler optimizes floating-point expressions in an" >&5
9056 $as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
9057 { $as_echo "$as_me:$LINENO: WARNING: unsafe way because some option, such as -ffast-math or" >&5
9058 $as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
9059 { $as_echo "$as_me:$LINENO: WARNING: -fast (depending on the compiler), has been used. You" >&5
9060 $as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;}
9061 { $as_echo "$as_me:$LINENO: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
9062 $as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
9063 { $as_echo "$as_me:$LINENO: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
9064 $as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
9065 { $as_echo "$as_me:$LINENO: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
9066 $as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
9067 { $as_echo "$as_me:$LINENO: WARNING: If you did not use such an option, please send us a bug" >&5
9068 $as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
9069 { $as_echo "$as_me:$LINENO: WARNING: report so that we can try to find a workaround for your" >&5
9070 $as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
9071 { $as_echo "$as_me:$LINENO: WARNING: platform and/or document the behavior." >&5
9072 $as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
9075 { $as_echo "$as_me:$LINENO: checking if charset has consecutive values" >&5
9076 $as_echo_n "checking if charset has consecutive values... " >&6; }
9077 if test "$cross_compiling" = yes; then
9078 { $as_echo "$as_me:$LINENO: result: can not test" >&5
9079 $as_echo "can not test" >&6; }
9080 else
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9088 char *number = "0123456789";
9089 char *lower = "abcdefghijklmnopqrstuvwxyz";
9090 char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
9093 main ()
9096 int i;
9097 unsigned char *p;
9098 for (p = (unsigned char*) number, i = 0; i < 9; i++)
9099 if ( (*p)+1 != *(p+1) ) return 1;
9100 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
9101 if ( (*p)+1 != *(p+1) ) return 1;
9102 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
9103 if ( (*p)+1 != *(p+1) ) return 1;
9106 return 0;
9108 _ACEOF
9109 rm -f conftest$ac_exeext
9110 if { (ac_try="$ac_link"
9111 case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114 esac
9115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9116 $as_echo "$ac_try_echo") >&5
9117 (eval "$ac_link") 2>&5
9118 ac_status=$?
9119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9121 { (case "(($ac_try" in
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9124 esac
9125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9126 $as_echo "$ac_try_echo") >&5
9127 (eval "$ac_try") 2>&5
9128 ac_status=$?
9129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 { $as_echo "$as_me:$LINENO: result: yes" >&5
9132 $as_echo "yes" >&6; }
9133 else
9134 $as_echo "$as_me: program exited with status $ac_status" >&5
9135 $as_echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ( exit $ac_status )
9140 { $as_echo "$as_me:$LINENO: result: no" >&5
9141 $as_echo "no" >&6; }
9143 cat >>confdefs.h <<\_ACEOF
9144 #define MPFR_NO_CONSECUTIVE_CHARSET 1
9145 _ACEOF
9149 rm -rf conftest.dSYM
9150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9155 saved_LIBS="$LIBS"
9156 LIBS="$LIBS $MPFR_LIBM"
9157 { $as_echo "$as_me:$LINENO: checking for math/round" >&5
9158 $as_echo_n "checking for math/round... " >&6; }
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9166 #include <math.h>
9167 int f (double (*func)(double)) { return 0;}
9170 main ()
9173 double a = 17.42;
9174 a = f (round);
9175 return 0;
9178 return 0;
9180 _ACEOF
9181 rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (ac_try="$ac_link"
9183 case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186 esac
9187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9188 $as_echo "$ac_try_echo") >&5
9189 (eval "$ac_link") 2>conftest.er1
9190 ac_status=$?
9191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
9194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && {
9196 test -z "$ac_c_werror_flag" ||
9197 test ! -s conftest.err
9198 } && test -s conftest$ac_exeext && {
9199 test "$cross_compiling" = yes ||
9200 $as_test_x conftest$ac_exeext
9201 }; then
9203 { $as_echo "$as_me:$LINENO: result: yes" >&5
9204 $as_echo "yes" >&6; }
9206 cat >>confdefs.h <<\_ACEOF
9207 #define HAVE_ROUND 1
9208 _ACEOF
9211 else
9212 $as_echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 { $as_echo "$as_me:$LINENO: result: no" >&5
9216 $as_echo "no" >&6; }
9219 rm -rf conftest.dSYM
9220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9221 conftest$ac_exeext conftest.$ac_ext
9223 { $as_echo "$as_me:$LINENO: checking for math/trunc" >&5
9224 $as_echo_n "checking for math/trunc... " >&6; }
9225 cat >conftest.$ac_ext <<_ACEOF
9226 /* confdefs.h. */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9232 #include <math.h>
9233 int f (double (*func)(double)) { return 0;}
9236 main ()
9239 double a = 17.42;
9240 a = f(trunc);
9241 return 0;
9244 return 0;
9246 _ACEOF
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (ac_try="$ac_link"
9249 case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9252 esac
9253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9254 $as_echo "$ac_try_echo") >&5
9255 (eval "$ac_link") 2>conftest.er1
9256 ac_status=$?
9257 grep -v '^ *+' conftest.er1 >conftest.err
9258 rm -f conftest.er1
9259 cat conftest.err >&5
9260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } && {
9262 test -z "$ac_c_werror_flag" ||
9263 test ! -s conftest.err
9264 } && test -s conftest$ac_exeext && {
9265 test "$cross_compiling" = yes ||
9266 $as_test_x conftest$ac_exeext
9267 }; then
9269 { $as_echo "$as_me:$LINENO: result: yes" >&5
9270 $as_echo "yes" >&6; }
9272 cat >>confdefs.h <<\_ACEOF
9273 #define HAVE_TRUNC 1
9274 _ACEOF
9277 else
9278 $as_echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 { $as_echo "$as_me:$LINENO: result: no" >&5
9282 $as_echo "no" >&6; }
9285 rm -rf conftest.dSYM
9286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287 conftest$ac_exeext conftest.$ac_ext
9289 { $as_echo "$as_me:$LINENO: checking for math/floor" >&5
9290 $as_echo_n "checking for math/floor... " >&6; }
9291 cat >conftest.$ac_ext <<_ACEOF
9292 /* confdefs.h. */
9293 _ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9298 #include <math.h>
9299 int f (double (*func)(double)) { return 0;}
9302 main ()
9305 double a = 17.42;
9306 a = f(floor);
9307 return 0;
9310 return 0;
9312 _ACEOF
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (ac_try="$ac_link"
9315 case "(($ac_try" in
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9318 esac
9319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9320 $as_echo "$ac_try_echo") >&5
9321 (eval "$ac_link") 2>conftest.er1
9322 ac_status=$?
9323 grep -v '^ *+' conftest.er1 >conftest.err
9324 rm -f conftest.er1
9325 cat conftest.err >&5
9326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest$ac_exeext && {
9331 test "$cross_compiling" = yes ||
9332 $as_test_x conftest$ac_exeext
9333 }; then
9335 { $as_echo "$as_me:$LINENO: result: yes" >&5
9336 $as_echo "yes" >&6; }
9338 cat >>confdefs.h <<\_ACEOF
9339 #define HAVE_FLOOR 1
9340 _ACEOF
9343 else
9344 $as_echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9347 { $as_echo "$as_me:$LINENO: result: no" >&5
9348 $as_echo "no" >&6; }
9351 rm -rf conftest.dSYM
9352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9353 conftest$ac_exeext conftest.$ac_ext
9355 { $as_echo "$as_me:$LINENO: checking for math/ceil" >&5
9356 $as_echo_n "checking for math/ceil... " >&6; }
9357 cat >conftest.$ac_ext <<_ACEOF
9358 /* confdefs.h. */
9359 _ACEOF
9360 cat confdefs.h >>conftest.$ac_ext
9361 cat >>conftest.$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9364 #include <math.h>
9365 int f (double (*func)(double)) { return 0;}
9368 main ()
9371 double a = 17.42;
9372 a = f(ceil);
9373 return 0;
9376 return 0;
9378 _ACEOF
9379 rm -f conftest.$ac_objext conftest$ac_exeext
9380 if { (ac_try="$ac_link"
9381 case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384 esac
9385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9386 $as_echo "$ac_try_echo") >&5
9387 (eval "$ac_link") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest$ac_exeext && {
9397 test "$cross_compiling" = yes ||
9398 $as_test_x conftest$ac_exeext
9399 }; then
9401 { $as_echo "$as_me:$LINENO: result: yes" >&5
9402 $as_echo "yes" >&6; }
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_CEIL 1
9406 _ACEOF
9409 else
9410 $as_echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9413 { $as_echo "$as_me:$LINENO: result: no" >&5
9414 $as_echo "no" >&6; }
9417 rm -rf conftest.dSYM
9418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9419 conftest$ac_exeext conftest.$ac_ext
9421 { $as_echo "$as_me:$LINENO: checking for math/rint" >&5
9422 $as_echo_n "checking for math/rint... " >&6; }
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h. */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9430 #include <math.h>
9431 int f (double (*func)(double)) { return 0;}
9434 main ()
9437 double a = 17.42;
9438 a = f(nearbyint);
9439 return 0;
9442 return 0;
9444 _ACEOF
9445 rm -f conftest.$ac_objext conftest$ac_exeext
9446 if { (ac_try="$ac_link"
9447 case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9450 esac
9451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9452 $as_echo "$ac_try_echo") >&5
9453 (eval "$ac_link") 2>conftest.er1
9454 ac_status=$?
9455 grep -v '^ *+' conftest.er1 >conftest.err
9456 rm -f conftest.er1
9457 cat conftest.err >&5
9458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } && {
9460 test -z "$ac_c_werror_flag" ||
9461 test ! -s conftest.err
9462 } && test -s conftest$ac_exeext && {
9463 test "$cross_compiling" = yes ||
9464 $as_test_x conftest$ac_exeext
9465 }; then
9467 { $as_echo "$as_me:$LINENO: result: yes" >&5
9468 $as_echo "yes" >&6; }
9470 cat >>confdefs.h <<\_ACEOF
9471 #define HAVE_NEARBYINT 1
9472 _ACEOF
9475 else
9476 $as_echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.$ac_ext >&5
9479 { $as_echo "$as_me:$LINENO: result: no" >&5
9480 $as_echo "no" >&6; }
9483 rm -rf conftest.dSYM
9484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9485 conftest$ac_exeext conftest.$ac_ext
9487 LIBS="$saved_LIBS"
9492 { $as_echo "$as_me:$LINENO: checking for long double" >&5
9493 $as_echo_n "checking for long double... " >&6; }
9494 if test "${ac_cv_type_long_double+set}" = set; then
9495 $as_echo_n "(cached) " >&6
9496 else
9497 ac_cv_type_long_double=no
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 $ac_includes_default
9506 main ()
9508 if (sizeof (long double))
9509 return 0;
9511 return 0;
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (ac_try="$ac_compile"
9516 case "(($ac_try" in
9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518 *) ac_try_echo=$ac_try;;
9519 esac
9520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9521 $as_echo "$ac_try_echo") >&5
9522 (eval "$ac_compile") 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest.$ac_objext; then
9532 cat >conftest.$ac_ext <<_ACEOF
9533 /* confdefs.h. */
9534 _ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 $ac_includes_default
9540 main ()
9542 if (sizeof ((long double)))
9543 return 0;
9545 return 0;
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (ac_try="$ac_compile"
9550 case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553 esac
9554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9555 $as_echo "$ac_try_echo") >&5
9556 (eval "$ac_compile") 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } && {
9563 test -z "$ac_c_werror_flag" ||
9564 test ! -s conftest.err
9565 } && test -s conftest.$ac_objext; then
9567 else
9568 $as_echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_cv_type_long_double=yes
9574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575 else
9576 $as_echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
9585 $as_echo "$ac_cv_type_long_double" >&6; }
9586 if test "x$ac_cv_type_long_double" = x""yes; then
9588 cat >>confdefs.h <<_ACEOF
9589 #define HAVE_LONG_DOUBLE 1
9590 _ACEOF
9595 { $as_echo "$as_me:$LINENO: checking format of \`long double' floating point" >&5
9596 $as_echo_n "checking format of \`long double' floating point... " >&6; }
9597 if test "${mpfr_cv_c_long_double_format+set}" = set; then
9598 $as_echo_n "(cached) " >&6
9599 else
9600 mpfr_cv_c_long_double_format=unknown
9601 if test "$ac_cv_type_long_double" != yes; then
9602 mpfr_cv_c_long_double_format="not available"
9603 else
9604 cat >conftest.c <<\EOF
9606 /* "before" is 16 bytes to ensure there's no padding between it and "x".
9607 We're not expecting any "long double" bigger than 16 bytes or with
9608 alignment requirements stricter than 16 bytes. */
9609 struct {
9610 char before[16];
9611 long double x;
9612 char after[8];
9613 } foo = {
9614 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
9615 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
9616 -123456789.0,
9617 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
9621 mpfr_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
9622 if { (eval echo "$as_me:$LINENO: \"$mpfr_compile\"") >&5
9623 (eval $mpfr_compile) 2>&5
9624 ac_status=$?
9625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; then
9627 cat >conftest.awk <<\EOF
9629 BEGIN {
9630 found = 0
9633 # got[] holds a sliding window of bytes read the input. got[0] is the most
9634 # recent byte read, and got[31] the oldest byte read, so when looking to
9635 # match some data the indices are "reversed".
9638 for (f = 2; f <= NF; f++)
9640 # new byte, shift others up
9641 for (i = 31; i >= 0; i--)
9642 got[i+1] = got[i];
9643 got[0] = $f;
9645 # end sequence
9646 if (got[7] != "376") continue
9647 if (got[6] != "334") continue
9648 if (got[5] != "272") continue
9649 if (got[4] != "230") continue
9650 if (got[3] != "166") continue
9651 if (got[2] != "124") continue
9652 if (got[1] != "062") continue
9653 if (got[0] != "020") continue
9655 # start sequence, with 12-byte body
9656 if (got[27] == "001" && \
9657 got[26] == "043" && \
9658 got[25] == "105" && \
9659 got[24] == "147" && \
9660 got[23] == "211" && \
9661 got[22] == "253" && \
9662 got[21] == "315" && \
9663 got[20] == "357")
9665 saw = " (" got[19] \
9666 " " got[18] \
9667 " " got[17] \
9668 " " got[16] \
9669 " " got[15] \
9670 " " got[14] \
9671 " " got[13] \
9672 " " got[12] \
9673 " " got[11] \
9674 " " got[10] \
9675 " " got[9] \
9676 " " got[8] ")"
9678 if (got[19] == "000" && \
9679 got[18] == "000" && \
9680 got[17] == "000" && \
9681 got[16] == "000" && \
9682 got[15] == "240" && \
9683 got[14] == "242" && \
9684 got[13] == "171" && \
9685 got[12] == "353" && \
9686 got[11] == "031" && \
9687 got[10] == "300")
9689 print "IEEE extended, little endian"
9690 found = 1
9691 exit
9695 # start sequence, with 16-byte body
9696 if (got[31] == "001" && \
9697 got[30] == "043" && \
9698 got[29] == "105" && \
9699 got[28] == "147" && \
9700 got[27] == "211" && \
9701 got[26] == "253" && \
9702 got[25] == "315" && \
9703 got[24] == "357")
9705 saw = " (" got[23] \
9706 " " got[22] \
9707 " " got[21] \
9708 " " got[20] \
9709 " " got[19] \
9710 " " got[18] \
9711 " " got[17] \
9712 " " got[16] \
9713 " " got[15] \
9714 " " got[14] \
9715 " " got[13] \
9716 " " got[12] \
9717 " " got[11] \
9718 " " got[10] \
9719 " " got[9] \
9720 " " got[8] ")"
9722 if (got[23] == "000" && \
9723 got[22] == "000" && \
9724 got[21] == "000" && \
9725 got[20] == "000" && \
9726 got[19] == "240" && \
9727 got[18] == "242" && \
9728 got[17] == "171" && \
9729 got[16] == "353" && \
9730 got[15] == "031" && \
9731 got[14] == "300")
9733 print "IEEE extended, little endian"
9734 found = 1
9735 exit
9738 if (got[23] == "300" && \
9739 got[22] == "031" && \
9740 got[21] == "326" && \
9741 got[20] == "363" && \
9742 got[19] == "105" && \
9743 got[18] == "100" && \
9744 got[17] == "000" && \
9745 got[16] == "000" && \
9746 got[15] == "000" && \
9747 got[14] == "000" && \
9748 got[13] == "000" && \
9749 got[12] == "000" && \
9750 got[11] == "000" && \
9751 got[10] == "000" && \
9752 got[9] == "000" && \
9753 got[8] == "000")
9755 print "IEEE quad, big endian"
9756 found = 1
9757 exit
9763 END {
9764 if (! found)
9765 print "unknown", saw
9769 mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
9770 case $mpfr_cv_c_long_double_format in
9771 unknown*)
9772 echo "cannot match anything, conftest.$OBJEXT contains" >&5
9773 od -b conftest.$OBJEXT >&5
9775 esac
9776 else
9777 { $as_echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
9778 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
9781 rm -f conftest*
9784 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_c_long_double_format" >&5
9785 $as_echo "$mpfr_cv_c_long_double_format" >&6; }
9790 case $mpfr_cv_c_long_double_format in
9791 "IEEE extended, little endian")
9792 cat >>confdefs.h <<\_ACEOF
9793 #define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1
9794 _ACEOF
9797 "IEEE quad, big endian")
9798 cat >>confdefs.h <<\_ACEOF
9799 #define HAVE_LDOUBLE_IEEE_QUAD_BIG 1
9800 _ACEOF
9803 unknown* | "not available")
9806 { $as_echo "$as_me:$LINENO: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&5
9807 $as_echo "$as_me: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&2;}
9809 esac
9812 if test "$enable_thread_safe" = yes; then
9813 { $as_echo "$as_me:$LINENO: checking for TLS support" >&5
9814 $as_echo_n "checking for TLS support... " >&6; }
9815 if test "${mpfr_cv_working_tls+set}" = set; then
9816 $as_echo_n "(cached) " >&6
9817 else
9819 saved_CPPFLAGS="$CPPFLAGS"
9820 # The -I$srcdir is necessary when objdir is different from srcdir.
9821 CPPFLAGS="$CPPFLAGS -I$srcdir"
9822 if test "$cross_compiling" = yes; then
9823 mpfr_cv_working_tls="cannot test, assume yes"
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9827 #define MPFR_USE_THREAD_SAFE 1
9828 #include "mpfr-thread.h"
9829 MPFR_THREAD_ATTR int x = 17;
9830 int main() {
9831 return x != 17;
9834 _ACEOF
9835 rm -f conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842 $as_echo "$ac_try_echo") >&5
9843 (eval "$ac_link") 2>&5
9844 ac_status=$?
9845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9847 { (case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9850 esac
9851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9852 $as_echo "$ac_try_echo") >&5
9853 (eval "$ac_try") 2>&5
9854 ac_status=$?
9855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 mpfr_cv_working_tls="yes"
9858 else
9859 $as_echo "$as_me: program exited with status $ac_status" >&5
9860 $as_echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 ( exit $ac_status )
9864 { $as_echo "$as_me:$LINENO: result: no" >&5
9865 $as_echo "no" >&6; }
9866 { { $as_echo "$as_me:$LINENO: error: please configure with --disable-thread-safe" >&5
9867 $as_echo "$as_me: error: please configure with --disable-thread-safe" >&2;}
9868 { (exit 1); exit 1; }; }
9870 rm -rf conftest.dSYM
9871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9875 CPPFLAGS="$saved_CPPFLAGS"
9878 { $as_echo "$as_me:$LINENO: result: $mpfr_cv_working_tls" >&5
9879 $as_echo "$mpfr_cv_working_tls" >&6; }
9883 if test -n "$variable_indefinie" ; then
9884 ac_ext=cpp
9885 ac_cpp='$CXXCPP $CPPFLAGS'
9886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9889 if test -z "$CXX"; then
9890 if test -n "$CCC"; then
9891 CXX=$CCC
9892 else
9893 if test -n "$ac_tool_prefix"; then
9894 for ac_prog in g++
9896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9898 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9899 $as_echo_n "checking for $ac_word... " >&6; }
9900 if test "${ac_cv_prog_CXX+set}" = set; then
9901 $as_echo_n "(cached) " >&6
9902 else
9903 if test -n "$CXX"; then
9904 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9905 else
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 for as_dir in $PATH
9909 IFS=$as_save_IFS
9910 test -z "$as_dir" && as_dir=.
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9913 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9915 break 2
9917 done
9918 done
9919 IFS=$as_save_IFS
9923 CXX=$ac_cv_prog_CXX
9924 if test -n "$CXX"; then
9925 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
9926 $as_echo "$CXX" >&6; }
9927 else
9928 { $as_echo "$as_me:$LINENO: result: no" >&5
9929 $as_echo "no" >&6; }
9933 test -n "$CXX" && break
9934 done
9936 if test -z "$CXX"; then
9937 ac_ct_CXX=$CXX
9938 for ac_prog in g++
9940 # Extract the first word of "$ac_prog", so it can be a program name with args.
9941 set dummy $ac_prog; ac_word=$2
9942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
9945 $as_echo_n "(cached) " >&6
9946 else
9947 if test -n "$ac_ct_CXX"; then
9948 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9957 ac_cv_prog_ac_ct_CXX="$ac_prog"
9958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 break 2
9961 done
9962 done
9963 IFS=$as_save_IFS
9967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9968 if test -n "$ac_ct_CXX"; then
9969 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9970 $as_echo "$ac_ct_CXX" >&6; }
9971 else
9972 { $as_echo "$as_me:$LINENO: result: no" >&5
9973 $as_echo "no" >&6; }
9977 test -n "$ac_ct_CXX" && break
9978 done
9980 if test "x$ac_ct_CXX" = x; then
9981 CXX="g++"
9982 else
9983 case $cross_compiling:$ac_tool_warned in
9984 yes:)
9985 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9987 ac_tool_warned=yes ;;
9988 esac
9989 CXX=$ac_ct_CXX
9995 # Provide some information about the compiler.
9996 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
9997 set X $ac_compile
9998 ac_compiler=$2
9999 { (ac_try="$ac_compiler --version >&5"
10000 case "(($ac_try" in
10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10003 esac
10004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10005 $as_echo "$ac_try_echo") >&5
10006 (eval "$ac_compiler --version >&5") 2>&5
10007 ac_status=$?
10008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }
10010 { (ac_try="$ac_compiler -v >&5"
10011 case "(($ac_try" in
10012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10013 *) ac_try_echo=$ac_try;;
10014 esac
10015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10016 $as_echo "$ac_try_echo") >&5
10017 (eval "$ac_compiler -v >&5") 2>&5
10018 ac_status=$?
10019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }
10021 { (ac_try="$ac_compiler -V >&5"
10022 case "(($ac_try" in
10023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10025 esac
10026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10027 $as_echo "$ac_try_echo") >&5
10028 (eval "$ac_compiler -V >&5") 2>&5
10029 ac_status=$?
10030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }
10033 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10034 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10036 $as_echo_n "(cached) " >&6
10037 else
10038 cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h. */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h. */
10046 main ()
10048 #ifndef __GNUC__
10049 choke me
10050 #endif
10053 return 0;
10055 _ACEOF
10056 rm -f conftest.$ac_objext
10057 if { (ac_try="$ac_compile"
10058 case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061 esac
10062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10063 $as_echo "$ac_try_echo") >&5
10064 (eval "$ac_compile") 2>conftest.er1
10065 ac_status=$?
10066 grep -v '^ *+' conftest.er1 >conftest.err
10067 rm -f conftest.er1
10068 cat conftest.err >&5
10069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } && {
10071 test -z "$ac_cxx_werror_flag" ||
10072 test ! -s conftest.err
10073 } && test -s conftest.$ac_objext; then
10074 ac_compiler_gnu=yes
10075 else
10076 $as_echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10079 ac_compiler_gnu=no
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10086 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10087 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10088 if test $ac_compiler_gnu = yes; then
10089 GXX=yes
10090 else
10091 GXX=
10093 ac_test_CXXFLAGS=${CXXFLAGS+set}
10094 ac_save_CXXFLAGS=$CXXFLAGS
10095 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10096 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10097 if test "${ac_cv_prog_cxx_g+set}" = set; then
10098 $as_echo_n "(cached) " >&6
10099 else
10100 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10101 ac_cxx_werror_flag=yes
10102 ac_cv_prog_cxx_g=no
10103 CXXFLAGS="-g"
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h. */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10112 main ()
10116 return 0;
10118 _ACEOF
10119 rm -f conftest.$ac_objext
10120 if { (ac_try="$ac_compile"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124 esac
10125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10126 $as_echo "$ac_try_echo") >&5
10127 (eval "$ac_compile") 2>conftest.er1
10128 ac_status=$?
10129 grep -v '^ *+' conftest.er1 >conftest.err
10130 rm -f conftest.er1
10131 cat conftest.err >&5
10132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } && {
10134 test -z "$ac_cxx_werror_flag" ||
10135 test ! -s conftest.err
10136 } && test -s conftest.$ac_objext; then
10137 ac_cv_prog_cxx_g=yes
10138 else
10139 $as_echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10142 CXXFLAGS=""
10143 cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h. */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10151 main ()
10155 return 0;
10157 _ACEOF
10158 rm -f conftest.$ac_objext
10159 if { (ac_try="$ac_compile"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163 esac
10164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10165 $as_echo "$ac_try_echo") >&5
10166 (eval "$ac_compile") 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_cxx_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest.$ac_objext; then
10177 else
10178 $as_echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10182 CXXFLAGS="-g"
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h. */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10191 main ()
10195 return 0;
10197 _ACEOF
10198 rm -f conftest.$ac_objext
10199 if { (ac_try="$ac_compile"
10200 case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10203 esac
10204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10205 $as_echo "$ac_try_echo") >&5
10206 (eval "$ac_compile") 2>conftest.er1
10207 ac_status=$?
10208 grep -v '^ *+' conftest.er1 >conftest.err
10209 rm -f conftest.er1
10210 cat conftest.err >&5
10211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } && {
10213 test -z "$ac_cxx_werror_flag" ||
10214 test ! -s conftest.err
10215 } && test -s conftest.$ac_objext; then
10216 ac_cv_prog_cxx_g=yes
10217 else
10218 $as_echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10233 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
10234 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10235 if test "$ac_test_CXXFLAGS" = set; then
10236 CXXFLAGS=$ac_save_CXXFLAGS
10237 elif test $ac_cv_prog_cxx_g = yes; then
10238 if test "$GXX" = yes; then
10239 CXXFLAGS="-g -O2"
10240 else
10241 CXXFLAGS="-g"
10243 else
10244 if test "$GXX" = yes; then
10245 CXXFLAGS="-O2"
10246 else
10247 CXXFLAGS=
10250 ac_ext=c
10251 ac_cpp='$CPP $CPPFLAGS'
10252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10256 depcc="$CXX" am_compiler_list=
10258 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10259 $as_echo_n "checking dependency style of $depcc... " >&6; }
10260 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
10261 $as_echo_n "(cached) " >&6
10262 else
10263 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10264 # We make a subdir and do the tests there. Otherwise we can end up
10265 # making bogus files that we don't know about and never remove. For
10266 # instance it was reported that on HP-UX the gcc test will end up
10267 # making a dummy file named `D' -- because `-MD' means `put the output
10268 # in D'.
10269 mkdir conftest.dir
10270 # Copy depcomp to subdir because otherwise we won't find it if we're
10271 # using a relative directory.
10272 cp "$am_depcomp" conftest.dir
10273 cd conftest.dir
10274 # We will build objects and dependencies in a subdirectory because
10275 # it helps to detect inapplicable dependency modes. For instance
10276 # both Tru64's cc and ICC support -MD to output dependencies as a
10277 # side effect of compilation, but ICC will put the dependencies in
10278 # the current directory while Tru64 will put them in the object
10279 # directory.
10280 mkdir sub
10282 am_cv_CXX_dependencies_compiler_type=none
10283 if test "$am_compiler_list" = ""; then
10284 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10286 for depmode in $am_compiler_list; do
10287 # Setup a source with many dependencies, because some compilers
10288 # like to wrap large dependency lists on column 80 (with \), and
10289 # we should not choose a depcomp mode which is confused by this.
10291 # We need to recreate these files for each test, as the compiler may
10292 # overwrite some of them when testing with obscure command lines.
10293 # This happens at least with the AIX C compiler.
10294 : > sub/conftest.c
10295 for i in 1 2 3 4 5 6; do
10296 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10297 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10298 # Solaris 8's {/usr,}/bin/sh.
10299 touch sub/conftst$i.h
10300 done
10301 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10303 case $depmode in
10304 nosideeffect)
10305 # after this tag, mechanisms are not by side-effect, so they'll
10306 # only be used when explicitly requested
10307 if test "x$enable_dependency_tracking" = xyes; then
10308 continue
10309 else
10310 break
10313 none) break ;;
10314 esac
10315 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10316 # mode. It turns out that the SunPro C++ compiler does not properly
10317 # handle `-M -o', and we need to detect this.
10318 if depmode=$depmode \
10319 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
10320 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10321 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
10322 >/dev/null 2>conftest.err &&
10323 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10324 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10325 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
10326 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10327 # icc doesn't choke on unknown options, it will just issue warnings
10328 # or remarks (even with -Werror). So we grep stderr for any message
10329 # that says an option was ignored or not supported.
10330 # When given -MP, icc 7.0 and 7.1 complain thusly:
10331 # icc: Command line warning: ignoring option '-M'; no argument required
10332 # The diagnosis changed in icc 8.0:
10333 # icc: Command line remark: option '-MP' not supported
10334 if (grep 'ignoring option' conftest.err ||
10335 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10336 am_cv_CXX_dependencies_compiler_type=$depmode
10337 break
10340 done
10342 cd ..
10343 rm -rf conftest.dir
10344 else
10345 am_cv_CXX_dependencies_compiler_type=none
10349 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
10350 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10351 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10354 test "x$enable_dependency_tracking" != xno \
10355 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10356 am__fastdepCXX_TRUE=
10357 am__fastdepCXX_FALSE='#'
10358 else
10359 am__fastdepCXX_TRUE='#'
10360 am__fastdepCXX_FALSE=
10364 ac_ext=f
10365 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10366 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10367 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10368 if test -n "$ac_tool_prefix"; then
10369 for ac_prog in g77
10371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_prog_F77+set}" = set; then
10376 $as_echo_n "(cached) " >&6
10377 else
10378 if test -n "$F77"; then
10379 ac_cv_prog_F77="$F77" # Let the user override the test.
10380 else
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10392 done
10393 done
10394 IFS=$as_save_IFS
10398 F77=$ac_cv_prog_F77
10399 if test -n "$F77"; then
10400 { $as_echo "$as_me:$LINENO: result: $F77" >&5
10401 $as_echo "$F77" >&6; }
10402 else
10403 { $as_echo "$as_me:$LINENO: result: no" >&5
10404 $as_echo "no" >&6; }
10408 test -n "$F77" && break
10409 done
10411 if test -z "$F77"; then
10412 ac_ct_F77=$F77
10413 for ac_prog in g77
10415 # Extract the first word of "$ac_prog", so it can be a program name with args.
10416 set dummy $ac_prog; ac_word=$2
10417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10418 $as_echo_n "checking for $ac_word... " >&6; }
10419 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10420 $as_echo_n "(cached) " >&6
10421 else
10422 if test -n "$ac_ct_F77"; then
10423 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10424 else
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10428 IFS=$as_save_IFS
10429 test -z "$as_dir" && as_dir=.
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10432 ac_cv_prog_ac_ct_F77="$ac_prog"
10433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10434 break 2
10436 done
10437 done
10438 IFS=$as_save_IFS
10442 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10443 if test -n "$ac_ct_F77"; then
10444 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10445 $as_echo "$ac_ct_F77" >&6; }
10446 else
10447 { $as_echo "$as_me:$LINENO: result: no" >&5
10448 $as_echo "no" >&6; }
10452 test -n "$ac_ct_F77" && break
10453 done
10455 if test "x$ac_ct_F77" = x; then
10456 F77=""
10457 else
10458 case $cross_compiling:$ac_tool_warned in
10459 yes:)
10460 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10462 ac_tool_warned=yes ;;
10463 esac
10464 F77=$ac_ct_F77
10469 # Provide some information about the compiler.
10470 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
10471 set X $ac_compile
10472 ac_compiler=$2
10473 { (ac_try="$ac_compiler --version >&5"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477 esac
10478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10479 $as_echo "$ac_try_echo") >&5
10480 (eval "$ac_compiler --version >&5") 2>&5
10481 ac_status=$?
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }
10484 { (ac_try="$ac_compiler -v >&5"
10485 case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488 esac
10489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10490 $as_echo "$ac_try_echo") >&5
10491 (eval "$ac_compiler -v >&5") 2>&5
10492 ac_status=$?
10493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }
10495 { (ac_try="$ac_compiler -V >&5"
10496 case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499 esac
10500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10501 $as_echo "$ac_try_echo") >&5
10502 (eval "$ac_compiler -V >&5") 2>&5
10503 ac_status=$?
10504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }
10506 rm -f a.out
10508 # If we don't use `.F' as extension, the preprocessor is not run on the
10509 # input file. (Note that this only needs to work for GNU compilers.)
10510 ac_save_ext=$ac_ext
10511 ac_ext=F
10512 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10513 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
10514 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10515 $as_echo_n "(cached) " >&6
10516 else
10517 cat >conftest.$ac_ext <<_ACEOF
10518 program main
10519 #ifndef __GNUC__
10520 choke me
10521 #endif
10524 _ACEOF
10525 rm -f conftest.$ac_objext
10526 if { (ac_try="$ac_compile"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10530 esac
10531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10532 $as_echo "$ac_try_echo") >&5
10533 (eval "$ac_compile") 2>conftest.er1
10534 ac_status=$?
10535 grep -v '^ *+' conftest.er1 >conftest.err
10536 rm -f conftest.er1
10537 cat conftest.err >&5
10538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); } && {
10540 test -z "$ac_f77_werror_flag" ||
10541 test ! -s conftest.err
10542 } && test -s conftest.$ac_objext; then
10543 ac_compiler_gnu=yes
10544 else
10545 $as_echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10548 ac_compiler_gnu=no
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10555 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10556 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
10557 ac_ext=$ac_save_ext
10558 ac_test_FFLAGS=${FFLAGS+set}
10559 ac_save_FFLAGS=$FFLAGS
10560 FFLAGS=
10561 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10562 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
10563 if test "${ac_cv_prog_f77_g+set}" = set; then
10564 $as_echo_n "(cached) " >&6
10565 else
10566 FFLAGS=-g
10567 cat >conftest.$ac_ext <<_ACEOF
10568 program main
10571 _ACEOF
10572 rm -f conftest.$ac_objext
10573 if { (ac_try="$ac_compile"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10579 $as_echo "$ac_try_echo") >&5
10580 (eval "$ac_compile") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_f77_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest.$ac_objext; then
10590 ac_cv_prog_f77_g=yes
10591 else
10592 $as_echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_cv_prog_f77_g=no
10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10601 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10602 $as_echo "$ac_cv_prog_f77_g" >&6; }
10603 if test "$ac_test_FFLAGS" = set; then
10604 FFLAGS=$ac_save_FFLAGS
10605 elif test $ac_cv_prog_f77_g = yes; then
10606 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10607 FFLAGS="-g -O2"
10608 else
10609 FFLAGS="-g"
10611 else
10612 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10613 FFLAGS="-O2"
10614 else
10615 FFLAGS=
10619 if test $ac_compiler_gnu = yes; then
10620 G77=yes
10621 else
10622 G77=
10624 ac_ext=c
10625 ac_cpp='$CPP $CPPFLAGS'
10626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10630 ac_ext=cpp
10631 ac_cpp='$CXXCPP $CPPFLAGS'
10632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10635 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10636 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10637 if test -z "$CXXCPP"; then
10638 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10639 $as_echo_n "(cached) " >&6
10640 else
10641 # Double quotes because CXXCPP needs to be expanded
10642 for CXXCPP in "$CXX -E" "/lib/cpp"
10644 ac_preproc_ok=false
10645 for ac_cxx_preproc_warn_flag in '' yes
10647 # Use a header file that comes with gcc, so configuring glibc
10648 # with a fresh cross-compiler works.
10649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10650 # <limits.h> exists even on freestanding compilers.
10651 # On the NeXT, cc -E runs the code through the compiler's parser,
10652 # not just through cpp. "Syntax error" is here to catch this case.
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h. */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #ifdef __STDC__
10660 # include <limits.h>
10661 #else
10662 # include <assert.h>
10663 #endif
10664 Syntax error
10665 _ACEOF
10666 if { (ac_try="$ac_cpp conftest.$ac_ext"
10667 case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670 esac
10671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672 $as_echo "$ac_try_echo") >&5
10673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } >/dev/null && {
10680 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10681 test ! -s conftest.err
10682 }; then
10684 else
10685 $as_echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 # Broken: fails on valid input.
10689 continue
10692 rm -f conftest.err conftest.$ac_ext
10694 # OK, works on sane cases. Now check whether nonexistent headers
10695 # can be detected and how.
10696 cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h. */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 #include <ac_nonexistent.h>
10703 _ACEOF
10704 if { (ac_try="$ac_cpp conftest.$ac_ext"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708 esac
10709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710 $as_echo "$ac_try_echo") >&5
10711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } >/dev/null && {
10718 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10719 test ! -s conftest.err
10720 }; then
10721 # Broken: success on invalid input.
10722 continue
10723 else
10724 $as_echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 # Passes both tests.
10728 ac_preproc_ok=:
10729 break
10732 rm -f conftest.err conftest.$ac_ext
10734 done
10735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10736 rm -f conftest.err conftest.$ac_ext
10737 if $ac_preproc_ok; then
10738 break
10741 done
10742 ac_cv_prog_CXXCPP=$CXXCPP
10745 CXXCPP=$ac_cv_prog_CXXCPP
10746 else
10747 ac_cv_prog_CXXCPP=$CXXCPP
10749 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10750 $as_echo "$CXXCPP" >&6; }
10751 ac_preproc_ok=false
10752 for ac_cxx_preproc_warn_flag in '' yes
10754 # Use a header file that comes with gcc, so configuring glibc
10755 # with a fresh cross-compiler works.
10756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10757 # <limits.h> exists even on freestanding compilers.
10758 # On the NeXT, cc -E runs the code through the compiler's parser,
10759 # not just through cpp. "Syntax error" is here to catch this case.
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h. */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 #ifdef __STDC__
10767 # include <limits.h>
10768 #else
10769 # include <assert.h>
10770 #endif
10771 Syntax error
10772 _ACEOF
10773 if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10777 esac
10778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10779 $as_echo "$ac_try_echo") >&5
10780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10781 ac_status=$?
10782 grep -v '^ *+' conftest.er1 >conftest.err
10783 rm -f conftest.er1
10784 cat conftest.err >&5
10785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } >/dev/null && {
10787 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10788 test ! -s conftest.err
10789 }; then
10791 else
10792 $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 # Broken: fails on valid input.
10796 continue
10799 rm -f conftest.err conftest.$ac_ext
10801 # OK, works on sane cases. Now check whether nonexistent headers
10802 # can be detected and how.
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 #include <ac_nonexistent.h>
10810 _ACEOF
10811 if { (ac_try="$ac_cpp conftest.$ac_ext"
10812 case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815 esac
10816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10817 $as_echo "$ac_try_echo") >&5
10818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } >/dev/null && {
10825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10826 test ! -s conftest.err
10827 }; then
10828 # Broken: success on invalid input.
10829 continue
10830 else
10831 $as_echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10834 # Passes both tests.
10835 ac_preproc_ok=:
10836 break
10839 rm -f conftest.err conftest.$ac_ext
10841 done
10842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10843 rm -f conftest.err conftest.$ac_ext
10844 if $ac_preproc_ok; then
10846 else
10847 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10849 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10850 See \`config.log' for more details." >&5
10851 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10852 See \`config.log' for more details." >&2;}
10853 { (exit 1); exit 1; }; }; }
10856 ac_ext=c
10857 ac_cpp='$CPP $CPPFLAGS'
10858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10863 am__fastdepCXX_FALSE='#'
10864 if test "${with_tags+set}" != set; then
10865 with_tags=
10869 { $as_echo "$as_me:$LINENO: checking for gmp.h" >&5
10870 $as_echo_n "checking for gmp.h... " >&6; }
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h. */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10878 #include "gmp.h"
10880 _ACEOF
10881 rm -f conftest.$ac_objext
10882 if { (ac_try="$ac_compile"
10883 case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886 esac
10887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10888 $as_echo "$ac_try_echo") >&5
10889 (eval "$ac_compile") 2>conftest.er1
10890 ac_status=$?
10891 grep -v '^ *+' conftest.er1 >conftest.err
10892 rm -f conftest.er1
10893 cat conftest.err >&5
10894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest.$ac_objext; then
10899 { $as_echo "$as_me:$LINENO: result: yes" >&5
10900 $as_echo "yes" >&6; }
10901 else
10902 $as_echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10906 { $as_echo "$as_me:$LINENO: result: no" >&5
10907 $as_echo "no" >&6; }
10908 { { $as_echo "$as_me:$LINENO: error: gmp.h can't be found, or is unusable." >&5
10909 $as_echo "$as_me: error: gmp.h can't be found, or is unusable." >&2;}
10910 { (exit 1); exit 1; }; }
10914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916 enable_win32_dll=yes
10918 case $host in
10919 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
10920 if test -n "$ac_tool_prefix"; then
10921 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10922 set dummy ${ac_tool_prefix}as; ac_word=$2
10923 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if test "${ac_cv_prog_AS+set}" = set; then
10926 $as_echo_n "(cached) " >&6
10927 else
10928 if test -n "$AS"; then
10929 ac_cv_prog_AS="$AS" # Let the user override the test.
10930 else
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_prog_AS="${ac_tool_prefix}as"
10939 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 break 2
10942 done
10943 done
10944 IFS=$as_save_IFS
10948 AS=$ac_cv_prog_AS
10949 if test -n "$AS"; then
10950 { $as_echo "$as_me:$LINENO: result: $AS" >&5
10951 $as_echo "$AS" >&6; }
10952 else
10953 { $as_echo "$as_me:$LINENO: result: no" >&5
10954 $as_echo "no" >&6; }
10959 if test -z "$ac_cv_prog_AS"; then
10960 ac_ct_AS=$AS
10961 # Extract the first word of "as", so it can be a program name with args.
10962 set dummy as; ac_word=$2
10963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10964 $as_echo_n "checking for $ac_word... " >&6; }
10965 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
10966 $as_echo_n "(cached) " >&6
10967 else
10968 if test -n "$ac_ct_AS"; then
10969 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10970 else
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10974 IFS=$as_save_IFS
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978 ac_cv_prog_ac_ct_AS="as"
10979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10980 break 2
10982 done
10983 done
10984 IFS=$as_save_IFS
10988 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10989 if test -n "$ac_ct_AS"; then
10990 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
10991 $as_echo "$ac_ct_AS" >&6; }
10992 else
10993 { $as_echo "$as_me:$LINENO: result: no" >&5
10994 $as_echo "no" >&6; }
10997 if test "x$ac_ct_AS" = x; then
10998 AS="false"
10999 else
11000 case $cross_compiling:$ac_tool_warned in
11001 yes:)
11002 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11004 ac_tool_warned=yes ;;
11005 esac
11006 AS=$ac_ct_AS
11008 else
11009 AS="$ac_cv_prog_AS"
11012 if test -n "$ac_tool_prefix"; then
11013 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11014 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11016 $as_echo_n "checking for $ac_word... " >&6; }
11017 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11018 $as_echo_n "(cached) " >&6
11019 else
11020 if test -n "$DLLTOOL"; then
11021 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11022 else
11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11026 IFS=$as_save_IFS
11027 test -z "$as_dir" && as_dir=.
11028 for ac_exec_ext in '' $ac_executable_extensions; do
11029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11030 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032 break 2
11034 done
11035 done
11036 IFS=$as_save_IFS
11040 DLLTOOL=$ac_cv_prog_DLLTOOL
11041 if test -n "$DLLTOOL"; then
11042 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11043 $as_echo "$DLLTOOL" >&6; }
11044 else
11045 { $as_echo "$as_me:$LINENO: result: no" >&5
11046 $as_echo "no" >&6; }
11051 if test -z "$ac_cv_prog_DLLTOOL"; then
11052 ac_ct_DLLTOOL=$DLLTOOL
11053 # Extract the first word of "dlltool", so it can be a program name with args.
11054 set dummy dlltool; ac_word=$2
11055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11056 $as_echo_n "checking for $ac_word... " >&6; }
11057 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11058 $as_echo_n "(cached) " >&6
11059 else
11060 if test -n "$ac_ct_DLLTOOL"; then
11061 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11062 else
11063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064 for as_dir in $PATH
11066 IFS=$as_save_IFS
11067 test -z "$as_dir" && as_dir=.
11068 for ac_exec_ext in '' $ac_executable_extensions; do
11069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11070 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11072 break 2
11074 done
11075 done
11076 IFS=$as_save_IFS
11080 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11081 if test -n "$ac_ct_DLLTOOL"; then
11082 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11083 $as_echo "$ac_ct_DLLTOOL" >&6; }
11084 else
11085 { $as_echo "$as_me:$LINENO: result: no" >&5
11086 $as_echo "no" >&6; }
11089 if test "x$ac_ct_DLLTOOL" = x; then
11090 DLLTOOL="false"
11091 else
11092 case $cross_compiling:$ac_tool_warned in
11093 yes:)
11094 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11096 ac_tool_warned=yes ;;
11097 esac
11098 DLLTOOL=$ac_ct_DLLTOOL
11100 else
11101 DLLTOOL="$ac_cv_prog_DLLTOOL"
11104 if test -n "$ac_tool_prefix"; then
11105 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11106 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
11110 $as_echo_n "(cached) " >&6
11111 else
11112 if test -n "$OBJDUMP"; then
11113 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11114 else
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11122 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 break 2
11126 done
11127 done
11128 IFS=$as_save_IFS
11132 OBJDUMP=$ac_cv_prog_OBJDUMP
11133 if test -n "$OBJDUMP"; then
11134 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
11135 $as_echo "$OBJDUMP" >&6; }
11136 else
11137 { $as_echo "$as_me:$LINENO: result: no" >&5
11138 $as_echo "no" >&6; }
11143 if test -z "$ac_cv_prog_OBJDUMP"; then
11144 ac_ct_OBJDUMP=$OBJDUMP
11145 # Extract the first word of "objdump", so it can be a program name with args.
11146 set dummy objdump; ac_word=$2
11147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
11150 $as_echo_n "(cached) " >&6
11151 else
11152 if test -n "$ac_ct_OBJDUMP"; then
11153 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11154 else
11155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156 for as_dir in $PATH
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
11160 for ac_exec_ext in '' $ac_executable_extensions; do
11161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11162 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11164 break 2
11166 done
11167 done
11168 IFS=$as_save_IFS
11172 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11173 if test -n "$ac_ct_OBJDUMP"; then
11174 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
11175 $as_echo "$ac_ct_OBJDUMP" >&6; }
11176 else
11177 { $as_echo "$as_me:$LINENO: result: no" >&5
11178 $as_echo "no" >&6; }
11181 if test "x$ac_ct_OBJDUMP" = x; then
11182 OBJDUMP="false"
11183 else
11184 case $cross_compiling:$ac_tool_warned in
11185 yes:)
11186 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11188 ac_tool_warned=yes ;;
11189 esac
11190 OBJDUMP=$ac_ct_OBJDUMP
11192 else
11193 OBJDUMP="$ac_cv_prog_OBJDUMP"
11197 esac
11199 test -z "$AS" && AS=as
11205 test -z "$DLLTOOL" && DLLTOOL=dlltool
11211 test -z "$OBJDUMP" && OBJDUMP=objdump
11219 case $host in
11220 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11221 { $as_echo "$as_me:$LINENO: checking for DLL/static GMP" >&5
11222 $as_echo_n "checking for DLL/static GMP... " >&6; }
11223 if test "$enable_shared" = yes; then
11224 LDFLAGS="$LDFLAGS -no-undefined"
11225 dont_link_with_gmp="yes"
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11233 #include "gmp.h"
11234 #if !__GMP_LIBGMP_DLL
11235 # error "Dead man"
11236 error
11237 #endif
11240 main ()
11244 return 0;
11246 _ACEOF
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252 esac
11253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11254 $as_echo "$ac_try_echo") >&5
11255 (eval "$ac_compile") 2>conftest.er1
11256 ac_status=$?
11257 grep -v '^ *+' conftest.er1 >conftest.err
11258 rm -f conftest.er1
11259 cat conftest.err >&5
11260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest.$ac_objext; then
11265 { $as_echo "$as_me:$LINENO: result: DLL" >&5
11266 $as_echo "DLL" >&6; }
11267 else
11268 $as_echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11272 { $as_echo "$as_me:$LINENO: result: static" >&5
11273 $as_echo "static" >&6; }
11274 { { $as_echo "$as_me:$LINENO: error: gmp.h isn't a DLL: use --enable-static --disable-shared" >&5
11275 $as_echo "$as_me: error: gmp.h isn't a DLL: use --enable-static --disable-shared" >&2;}
11276 { (exit 1); exit 1; }; }
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 else
11281 cat >conftest.$ac_ext <<_ACEOF
11282 /* confdefs.h. */
11283 _ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11288 #include "gmp.h"
11289 #if __GMP_LIBGMP_DLL
11290 # error "Dead man"
11291 error
11292 #endif
11295 main ()
11299 return 0;
11301 _ACEOF
11302 rm -f conftest.$ac_objext
11303 if { (ac_try="$ac_compile"
11304 case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11307 esac
11308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11309 $as_echo "$ac_try_echo") >&5
11310 (eval "$ac_compile") 2>conftest.er1
11311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } && {
11317 test -z "$ac_c_werror_flag" ||
11318 test ! -s conftest.err
11319 } && test -s conftest.$ac_objext; then
11320 { $as_echo "$as_me:$LINENO: result: static" >&5
11321 $as_echo "static" >&6; }
11322 else
11323 $as_echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11327 { $as_echo "$as_me:$LINENO: result: DLL" >&5
11328 $as_echo "DLL" >&6; }
11329 { { $as_echo "$as_me:$LINENO: error: gmp.h is a DLL: use --disable-static --enable-shared" >&5
11330 $as_echo "$as_me: error: gmp.h is a DLL: use --disable-static --enable-shared" >&2;}
11331 { (exit 1); exit 1; }; }
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11337 esac
11338 case `pwd` in
11339 *\ * | *\ *)
11340 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11341 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11342 esac
11346 macro_version='2.2'
11347 macro_revision='1.2599'
11361 ltmain="$ac_aux_dir/ltmain.sh"
11363 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11364 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11365 if test "${ac_cv_path_SED+set}" = set; then
11366 $as_echo_n "(cached) " >&6
11367 else
11368 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11369 for ac_i in 1 2 3 4 5 6 7; do
11370 ac_script="$ac_script$as_nl$ac_script"
11371 done
11372 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11373 $as_unset ac_script || ac_script=
11374 if test -z "$SED"; then
11375 ac_path_SED_found=false
11376 # Loop through the user's path and test for each of PROGNAME-LIST
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11380 IFS=$as_save_IFS
11381 test -z "$as_dir" && as_dir=.
11382 for ac_prog in sed gsed; do
11383 for ac_exec_ext in '' $ac_executable_extensions; do
11384 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11385 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11386 # Check for GNU ac_path_SED and select it if it is found.
11387 # Check for GNU $ac_path_SED
11388 case `"$ac_path_SED" --version 2>&1` in
11389 *GNU*)
11390 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11392 ac_count=0
11393 $as_echo_n 0123456789 >"conftest.in"
11394 while :
11396 cat "conftest.in" "conftest.in" >"conftest.tmp"
11397 mv "conftest.tmp" "conftest.in"
11398 cp "conftest.in" "conftest.nl"
11399 $as_echo '' >> "conftest.nl"
11400 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11402 ac_count=`expr $ac_count + 1`
11403 if test $ac_count -gt ${ac_path_SED_max-0}; then
11404 # Best one so far, save it but keep looking for a better one
11405 ac_cv_path_SED="$ac_path_SED"
11406 ac_path_SED_max=$ac_count
11408 # 10*(2^10) chars as input seems more than enough
11409 test $ac_count -gt 10 && break
11410 done
11411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11412 esac
11414 $ac_path_SED_found && break 3
11415 done
11416 done
11417 done
11418 IFS=$as_save_IFS
11419 if test -z "$ac_cv_path_SED"; then
11420 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
11421 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
11422 { (exit 1); exit 1; }; }
11424 else
11425 ac_cv_path_SED=$SED
11429 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
11430 $as_echo "$ac_cv_path_SED" >&6; }
11431 SED="$ac_cv_path_SED"
11432 rm -f conftest.sed
11434 test -z "$SED" && SED=sed
11435 Xsed="$SED -e 1s/^X//"
11447 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
11448 $as_echo_n "checking for fgrep... " >&6; }
11449 if test "${ac_cv_path_FGREP+set}" = set; then
11450 $as_echo_n "(cached) " >&6
11451 else
11452 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11453 then ac_cv_path_FGREP="$GREP -F"
11454 else
11455 if test -z "$FGREP"; then
11456 ac_path_FGREP_found=false
11457 # Loop through the user's path and test for each of PROGNAME-LIST
11458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11461 IFS=$as_save_IFS
11462 test -z "$as_dir" && as_dir=.
11463 for ac_prog in fgrep; do
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11466 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11467 # Check for GNU ac_path_FGREP and select it if it is found.
11468 # Check for GNU $ac_path_FGREP
11469 case `"$ac_path_FGREP" --version 2>&1` in
11470 *GNU*)
11471 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11473 ac_count=0
11474 $as_echo_n 0123456789 >"conftest.in"
11475 while :
11477 cat "conftest.in" "conftest.in" >"conftest.tmp"
11478 mv "conftest.tmp" "conftest.in"
11479 cp "conftest.in" "conftest.nl"
11480 $as_echo 'FGREP' >> "conftest.nl"
11481 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11483 ac_count=`expr $ac_count + 1`
11484 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11485 # Best one so far, save it but keep looking for a better one
11486 ac_cv_path_FGREP="$ac_path_FGREP"
11487 ac_path_FGREP_max=$ac_count
11489 # 10*(2^10) chars as input seems more than enough
11490 test $ac_count -gt 10 && break
11491 done
11492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11493 esac
11495 $ac_path_FGREP_found && break 3
11496 done
11497 done
11498 done
11499 IFS=$as_save_IFS
11500 if test -z "$ac_cv_path_FGREP"; then
11501 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11502 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11503 { (exit 1); exit 1; }; }
11505 else
11506 ac_cv_path_FGREP=$FGREP
11511 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
11512 $as_echo "$ac_cv_path_FGREP" >&6; }
11513 FGREP="$ac_cv_path_FGREP"
11516 test -z "$GREP" && GREP=grep
11536 # Check whether --with-gnu-ld was given.
11537 if test "${with_gnu_ld+set}" = set; then
11538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11539 else
11540 with_gnu_ld=no
11543 ac_prog=ld
11544 if test "$GCC" = yes; then
11545 # Check if gcc -print-prog-name=ld gives a path.
11546 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11547 $as_echo_n "checking for ld used by $CC... " >&6; }
11548 case $host in
11549 *-*-mingw*)
11550 # gcc leaves a trailing carriage return which upsets mingw
11551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11554 esac
11555 case $ac_prog in
11556 # Accept absolute paths.
11557 [\\/]* | ?:[\\/]*)
11558 re_direlt='/[^/][^/]*/\.\./'
11559 # Canonicalize the pathname of ld
11560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11563 done
11564 test -z "$LD" && LD="$ac_prog"
11567 # If it fails, then pretend we aren't using GCC.
11568 ac_prog=ld
11571 # If it is relative, then search for the first ld in PATH.
11572 with_gnu_ld=unknown
11574 esac
11575 elif test "$with_gnu_ld" = yes; then
11576 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11577 $as_echo_n "checking for GNU ld... " >&6; }
11578 else
11579 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11580 $as_echo_n "checking for non-GNU ld... " >&6; }
11582 if test "${lt_cv_path_LD+set}" = set; then
11583 $as_echo_n "(cached) " >&6
11584 else
11585 if test -z "$LD"; then
11586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11587 for ac_dir in $PATH; do
11588 IFS="$lt_save_ifs"
11589 test -z "$ac_dir" && ac_dir=.
11590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11591 lt_cv_path_LD="$ac_dir/$ac_prog"
11592 # Check to see if the program is GNU ld. I'd rather use --version,
11593 # but apparently some variants of GNU ld only accept -v.
11594 # Break only if it was the GNU/non-GNU ld that we prefer.
11595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11596 *GNU* | *'with BFD'*)
11597 test "$with_gnu_ld" != no && break
11600 test "$with_gnu_ld" != yes && break
11602 esac
11604 done
11605 IFS="$lt_save_ifs"
11606 else
11607 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11611 LD="$lt_cv_path_LD"
11612 if test -n "$LD"; then
11613 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11614 $as_echo "$LD" >&6; }
11615 else
11616 { $as_echo "$as_me:$LINENO: result: no" >&5
11617 $as_echo "no" >&6; }
11619 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11620 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11621 { (exit 1); exit 1; }; }
11622 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11623 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11624 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11625 $as_echo_n "(cached) " >&6
11626 else
11627 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11628 case `$LD -v 2>&1 </dev/null` in
11629 *GNU* | *'with BFD'*)
11630 lt_cv_prog_gnu_ld=yes
11633 lt_cv_prog_gnu_ld=no
11635 esac
11637 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11638 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11639 with_gnu_ld=$lt_cv_prog_gnu_ld
11649 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
11650 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11651 if test "${lt_cv_path_NM+set}" = set; then
11652 $as_echo_n "(cached) " >&6
11653 else
11654 if test -n "$NM"; then
11655 # Let the user override the test.
11656 lt_cv_path_NM="$NM"
11657 else
11658 lt_nm_to_check="${ac_tool_prefix}nm"
11659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11660 lt_nm_to_check="$lt_nm_to_check nm"
11662 for lt_tmp_nm in $lt_nm_to_check; do
11663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11665 IFS="$lt_save_ifs"
11666 test -z "$ac_dir" && ac_dir=.
11667 tmp_nm="$ac_dir/$lt_tmp_nm"
11668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11669 # Check to see if the nm accepts a BSD-compat flag.
11670 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11671 # nm: unknown option "B" ignored
11672 # Tru64's nm complains that /dev/null is an invalid object file
11673 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11674 */dev/null* | *'Invalid file or object type'*)
11675 lt_cv_path_NM="$tmp_nm -B"
11676 break
11679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11680 */dev/null*)
11681 lt_cv_path_NM="$tmp_nm -p"
11682 break
11685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11686 continue # so that we can try to find one that supports BSD flags
11688 esac
11690 esac
11692 done
11693 IFS="$lt_save_ifs"
11694 done
11695 : ${lt_cv_path_NM=no}
11698 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11699 $as_echo "$lt_cv_path_NM" >&6; }
11700 if test "$lt_cv_path_NM" != "no"; then
11701 NM="$lt_cv_path_NM"
11702 else
11703 # Didn't find any BSD compatible name lister, look for dumpbin.
11704 if test -n "$ac_tool_prefix"; then
11705 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11710 $as_echo_n "checking for $ac_word... " >&6; }
11711 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
11712 $as_echo_n "(cached) " >&6
11713 else
11714 if test -n "$DUMPBIN"; then
11715 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11716 else
11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11720 IFS=$as_save_IFS
11721 test -z "$as_dir" && as_dir=.
11722 for ac_exec_ext in '' $ac_executable_extensions; do
11723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11724 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 break 2
11728 done
11729 done
11730 IFS=$as_save_IFS
11734 DUMPBIN=$ac_cv_prog_DUMPBIN
11735 if test -n "$DUMPBIN"; then
11736 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
11737 $as_echo "$DUMPBIN" >&6; }
11738 else
11739 { $as_echo "$as_me:$LINENO: result: no" >&5
11740 $as_echo "no" >&6; }
11744 test -n "$DUMPBIN" && break
11745 done
11747 if test -z "$DUMPBIN"; then
11748 ac_ct_DUMPBIN=$DUMPBIN
11749 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11751 # Extract the first word of "$ac_prog", so it can be a program name with args.
11752 set dummy $ac_prog; ac_word=$2
11753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11754 $as_echo_n "checking for $ac_word... " >&6; }
11755 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
11756 $as_echo_n "(cached) " >&6
11757 else
11758 if test -n "$ac_ct_DUMPBIN"; then
11759 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11760 else
11761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11762 for as_dir in $PATH
11764 IFS=$as_save_IFS
11765 test -z "$as_dir" && as_dir=.
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11768 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 break 2
11772 done
11773 done
11774 IFS=$as_save_IFS
11778 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11779 if test -n "$ac_ct_DUMPBIN"; then
11780 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
11781 $as_echo "$ac_ct_DUMPBIN" >&6; }
11782 else
11783 { $as_echo "$as_me:$LINENO: result: no" >&5
11784 $as_echo "no" >&6; }
11788 test -n "$ac_ct_DUMPBIN" && break
11789 done
11791 if test "x$ac_ct_DUMPBIN" = x; then
11792 DUMPBIN=":"
11793 else
11794 case $cross_compiling:$ac_tool_warned in
11795 yes:)
11796 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11798 ac_tool_warned=yes ;;
11799 esac
11800 DUMPBIN=$ac_ct_DUMPBIN
11805 if test "$DUMPBIN" != ":"; then
11806 NM="$DUMPBIN"
11809 test -z "$NM" && NM=nm
11816 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
11817 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11818 if test "${lt_cv_nm_interface+set}" = set; then
11819 $as_echo_n "(cached) " >&6
11820 else
11821 lt_cv_nm_interface="BSD nm"
11822 echo "int some_variable = 0;" > conftest.$ac_ext
11823 (eval echo "\"\$as_me:11823: $ac_compile\"" >&5)
11824 (eval "$ac_compile" 2>conftest.err)
11825 cat conftest.err >&5
11826 (eval echo "\"\$as_me:11826: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11827 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11828 cat conftest.err >&5
11829 (eval echo "\"\$as_me:11829: output\"" >&5)
11830 cat conftest.out >&5
11831 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11832 lt_cv_nm_interface="MS dumpbin"
11834 rm -f conftest*
11836 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
11837 $as_echo "$lt_cv_nm_interface" >&6; }
11839 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11840 $as_echo_n "checking whether ln -s works... " >&6; }
11841 LN_S=$as_ln_s
11842 if test "$LN_S" = "ln -s"; then
11843 { $as_echo "$as_me:$LINENO: result: yes" >&5
11844 $as_echo "yes" >&6; }
11845 else
11846 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11847 $as_echo "no, using $LN_S" >&6; }
11850 # find the maximum length of command line arguments
11851 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11852 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11853 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11854 $as_echo_n "(cached) " >&6
11855 else
11857 teststring="ABCD"
11859 case $build_os in
11860 msdosdjgpp*)
11861 # On DJGPP, this test can blow up pretty badly due to problems in libc
11862 # (any single argument exceeding 2000 bytes causes a buffer overrun
11863 # during glob expansion). Even if it were fixed, the result of this
11864 # check would be larger than it should be.
11865 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11868 gnu*)
11869 # Under GNU Hurd, this test is not required because there is
11870 # no limit to the length of command line arguments.
11871 # Libtool will interpret -1 as no limit whatsoever
11872 lt_cv_sys_max_cmd_len=-1;
11875 cygwin* | mingw*)
11876 # On Win9x/ME, this test blows up -- it succeeds, but takes
11877 # about 5 minutes as the teststring grows exponentially.
11878 # Worse, since 9x/ME are not pre-emptively multitasking,
11879 # you end up with a "frozen" computer, even though with patience
11880 # the test eventually succeeds (with a max line length of 256k).
11881 # Instead, let's just punt: use the minimum linelength reported by
11882 # all of the supported platforms: 8192 (on NT/2K/XP).
11883 lt_cv_sys_max_cmd_len=8192;
11886 amigaos*)
11887 # On AmigaOS with pdksh, this test takes hours, literally.
11888 # So we just punt and use a minimum line length of 8192.
11889 lt_cv_sys_max_cmd_len=8192;
11892 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11893 # This has been around since 386BSD, at least. Likely further.
11894 if test -x /sbin/sysctl; then
11895 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11896 elif test -x /usr/sbin/sysctl; then
11897 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11898 else
11899 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11901 # And add a safety zone
11902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11906 interix*)
11907 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11908 lt_cv_sys_max_cmd_len=196608
11911 osf*)
11912 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11913 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11914 # nice to cause kernel panics so lets avoid the loop below.
11915 # First set a reasonable default.
11916 lt_cv_sys_max_cmd_len=16384
11918 if test -x /sbin/sysconfig; then
11919 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11920 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11921 esac
11924 sco3.2v5*)
11925 lt_cv_sys_max_cmd_len=102400
11927 sysv5* | sco5v6* | sysv4.2uw2*)
11928 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11929 if test -n "$kargmax"; then
11930 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11931 else
11932 lt_cv_sys_max_cmd_len=32768
11936 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11937 if test -n "$lt_cv_sys_max_cmd_len"; then
11938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11940 else
11941 # Make teststring a little bigger before we do anything with it.
11942 # a 1K string should be a reasonable start.
11943 for i in 1 2 3 4 5 6 7 8 ; do
11944 teststring=$teststring$teststring
11945 done
11946 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11947 # If test is not a shell built-in, we'll probably end up computing a
11948 # maximum length that is only half of the actual maximum length, but
11949 # we can't tell.
11950 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11951 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11952 test $i != 17 # 1/2 MB should be enough
11954 i=`expr $i + 1`
11955 teststring=$teststring$teststring
11956 done
11957 # Only check the string length outside the loop.
11958 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11959 teststring=
11960 # Add a significant safety factor because C++ compilers can tack on
11961 # massive amounts of additional arguments before passing them to the
11962 # linker. It appears as though 1/2 is a usable value.
11963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11966 esac
11970 if test -n $lt_cv_sys_max_cmd_len ; then
11971 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11972 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11973 else
11974 { $as_echo "$as_me:$LINENO: result: none" >&5
11975 $as_echo "none" >&6; }
11977 max_cmd_len=$lt_cv_sys_max_cmd_len
11985 : ${CP="cp -f"}
11986 : ${MV="mv -f"}
11987 : ${RM="rm -f"}
11989 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
11990 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11991 # Try some XSI features
11992 xsi_shell=no
11993 ( _lt_dummy="a/b/c"
11994 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11995 = c,a/b,, ) >/dev/null 2>&1 \
11996 && xsi_shell=yes
11997 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
11998 $as_echo "$xsi_shell" >&6; }
12001 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
12002 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12003 lt_shell_append=no
12004 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12005 >/dev/null 2>&1 \
12006 && lt_shell_append=yes
12007 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
12008 $as_echo "$lt_shell_append" >&6; }
12011 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12012 lt_unset=unset
12013 else
12014 lt_unset=false
12021 # test EBCDIC or ASCII
12022 case `echo X|tr X '\101'` in
12023 A) # ASCII based system
12024 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12025 lt_SP2NL='tr \040 \012'
12026 lt_NL2SP='tr \015\012 \040\040'
12028 *) # EBCDIC based system
12029 lt_SP2NL='tr \100 \n'
12030 lt_NL2SP='tr \r\n \100\100'
12032 esac
12042 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12043 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12044 if test "${lt_cv_ld_reload_flag+set}" = set; then
12045 $as_echo_n "(cached) " >&6
12046 else
12047 lt_cv_ld_reload_flag='-r'
12049 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12050 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12051 reload_flag=$lt_cv_ld_reload_flag
12052 case $reload_flag in
12053 "" | " "*) ;;
12054 *) reload_flag=" $reload_flag" ;;
12055 esac
12056 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12057 case $host_os in
12058 darwin*)
12059 if test "$GCC" = yes; then
12060 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12061 else
12062 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12065 esac
12076 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
12077 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12078 if test "${lt_cv_deplibs_check_method+set}" = set; then
12079 $as_echo_n "(cached) " >&6
12080 else
12081 lt_cv_file_magic_cmd='$MAGIC_CMD'
12082 lt_cv_file_magic_test_file=
12083 lt_cv_deplibs_check_method='unknown'
12084 # Need to set the preceding variable on all platforms that support
12085 # interlibrary dependencies.
12086 # 'none' -- dependencies not supported.
12087 # `unknown' -- same as none, but documents that we really don't know.
12088 # 'pass_all' -- all dependencies passed with no checks.
12089 # 'test_compile' -- check by making test program.
12090 # 'file_magic [[regex]]' -- check by looking for files in library path
12091 # which responds to the $file_magic_cmd with a given extended regex.
12092 # If you have `file' or equivalent on your system and you're not sure
12093 # whether `pass_all' will *always* work, you probably want this one.
12095 case $host_os in
12096 aix[4-9]*)
12097 lt_cv_deplibs_check_method=pass_all
12100 beos*)
12101 lt_cv_deplibs_check_method=pass_all
12104 bsdi[45]*)
12105 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12106 lt_cv_file_magic_cmd='/usr/bin/file -L'
12107 lt_cv_file_magic_test_file=/shlib/libc.so
12110 cygwin*)
12111 # func_win32_libid is a shell function defined in ltmain.sh
12112 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12113 lt_cv_file_magic_cmd='func_win32_libid'
12116 mingw* | pw32*)
12117 # Base MSYS/MinGW do not provide the 'file' command needed by
12118 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12119 # unless we find 'file', for example because we are cross-compiling.
12120 if ( file / ) >/dev/null 2>&1; then
12121 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12122 lt_cv_file_magic_cmd='func_win32_libid'
12123 else
12124 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12125 lt_cv_file_magic_cmd='$OBJDUMP -f'
12129 darwin* | rhapsody*)
12130 lt_cv_deplibs_check_method=pass_all
12133 freebsd* | dragonfly*)
12134 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12135 case $host_cpu in
12136 i*86 )
12137 # Not sure whether the presence of OpenBSD here was a mistake.
12138 # Let's accept both of them until this is cleared up.
12139 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12140 lt_cv_file_magic_cmd=/usr/bin/file
12141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12143 esac
12144 else
12145 lt_cv_deplibs_check_method=pass_all
12149 gnu*)
12150 lt_cv_deplibs_check_method=pass_all
12153 hpux10.20* | hpux11*)
12154 lt_cv_file_magic_cmd=/usr/bin/file
12155 case $host_cpu in
12156 ia64*)
12157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12158 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12160 hppa*64*)
12161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
12162 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12166 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12168 esac
12171 interix[3-9]*)
12172 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12176 irix5* | irix6* | nonstopux*)
12177 case $LD in
12178 *-32|*"-32 ") libmagic=32-bit;;
12179 *-n32|*"-n32 ") libmagic=N32;;
12180 *-64|*"-64 ") libmagic=64-bit;;
12181 *) libmagic=never-match;;
12182 esac
12183 lt_cv_deplibs_check_method=pass_all
12186 # This must be Linux ELF.
12187 linux* | k*bsd*-gnu)
12188 lt_cv_deplibs_check_method=pass_all
12191 netbsd*)
12192 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12194 else
12195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12199 newos6*)
12200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12201 lt_cv_file_magic_cmd=/usr/bin/file
12202 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12205 *nto* | *qnx*)
12206 lt_cv_deplibs_check_method=pass_all
12209 openbsd*)
12210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12212 else
12213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12217 osf3* | osf4* | osf5*)
12218 lt_cv_deplibs_check_method=pass_all
12221 rdos*)
12222 lt_cv_deplibs_check_method=pass_all
12225 solaris*)
12226 lt_cv_deplibs_check_method=pass_all
12229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12230 lt_cv_deplibs_check_method=pass_all
12233 sysv4 | sysv4.3*)
12234 case $host_vendor in
12235 motorola)
12236 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]'
12237 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12239 ncr)
12240 lt_cv_deplibs_check_method=pass_all
12242 sequent)
12243 lt_cv_file_magic_cmd='/bin/file'
12244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12246 sni)
12247 lt_cv_file_magic_cmd='/bin/file'
12248 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12249 lt_cv_file_magic_test_file=/lib/libc.so
12251 siemens)
12252 lt_cv_deplibs_check_method=pass_all
12255 lt_cv_deplibs_check_method=pass_all
12257 esac
12260 tpf*)
12261 lt_cv_deplibs_check_method=pass_all
12263 esac
12266 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12267 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12268 file_magic_cmd=$lt_cv_file_magic_cmd
12269 deplibs_check_method=$lt_cv_deplibs_check_method
12270 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12283 if test -n "$ac_tool_prefix"; then
12284 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12285 set dummy ${ac_tool_prefix}ar; ac_word=$2
12286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12287 $as_echo_n "checking for $ac_word... " >&6; }
12288 if test "${ac_cv_prog_AR+set}" = set; then
12289 $as_echo_n "(cached) " >&6
12290 else
12291 if test -n "$AR"; then
12292 ac_cv_prog_AR="$AR" # Let the user override the test.
12293 else
12294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12295 for as_dir in $PATH
12297 IFS=$as_save_IFS
12298 test -z "$as_dir" && as_dir=.
12299 for ac_exec_ext in '' $ac_executable_extensions; do
12300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12301 ac_cv_prog_AR="${ac_tool_prefix}ar"
12302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12303 break 2
12305 done
12306 done
12307 IFS=$as_save_IFS
12311 AR=$ac_cv_prog_AR
12312 if test -n "$AR"; then
12313 { $as_echo "$as_me:$LINENO: result: $AR" >&5
12314 $as_echo "$AR" >&6; }
12315 else
12316 { $as_echo "$as_me:$LINENO: result: no" >&5
12317 $as_echo "no" >&6; }
12322 if test -z "$ac_cv_prog_AR"; then
12323 ac_ct_AR=$AR
12324 # Extract the first word of "ar", so it can be a program name with args.
12325 set dummy ar; ac_word=$2
12326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12327 $as_echo_n "checking for $ac_word... " >&6; }
12328 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12329 $as_echo_n "(cached) " >&6
12330 else
12331 if test -n "$ac_ct_AR"; then
12332 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12333 else
12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335 for as_dir in $PATH
12337 IFS=$as_save_IFS
12338 test -z "$as_dir" && as_dir=.
12339 for ac_exec_ext in '' $ac_executable_extensions; do
12340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12341 ac_cv_prog_ac_ct_AR="ar"
12342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 break 2
12345 done
12346 done
12347 IFS=$as_save_IFS
12351 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12352 if test -n "$ac_ct_AR"; then
12353 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12354 $as_echo "$ac_ct_AR" >&6; }
12355 else
12356 { $as_echo "$as_me:$LINENO: result: no" >&5
12357 $as_echo "no" >&6; }
12360 if test "x$ac_ct_AR" = x; then
12361 AR="false"
12362 else
12363 case $cross_compiling:$ac_tool_warned in
12364 yes:)
12365 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12367 ac_tool_warned=yes ;;
12368 esac
12369 AR=$ac_ct_AR
12371 else
12372 AR="$ac_cv_prog_AR"
12375 test -z "$AR" && AR=ar
12376 test -z "$AR_FLAGS" && AR_FLAGS=cru
12388 if test -n "$ac_tool_prefix"; then
12389 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12390 set dummy ${ac_tool_prefix}strip; ac_word=$2
12391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if test "${ac_cv_prog_STRIP+set}" = set; then
12394 $as_echo_n "(cached) " >&6
12395 else
12396 if test -n "$STRIP"; then
12397 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12398 else
12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400 for as_dir in $PATH
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12410 done
12411 done
12412 IFS=$as_save_IFS
12416 STRIP=$ac_cv_prog_STRIP
12417 if test -n "$STRIP"; then
12418 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12419 $as_echo "$STRIP" >&6; }
12420 else
12421 { $as_echo "$as_me:$LINENO: result: no" >&5
12422 $as_echo "no" >&6; }
12427 if test -z "$ac_cv_prog_STRIP"; then
12428 ac_ct_STRIP=$STRIP
12429 # Extract the first word of "strip", so it can be a program name with args.
12430 set dummy strip; ac_word=$2
12431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12432 $as_echo_n "checking for $ac_word... " >&6; }
12433 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12434 $as_echo_n "(cached) " >&6
12435 else
12436 if test -n "$ac_ct_STRIP"; then
12437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12438 else
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12446 ac_cv_prog_ac_ct_STRIP="strip"
12447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 break 2
12450 done
12451 done
12452 IFS=$as_save_IFS
12456 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12457 if test -n "$ac_ct_STRIP"; then
12458 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12459 $as_echo "$ac_ct_STRIP" >&6; }
12460 else
12461 { $as_echo "$as_me:$LINENO: result: no" >&5
12462 $as_echo "no" >&6; }
12465 if test "x$ac_ct_STRIP" = x; then
12466 STRIP=":"
12467 else
12468 case $cross_compiling:$ac_tool_warned in
12469 yes:)
12470 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12472 ac_tool_warned=yes ;;
12473 esac
12474 STRIP=$ac_ct_STRIP
12476 else
12477 STRIP="$ac_cv_prog_STRIP"
12480 test -z "$STRIP" && STRIP=:
12487 if test -n "$ac_tool_prefix"; then
12488 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12489 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12491 $as_echo_n "checking for $ac_word... " >&6; }
12492 if test "${ac_cv_prog_RANLIB+set}" = set; then
12493 $as_echo_n "(cached) " >&6
12494 else
12495 if test -n "$RANLIB"; then
12496 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12497 else
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
12503 for ac_exec_ext in '' $ac_executable_extensions; do
12504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12505 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12506 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12507 break 2
12509 done
12510 done
12511 IFS=$as_save_IFS
12515 RANLIB=$ac_cv_prog_RANLIB
12516 if test -n "$RANLIB"; then
12517 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12518 $as_echo "$RANLIB" >&6; }
12519 else
12520 { $as_echo "$as_me:$LINENO: result: no" >&5
12521 $as_echo "no" >&6; }
12526 if test -z "$ac_cv_prog_RANLIB"; then
12527 ac_ct_RANLIB=$RANLIB
12528 # Extract the first word of "ranlib", so it can be a program name with args.
12529 set dummy ranlib; ac_word=$2
12530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12533 $as_echo_n "(cached) " >&6
12534 else
12535 if test -n "$ac_ct_RANLIB"; then
12536 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12537 else
12538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539 for as_dir in $PATH
12541 IFS=$as_save_IFS
12542 test -z "$as_dir" && as_dir=.
12543 for ac_exec_ext in '' $ac_executable_extensions; do
12544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12545 ac_cv_prog_ac_ct_RANLIB="ranlib"
12546 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 break 2
12549 done
12550 done
12551 IFS=$as_save_IFS
12555 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12556 if test -n "$ac_ct_RANLIB"; then
12557 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12558 $as_echo "$ac_ct_RANLIB" >&6; }
12559 else
12560 { $as_echo "$as_me:$LINENO: result: no" >&5
12561 $as_echo "no" >&6; }
12564 if test "x$ac_ct_RANLIB" = x; then
12565 RANLIB=":"
12566 else
12567 case $cross_compiling:$ac_tool_warned in
12568 yes:)
12569 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12571 ac_tool_warned=yes ;;
12572 esac
12573 RANLIB=$ac_ct_RANLIB
12575 else
12576 RANLIB="$ac_cv_prog_RANLIB"
12579 test -z "$RANLIB" && RANLIB=:
12586 # Determine commands to create old-style static archives.
12587 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12588 old_postinstall_cmds='chmod 644 $oldlib'
12589 old_postuninstall_cmds=
12591 if test -n "$RANLIB"; then
12592 case $host_os in
12593 openbsd*)
12594 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12597 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12599 esac
12600 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12636 # If no C compiler was specified, use CC.
12637 LTCC=${LTCC-"$CC"}
12639 # If no C compiler flags were specified, use CFLAGS.
12640 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12642 # Allow CC to be a program name with arguments.
12643 compiler=$CC
12646 # Check for command to grab the raw symbol name followed by C symbol from nm.
12647 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12648 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12649 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12650 $as_echo_n "(cached) " >&6
12651 else
12653 # These are sane defaults that work on at least a few old systems.
12654 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12656 # Character class describing NM global symbol codes.
12657 symcode='[BCDEGRST]'
12659 # Regexp to match symbols that can be accessed directly from C.
12660 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12662 # Define system-specific variables.
12663 case $host_os in
12664 aix*)
12665 symcode='[BCDT]'
12667 cygwin* | mingw* | pw32*)
12668 symcode='[ABCDGISTW]'
12670 hpux*)
12671 if test "$host_cpu" = ia64; then
12672 symcode='[ABCDEGRST]'
12675 irix* | nonstopux*)
12676 symcode='[BCDEGRST]'
12678 osf*)
12679 symcode='[BCDEGQRST]'
12681 solaris*)
12682 symcode='[BDRT]'
12684 sco3.2v5*)
12685 symcode='[DT]'
12687 sysv4.2uw2*)
12688 symcode='[DT]'
12690 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12691 symcode='[ABDT]'
12693 sysv4)
12694 symcode='[DFNSTU]'
12696 esac
12698 # If we're using GNU nm, then use its standard symbol codes.
12699 case `$NM -V 2>&1` in
12700 *GNU* | *'with BFD'*)
12701 symcode='[ABCDGIRSTW]' ;;
12702 esac
12704 # Transform an extracted symbol line into a proper C declaration.
12705 # Some systems (esp. on ia64) link data and code symbols differently,
12706 # so use this general approach.
12707 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12709 # Transform an extracted symbol line into symbol name and symbol address
12710 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12711 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
12713 # Handle CRLF in mingw tool chain
12714 opt_cr=
12715 case $build_os in
12716 mingw*)
12717 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12719 esac
12721 # Try without a prefix underscore, then with it.
12722 for ac_symprfx in "" "_"; do
12724 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12725 symxfrm="\\1 $ac_symprfx\\2 \\2"
12727 # Write the raw and C identifiers.
12728 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12729 # Fake it for dumpbin and say T for any non-static function
12730 # and D for any global variable.
12731 # Also find C++ and __fastcall symbols from MSVC++,
12732 # which start with @ or ?.
12733 lt_cv_sys_global_symbol_pipe="$AWK '"\
12734 " {last_section=section; section=\$ 3};"\
12735 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12736 " \$ 0!~/External *\|/{next};"\
12737 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12738 " {if(hide[section]) next};"\
12739 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12740 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12741 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12742 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12743 " ' prfx=^$ac_symprfx"
12744 else
12745 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12748 # Check to see that the pipe works correctly.
12749 pipe_works=no
12751 rm -f conftest*
12752 cat > conftest.$ac_ext <<_LT_EOF
12753 #ifdef __cplusplus
12754 extern "C" {
12755 #endif
12756 char nm_test_var;
12757 void nm_test_func(void);
12758 void nm_test_func(void){}
12759 #ifdef __cplusplus
12761 #endif
12762 int main(){nm_test_var='a';nm_test_func();return(0);}
12763 _LT_EOF
12765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12766 (eval $ac_compile) 2>&5
12767 ac_status=$?
12768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; then
12770 # Now try to grab the symbols.
12771 nlist=conftest.nm
12772 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12773 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12774 ac_status=$?
12775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } && test -s "$nlist"; then
12777 # Try sorting and uniquifying the output.
12778 if sort "$nlist" | uniq > "$nlist"T; then
12779 mv -f "$nlist"T "$nlist"
12780 else
12781 rm -f "$nlist"T
12784 # Make sure that we snagged all the symbols we need.
12785 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12786 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12787 cat <<_LT_EOF > conftest.$ac_ext
12788 #ifdef __cplusplus
12789 extern "C" {
12790 #endif
12792 _LT_EOF
12793 # Now generate the symbol file.
12794 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12796 cat <<_LT_EOF >> conftest.$ac_ext
12798 /* The mapping between symbol names and symbols. */
12799 const struct {
12800 const char *name;
12801 void *address;
12803 lt__PROGRAM__LTX_preloaded_symbols[] =
12805 { "@PROGRAM@", (void *) 0 },
12806 _LT_EOF
12807 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12808 cat <<\_LT_EOF >> conftest.$ac_ext
12809 {0, (void *) 0}
12812 /* This works around a problem in FreeBSD linker */
12813 #ifdef FREEBSD_WORKAROUND
12814 static const void *lt_preloaded_setup() {
12815 return lt__PROGRAM__LTX_preloaded_symbols;
12817 #endif
12819 #ifdef __cplusplus
12821 #endif
12822 _LT_EOF
12823 # Now try linking the two files.
12824 mv conftest.$ac_objext conftstm.$ac_objext
12825 lt_save_LIBS="$LIBS"
12826 lt_save_CFLAGS="$CFLAGS"
12827 LIBS="conftstm.$ac_objext"
12828 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12830 (eval $ac_link) 2>&5
12831 ac_status=$?
12832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12834 pipe_works=yes
12836 LIBS="$lt_save_LIBS"
12837 CFLAGS="$lt_save_CFLAGS"
12838 else
12839 echo "cannot find nm_test_func in $nlist" >&5
12841 else
12842 echo "cannot find nm_test_var in $nlist" >&5
12844 else
12845 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12847 else
12848 echo "$progname: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12851 rm -rf conftest* conftst*
12853 # Do not use the global_symbol_pipe unless it works.
12854 if test "$pipe_works" = yes; then
12855 break
12856 else
12857 lt_cv_sys_global_symbol_pipe=
12859 done
12863 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12864 lt_cv_sys_global_symbol_to_cdecl=
12866 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12867 { $as_echo "$as_me:$LINENO: result: failed" >&5
12868 $as_echo "failed" >&6; }
12869 else
12870 { $as_echo "$as_me:$LINENO: result: ok" >&5
12871 $as_echo "ok" >&6; }
12895 # Check whether --enable-libtool-lock was given.
12896 if test "${enable_libtool_lock+set}" = set; then
12897 enableval=$enable_libtool_lock;
12900 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12902 # Some flags need to be propagated to the compiler or linker for good
12903 # libtool support.
12904 case $host in
12905 ia64-*-hpux*)
12906 # Find out which ABI we are using.
12907 echo 'int i;' > conftest.$ac_ext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>&5
12910 ac_status=$?
12911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; then
12913 case `/usr/bin/file conftest.$ac_objext` in
12914 *ELF-32*)
12915 HPUX_IA64_MODE="32"
12917 *ELF-64*)
12918 HPUX_IA64_MODE="64"
12920 esac
12922 rm -rf conftest*
12924 *-*-irix6*)
12925 # Find out which ABI we are using.
12926 echo '#line 12926 "configure"' > conftest.$ac_ext
12927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928 (eval $ac_compile) 2>&5
12929 ac_status=$?
12930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; then
12932 if test "$lt_cv_prog_gnu_ld" = yes; then
12933 case `/usr/bin/file conftest.$ac_objext` in
12934 *32-bit*)
12935 LD="${LD-ld} -melf32bsmip"
12937 *N32*)
12938 LD="${LD-ld} -melf32bmipn32"
12940 *64-bit*)
12941 LD="${LD-ld} -melf64bmip"
12943 esac
12944 else
12945 case `/usr/bin/file conftest.$ac_objext` in
12946 *32-bit*)
12947 LD="${LD-ld} -32"
12949 *N32*)
12950 LD="${LD-ld} -n32"
12952 *64-bit*)
12953 LD="${LD-ld} -64"
12955 esac
12958 rm -rf conftest*
12961 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12962 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12963 # Find out which ABI we are using.
12964 echo 'int i;' > conftest.$ac_ext
12965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12966 (eval $ac_compile) 2>&5
12967 ac_status=$?
12968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; then
12970 case `/usr/bin/file conftest.o` in
12971 *32-bit*)
12972 case $host in
12973 x86_64-*kfreebsd*-gnu)
12974 LD="${LD-ld} -m elf_i386_fbsd"
12976 x86_64-*linux*)
12977 LD="${LD-ld} -m elf_i386"
12979 ppc64-*linux*|powerpc64-*linux*)
12980 LD="${LD-ld} -m elf32ppclinux"
12982 s390x-*linux*)
12983 LD="${LD-ld} -m elf_s390"
12985 sparc64-*linux*)
12986 LD="${LD-ld} -m elf32_sparc"
12988 esac
12990 *64-bit*)
12991 case $host in
12992 x86_64-*kfreebsd*-gnu)
12993 LD="${LD-ld} -m elf_x86_64_fbsd"
12995 x86_64-*linux*)
12996 LD="${LD-ld} -m elf_x86_64"
12998 ppc*-*linux*|powerpc*-*linux*)
12999 LD="${LD-ld} -m elf64ppc"
13001 s390*-*linux*|s390*-*tpf*)
13002 LD="${LD-ld} -m elf64_s390"
13004 sparc*-*linux*)
13005 LD="${LD-ld} -m elf64_sparc"
13007 esac
13009 esac
13011 rm -rf conftest*
13014 *-*-sco3.2v5*)
13015 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13016 SAVE_CFLAGS="$CFLAGS"
13017 CFLAGS="$CFLAGS -belf"
13018 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13019 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13020 if test "${lt_cv_cc_needs_belf+set}" = set; then
13021 $as_echo_n "(cached) " >&6
13022 else
13023 ac_ext=c
13024 ac_cpp='$CPP $CPPFLAGS'
13025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13029 cat >conftest.$ac_ext <<_ACEOF
13030 /* confdefs.h. */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13037 main ()
13041 return 0;
13043 _ACEOF
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (ac_try="$ac_link"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049 esac
13050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13051 $as_echo "$ac_try_echo") >&5
13052 (eval "$ac_link") 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } && {
13059 test -z "$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 } && test -s conftest$ac_exeext && {
13062 test "$cross_compiling" = yes ||
13063 $as_test_x conftest$ac_exeext
13064 }; then
13065 lt_cv_cc_needs_belf=yes
13066 else
13067 $as_echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13070 lt_cv_cc_needs_belf=no
13073 rm -rf conftest.dSYM
13074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13075 conftest$ac_exeext conftest.$ac_ext
13076 ac_ext=c
13077 ac_cpp='$CPP $CPPFLAGS'
13078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13083 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13084 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13085 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13086 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13087 CFLAGS="$SAVE_CFLAGS"
13090 sparc*-*solaris*)
13091 # Find out which ABI we are using.
13092 echo 'int i;' > conftest.$ac_ext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>&5
13095 ac_status=$?
13096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; then
13098 case `/usr/bin/file conftest.o` in
13099 *64-bit*)
13100 case $lt_cv_prog_gnu_ld in
13101 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13103 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13104 LD="${LD-ld} -64"
13107 esac
13109 esac
13111 rm -rf conftest*
13113 esac
13115 need_locks="$enable_libtool_lock"
13118 case $host_os in
13119 rhapsody* | darwin*)
13120 if test -n "$ac_tool_prefix"; then
13121 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13122 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13124 $as_echo_n "checking for $ac_word... " >&6; }
13125 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
13126 $as_echo_n "(cached) " >&6
13127 else
13128 if test -n "$DSYMUTIL"; then
13129 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13130 else
13131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13140 break 2
13142 done
13143 done
13144 IFS=$as_save_IFS
13148 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13149 if test -n "$DSYMUTIL"; then
13150 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
13151 $as_echo "$DSYMUTIL" >&6; }
13152 else
13153 { $as_echo "$as_me:$LINENO: result: no" >&5
13154 $as_echo "no" >&6; }
13159 if test -z "$ac_cv_prog_DSYMUTIL"; then
13160 ac_ct_DSYMUTIL=$DSYMUTIL
13161 # Extract the first word of "dsymutil", so it can be a program name with args.
13162 set dummy dsymutil; ac_word=$2
13163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13164 $as_echo_n "checking for $ac_word... " >&6; }
13165 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
13166 $as_echo_n "(cached) " >&6
13167 else
13168 if test -n "$ac_ct_DSYMUTIL"; then
13169 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13170 else
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13174 IFS=$as_save_IFS
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13178 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13180 break 2
13182 done
13183 done
13184 IFS=$as_save_IFS
13188 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13189 if test -n "$ac_ct_DSYMUTIL"; then
13190 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
13191 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13192 else
13193 { $as_echo "$as_me:$LINENO: result: no" >&5
13194 $as_echo "no" >&6; }
13197 if test "x$ac_ct_DSYMUTIL" = x; then
13198 DSYMUTIL=":"
13199 else
13200 case $cross_compiling:$ac_tool_warned in
13201 yes:)
13202 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13204 ac_tool_warned=yes ;;
13205 esac
13206 DSYMUTIL=$ac_ct_DSYMUTIL
13208 else
13209 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13212 if test -n "$ac_tool_prefix"; then
13213 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13214 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if test "${ac_cv_prog_NMEDIT+set}" = set; then
13218 $as_echo_n "(cached) " >&6
13219 else
13220 if test -n "$NMEDIT"; then
13221 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13222 else
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13230 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 break 2
13234 done
13235 done
13236 IFS=$as_save_IFS
13240 NMEDIT=$ac_cv_prog_NMEDIT
13241 if test -n "$NMEDIT"; then
13242 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
13243 $as_echo "$NMEDIT" >&6; }
13244 else
13245 { $as_echo "$as_me:$LINENO: result: no" >&5
13246 $as_echo "no" >&6; }
13251 if test -z "$ac_cv_prog_NMEDIT"; then
13252 ac_ct_NMEDIT=$NMEDIT
13253 # Extract the first word of "nmedit", so it can be a program name with args.
13254 set dummy nmedit; ac_word=$2
13255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13256 $as_echo_n "checking for $ac_word... " >&6; }
13257 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
13258 $as_echo_n "(cached) " >&6
13259 else
13260 if test -n "$ac_ct_NMEDIT"; then
13261 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13262 else
13263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264 for as_dir in $PATH
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13270 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13272 break 2
13274 done
13275 done
13276 IFS=$as_save_IFS
13280 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13281 if test -n "$ac_ct_NMEDIT"; then
13282 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
13283 $as_echo "$ac_ct_NMEDIT" >&6; }
13284 else
13285 { $as_echo "$as_me:$LINENO: result: no" >&5
13286 $as_echo "no" >&6; }
13289 if test "x$ac_ct_NMEDIT" = x; then
13290 NMEDIT=":"
13291 else
13292 case $cross_compiling:$ac_tool_warned in
13293 yes:)
13294 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13296 ac_tool_warned=yes ;;
13297 esac
13298 NMEDIT=$ac_ct_NMEDIT
13300 else
13301 NMEDIT="$ac_cv_prog_NMEDIT"
13315 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
13316 $as_echo_n "checking for -single_module linker flag... " >&6; }
13317 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13318 $as_echo_n "(cached) " >&6
13319 else
13320 lt_cv_apple_cc_single_mod=no
13321 if test -z "${LT_MULTI_MODULE}"; then
13322 # By default we will add the -single_module flag. You can override
13323 # by either setting the environment variable LT_MULTI_MODULE
13324 # non-empty at configure time, or by adding -multi_module to the
13325 # link flags.
13326 echo "int foo(void){return 1;}" > conftest.c
13327 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13328 -dynamiclib ${wl}-single_module conftest.c
13329 if test -f libconftest.dylib; then
13330 lt_cv_apple_cc_single_mod=yes
13331 rm -rf libconftest.dylib*
13333 rm conftest.c
13336 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
13337 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13338 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
13339 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13340 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
13341 $as_echo_n "(cached) " >&6
13342 else
13343 lt_cv_ld_exported_symbols_list=no
13344 save_LDFLAGS=$LDFLAGS
13345 echo "_main" > conftest.sym
13346 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h. */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13355 main ()
13359 return 0;
13361 _ACEOF
13362 rm -f conftest.$ac_objext conftest$ac_exeext
13363 if { (ac_try="$ac_link"
13364 case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367 esac
13368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13369 $as_echo "$ac_try_echo") >&5
13370 (eval "$ac_link") 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && {
13377 test -z "$ac_c_werror_flag" ||
13378 test ! -s conftest.err
13379 } && test -s conftest$ac_exeext && {
13380 test "$cross_compiling" = yes ||
13381 $as_test_x conftest$ac_exeext
13382 }; then
13383 lt_cv_ld_exported_symbols_list=yes
13384 else
13385 $as_echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 lt_cv_ld_exported_symbols_list=no
13391 rm -rf conftest.dSYM
13392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13393 conftest$ac_exeext conftest.$ac_ext
13394 LDFLAGS="$save_LDFLAGS"
13397 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
13398 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13399 case $host_os in
13400 rhapsody* | darwin1.[012])
13401 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13402 darwin1.*)
13403 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13404 darwin*) # darwin 5.x on
13405 # if running on 10.5 or later, the deployment target defaults
13406 # to the OS version, if on x86, and 10.4, the deployment
13407 # target defaults to 10.4. Don't you love it?
13408 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13409 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13411 10.[012]*)
13412 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13413 10.*)
13414 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13415 esac
13417 esac
13418 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13419 _lt_dar_single_mod='$single_module'
13421 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13422 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13423 else
13424 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13426 if test "$DSYMUTIL" != ":"; then
13427 _lt_dsymutil='~$DSYMUTIL $lib || :'
13428 else
13429 _lt_dsymutil=
13432 esac
13435 for ac_header in dlfcn.h
13437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13439 $as_echo_n "checking for $ac_header... " >&6; }
13440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13441 $as_echo_n "(cached) " >&6
13442 else
13443 cat >conftest.$ac_ext <<_ACEOF
13444 /* confdefs.h. */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13449 $ac_includes_default
13451 #include <$ac_header>
13452 _ACEOF
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13458 esac
13459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13460 $as_echo "$ac_try_echo") >&5
13461 (eval "$ac_compile") 2>conftest.er1
13462 ac_status=$?
13463 grep -v '^ *+' conftest.er1 >conftest.err
13464 rm -f conftest.er1
13465 cat conftest.err >&5
13466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_c_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest.$ac_objext; then
13471 eval "$as_ac_Header=yes"
13472 else
13473 $as_echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13476 eval "$as_ac_Header=no"
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 ac_res=`eval 'as_val=${'$as_ac_Header'}
13482 $as_echo "$as_val"'`
13483 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13484 $as_echo "$ac_res" >&6; }
13485 as_val=`eval 'as_val=${'$as_ac_Header'}
13486 $as_echo "$as_val"'`
13487 if test "x$as_val" = x""yes; then
13488 cat >>confdefs.h <<_ACEOF
13489 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13490 _ACEOF
13494 done
13498 ac_ext=cpp
13499 ac_cpp='$CXXCPP $CPPFLAGS'
13500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13503 if test -z "$CXX"; then
13504 if test -n "$CCC"; then
13505 CXX=$CCC
13506 else
13507 if test -n "$ac_tool_prefix"; then
13508 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13511 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if test "${ac_cv_prog_CXX+set}" = set; then
13515 $as_echo_n "(cached) " >&6
13516 else
13517 if test -n "$CXX"; then
13518 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13519 else
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13523 IFS=$as_save_IFS
13524 test -z "$as_dir" && as_dir=.
13525 for ac_exec_ext in '' $ac_executable_extensions; do
13526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13527 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13529 break 2
13531 done
13532 done
13533 IFS=$as_save_IFS
13537 CXX=$ac_cv_prog_CXX
13538 if test -n "$CXX"; then
13539 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
13540 $as_echo "$CXX" >&6; }
13541 else
13542 { $as_echo "$as_me:$LINENO: result: no" >&5
13543 $as_echo "no" >&6; }
13547 test -n "$CXX" && break
13548 done
13550 if test -z "$CXX"; then
13551 ac_ct_CXX=$CXX
13552 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13554 # Extract the first word of "$ac_prog", so it can be a program name with args.
13555 set dummy $ac_prog; ac_word=$2
13556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13557 $as_echo_n "checking for $ac_word... " >&6; }
13558 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13559 $as_echo_n "(cached) " >&6
13560 else
13561 if test -n "$ac_ct_CXX"; then
13562 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13563 else
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13571 ac_cv_prog_ac_ct_CXX="$ac_prog"
13572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 break 2
13575 done
13576 done
13577 IFS=$as_save_IFS
13581 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13582 if test -n "$ac_ct_CXX"; then
13583 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13584 $as_echo "$ac_ct_CXX" >&6; }
13585 else
13586 { $as_echo "$as_me:$LINENO: result: no" >&5
13587 $as_echo "no" >&6; }
13591 test -n "$ac_ct_CXX" && break
13592 done
13594 if test "x$ac_ct_CXX" = x; then
13595 CXX="g++"
13596 else
13597 case $cross_compiling:$ac_tool_warned in
13598 yes:)
13599 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
13600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13601 ac_tool_warned=yes ;;
13602 esac
13603 CXX=$ac_ct_CXX
13609 # Provide some information about the compiler.
13610 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13611 set X $ac_compile
13612 ac_compiler=$2
13613 { (ac_try="$ac_compiler --version >&5"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617 esac
13618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13619 $as_echo "$ac_try_echo") >&5
13620 (eval "$ac_compiler --version >&5") 2>&5
13621 ac_status=$?
13622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }
13624 { (ac_try="$ac_compiler -v >&5"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628 esac
13629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13630 $as_echo "$ac_try_echo") >&5
13631 (eval "$ac_compiler -v >&5") 2>&5
13632 ac_status=$?
13633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }
13635 { (ac_try="$ac_compiler -V >&5"
13636 case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639 esac
13640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13641 $as_echo "$ac_try_echo") >&5
13642 (eval "$ac_compiler -V >&5") 2>&5
13643 ac_status=$?
13644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }
13647 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13648 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13649 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13650 $as_echo_n "(cached) " >&6
13651 else
13652 cat >conftest.$ac_ext <<_ACEOF
13653 /* confdefs.h. */
13654 _ACEOF
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13660 main ()
13662 #ifndef __GNUC__
13663 choke me
13664 #endif
13667 return 0;
13669 _ACEOF
13670 rm -f conftest.$ac_objext
13671 if { (ac_try="$ac_compile"
13672 case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675 esac
13676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13677 $as_echo "$ac_try_echo") >&5
13678 (eval "$ac_compile") 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && {
13685 test -z "$ac_cxx_werror_flag" ||
13686 test ! -s conftest.err
13687 } && test -s conftest.$ac_objext; then
13688 ac_compiler_gnu=yes
13689 else
13690 $as_echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 ac_compiler_gnu=no
13696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13700 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13701 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13702 if test $ac_compiler_gnu = yes; then
13703 GXX=yes
13704 else
13705 GXX=
13707 ac_test_CXXFLAGS=${CXXFLAGS+set}
13708 ac_save_CXXFLAGS=$CXXFLAGS
13709 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13710 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13711 if test "${ac_cv_prog_cxx_g+set}" = set; then
13712 $as_echo_n "(cached) " >&6
13713 else
13714 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13715 ac_cxx_werror_flag=yes
13716 ac_cv_prog_cxx_g=no
13717 CXXFLAGS="-g"
13718 cat >conftest.$ac_ext <<_ACEOF
13719 /* confdefs.h. */
13720 _ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13726 main ()
13730 return 0;
13732 _ACEOF
13733 rm -f conftest.$ac_objext
13734 if { (ac_try="$ac_compile"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738 esac
13739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13740 $as_echo "$ac_try_echo") >&5
13741 (eval "$ac_compile") 2>conftest.er1
13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } && {
13748 test -z "$ac_cxx_werror_flag" ||
13749 test ! -s conftest.err
13750 } && test -s conftest.$ac_objext; then
13751 ac_cv_prog_cxx_g=yes
13752 else
13753 $as_echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 CXXFLAGS=""
13757 cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h. */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13765 main ()
13769 return 0;
13771 _ACEOF
13772 rm -f conftest.$ac_objext
13773 if { (ac_try="$ac_compile"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13777 esac
13778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13779 $as_echo "$ac_try_echo") >&5
13780 (eval "$ac_compile") 2>conftest.er1
13781 ac_status=$?
13782 grep -v '^ *+' conftest.er1 >conftest.err
13783 rm -f conftest.er1
13784 cat conftest.err >&5
13785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } && {
13787 test -z "$ac_cxx_werror_flag" ||
13788 test ! -s conftest.err
13789 } && test -s conftest.$ac_objext; then
13791 else
13792 $as_echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13796 CXXFLAGS="-g"
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13805 main ()
13809 return 0;
13811 _ACEOF
13812 rm -f conftest.$ac_objext
13813 if { (ac_try="$ac_compile"
13814 case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13817 esac
13818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13819 $as_echo "$ac_try_echo") >&5
13820 (eval "$ac_compile") 2>conftest.er1
13821 ac_status=$?
13822 grep -v '^ *+' conftest.er1 >conftest.err
13823 rm -f conftest.er1
13824 cat conftest.err >&5
13825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } && {
13827 test -z "$ac_cxx_werror_flag" ||
13828 test ! -s conftest.err
13829 } && test -s conftest.$ac_objext; then
13830 ac_cv_prog_cxx_g=yes
13831 else
13832 $as_echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13847 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13848 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13849 if test "$ac_test_CXXFLAGS" = set; then
13850 CXXFLAGS=$ac_save_CXXFLAGS
13851 elif test $ac_cv_prog_cxx_g = yes; then
13852 if test "$GXX" = yes; then
13853 CXXFLAGS="-g -O2"
13854 else
13855 CXXFLAGS="-g"
13857 else
13858 if test "$GXX" = yes; then
13859 CXXFLAGS="-O2"
13860 else
13861 CXXFLAGS=
13864 ac_ext=c
13865 ac_cpp='$CPP $CPPFLAGS'
13866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13870 depcc="$CXX" am_compiler_list=
13872 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13873 $as_echo_n "checking dependency style of $depcc... " >&6; }
13874 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13875 $as_echo_n "(cached) " >&6
13876 else
13877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13878 # We make a subdir and do the tests there. Otherwise we can end up
13879 # making bogus files that we don't know about and never remove. For
13880 # instance it was reported that on HP-UX the gcc test will end up
13881 # making a dummy file named `D' -- because `-MD' means `put the output
13882 # in D'.
13883 mkdir conftest.dir
13884 # Copy depcomp to subdir because otherwise we won't find it if we're
13885 # using a relative directory.
13886 cp "$am_depcomp" conftest.dir
13887 cd conftest.dir
13888 # We will build objects and dependencies in a subdirectory because
13889 # it helps to detect inapplicable dependency modes. For instance
13890 # both Tru64's cc and ICC support -MD to output dependencies as a
13891 # side effect of compilation, but ICC will put the dependencies in
13892 # the current directory while Tru64 will put them in the object
13893 # directory.
13894 mkdir sub
13896 am_cv_CXX_dependencies_compiler_type=none
13897 if test "$am_compiler_list" = ""; then
13898 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13900 for depmode in $am_compiler_list; do
13901 # Setup a source with many dependencies, because some compilers
13902 # like to wrap large dependency lists on column 80 (with \), and
13903 # we should not choose a depcomp mode which is confused by this.
13905 # We need to recreate these files for each test, as the compiler may
13906 # overwrite some of them when testing with obscure command lines.
13907 # This happens at least with the AIX C compiler.
13908 : > sub/conftest.c
13909 for i in 1 2 3 4 5 6; do
13910 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13911 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13912 # Solaris 8's {/usr,}/bin/sh.
13913 touch sub/conftst$i.h
13914 done
13915 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13917 case $depmode in
13918 nosideeffect)
13919 # after this tag, mechanisms are not by side-effect, so they'll
13920 # only be used when explicitly requested
13921 if test "x$enable_dependency_tracking" = xyes; then
13922 continue
13923 else
13924 break
13927 none) break ;;
13928 esac
13929 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13930 # mode. It turns out that the SunPro C++ compiler does not properly
13931 # handle `-M -o', and we need to detect this.
13932 if depmode=$depmode \
13933 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13934 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13935 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13936 >/dev/null 2>conftest.err &&
13937 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13938 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13939 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13940 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13941 # icc doesn't choke on unknown options, it will just issue warnings
13942 # or remarks (even with -Werror). So we grep stderr for any message
13943 # that says an option was ignored or not supported.
13944 # When given -MP, icc 7.0 and 7.1 complain thusly:
13945 # icc: Command line warning: ignoring option '-M'; no argument required
13946 # The diagnosis changed in icc 8.0:
13947 # icc: Command line remark: option '-MP' not supported
13948 if (grep 'ignoring option' conftest.err ||
13949 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13950 am_cv_CXX_dependencies_compiler_type=$depmode
13951 break
13954 done
13956 cd ..
13957 rm -rf conftest.dir
13958 else
13959 am_cv_CXX_dependencies_compiler_type=none
13963 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13964 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13965 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13968 test "x$enable_dependency_tracking" != xno \
13969 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13970 am__fastdepCXX_TRUE=
13971 am__fastdepCXX_FALSE='#'
13972 else
13973 am__fastdepCXX_TRUE='#'
13974 am__fastdepCXX_FALSE=
13978 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13979 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13980 (test "X$CXX" != "Xg++"))) ; then
13981 ac_ext=cpp
13982 ac_cpp='$CXXCPP $CPPFLAGS'
13983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13986 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13987 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13988 if test -z "$CXXCPP"; then
13989 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13990 $as_echo_n "(cached) " >&6
13991 else
13992 # Double quotes because CXXCPP needs to be expanded
13993 for CXXCPP in "$CXX -E" "/lib/cpp"
13995 ac_preproc_ok=false
13996 for ac_cxx_preproc_warn_flag in '' yes
13998 # Use a header file that comes with gcc, so configuring glibc
13999 # with a fresh cross-compiler works.
14000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14001 # <limits.h> exists even on freestanding compilers.
14002 # On the NeXT, cc -E runs the code through the compiler's parser,
14003 # not just through cpp. "Syntax error" is here to catch this case.
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 #ifdef __STDC__
14011 # include <limits.h>
14012 #else
14013 # include <assert.h>
14014 #endif
14015 Syntax error
14016 _ACEOF
14017 if { (ac_try="$ac_cpp conftest.$ac_ext"
14018 case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021 esac
14022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14023 $as_echo "$ac_try_echo") >&5
14024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14025 ac_status=$?
14026 grep -v '^ *+' conftest.er1 >conftest.err
14027 rm -f conftest.er1
14028 cat conftest.err >&5
14029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } >/dev/null && {
14031 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14032 test ! -s conftest.err
14033 }; then
14035 else
14036 $as_echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 # Broken: fails on valid input.
14040 continue
14043 rm -f conftest.err conftest.$ac_ext
14045 # OK, works on sane cases. Now check whether nonexistent headers
14046 # can be detected and how.
14047 cat >conftest.$ac_ext <<_ACEOF
14048 /* confdefs.h. */
14049 _ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14053 #include <ac_nonexistent.h>
14054 _ACEOF
14055 if { (ac_try="$ac_cpp conftest.$ac_ext"
14056 case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14059 esac
14060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14061 $as_echo "$ac_try_echo") >&5
14062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } >/dev/null && {
14069 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14070 test ! -s conftest.err
14071 }; then
14072 # Broken: success on invalid input.
14073 continue
14074 else
14075 $as_echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14078 # Passes both tests.
14079 ac_preproc_ok=:
14080 break
14083 rm -f conftest.err conftest.$ac_ext
14085 done
14086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14087 rm -f conftest.err conftest.$ac_ext
14088 if $ac_preproc_ok; then
14089 break
14092 done
14093 ac_cv_prog_CXXCPP=$CXXCPP
14096 CXXCPP=$ac_cv_prog_CXXCPP
14097 else
14098 ac_cv_prog_CXXCPP=$CXXCPP
14100 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
14101 $as_echo "$CXXCPP" >&6; }
14102 ac_preproc_ok=false
14103 for ac_cxx_preproc_warn_flag in '' yes
14105 # Use a header file that comes with gcc, so configuring glibc
14106 # with a fresh cross-compiler works.
14107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14108 # <limits.h> exists even on freestanding compilers.
14109 # On the NeXT, cc -E runs the code through the compiler's parser,
14110 # not just through cpp. "Syntax error" is here to catch this case.
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h. */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 #ifdef __STDC__
14118 # include <limits.h>
14119 #else
14120 # include <assert.h>
14121 #endif
14122 Syntax error
14123 _ACEOF
14124 if { (ac_try="$ac_cpp conftest.$ac_ext"
14125 case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128 esac
14129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14130 $as_echo "$ac_try_echo") >&5
14131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14132 ac_status=$?
14133 grep -v '^ *+' conftest.er1 >conftest.err
14134 rm -f conftest.er1
14135 cat conftest.err >&5
14136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } >/dev/null && {
14138 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14139 test ! -s conftest.err
14140 }; then
14142 else
14143 $as_echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 # Broken: fails on valid input.
14147 continue
14150 rm -f conftest.err conftest.$ac_ext
14152 # OK, works on sane cases. Now check whether nonexistent headers
14153 # can be detected and how.
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 #include <ac_nonexistent.h>
14161 _ACEOF
14162 if { (ac_try="$ac_cpp conftest.$ac_ext"
14163 case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166 esac
14167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14168 $as_echo "$ac_try_echo") >&5
14169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } >/dev/null && {
14176 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
14177 test ! -s conftest.err
14178 }; then
14179 # Broken: success on invalid input.
14180 continue
14181 else
14182 $as_echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 # Passes both tests.
14186 ac_preproc_ok=:
14187 break
14190 rm -f conftest.err conftest.$ac_ext
14192 done
14193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14194 rm -f conftest.err conftest.$ac_ext
14195 if $ac_preproc_ok; then
14197 else
14198 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14200 _lt_caught_CXX_error=yes; }
14203 ac_ext=c
14204 ac_cpp='$CPP $CPPFLAGS'
14205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14209 else
14210 _lt_caught_CXX_error=yes
14217 ac_ext=f
14218 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14219 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14220 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14221 if test -n "$ac_tool_prefix"; then
14222 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
14224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14227 $as_echo_n "checking for $ac_word... " >&6; }
14228 if test "${ac_cv_prog_F77+set}" = set; then
14229 $as_echo_n "(cached) " >&6
14230 else
14231 if test -n "$F77"; then
14232 ac_cv_prog_F77="$F77" # Let the user override the test.
14233 else
14234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14235 for as_dir in $PATH
14237 IFS=$as_save_IFS
14238 test -z "$as_dir" && as_dir=.
14239 for ac_exec_ext in '' $ac_executable_extensions; do
14240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14241 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
14242 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14243 break 2
14245 done
14246 done
14247 IFS=$as_save_IFS
14251 F77=$ac_cv_prog_F77
14252 if test -n "$F77"; then
14253 { $as_echo "$as_me:$LINENO: result: $F77" >&5
14254 $as_echo "$F77" >&6; }
14255 else
14256 { $as_echo "$as_me:$LINENO: result: no" >&5
14257 $as_echo "no" >&6; }
14261 test -n "$F77" && break
14262 done
14264 if test -z "$F77"; then
14265 ac_ct_F77=$F77
14266 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
14268 # Extract the first word of "$ac_prog", so it can be a program name with args.
14269 set dummy $ac_prog; ac_word=$2
14270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14271 $as_echo_n "checking for $ac_word... " >&6; }
14272 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
14273 $as_echo_n "(cached) " >&6
14274 else
14275 if test -n "$ac_ct_F77"; then
14276 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14277 else
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $PATH
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14285 ac_cv_prog_ac_ct_F77="$ac_prog"
14286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 break 2
14289 done
14290 done
14291 IFS=$as_save_IFS
14295 ac_ct_F77=$ac_cv_prog_ac_ct_F77
14296 if test -n "$ac_ct_F77"; then
14297 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
14298 $as_echo "$ac_ct_F77" >&6; }
14299 else
14300 { $as_echo "$as_me:$LINENO: result: no" >&5
14301 $as_echo "no" >&6; }
14305 test -n "$ac_ct_F77" && break
14306 done
14308 if test "x$ac_ct_F77" = x; then
14309 F77=""
14310 else
14311 case $cross_compiling:$ac_tool_warned in
14312 yes:)
14313 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
14314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14315 ac_tool_warned=yes ;;
14316 esac
14317 F77=$ac_ct_F77
14322 # Provide some information about the compiler.
14323 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
14324 set X $ac_compile
14325 ac_compiler=$2
14326 { (ac_try="$ac_compiler --version >&5"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330 esac
14331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14332 $as_echo "$ac_try_echo") >&5
14333 (eval "$ac_compiler --version >&5") 2>&5
14334 ac_status=$?
14335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }
14337 { (ac_try="$ac_compiler -v >&5"
14338 case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341 esac
14342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14343 $as_echo "$ac_try_echo") >&5
14344 (eval "$ac_compiler -v >&5") 2>&5
14345 ac_status=$?
14346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }
14348 { (ac_try="$ac_compiler -V >&5"
14349 case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14352 esac
14353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14354 $as_echo "$ac_try_echo") >&5
14355 (eval "$ac_compiler -V >&5") 2>&5
14356 ac_status=$?
14357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }
14359 rm -f a.out
14361 # If we don't use `.F' as extension, the preprocessor is not run on the
14362 # input file. (Note that this only needs to work for GNU compilers.)
14363 ac_save_ext=$ac_ext
14364 ac_ext=F
14365 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
14366 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
14367 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
14368 $as_echo_n "(cached) " >&6
14369 else
14370 cat >conftest.$ac_ext <<_ACEOF
14371 program main
14372 #ifndef __GNUC__
14373 choke me
14374 #endif
14377 _ACEOF
14378 rm -f conftest.$ac_objext
14379 if { (ac_try="$ac_compile"
14380 case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383 esac
14384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14385 $as_echo "$ac_try_echo") >&5
14386 (eval "$ac_compile") 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_f77_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest.$ac_objext; then
14396 ac_compiler_gnu=yes
14397 else
14398 $as_echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 ac_compiler_gnu=no
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14408 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
14409 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
14410 ac_ext=$ac_save_ext
14411 ac_test_FFLAGS=${FFLAGS+set}
14412 ac_save_FFLAGS=$FFLAGS
14413 FFLAGS=
14414 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
14415 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
14416 if test "${ac_cv_prog_f77_g+set}" = set; then
14417 $as_echo_n "(cached) " >&6
14418 else
14419 FFLAGS=-g
14420 cat >conftest.$ac_ext <<_ACEOF
14421 program main
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14430 esac
14431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14432 $as_echo "$ac_try_echo") >&5
14433 (eval "$ac_compile") 2>conftest.er1
14434 ac_status=$?
14435 grep -v '^ *+' conftest.er1 >conftest.err
14436 rm -f conftest.er1
14437 cat conftest.err >&5
14438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } && {
14440 test -z "$ac_f77_werror_flag" ||
14441 test ! -s conftest.err
14442 } && test -s conftest.$ac_objext; then
14443 ac_cv_prog_f77_g=yes
14444 else
14445 $as_echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14448 ac_cv_prog_f77_g=no
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
14455 $as_echo "$ac_cv_prog_f77_g" >&6; }
14456 if test "$ac_test_FFLAGS" = set; then
14457 FFLAGS=$ac_save_FFLAGS
14458 elif test $ac_cv_prog_f77_g = yes; then
14459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14460 FFLAGS="-g -O2"
14461 else
14462 FFLAGS="-g"
14464 else
14465 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14466 FFLAGS="-O2"
14467 else
14468 FFLAGS=
14472 if test $ac_compiler_gnu = yes; then
14473 G77=yes
14474 else
14475 G77=
14477 ac_ext=c
14478 ac_cpp='$CPP $CPPFLAGS'
14479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14483 if test -z "$F77" || test "X$F77" = "Xno"; then
14484 _lt_disable_F77=yes
14491 # Set options
14495 enable_dlopen=no
14499 # Check whether --enable-shared was given.
14500 if test "${enable_shared+set}" = set; then
14501 enableval=$enable_shared; p=${PACKAGE-default}
14502 case $enableval in
14503 yes) enable_shared=yes ;;
14504 no) enable_shared=no ;;
14506 enable_shared=no
14507 # Look at the argument we got. We use all the common list separators.
14508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14509 for pkg in $enableval; do
14510 IFS="$lt_save_ifs"
14511 if test "X$pkg" = "X$p"; then
14512 enable_shared=yes
14514 done
14515 IFS="$lt_save_ifs"
14517 esac
14518 else
14519 enable_shared=yes
14530 # Check whether --enable-static was given.
14531 if test "${enable_static+set}" = set; then
14532 enableval=$enable_static; p=${PACKAGE-default}
14533 case $enableval in
14534 yes) enable_static=yes ;;
14535 no) enable_static=no ;;
14537 enable_static=no
14538 # Look at the argument we got. We use all the common list separators.
14539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14540 for pkg in $enableval; do
14541 IFS="$lt_save_ifs"
14542 if test "X$pkg" = "X$p"; then
14543 enable_static=yes
14545 done
14546 IFS="$lt_save_ifs"
14548 esac
14549 else
14550 enable_static=yes
14562 # Check whether --with-pic was given.
14563 if test "${with_pic+set}" = set; then
14564 withval=$with_pic; pic_mode="$withval"
14565 else
14566 pic_mode=default
14570 test -z "$pic_mode" && pic_mode=default
14578 # Check whether --enable-fast-install was given.
14579 if test "${enable_fast_install+set}" = set; then
14580 enableval=$enable_fast_install; p=${PACKAGE-default}
14581 case $enableval in
14582 yes) enable_fast_install=yes ;;
14583 no) enable_fast_install=no ;;
14585 enable_fast_install=no
14586 # Look at the argument we got. We use all the common list separators.
14587 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14588 for pkg in $enableval; do
14589 IFS="$lt_save_ifs"
14590 if test "X$pkg" = "X$p"; then
14591 enable_fast_install=yes
14593 done
14594 IFS="$lt_save_ifs"
14596 esac
14597 else
14598 enable_fast_install=yes
14611 # This can be used to rebuild libtool when needed
14612 LIBTOOL_DEPS="$ltmain"
14614 # Always use our own libtool.
14615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14641 test -z "$LN_S" && LN_S="ln -s"
14656 if test -n "${ZSH_VERSION+set}" ; then
14657 setopt NO_GLOB_SUBST
14660 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
14661 $as_echo_n "checking for objdir... " >&6; }
14662 if test "${lt_cv_objdir+set}" = set; then
14663 $as_echo_n "(cached) " >&6
14664 else
14665 rm -f .libs 2>/dev/null
14666 mkdir .libs 2>/dev/null
14667 if test -d .libs; then
14668 lt_cv_objdir=.libs
14669 else
14670 # MS-DOS does not allow filenames that begin with a dot.
14671 lt_cv_objdir=_libs
14673 rmdir .libs 2>/dev/null
14675 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14676 $as_echo "$lt_cv_objdir" >&6; }
14677 objdir=$lt_cv_objdir
14683 cat >>confdefs.h <<_ACEOF
14684 #define LT_OBJDIR "$lt_cv_objdir/"
14685 _ACEOF
14703 case $host_os in
14704 aix3*)
14705 # AIX sometimes has problems with the GCC collect2 program. For some
14706 # reason, if we set the COLLECT_NAMES environment variable, the problems
14707 # vanish in a puff of smoke.
14708 if test "X${COLLECT_NAMES+set}" != Xset; then
14709 COLLECT_NAMES=
14710 export COLLECT_NAMES
14713 esac
14715 # Sed substitution that helps us do robust quoting. It backslashifies
14716 # metacharacters that are still active within double-quoted strings.
14717 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14719 # Same as above, but do not quote variable references.
14720 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14722 # Sed substitution to delay expansion of an escaped shell variable in a
14723 # double_quote_subst'ed string.
14724 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14726 # Sed substitution to delay expansion of an escaped single quote.
14727 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14729 # Sed substitution to avoid accidental globbing in evaled expressions
14730 no_glob_subst='s/\*/\\\*/g'
14732 # Global variables:
14733 ofile=libtool
14734 can_build_shared=yes
14736 # All known linkers require a `.a' archive for static linking (except MSVC,
14737 # which needs '.lib').
14738 libext=a
14740 with_gnu_ld="$lt_cv_prog_gnu_ld"
14742 old_CC="$CC"
14743 old_CFLAGS="$CFLAGS"
14745 # Set sane defaults for various variables
14746 test -z "$CC" && CC=cc
14747 test -z "$LTCC" && LTCC=$CC
14748 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14749 test -z "$LD" && LD=ld
14750 test -z "$ac_objext" && ac_objext=o
14752 for cc_temp in $compiler""; do
14753 case $cc_temp in
14754 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14755 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14756 \-*) ;;
14757 *) break;;
14758 esac
14759 done
14760 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14763 # Only perform the check for file, if the check method requires it
14764 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14765 case $deplibs_check_method in
14766 file_magic*)
14767 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14768 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14769 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14770 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14771 $as_echo_n "(cached) " >&6
14772 else
14773 case $MAGIC_CMD in
14774 [\\/*] | ?:[\\/]*)
14775 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14778 lt_save_MAGIC_CMD="$MAGIC_CMD"
14779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14780 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14781 for ac_dir in $ac_dummy; do
14782 IFS="$lt_save_ifs"
14783 test -z "$ac_dir" && ac_dir=.
14784 if test -f $ac_dir/${ac_tool_prefix}file; then
14785 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14786 if test -n "$file_magic_test_file"; then
14787 case $deplibs_check_method in
14788 "file_magic "*)
14789 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14790 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14791 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14792 $EGREP "$file_magic_regex" > /dev/null; then
14794 else
14795 cat <<_LT_EOF 1>&2
14797 *** Warning: the command libtool uses to detect shared libraries,
14798 *** $file_magic_cmd, produces output that libtool cannot recognize.
14799 *** The result is that libtool may fail to recognize shared libraries
14800 *** as such. This will affect the creation of libtool libraries that
14801 *** depend on shared libraries, but programs linked with such libtool
14802 *** libraries will work regardless of this problem. Nevertheless, you
14803 *** may want to report the problem to your system manager and/or to
14804 *** bug-libtool@gnu.org
14806 _LT_EOF
14807 fi ;;
14808 esac
14810 break
14812 done
14813 IFS="$lt_save_ifs"
14814 MAGIC_CMD="$lt_save_MAGIC_CMD"
14816 esac
14819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14820 if test -n "$MAGIC_CMD"; then
14821 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14822 $as_echo "$MAGIC_CMD" >&6; }
14823 else
14824 { $as_echo "$as_me:$LINENO: result: no" >&5
14825 $as_echo "no" >&6; }
14832 if test -z "$lt_cv_path_MAGIC_CMD"; then
14833 if test -n "$ac_tool_prefix"; then
14834 { $as_echo "$as_me:$LINENO: checking for file" >&5
14835 $as_echo_n "checking for file... " >&6; }
14836 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14837 $as_echo_n "(cached) " >&6
14838 else
14839 case $MAGIC_CMD in
14840 [\\/*] | ?:[\\/]*)
14841 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14844 lt_save_MAGIC_CMD="$MAGIC_CMD"
14845 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14846 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14847 for ac_dir in $ac_dummy; do
14848 IFS="$lt_save_ifs"
14849 test -z "$ac_dir" && ac_dir=.
14850 if test -f $ac_dir/file; then
14851 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14852 if test -n "$file_magic_test_file"; then
14853 case $deplibs_check_method in
14854 "file_magic "*)
14855 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14856 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14857 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14858 $EGREP "$file_magic_regex" > /dev/null; then
14860 else
14861 cat <<_LT_EOF 1>&2
14863 *** Warning: the command libtool uses to detect shared libraries,
14864 *** $file_magic_cmd, produces output that libtool cannot recognize.
14865 *** The result is that libtool may fail to recognize shared libraries
14866 *** as such. This will affect the creation of libtool libraries that
14867 *** depend on shared libraries, but programs linked with such libtool
14868 *** libraries will work regardless of this problem. Nevertheless, you
14869 *** may want to report the problem to your system manager and/or to
14870 *** bug-libtool@gnu.org
14872 _LT_EOF
14873 fi ;;
14874 esac
14876 break
14878 done
14879 IFS="$lt_save_ifs"
14880 MAGIC_CMD="$lt_save_MAGIC_CMD"
14882 esac
14885 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14886 if test -n "$MAGIC_CMD"; then
14887 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14888 $as_echo "$MAGIC_CMD" >&6; }
14889 else
14890 { $as_echo "$as_me:$LINENO: result: no" >&5
14891 $as_echo "no" >&6; }
14895 else
14896 MAGIC_CMD=:
14902 esac
14904 # Use C for the default configuration in the libtool script
14906 lt_save_CC="$CC"
14907 ac_ext=c
14908 ac_cpp='$CPP $CPPFLAGS'
14909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14914 # Source file extension for C test sources.
14915 ac_ext=c
14917 # Object file extension for compiled C test sources.
14918 objext=o
14919 objext=$objext
14921 # Code to be used in simple compile tests
14922 lt_simple_compile_test_code="int some_variable = 0;"
14924 # Code to be used in simple link tests
14925 lt_simple_link_test_code='int main(){return(0);}'
14933 # If no C compiler was specified, use CC.
14934 LTCC=${LTCC-"$CC"}
14936 # If no C compiler flags were specified, use CFLAGS.
14937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14939 # Allow CC to be a program name with arguments.
14940 compiler=$CC
14942 # Save the default compiler, since it gets overwritten when the other
14943 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14944 compiler_DEFAULT=$CC
14946 # save warnings/boilerplate of simple test code
14947 ac_outfile=conftest.$ac_objext
14948 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14949 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14950 _lt_compiler_boilerplate=`cat conftest.err`
14951 $RM conftest*
14953 ac_outfile=conftest.$ac_objext
14954 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14955 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14956 _lt_linker_boilerplate=`cat conftest.err`
14957 $RM -r conftest*
14960 ## CAVEAT EMPTOR:
14961 ## There is no encapsulation within the following macros, do not change
14962 ## the running order or otherwise move them around unless you know exactly
14963 ## what you are doing...
14964 if test -n "$compiler"; then
14966 lt_prog_compiler_no_builtin_flag=
14968 if test "$GCC" = yes; then
14969 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14971 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14972 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14973 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14974 $as_echo_n "(cached) " >&6
14975 else
14976 lt_cv_prog_compiler_rtti_exceptions=no
14977 ac_outfile=conftest.$ac_objext
14978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14979 lt_compiler_flag="-fno-rtti -fno-exceptions"
14980 # Insert the option either (1) after the last *FLAGS variable, or
14981 # (2) before a word containing "conftest.", or (3) at the end.
14982 # Note that $ac_compile itself does not contain backslashes and begins
14983 # with a dollar sign (not a hyphen), so the echo should work correctly.
14984 # The option is referenced via a variable to avoid confusing sed.
14985 lt_compile=`echo "$ac_compile" | $SED \
14986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14988 -e 's:$: $lt_compiler_flag:'`
14989 (eval echo "\"\$as_me:14989: $lt_compile\"" >&5)
14990 (eval "$lt_compile" 2>conftest.err)
14991 ac_status=$?
14992 cat conftest.err >&5
14993 echo "$as_me:14993: \$? = $ac_status" >&5
14994 if (exit $ac_status) && test -s "$ac_outfile"; then
14995 # The compiler can only warn and ignore the option if not recognized
14996 # So say no if there are warnings other than the usual output.
14997 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15000 lt_cv_prog_compiler_rtti_exceptions=yes
15003 $RM conftest*
15006 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15007 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15009 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15010 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15011 else
15022 lt_prog_compiler_wl=
15023 lt_prog_compiler_pic=
15024 lt_prog_compiler_static=
15026 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15027 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15029 if test "$GCC" = yes; then
15030 lt_prog_compiler_wl='-Wl,'
15031 lt_prog_compiler_static='-static'
15033 case $host_os in
15034 aix*)
15035 # All AIX code is PIC.
15036 if test "$host_cpu" = ia64; then
15037 # AIX 5 now supports IA64 processor
15038 lt_prog_compiler_static='-Bstatic'
15042 amigaos*)
15043 if test "$host_cpu" = m68k; then
15044 # FIXME: we need at least 68020 code to build shared libraries, but
15045 # adding the `-m68020' flag to GCC prevents building anything better,
15046 # like `-m68040'.
15047 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15051 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15052 # PIC is the default for these OSes.
15055 mingw* | cygwin* | pw32* | os2*)
15056 # This hack is so that the source file can tell whether it is being
15057 # built for inclusion in a dll (and should export symbols for example).
15058 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15059 # (--disable-auto-import) libraries
15060 lt_prog_compiler_pic='-DDLL_EXPORT'
15063 darwin* | rhapsody*)
15064 # PIC is the default on this platform
15065 # Common symbols not allowed in MH_DYLIB files
15066 lt_prog_compiler_pic='-fno-common'
15069 hpux*)
15070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15071 # not for PA HP-UX.
15072 case $host_cpu in
15073 hppa*64*|ia64*)
15074 # +Z the default
15077 lt_prog_compiler_pic='-fPIC'
15079 esac
15082 interix[3-9]*)
15083 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15084 # Instead, we relocate shared libraries at runtime.
15087 msdosdjgpp*)
15088 # Just because we use GCC doesn't mean we suddenly get shared libraries
15089 # on systems that don't support them.
15090 lt_prog_compiler_can_build_shared=no
15091 enable_shared=no
15094 *nto* | *qnx*)
15095 # QNX uses GNU C++, but need to define -shared option too, otherwise
15096 # it will coredump.
15097 lt_prog_compiler_pic='-fPIC -shared'
15100 sysv4*MP*)
15101 if test -d /usr/nec; then
15102 lt_prog_compiler_pic=-Kconform_pic
15107 lt_prog_compiler_pic='-fPIC'
15109 esac
15110 else
15111 # PORTME Check for flag to pass linker flags through the system compiler.
15112 case $host_os in
15113 aix*)
15114 lt_prog_compiler_wl='-Wl,'
15115 if test "$host_cpu" = ia64; then
15116 # AIX 5 now supports IA64 processor
15117 lt_prog_compiler_static='-Bstatic'
15118 else
15119 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15123 mingw* | cygwin* | pw32* | os2*)
15124 # This hack is so that the source file can tell whether it is being
15125 # built for inclusion in a dll (and should export symbols for example).
15126 lt_prog_compiler_pic='-DDLL_EXPORT'
15129 hpux9* | hpux10* | hpux11*)
15130 lt_prog_compiler_wl='-Wl,'
15131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15132 # not for PA HP-UX.
15133 case $host_cpu in
15134 hppa*64*|ia64*)
15135 # +Z the default
15138 lt_prog_compiler_pic='+Z'
15140 esac
15141 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15142 lt_prog_compiler_static='${wl}-a ${wl}archive'
15145 irix5* | irix6* | nonstopux*)
15146 lt_prog_compiler_wl='-Wl,'
15147 # PIC (with -KPIC) is the default.
15148 lt_prog_compiler_static='-non_shared'
15151 linux* | k*bsd*-gnu)
15152 case $cc_basename in
15153 icc* | ecc* | ifort*)
15154 lt_prog_compiler_wl='-Wl,'
15155 lt_prog_compiler_pic='-KPIC'
15156 lt_prog_compiler_static='-static'
15158 pgcc* | pgf77* | pgf90* | pgf95*)
15159 # Portland Group compilers (*not* the Pentium gcc compiler,
15160 # which looks to be a dead project)
15161 lt_prog_compiler_wl='-Wl,'
15162 lt_prog_compiler_pic='-fpic'
15163 lt_prog_compiler_static='-Bstatic'
15165 ccc*)
15166 lt_prog_compiler_wl='-Wl,'
15167 # All Alpha code is PIC.
15168 lt_prog_compiler_static='-non_shared'
15170 xl*)
15171 # IBM XL C 8.0/Fortran 10.1 on PPC
15172 lt_prog_compiler_wl='-Wl,'
15173 lt_prog_compiler_pic='-qpic'
15174 lt_prog_compiler_static='-qstaticlink'
15177 case `$CC -V 2>&1 | sed 5q` in
15178 *Sun\ C*)
15179 # Sun C 5.9
15180 lt_prog_compiler_pic='-KPIC'
15181 lt_prog_compiler_static='-Bstatic'
15182 lt_prog_compiler_wl='-Wl,'
15184 *Sun\ F*)
15185 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15186 lt_prog_compiler_pic='-KPIC'
15187 lt_prog_compiler_static='-Bstatic'
15188 lt_prog_compiler_wl=''
15190 esac
15192 esac
15195 newsos6)
15196 lt_prog_compiler_pic='-KPIC'
15197 lt_prog_compiler_static='-Bstatic'
15200 *nto* | *qnx*)
15201 # QNX uses GNU C++, but need to define -shared option too, otherwise
15202 # it will coredump.
15203 lt_prog_compiler_pic='-fPIC -shared'
15206 osf3* | osf4* | osf5*)
15207 lt_prog_compiler_wl='-Wl,'
15208 # All OSF/1 code is PIC.
15209 lt_prog_compiler_static='-non_shared'
15212 rdos*)
15213 lt_prog_compiler_static='-non_shared'
15216 solaris*)
15217 lt_prog_compiler_pic='-KPIC'
15218 lt_prog_compiler_static='-Bstatic'
15219 case $cc_basename in
15220 f77* | f90* | f95*)
15221 lt_prog_compiler_wl='-Qoption ld ';;
15223 lt_prog_compiler_wl='-Wl,';;
15224 esac
15227 sunos4*)
15228 lt_prog_compiler_wl='-Qoption ld '
15229 lt_prog_compiler_pic='-PIC'
15230 lt_prog_compiler_static='-Bstatic'
15233 sysv4 | sysv4.2uw2* | sysv4.3*)
15234 lt_prog_compiler_wl='-Wl,'
15235 lt_prog_compiler_pic='-KPIC'
15236 lt_prog_compiler_static='-Bstatic'
15239 sysv4*MP*)
15240 if test -d /usr/nec ;then
15241 lt_prog_compiler_pic='-Kconform_pic'
15242 lt_prog_compiler_static='-Bstatic'
15246 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15247 lt_prog_compiler_wl='-Wl,'
15248 lt_prog_compiler_pic='-KPIC'
15249 lt_prog_compiler_static='-Bstatic'
15252 unicos*)
15253 lt_prog_compiler_wl='-Wl,'
15254 lt_prog_compiler_can_build_shared=no
15257 uts4*)
15258 lt_prog_compiler_pic='-pic'
15259 lt_prog_compiler_static='-Bstatic'
15263 lt_prog_compiler_can_build_shared=no
15265 esac
15268 case $host_os in
15269 # For platforms which do not support PIC, -DPIC is meaningless:
15270 *djgpp*)
15271 lt_prog_compiler_pic=
15274 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15276 esac
15277 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15278 $as_echo "$lt_prog_compiler_pic" >&6; }
15286 # Check to make sure the PIC flag actually works.
15288 if test -n "$lt_prog_compiler_pic"; then
15289 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15290 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15291 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
15292 $as_echo_n "(cached) " >&6
15293 else
15294 lt_cv_prog_compiler_pic_works=no
15295 ac_outfile=conftest.$ac_objext
15296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15297 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15298 # Insert the option either (1) after the last *FLAGS variable, or
15299 # (2) before a word containing "conftest.", or (3) at the end.
15300 # Note that $ac_compile itself does not contain backslashes and begins
15301 # with a dollar sign (not a hyphen), so the echo should work correctly.
15302 # The option is referenced via a variable to avoid confusing sed.
15303 lt_compile=`echo "$ac_compile" | $SED \
15304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15306 -e 's:$: $lt_compiler_flag:'`
15307 (eval echo "\"\$as_me:15307: $lt_compile\"" >&5)
15308 (eval "$lt_compile" 2>conftest.err)
15309 ac_status=$?
15310 cat conftest.err >&5
15311 echo "$as_me:15311: \$? = $ac_status" >&5
15312 if (exit $ac_status) && test -s "$ac_outfile"; then
15313 # The compiler can only warn and ignore the option if not recognized
15314 # So say no if there are warnings other than the usual output.
15315 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15318 lt_cv_prog_compiler_pic_works=yes
15321 $RM conftest*
15324 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
15325 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15327 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15328 case $lt_prog_compiler_pic in
15329 "" | " "*) ;;
15330 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15331 esac
15332 else
15333 lt_prog_compiler_pic=
15334 lt_prog_compiler_can_build_shared=no
15345 # Check to make sure the static flag actually works.
15347 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15348 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15349 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15350 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
15351 $as_echo_n "(cached) " >&6
15352 else
15353 lt_cv_prog_compiler_static_works=no
15354 save_LDFLAGS="$LDFLAGS"
15355 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15358 # The linker can only warn and ignore the option if not recognized
15359 # So say no if there are warnings
15360 if test -s conftest.err; then
15361 # Append any errors to the config.log.
15362 cat conftest.err 1>&5
15363 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15365 if diff conftest.exp conftest.er2 >/dev/null; then
15366 lt_cv_prog_compiler_static_works=yes
15368 else
15369 lt_cv_prog_compiler_static_works=yes
15372 $RM -r conftest*
15373 LDFLAGS="$save_LDFLAGS"
15376 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
15377 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15379 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15381 else
15382 lt_prog_compiler_static=
15391 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15392 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15393 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15394 $as_echo_n "(cached) " >&6
15395 else
15396 lt_cv_prog_compiler_c_o=no
15397 $RM -r conftest 2>/dev/null
15398 mkdir conftest
15399 cd conftest
15400 mkdir out
15401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15403 lt_compiler_flag="-o out/conftest2.$ac_objext"
15404 # Insert the option either (1) after the last *FLAGS variable, or
15405 # (2) before a word containing "conftest.", or (3) at the end.
15406 # Note that $ac_compile itself does not contain backslashes and begins
15407 # with a dollar sign (not a hyphen), so the echo should work correctly.
15408 lt_compile=`echo "$ac_compile" | $SED \
15409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15411 -e 's:$: $lt_compiler_flag:'`
15412 (eval echo "\"\$as_me:15412: $lt_compile\"" >&5)
15413 (eval "$lt_compile" 2>out/conftest.err)
15414 ac_status=$?
15415 cat out/conftest.err >&5
15416 echo "$as_me:15416: \$? = $ac_status" >&5
15417 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15418 then
15419 # The compiler can only warn and ignore the option if not recognized
15420 # So say no if there are warnings
15421 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15422 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15423 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15424 lt_cv_prog_compiler_c_o=yes
15427 chmod u+w . 2>&5
15428 $RM conftest*
15429 # SGI C++ compiler will create directory out/ii_files/ for
15430 # template instantiation
15431 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15432 $RM out/* && rmdir out
15433 cd ..
15434 $RM -r conftest
15435 $RM conftest*
15438 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15439 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15446 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15447 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15448 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15449 $as_echo_n "(cached) " >&6
15450 else
15451 lt_cv_prog_compiler_c_o=no
15452 $RM -r conftest 2>/dev/null
15453 mkdir conftest
15454 cd conftest
15455 mkdir out
15456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15458 lt_compiler_flag="-o out/conftest2.$ac_objext"
15459 # Insert the option either (1) after the last *FLAGS variable, or
15460 # (2) before a word containing "conftest.", or (3) at the end.
15461 # Note that $ac_compile itself does not contain backslashes and begins
15462 # with a dollar sign (not a hyphen), so the echo should work correctly.
15463 lt_compile=`echo "$ac_compile" | $SED \
15464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15466 -e 's:$: $lt_compiler_flag:'`
15467 (eval echo "\"\$as_me:15467: $lt_compile\"" >&5)
15468 (eval "$lt_compile" 2>out/conftest.err)
15469 ac_status=$?
15470 cat out/conftest.err >&5
15471 echo "$as_me:15471: \$? = $ac_status" >&5
15472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15473 then
15474 # The compiler can only warn and ignore the option if not recognized
15475 # So say no if there are warnings
15476 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15479 lt_cv_prog_compiler_c_o=yes
15482 chmod u+w . 2>&5
15483 $RM conftest*
15484 # SGI C++ compiler will create directory out/ii_files/ for
15485 # template instantiation
15486 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15487 $RM out/* && rmdir out
15488 cd ..
15489 $RM -r conftest
15490 $RM conftest*
15493 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15494 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15499 hard_links="nottested"
15500 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15501 # do not overwrite the value of need_locks provided by the user
15502 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15503 $as_echo_n "checking if we can lock with hard links... " >&6; }
15504 hard_links=yes
15505 $RM conftest*
15506 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15507 touch conftest.a
15508 ln conftest.a conftest.b 2>&5 || hard_links=no
15509 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15510 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15511 $as_echo "$hard_links" >&6; }
15512 if test "$hard_links" = no; then
15513 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15514 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15515 need_locks=warn
15517 else
15518 need_locks=no
15526 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15527 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15529 runpath_var=
15530 allow_undefined_flag=
15531 always_export_symbols=no
15532 archive_cmds=
15533 archive_expsym_cmds=
15534 compiler_needs_object=no
15535 enable_shared_with_static_runtimes=no
15536 export_dynamic_flag_spec=
15537 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15538 hardcode_automatic=no
15539 hardcode_direct=no
15540 hardcode_direct_absolute=no
15541 hardcode_libdir_flag_spec=
15542 hardcode_libdir_flag_spec_ld=
15543 hardcode_libdir_separator=
15544 hardcode_minus_L=no
15545 hardcode_shlibpath_var=unsupported
15546 inherit_rpath=no
15547 link_all_deplibs=unknown
15548 module_cmds=
15549 module_expsym_cmds=
15550 old_archive_from_new_cmds=
15551 old_archive_from_expsyms_cmds=
15552 thread_safe_flag_spec=
15553 whole_archive_flag_spec=
15554 # include_expsyms should be a list of space-separated symbols to be *always*
15555 # included in the symbol list
15556 include_expsyms=
15557 # exclude_expsyms can be an extended regexp of symbols to exclude
15558 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15559 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15560 # as well as any symbol that contains `d'.
15561 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15562 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15563 # platforms (ab)use it in PIC code, but their linkers get confused if
15564 # the symbol is explicitly referenced. Since portable code cannot
15565 # rely on this symbol name, it's probably fine to never include it in
15566 # preloaded symbol tables.
15567 # Exclude shared library initialization/finalization symbols.
15568 extract_expsyms_cmds=
15570 case $host_os in
15571 cygwin* | mingw* | pw32*)
15572 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15573 # When not using gcc, we currently assume that we are using
15574 # Microsoft Visual C++.
15575 if test "$GCC" != yes; then
15576 with_gnu_ld=no
15579 interix*)
15580 # we just hope/assume this is gcc and not c89 (= MSVC++)
15581 with_gnu_ld=yes
15583 openbsd*)
15584 with_gnu_ld=no
15586 esac
15588 ld_shlibs=yes
15589 if test "$with_gnu_ld" = yes; then
15590 # If archive_cmds runs LD, not CC, wlarc should be empty
15591 wlarc='${wl}'
15593 # Set some defaults for GNU ld with shared library support. These
15594 # are reset later if shared libraries are not supported. Putting them
15595 # here allows them to be overridden if necessary.
15596 runpath_var=LD_RUN_PATH
15597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15598 export_dynamic_flag_spec='${wl}--export-dynamic'
15599 # ancient GNU ld didn't support --whole-archive et. al.
15600 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15601 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15602 else
15603 whole_archive_flag_spec=
15605 supports_anon_versioning=no
15606 case `$LD -v 2>&1` in
15607 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15610 *\ 2.11.*) ;; # other 2.11 versions
15611 *) supports_anon_versioning=yes ;;
15612 esac
15614 # See if GNU ld supports shared libraries.
15615 case $host_os in
15616 aix[3-9]*)
15617 # On AIX/PPC, the GNU linker is very broken
15618 if test "$host_cpu" != ia64; then
15619 ld_shlibs=no
15620 cat <<_LT_EOF 1>&2
15622 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15623 *** to be unable to reliably create shared libraries on AIX.
15624 *** Therefore, libtool is disabling shared libraries support. If you
15625 *** really care for shared libraries, you may want to modify your PATH
15626 *** so that a non-GNU linker is found, and then restart.
15628 _LT_EOF
15632 amigaos*)
15633 if test "$host_cpu" = m68k; then
15634 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)'
15635 hardcode_libdir_flag_spec='-L$libdir'
15636 hardcode_minus_L=yes
15639 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15640 # that the semantics of dynamic libraries on AmigaOS, at least up
15641 # to version 4, is to share data among multiple programs linked
15642 # with the same dynamic library. Since this doesn't match the
15643 # behavior of shared libraries on other platforms, we can't use
15644 # them.
15645 ld_shlibs=no
15648 beos*)
15649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15650 allow_undefined_flag=unsupported
15651 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15652 # support --undefined. This deserves some investigation. FIXME
15653 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654 else
15655 ld_shlibs=no
15659 cygwin* | mingw* | pw32*)
15660 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15661 # as there is no search path for DLLs.
15662 hardcode_libdir_flag_spec='-L$libdir'
15663 allow_undefined_flag=unsupported
15664 always_export_symbols=no
15665 enable_shared_with_static_runtimes=yes
15666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15668 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15670 # If the export-symbols file already is a .def file (1st line
15671 # is EXPORTS), use it as is; otherwise, prepend...
15672 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15673 cp $export_symbols $output_objdir/$soname.def;
15674 else
15675 echo EXPORTS > $output_objdir/$soname.def;
15676 cat $export_symbols >> $output_objdir/$soname.def;
15678 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15679 else
15680 ld_shlibs=no
15684 interix[3-9]*)
15685 hardcode_direct=no
15686 hardcode_shlibpath_var=no
15687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15688 export_dynamic_flag_spec='${wl}-E'
15689 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15690 # Instead, shared libraries are loaded at an image base (0x10000000 by
15691 # default) and relocated if they conflict, which is a slow very memory
15692 # consuming and fragmenting process. To avoid this, we pick a random,
15693 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15694 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15695 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15696 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'
15699 gnu* | linux* | tpf* | k*bsd*-gnu)
15700 tmp_diet=no
15701 if test "$host_os" = linux-dietlibc; then
15702 case $cc_basename in
15703 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15704 esac
15706 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15707 && test "$tmp_diet" = no
15708 then
15709 tmp_addflag=
15710 tmp_sharedflag='-shared'
15711 case $cc_basename,$host_cpu in
15712 pgcc*) # Portland Group C compiler
15713 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15714 tmp_addflag=' $pic_flag'
15716 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15717 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15718 tmp_addflag=' $pic_flag -Mnomain' ;;
15719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15720 tmp_addflag=' -i_dynamic' ;;
15721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15722 tmp_addflag=' -i_dynamic -nofor_main' ;;
15723 ifc* | ifort*) # Intel Fortran compiler
15724 tmp_addflag=' -nofor_main' ;;
15725 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15726 tmp_sharedflag='-qmkshrobj'
15727 tmp_addflag= ;;
15728 esac
15729 case `$CC -V 2>&1 | sed 5q` in
15730 *Sun\ C*) # Sun C 5.9
15731 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15732 compiler_needs_object=yes
15733 tmp_sharedflag='-G' ;;
15734 *Sun\ F*) # Sun Fortran 8.3
15735 tmp_sharedflag='-G' ;;
15736 esac
15737 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15739 if test "x$supports_anon_versioning" = xyes; then
15740 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15742 echo "local: *; };" >> $output_objdir/$libname.ver~
15743 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15746 case $cc_basename in
15747 xlf*)
15748 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15749 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15750 hardcode_libdir_flag_spec=
15751 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15752 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15753 if test "x$supports_anon_versioning" = xyes; then
15754 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15756 echo "local: *; };" >> $output_objdir/$libname.ver~
15757 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15760 esac
15761 else
15762 ld_shlibs=no
15766 netbsd*)
15767 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15768 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15769 wlarc=
15770 else
15771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15776 solaris*)
15777 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15778 ld_shlibs=no
15779 cat <<_LT_EOF 1>&2
15781 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15782 *** create shared libraries on Solaris systems. Therefore, libtool
15783 *** is disabling shared libraries support. We urge you to upgrade GNU
15784 *** binutils to release 2.9.1 or newer. Another option is to modify
15785 *** your PATH or compiler configuration so that the native linker is
15786 *** used, and then restart.
15788 _LT_EOF
15789 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15790 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15791 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15792 else
15793 ld_shlibs=no
15797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15798 case `$LD -v 2>&1` in
15799 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15800 ld_shlibs=no
15801 cat <<_LT_EOF 1>&2
15803 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15804 *** reliably create shared libraries on SCO systems. Therefore, libtool
15805 *** is disabling shared libraries support. We urge you to upgrade GNU
15806 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15807 *** your PATH or compiler configuration so that the native linker is
15808 *** used, and then restart.
15810 _LT_EOF
15813 # For security reasons, it is highly recommended that you always
15814 # use absolute paths for naming shared libraries, and exclude the
15815 # DT_RUNPATH tag from executables and libraries. But doing so
15816 # requires that you compile everything twice, which is a pain.
15817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15821 else
15822 ld_shlibs=no
15825 esac
15828 sunos4*)
15829 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15830 wlarc=
15831 hardcode_direct=yes
15832 hardcode_shlibpath_var=no
15836 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15838 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15839 else
15840 ld_shlibs=no
15843 esac
15845 if test "$ld_shlibs" = no; then
15846 runpath_var=
15847 hardcode_libdir_flag_spec=
15848 export_dynamic_flag_spec=
15849 whole_archive_flag_spec=
15851 else
15852 # PORTME fill in a description of your system's linker (not GNU ld)
15853 case $host_os in
15854 aix3*)
15855 allow_undefined_flag=unsupported
15856 always_export_symbols=yes
15857 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'
15858 # Note: this linker hardcodes the directories in LIBPATH if there
15859 # are no directories specified by -L.
15860 hardcode_minus_L=yes
15861 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15862 # Neither direct hardcoding nor static linking is supported with a
15863 # broken collect2.
15864 hardcode_direct=unsupported
15868 aix[4-9]*)
15869 if test "$host_cpu" = ia64; then
15870 # On IA64, the linker does run time linking by default, so we don't
15871 # have to do anything special.
15872 aix_use_runtimelinking=no
15873 exp_sym_flag='-Bexport'
15874 no_entry_flag=""
15875 else
15876 # If we're using GNU nm, then we don't want the "-C" option.
15877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15878 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15879 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15880 else
15881 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15883 aix_use_runtimelinking=no
15885 # Test if we are trying to use run time linking or normal
15886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15887 # need to do runtime linking.
15888 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15889 for ld_flag in $LDFLAGS; do
15890 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15891 aix_use_runtimelinking=yes
15892 break
15894 done
15896 esac
15898 exp_sym_flag='-bexport'
15899 no_entry_flag='-bnoentry'
15902 # When large executables or shared objects are built, AIX ld can
15903 # have problems creating the table of contents. If linking a library
15904 # or program results in "error TOC overflow" add -mminimal-toc to
15905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15908 archive_cmds=''
15909 hardcode_direct=yes
15910 hardcode_direct_absolute=yes
15911 hardcode_libdir_separator=':'
15912 link_all_deplibs=yes
15913 file_list_spec='${wl}-f,'
15915 if test "$GCC" = yes; then
15916 case $host_os in aix4.[012]|aix4.[012].*)
15917 # We only want to do this on AIX 4.2 and lower, the check
15918 # below for broken collect2 doesn't work under 4.3+
15919 collect2name=`${CC} -print-prog-name=collect2`
15920 if test -f "$collect2name" &&
15921 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15922 then
15923 # We have reworked collect2
15925 else
15926 # We have old collect2
15927 hardcode_direct=unsupported
15928 # It fails to find uninstalled libraries when the uninstalled
15929 # path is not listed in the libpath. Setting hardcode_minus_L
15930 # to unsupported forces relinking
15931 hardcode_minus_L=yes
15932 hardcode_libdir_flag_spec='-L$libdir'
15933 hardcode_libdir_separator=
15936 esac
15937 shared_flag='-shared'
15938 if test "$aix_use_runtimelinking" = yes; then
15939 shared_flag="$shared_flag "'${wl}-G'
15941 else
15942 # not using gcc
15943 if test "$host_cpu" = ia64; then
15944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15945 # chokes on -Wl,-G. The following line is correct:
15946 shared_flag='-G'
15947 else
15948 if test "$aix_use_runtimelinking" = yes; then
15949 shared_flag='${wl}-G'
15950 else
15951 shared_flag='${wl}-bM:SRE'
15956 # It seems that -bexpall does not export symbols beginning with
15957 # underscore (_), so it is better to generate a list of symbols to export.
15958 always_export_symbols=yes
15959 if test "$aix_use_runtimelinking" = yes; then
15960 # Warning - without using the other runtime loading flags (-brtl),
15961 # -berok will link without error, but may produce a broken library.
15962 allow_undefined_flag='-berok'
15963 # Determine the default libpath from the value encoded in an
15964 # empty executable.
15965 cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h. */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15973 main ()
15977 return 0;
15979 _ACEOF
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15985 esac
15986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15987 $as_echo "$ac_try_echo") >&5
15988 (eval "$ac_link") 2>conftest.er1
15989 ac_status=$?
15990 grep -v '^ *+' conftest.er1 >conftest.err
15991 rm -f conftest.er1
15992 cat conftest.err >&5
15993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); } && {
15995 test -z "$ac_c_werror_flag" ||
15996 test ! -s conftest.err
15997 } && test -s conftest$ac_exeext && {
15998 test "$cross_compiling" = yes ||
15999 $as_test_x conftest$ac_exeext
16000 }; then
16002 lt_aix_libpath_sed='
16003 /Import File Strings/,/^$/ {
16004 /^0/ {
16005 s/^0 *\(.*\)$/\1/
16009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16010 # Check for a 64-bit object if we didn't find anything.
16011 if test -z "$aix_libpath"; then
16012 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16014 else
16015 $as_echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16021 rm -rf conftest.dSYM
16022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16023 conftest$ac_exeext conftest.$ac_ext
16024 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16026 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16027 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16028 else
16029 if test "$host_cpu" = ia64; then
16030 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16031 allow_undefined_flag="-z nodefs"
16032 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"
16033 else
16034 # Determine the default libpath from the value encoded in an
16035 # empty executable.
16036 cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h. */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16044 main ()
16048 return 0;
16050 _ACEOF
16051 rm -f conftest.$ac_objext conftest$ac_exeext
16052 if { (ac_try="$ac_link"
16053 case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16056 esac
16057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16058 $as_echo "$ac_try_echo") >&5
16059 (eval "$ac_link") 2>conftest.er1
16060 ac_status=$?
16061 grep -v '^ *+' conftest.er1 >conftest.err
16062 rm -f conftest.er1
16063 cat conftest.err >&5
16064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } && {
16066 test -z "$ac_c_werror_flag" ||
16067 test ! -s conftest.err
16068 } && test -s conftest$ac_exeext && {
16069 test "$cross_compiling" = yes ||
16070 $as_test_x conftest$ac_exeext
16071 }; then
16073 lt_aix_libpath_sed='
16074 /Import File Strings/,/^$/ {
16075 /^0/ {
16076 s/^0 *\(.*\)$/\1/
16080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16081 # Check for a 64-bit object if we didn't find anything.
16082 if test -z "$aix_libpath"; then
16083 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16085 else
16086 $as_echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16092 rm -rf conftest.dSYM
16093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16094 conftest$ac_exeext conftest.$ac_ext
16095 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16097 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16098 # Warning - without using the other run time loading flags,
16099 # -berok will link without error, but may produce a broken library.
16100 no_undefined_flag=' ${wl}-bernotok'
16101 allow_undefined_flag=' ${wl}-berok'
16102 # Exported symbols can be pulled into shared objects from archives
16103 whole_archive_flag_spec='$convenience'
16104 archive_cmds_need_lc=yes
16105 # This is similar to how AIX traditionally builds its shared libraries.
16106 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16111 amigaos*)
16112 if test "$host_cpu" = m68k; then
16113 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)'
16114 hardcode_libdir_flag_spec='-L$libdir'
16115 hardcode_minus_L=yes
16117 # see comment about different semantics on the GNU ld section
16118 ld_shlibs=no
16121 bsdi[45]*)
16122 export_dynamic_flag_spec=-rdynamic
16125 cygwin* | mingw* | pw32*)
16126 # When not using gcc, we currently assume that we are using
16127 # Microsoft Visual C++.
16128 # hardcode_libdir_flag_spec is actually meaningless, as there is
16129 # no search path for DLLs.
16130 hardcode_libdir_flag_spec=' '
16131 allow_undefined_flag=unsupported
16132 # Tell ltmain to make .lib files, not .a files.
16133 libext=lib
16134 # Tell ltmain to make .dll files, not .so files.
16135 shrext_cmds=".dll"
16136 # FIXME: Setting linknames here is a bad hack.
16137 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16138 # The linker will automatically build a .lib file if we build a DLL.
16139 old_archive_from_new_cmds='true'
16140 # FIXME: Should let the user specify the lib program.
16141 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16142 fix_srcfile_path='`cygpath -w "$srcfile"`'
16143 enable_shared_with_static_runtimes=yes
16146 darwin* | rhapsody*)
16149 archive_cmds_need_lc=no
16150 hardcode_direct=no
16151 hardcode_automatic=yes
16152 hardcode_shlibpath_var=unsupported
16153 whole_archive_flag_spec=''
16154 link_all_deplibs=yes
16155 allow_undefined_flag="$_lt_dar_allow_undefined"
16156 if test "$GCC" = "yes"; then
16157 output_verbose_link_cmd=echo
16158 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16159 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16160 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}"
16161 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}"
16163 else
16164 ld_shlibs=no
16169 dgux*)
16170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16171 hardcode_libdir_flag_spec='-L$libdir'
16172 hardcode_shlibpath_var=no
16175 freebsd1*)
16176 ld_shlibs=no
16179 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16180 # support. Future versions do this automatically, but an explicit c++rt0.o
16181 # does not break anything, and helps significantly (at the cost of a little
16182 # extra space).
16183 freebsd2.2*)
16184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16185 hardcode_libdir_flag_spec='-R$libdir'
16186 hardcode_direct=yes
16187 hardcode_shlibpath_var=no
16190 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16191 freebsd2*)
16192 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_direct=yes
16194 hardcode_minus_L=yes
16195 hardcode_shlibpath_var=no
16198 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16199 freebsd* | dragonfly*)
16200 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16201 hardcode_libdir_flag_spec='-R$libdir'
16202 hardcode_direct=yes
16203 hardcode_shlibpath_var=no
16206 hpux9*)
16207 if test "$GCC" = yes; then
16208 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16209 else
16210 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16213 hardcode_libdir_separator=:
16214 hardcode_direct=yes
16216 # hardcode_minus_L: Not really in the search PATH,
16217 # but as the default location of the library.
16218 hardcode_minus_L=yes
16219 export_dynamic_flag_spec='${wl}-E'
16222 hpux10*)
16223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16224 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16225 else
16226 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16228 if test "$with_gnu_ld" = no; then
16229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16230 hardcode_libdir_flag_spec_ld='+b $libdir'
16231 hardcode_libdir_separator=:
16232 hardcode_direct=yes
16233 hardcode_direct_absolute=yes
16234 export_dynamic_flag_spec='${wl}-E'
16235 # hardcode_minus_L: Not really in the search PATH,
16236 # but as the default location of the library.
16237 hardcode_minus_L=yes
16241 hpux11*)
16242 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16243 case $host_cpu in
16244 hppa*64*)
16245 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 ia64*)
16248 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16251 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16253 esac
16254 else
16255 case $host_cpu in
16256 hppa*64*)
16257 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16259 ia64*)
16260 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16263 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16265 esac
16267 if test "$with_gnu_ld" = no; then
16268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16269 hardcode_libdir_separator=:
16271 case $host_cpu in
16272 hppa*64*|ia64*)
16273 hardcode_direct=no
16274 hardcode_shlibpath_var=no
16277 hardcode_direct=yes
16278 hardcode_direct_absolute=yes
16279 export_dynamic_flag_spec='${wl}-E'
16281 # hardcode_minus_L: Not really in the search PATH,
16282 # but as the default location of the library.
16283 hardcode_minus_L=yes
16285 esac
16289 irix5* | irix6* | nonstopux*)
16290 if test "$GCC" = yes; then
16291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16292 # Try to use the -exported_symbol ld option, if it does not
16293 # work, assume that -exports_file does not work either and
16294 # implicitly export all symbols.
16295 save_LDFLAGS="$LDFLAGS"
16296 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16297 cat >conftest.$ac_ext <<_ACEOF
16298 int foo(void) {}
16299 _ACEOF
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304 *) ac_try_echo=$ac_try;;
16305 esac
16306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16307 $as_echo "$ac_try_echo") >&5
16308 (eval "$ac_link") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest$ac_exeext && {
16318 test "$cross_compiling" = yes ||
16319 $as_test_x conftest$ac_exeext
16320 }; then
16321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
16323 else
16324 $as_echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16330 rm -rf conftest.dSYM
16331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16332 conftest$ac_exeext conftest.$ac_ext
16333 LDFLAGS="$save_LDFLAGS"
16334 else
16335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
16338 archive_cmds_need_lc='no'
16339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16340 hardcode_libdir_separator=:
16341 inherit_rpath=yes
16342 link_all_deplibs=yes
16345 netbsd*)
16346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16348 else
16349 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16351 hardcode_libdir_flag_spec='-R$libdir'
16352 hardcode_direct=yes
16353 hardcode_shlibpath_var=no
16356 newsos6)
16357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16358 hardcode_direct=yes
16359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16360 hardcode_libdir_separator=:
16361 hardcode_shlibpath_var=no
16364 *nto* | *qnx*)
16367 openbsd*)
16368 if test -f /usr/libexec/ld.so; then
16369 hardcode_direct=yes
16370 hardcode_shlibpath_var=no
16371 hardcode_direct_absolute=yes
16372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16374 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16376 export_dynamic_flag_spec='${wl}-E'
16377 else
16378 case $host_os in
16379 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16381 hardcode_libdir_flag_spec='-R$libdir'
16384 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16385 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16387 esac
16389 else
16390 ld_shlibs=no
16394 os2*)
16395 hardcode_libdir_flag_spec='-L$libdir'
16396 hardcode_minus_L=yes
16397 allow_undefined_flag=unsupported
16398 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16399 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16402 osf3*)
16403 if test "$GCC" = yes; then
16404 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16405 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16406 else
16407 allow_undefined_flag=' -expect_unresolved \*'
16408 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16410 archive_cmds_need_lc='no'
16411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16412 hardcode_libdir_separator=:
16415 osf4* | osf5*) # as osf3* with the addition of -msym flag
16416 if test "$GCC" = yes; then
16417 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16418 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16420 else
16421 allow_undefined_flag=' -expect_unresolved \*'
16422 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16423 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~
16424 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
16426 # Both c and cxx compiler support -rpath directly
16427 hardcode_libdir_flag_spec='-rpath $libdir'
16429 archive_cmds_need_lc='no'
16430 hardcode_libdir_separator=:
16433 solaris*)
16434 no_undefined_flag=' -z defs'
16435 if test "$GCC" = yes; then
16436 wlarc='${wl}'
16437 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16439 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16440 else
16441 case `$CC -V 2>&1` in
16442 *"Compilers 5.0"*)
16443 wlarc=''
16444 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16449 wlarc='${wl}'
16450 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16452 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16454 esac
16456 hardcode_libdir_flag_spec='-R$libdir'
16457 hardcode_shlibpath_var=no
16458 case $host_os in
16459 solaris2.[0-5] | solaris2.[0-5].*) ;;
16461 # The compiler driver will combine and reorder linker options,
16462 # but understands `-z linker_flag'. GCC discards it without `$wl',
16463 # but is careful enough not to reorder.
16464 # Supported since Solaris 2.6 (maybe 2.5.1?)
16465 if test "$GCC" = yes; then
16466 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16467 else
16468 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16471 esac
16472 link_all_deplibs=yes
16475 sunos4*)
16476 if test "x$host_vendor" = xsequent; then
16477 # Use $CC to link under sequent, because it throws in some extra .o
16478 # files that make .init and .fini sections work.
16479 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16480 else
16481 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16483 hardcode_libdir_flag_spec='-L$libdir'
16484 hardcode_direct=yes
16485 hardcode_minus_L=yes
16486 hardcode_shlibpath_var=no
16489 sysv4)
16490 case $host_vendor in
16491 sni)
16492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16493 hardcode_direct=yes # is this really true???
16495 siemens)
16496 ## LD is ld it makes a PLAMLIB
16497 ## CC just makes a GrossModule.
16498 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16499 reload_cmds='$CC -r -o $output$reload_objs'
16500 hardcode_direct=no
16502 motorola)
16503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16504 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16506 esac
16507 runpath_var='LD_RUN_PATH'
16508 hardcode_shlibpath_var=no
16511 sysv4.3*)
16512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16513 hardcode_shlibpath_var=no
16514 export_dynamic_flag_spec='-Bexport'
16517 sysv4*MP*)
16518 if test -d /usr/nec; then
16519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520 hardcode_shlibpath_var=no
16521 runpath_var=LD_RUN_PATH
16522 hardcode_runpath_var=yes
16523 ld_shlibs=yes
16527 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16528 no_undefined_flag='${wl}-z,text'
16529 archive_cmds_need_lc=no
16530 hardcode_shlibpath_var=no
16531 runpath_var='LD_RUN_PATH'
16533 if test "$GCC" = yes; then
16534 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16535 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16536 else
16537 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542 sysv5* | sco3.2v5* | sco5v6*)
16543 # Note: We can NOT use -z defs as we might desire, because we do not
16544 # link with -lc, and that would cause any symbols used from libc to
16545 # always be unresolved, which means just about no library would
16546 # ever link correctly. If we're not using GNU ld we use -z text
16547 # though, which does catch some bad symbols but isn't as heavy-handed
16548 # as -z defs.
16549 no_undefined_flag='${wl}-z,text'
16550 allow_undefined_flag='${wl}-z,nodefs'
16551 archive_cmds_need_lc=no
16552 hardcode_shlibpath_var=no
16553 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16554 hardcode_libdir_separator=':'
16555 link_all_deplibs=yes
16556 export_dynamic_flag_spec='${wl}-Bexport'
16557 runpath_var='LD_RUN_PATH'
16559 if test "$GCC" = yes; then
16560 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16562 else
16563 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16568 uts4*)
16569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16570 hardcode_libdir_flag_spec='-L$libdir'
16571 hardcode_shlibpath_var=no
16575 ld_shlibs=no
16577 esac
16579 if test x$host_vendor = xsni; then
16580 case $host in
16581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16582 export_dynamic_flag_spec='${wl}-Blargedynsym'
16584 esac
16588 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16589 $as_echo "$ld_shlibs" >&6; }
16590 test "$ld_shlibs" = no && can_build_shared=no
16592 with_gnu_ld=$with_gnu_ld
16609 # Do we need to explicitly link libc?
16611 case "x$archive_cmds_need_lc" in
16612 x|xyes)
16613 # Assume -lc should be added
16614 archive_cmds_need_lc=yes
16616 if test "$enable_shared" = yes && test "$GCC" = yes; then
16617 case $archive_cmds in
16618 *'~'*)
16619 # FIXME: we may have to deal with multi-command sequences.
16621 '$CC '*)
16622 # Test whether the compiler implicitly links with -lc since on some
16623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16624 # to ld, don't add -lc before -lgcc.
16625 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16626 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16627 $RM conftest*
16628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16631 (eval $ac_compile) 2>&5
16632 ac_status=$?
16633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } 2>conftest.err; then
16635 soname=conftest
16636 lib=conftest
16637 libobjs=conftest.$ac_objext
16638 deplibs=
16639 wl=$lt_prog_compiler_wl
16640 pic_flag=$lt_prog_compiler_pic
16641 compiler_flags=-v
16642 linker_flags=-v
16643 verstring=
16644 output_objdir=.
16645 libname=conftest
16646 lt_save_allow_undefined_flag=$allow_undefined_flag
16647 allow_undefined_flag=
16648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16649 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16650 ac_status=$?
16651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }
16653 then
16654 archive_cmds_need_lc=no
16655 else
16656 archive_cmds_need_lc=yes
16658 allow_undefined_flag=$lt_save_allow_undefined_flag
16659 else
16660 cat conftest.err 1>&5
16662 $RM conftest*
16663 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16664 $as_echo "$archive_cmds_need_lc" >&6; }
16666 esac
16669 esac
16827 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16828 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16830 if test "$GCC" = yes; then
16831 case $host_os in
16832 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16833 *) lt_awk_arg="/^libraries:/" ;;
16834 esac
16835 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16836 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16837 # if the path contains ";" then we assume it to be the separator
16838 # otherwise default to the standard path separator (i.e. ":") - it is
16839 # assumed that no part of a normal pathname contains ";" but that should
16840 # okay in the real world where ";" in dirpaths is itself problematic.
16841 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16842 else
16843 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16845 # Ok, now we have the path, separated by spaces, we can step through it
16846 # and add multilib dir if necessary.
16847 lt_tmp_lt_search_path_spec=
16848 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16849 for lt_sys_path in $lt_search_path_spec; do
16850 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16851 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16852 else
16853 test -d "$lt_sys_path" && \
16854 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16856 done
16857 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16858 BEGIN {RS=" "; FS="/|\n";} {
16859 lt_foo="";
16860 lt_count=0;
16861 for (lt_i = NF; lt_i > 0; lt_i--) {
16862 if ($lt_i != "" && $lt_i != ".") {
16863 if ($lt_i == "..") {
16864 lt_count++;
16865 } else {
16866 if (lt_count == 0) {
16867 lt_foo="/" $lt_i lt_foo;
16868 } else {
16869 lt_count--;
16874 if (lt_foo != "") { lt_freq[lt_foo]++; }
16875 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16877 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16878 else
16879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16881 library_names_spec=
16882 libname_spec='lib$name'
16883 soname_spec=
16884 shrext_cmds=".so"
16885 postinstall_cmds=
16886 postuninstall_cmds=
16887 finish_cmds=
16888 finish_eval=
16889 shlibpath_var=
16890 shlibpath_overrides_runpath=unknown
16891 version_type=none
16892 dynamic_linker="$host_os ld.so"
16893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16894 need_lib_prefix=unknown
16895 hardcode_into_libs=no
16897 # when you set need_version to no, make sure it does not cause -set_version
16898 # flags to be left without arguments
16899 need_version=unknown
16901 case $host_os in
16902 aix3*)
16903 version_type=linux
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16905 shlibpath_var=LIBPATH
16907 # AIX 3 has no versioning support, so we append a major version to the name.
16908 soname_spec='${libname}${release}${shared_ext}$major'
16911 aix[4-9]*)
16912 version_type=linux
16913 need_lib_prefix=no
16914 need_version=no
16915 hardcode_into_libs=yes
16916 if test "$host_cpu" = ia64; then
16917 # AIX 5 supports IA64
16918 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16919 shlibpath_var=LD_LIBRARY_PATH
16920 else
16921 # With GCC up to 2.95.x, collect2 would create an import file
16922 # for dependence libraries. The import file would start with
16923 # the line `#! .'. This would cause the generated library to
16924 # depend on `.', always an invalid library. This was fixed in
16925 # development snapshots of GCC prior to 3.0.
16926 case $host_os in
16927 aix4 | aix4.[01] | aix4.[01].*)
16928 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16929 echo ' yes '
16930 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16932 else
16933 can_build_shared=no
16936 esac
16937 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16938 # soname into executable. Probably we can add versioning support to
16939 # collect2, so additional links can be useful in future.
16940 if test "$aix_use_runtimelinking" = yes; then
16941 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16942 # instead of lib<name>.a to let people know that these are not
16943 # typical AIX shared libraries.
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945 else
16946 # We preserve .a as extension for shared libraries through AIX4.2
16947 # and later when we are not doing run time linking.
16948 library_names_spec='${libname}${release}.a $libname.a'
16949 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LIBPATH
16955 amigaos*)
16956 if test "$host_cpu" = m68k; then
16957 library_names_spec='$libname.ixlibrary $libname.a'
16958 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16959 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16960 else
16961 dynamic_linker=no
16965 beos*)
16966 library_names_spec='${libname}${shared_ext}'
16967 dynamic_linker="$host_os ld.so"
16968 shlibpath_var=LIBRARY_PATH
16971 bsdi[45]*)
16972 version_type=linux
16973 need_version=no
16974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16975 soname_spec='${libname}${release}${shared_ext}$major'
16976 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16977 shlibpath_var=LD_LIBRARY_PATH
16978 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16979 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16980 # the default ld.so.conf also contains /usr/contrib/lib and
16981 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16982 # libtool to hard-code these into programs
16985 cygwin* | mingw* | pw32*)
16986 version_type=windows
16987 shrext_cmds=".dll"
16988 need_version=no
16989 need_lib_prefix=no
16991 case $GCC,$host_os in
16992 yes,cygwin* | yes,mingw* | yes,pw32*)
16993 library_names_spec='$libname.dll.a'
16994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16995 postinstall_cmds='base_file=`basename \${file}`~
16996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16997 dldir=$destdir/`dirname \$dlpath`~
16998 test -d \$dldir || mkdir -p \$dldir~
16999 $install_prog $dir/$dlname \$dldir/$dlname~
17000 chmod a+x \$dldir/$dlname~
17001 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17002 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17005 dlpath=$dir/\$dldll~
17006 $RM \$dlpath'
17007 shlibpath_overrides_runpath=yes
17009 case $host_os in
17010 cygwin*)
17011 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17012 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17013 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17015 mingw*)
17016 # MinGW DLLs use traditional 'lib' prefix
17017 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17018 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17019 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17020 # It is most probably a Windows format PATH printed by
17021 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17022 # path with ; separators, and with drive letters. We can handle the
17023 # drive letters (cygwin fileutils understands them), so leave them,
17024 # especially as we might pass files found there to a mingw objdump,
17025 # which wouldn't understand a cygwinified path. Ahh.
17026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17027 else
17028 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17031 pw32*)
17032 # pw32 DLLs use 'pw' prefix rather than 'lib'
17033 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17035 esac
17039 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17041 esac
17042 dynamic_linker='Win32 ld.exe'
17043 # FIXME: first we should search . and the directory the executable is in
17044 shlibpath_var=PATH
17047 darwin* | rhapsody*)
17048 dynamic_linker="$host_os dyld"
17049 version_type=darwin
17050 need_lib_prefix=no
17051 need_version=no
17052 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17053 soname_spec='${libname}${release}${major}$shared_ext'
17054 shlibpath_overrides_runpath=yes
17055 shlibpath_var=DYLD_LIBRARY_PATH
17056 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17058 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17059 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17062 dgux*)
17063 version_type=linux
17064 need_lib_prefix=no
17065 need_version=no
17066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17067 soname_spec='${libname}${release}${shared_ext}$major'
17068 shlibpath_var=LD_LIBRARY_PATH
17071 freebsd1*)
17072 dynamic_linker=no
17075 freebsd* | dragonfly*)
17076 # DragonFly does not have aout. When/if they implement a new
17077 # versioning mechanism, adjust this.
17078 if test -x /usr/bin/objformat; then
17079 objformat=`/usr/bin/objformat`
17080 else
17081 case $host_os in
17082 freebsd[123]*) objformat=aout ;;
17083 *) objformat=elf ;;
17084 esac
17086 version_type=freebsd-$objformat
17087 case $version_type in
17088 freebsd-elf*)
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17090 need_version=no
17091 need_lib_prefix=no
17093 freebsd-*)
17094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17095 need_version=yes
17097 esac
17098 shlibpath_var=LD_LIBRARY_PATH
17099 case $host_os in
17100 freebsd2*)
17101 shlibpath_overrides_runpath=yes
17103 freebsd3.[01]* | freebsdelf3.[01]*)
17104 shlibpath_overrides_runpath=yes
17105 hardcode_into_libs=yes
17107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17109 shlibpath_overrides_runpath=no
17110 hardcode_into_libs=yes
17112 *) # from 4.6 on, and DragonFly
17113 shlibpath_overrides_runpath=yes
17114 hardcode_into_libs=yes
17116 esac
17119 gnu*)
17120 version_type=linux
17121 need_lib_prefix=no
17122 need_version=no
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17124 soname_spec='${libname}${release}${shared_ext}$major'
17125 shlibpath_var=LD_LIBRARY_PATH
17126 hardcode_into_libs=yes
17129 hpux9* | hpux10* | hpux11*)
17130 # Give a soname corresponding to the major version so that dld.sl refuses to
17131 # link against other versions.
17132 version_type=sunos
17133 need_lib_prefix=no
17134 need_version=no
17135 case $host_cpu in
17136 ia64*)
17137 shrext_cmds='.so'
17138 hardcode_into_libs=yes
17139 dynamic_linker="$host_os dld.so"
17140 shlibpath_var=LD_LIBRARY_PATH
17141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143 soname_spec='${libname}${release}${shared_ext}$major'
17144 if test "X$HPUX_IA64_MODE" = X32; then
17145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17146 else
17147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17151 hppa*64*)
17152 shrext_cmds='.sl'
17153 hardcode_into_libs=yes
17154 dynamic_linker="$host_os dld.sl"
17155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17163 shrext_cmds='.sl'
17164 dynamic_linker="$host_os dld.sl"
17165 shlibpath_var=SHLIB_PATH
17166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17168 soname_spec='${libname}${release}${shared_ext}$major'
17170 esac
17171 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17172 postinstall_cmds='chmod 555 $lib'
17175 interix[3-9]*)
17176 version_type=linux
17177 need_lib_prefix=no
17178 need_version=no
17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17180 soname_spec='${libname}${release}${shared_ext}$major'
17181 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 shlibpath_overrides_runpath=no
17184 hardcode_into_libs=yes
17187 irix5* | irix6* | nonstopux*)
17188 case $host_os in
17189 nonstopux*) version_type=nonstopux ;;
17191 if test "$lt_cv_prog_gnu_ld" = yes; then
17192 version_type=linux
17193 else
17194 version_type=irix
17195 fi ;;
17196 esac
17197 need_lib_prefix=no
17198 need_version=no
17199 soname_spec='${libname}${release}${shared_ext}$major'
17200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17201 case $host_os in
17202 irix5* | nonstopux*)
17203 libsuff= shlibsuff=
17206 case $LD in # libtool.m4 will add one of these switches to LD
17207 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17208 libsuff= shlibsuff= libmagic=32-bit;;
17209 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17210 libsuff=32 shlibsuff=N32 libmagic=N32;;
17211 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17212 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17213 *) libsuff= shlibsuff= libmagic=never-match;;
17214 esac
17216 esac
17217 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17218 shlibpath_overrides_runpath=no
17219 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17220 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17221 hardcode_into_libs=yes
17224 # No shared lib support for Linux oldld, aout, or coff.
17225 linux*oldld* | linux*aout* | linux*coff*)
17226 dynamic_linker=no
17229 # This must be Linux ELF.
17230 linux* | k*bsd*-gnu)
17231 version_type=linux
17232 need_lib_prefix=no
17233 need_version=no
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17235 soname_spec='${libname}${release}${shared_ext}$major'
17236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17237 shlibpath_var=LD_LIBRARY_PATH
17238 shlibpath_overrides_runpath=no
17239 # Some binutils ld are patched to set DT_RUNPATH
17240 save_LDFLAGS=$LDFLAGS
17241 save_libdir=$libdir
17242 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17243 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17244 cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h. */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17252 main ()
17256 return 0;
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264 esac
17265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17266 $as_echo "$ac_try_echo") >&5
17267 (eval "$ac_link") 2>conftest.er1
17268 ac_status=$?
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
17272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } && {
17274 test -z "$ac_c_werror_flag" ||
17275 test ! -s conftest.err
17276 } && test -s conftest$ac_exeext && {
17277 test "$cross_compiling" = yes ||
17278 $as_test_x conftest$ac_exeext
17279 }; then
17280 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
17281 shlibpath_overrides_runpath=yes
17284 else
17285 $as_echo "$as_me: failed program was:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17291 rm -rf conftest.dSYM
17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293 conftest$ac_exeext conftest.$ac_ext
17294 LDFLAGS=$save_LDFLAGS
17295 libdir=$save_libdir
17297 # This implies no fast_install, which is unacceptable.
17298 # Some rework will be needed to allow for fast_install
17299 # before this can be enabled.
17300 hardcode_into_libs=yes
17302 # Append ld.so.conf contents to the search path
17303 if test -f /etc/ld.so.conf; then
17304 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;/^$/d' | tr '\n' ' '`
17305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17308 # We used to test for /lib/ld.so.1 and disable shared libraries on
17309 # powerpc, because MkLinux only supported shared libraries with the
17310 # GNU dynamic linker. Since this was broken with cross compilers,
17311 # most powerpc-linux boxes support dynamic linking these days and
17312 # people can always --disable-shared, the test was removed, and we
17313 # assume the GNU/Linux dynamic linker is in use.
17314 dynamic_linker='GNU/Linux ld.so'
17317 netbsd*)
17318 version_type=sunos
17319 need_lib_prefix=no
17320 need_version=no
17321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17324 dynamic_linker='NetBSD (a.out) ld.so'
17325 else
17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17327 soname_spec='${libname}${release}${shared_ext}$major'
17328 dynamic_linker='NetBSD ld.elf_so'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 shlibpath_overrides_runpath=yes
17332 hardcode_into_libs=yes
17335 newsos6)
17336 version_type=linux
17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17338 shlibpath_var=LD_LIBRARY_PATH
17339 shlibpath_overrides_runpath=yes
17342 *nto* | *qnx*)
17343 version_type=qnx
17344 need_lib_prefix=no
17345 need_version=no
17346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347 soname_spec='${libname}${release}${shared_ext}$major'
17348 shlibpath_var=LD_LIBRARY_PATH
17349 shlibpath_overrides_runpath=no
17350 hardcode_into_libs=yes
17351 dynamic_linker='ldqnx.so'
17354 openbsd*)
17355 version_type=sunos
17356 sys_lib_dlsearch_path_spec="/usr/lib"
17357 need_lib_prefix=no
17358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17359 case $host_os in
17360 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17361 *) need_version=no ;;
17362 esac
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17367 case $host_os in
17368 openbsd2.[89] | openbsd2.[89].*)
17369 shlibpath_overrides_runpath=no
17372 shlibpath_overrides_runpath=yes
17374 esac
17375 else
17376 shlibpath_overrides_runpath=yes
17380 os2*)
17381 libname_spec='$name'
17382 shrext_cmds=".dll"
17383 need_lib_prefix=no
17384 library_names_spec='$libname${shared_ext} $libname.a'
17385 dynamic_linker='OS/2 ld.exe'
17386 shlibpath_var=LIBPATH
17389 osf3* | osf4* | osf5*)
17390 version_type=osf
17391 need_lib_prefix=no
17392 need_version=no
17393 soname_spec='${libname}${release}${shared_ext}$major'
17394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17395 shlibpath_var=LD_LIBRARY_PATH
17396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17400 rdos*)
17401 dynamic_linker=no
17404 solaris*)
17405 version_type=linux
17406 need_lib_prefix=no
17407 need_version=no
17408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17409 soname_spec='${libname}${release}${shared_ext}$major'
17410 shlibpath_var=LD_LIBRARY_PATH
17411 shlibpath_overrides_runpath=yes
17412 hardcode_into_libs=yes
17413 # ldd complains unless libraries are executable
17414 postinstall_cmds='chmod +x $lib'
17417 sunos4*)
17418 version_type=sunos
17419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath=yes
17423 if test "$with_gnu_ld" = yes; then
17424 need_lib_prefix=no
17426 need_version=yes
17429 sysv4 | sysv4.3*)
17430 version_type=linux
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 case $host_vendor in
17435 sni)
17436 shlibpath_overrides_runpath=no
17437 need_lib_prefix=no
17438 runpath_var=LD_RUN_PATH
17440 siemens)
17441 need_lib_prefix=no
17443 motorola)
17444 need_lib_prefix=no
17445 need_version=no
17446 shlibpath_overrides_runpath=no
17447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17449 esac
17452 sysv4*MP*)
17453 if test -d /usr/nec ;then
17454 version_type=linux
17455 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17456 soname_spec='$libname${shared_ext}.$major'
17457 shlibpath_var=LD_LIBRARY_PATH
17461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17462 version_type=freebsd-elf
17463 need_lib_prefix=no
17464 need_version=no
17465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17466 soname_spec='${libname}${release}${shared_ext}$major'
17467 shlibpath_var=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath=yes
17469 hardcode_into_libs=yes
17470 if test "$with_gnu_ld" = yes; then
17471 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17472 else
17473 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17474 case $host_os in
17475 sco3.2v5*)
17476 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17478 esac
17480 sys_lib_dlsearch_path_spec='/usr/lib'
17483 tpf*)
17484 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17485 version_type=linux
17486 need_lib_prefix=no
17487 need_version=no
17488 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 shlibpath_overrides_runpath=no
17491 hardcode_into_libs=yes
17494 uts4*)
17495 version_type=linux
17496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17497 soname_spec='${libname}${release}${shared_ext}$major'
17498 shlibpath_var=LD_LIBRARY_PATH
17502 dynamic_linker=no
17504 esac
17505 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17506 $as_echo "$dynamic_linker" >&6; }
17507 test "$dynamic_linker" = no && can_build_shared=no
17509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17510 if test "$GCC" = yes; then
17511 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17514 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17515 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17517 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17518 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17607 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17608 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17609 hardcode_action=
17610 if test -n "$hardcode_libdir_flag_spec" ||
17611 test -n "$runpath_var" ||
17612 test "X$hardcode_automatic" = "Xyes" ; then
17614 # We can hardcode non-existent directories.
17615 if test "$hardcode_direct" != no &&
17616 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17617 # have to relink, otherwise we might link with an installed library
17618 # when we should be linking with a yet-to-be-installed one
17619 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17620 test "$hardcode_minus_L" != no; then
17621 # Linking always hardcodes the temporary library directory.
17622 hardcode_action=relink
17623 else
17624 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17625 hardcode_action=immediate
17627 else
17628 # We cannot hardcode anything, or else we can only hardcode existing
17629 # directories.
17630 hardcode_action=unsupported
17632 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
17633 $as_echo "$hardcode_action" >&6; }
17635 if test "$hardcode_action" = relink ||
17636 test "$inherit_rpath" = yes; then
17637 # Fast installation is not supported
17638 enable_fast_install=no
17639 elif test "$shlibpath_overrides_runpath" = yes ||
17640 test "$enable_shared" = no; then
17641 # Fast installation is not necessary
17642 enable_fast_install=needless
17650 if test "x$enable_dlopen" != xyes; then
17651 enable_dlopen=unknown
17652 enable_dlopen_self=unknown
17653 enable_dlopen_self_static=unknown
17654 else
17655 lt_cv_dlopen=no
17656 lt_cv_dlopen_libs=
17658 case $host_os in
17659 beos*)
17660 lt_cv_dlopen="load_add_on"
17661 lt_cv_dlopen_libs=
17662 lt_cv_dlopen_self=yes
17665 mingw* | pw32*)
17666 lt_cv_dlopen="LoadLibrary"
17667 lt_cv_dlopen_libs=
17670 cygwin*)
17671 lt_cv_dlopen="dlopen"
17672 lt_cv_dlopen_libs=
17675 darwin*)
17676 # if libdl is installed we need to link against it
17677 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17678 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17680 $as_echo_n "(cached) " >&6
17681 else
17682 ac_check_lib_save_LIBS=$LIBS
17683 LIBS="-ldl $LIBS"
17684 cat >conftest.$ac_ext <<_ACEOF
17685 /* confdefs.h. */
17686 _ACEOF
17687 cat confdefs.h >>conftest.$ac_ext
17688 cat >>conftest.$ac_ext <<_ACEOF
17689 /* end confdefs.h. */
17691 /* Override any GCC internal prototype to avoid an error.
17692 Use char because int might match the return type of a GCC
17693 builtin and then its argument prototype would still apply. */
17694 #ifdef __cplusplus
17695 extern "C"
17696 #endif
17697 char dlopen ();
17699 main ()
17701 return dlopen ();
17703 return 0;
17705 _ACEOF
17706 rm -f conftest.$ac_objext conftest$ac_exeext
17707 if { (ac_try="$ac_link"
17708 case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17711 esac
17712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17713 $as_echo "$ac_try_echo") >&5
17714 (eval "$ac_link") 2>conftest.er1
17715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } && {
17721 test -z "$ac_c_werror_flag" ||
17722 test ! -s conftest.err
17723 } && test -s conftest$ac_exeext && {
17724 test "$cross_compiling" = yes ||
17725 $as_test_x conftest$ac_exeext
17726 }; then
17727 ac_cv_lib_dl_dlopen=yes
17728 else
17729 $as_echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_lib_dl_dlopen=no
17735 rm -rf conftest.dSYM
17736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17737 conftest$ac_exeext conftest.$ac_ext
17738 LIBS=$ac_check_lib_save_LIBS
17740 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17741 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17742 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
17743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17744 else
17746 lt_cv_dlopen="dyld"
17747 lt_cv_dlopen_libs=
17748 lt_cv_dlopen_self=yes
17755 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
17756 $as_echo_n "checking for shl_load... " >&6; }
17757 if test "${ac_cv_func_shl_load+set}" = set; then
17758 $as_echo_n "(cached) " >&6
17759 else
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17768 #define shl_load innocuous_shl_load
17770 /* System header to define __stub macros and hopefully few prototypes,
17771 which can conflict with char shl_load (); below.
17772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17773 <limits.h> exists even on freestanding compilers. */
17775 #ifdef __STDC__
17776 # include <limits.h>
17777 #else
17778 # include <assert.h>
17779 #endif
17781 #undef shl_load
17783 /* Override any GCC internal prototype to avoid an error.
17784 Use char because int might match the return type of a GCC
17785 builtin and then its argument prototype would still apply. */
17786 #ifdef __cplusplus
17787 extern "C"
17788 #endif
17789 char shl_load ();
17790 /* The GNU C library defines this for functions which it implements
17791 to always fail with ENOSYS. Some functions are actually named
17792 something starting with __ and the normal name is an alias. */
17793 #if defined __stub_shl_load || defined __stub___shl_load
17794 choke me
17795 #endif
17798 main ()
17800 return shl_load ();
17802 return 0;
17804 _ACEOF
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (ac_try="$ac_link"
17807 case "(($ac_try" in
17808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809 *) ac_try_echo=$ac_try;;
17810 esac
17811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17812 $as_echo "$ac_try_echo") >&5
17813 (eval "$ac_link") 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } && {
17820 test -z "$ac_c_werror_flag" ||
17821 test ! -s conftest.err
17822 } && test -s conftest$ac_exeext && {
17823 test "$cross_compiling" = yes ||
17824 $as_test_x conftest$ac_exeext
17825 }; then
17826 ac_cv_func_shl_load=yes
17827 else
17828 $as_echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17831 ac_cv_func_shl_load=no
17834 rm -rf conftest.dSYM
17835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17836 conftest$ac_exeext conftest.$ac_ext
17838 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17839 $as_echo "$ac_cv_func_shl_load" >&6; }
17840 if test "x$ac_cv_func_shl_load" = x""yes; then
17841 lt_cv_dlopen="shl_load"
17842 else
17843 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17844 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17845 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17846 $as_echo_n "(cached) " >&6
17847 else
17848 ac_check_lib_save_LIBS=$LIBS
17849 LIBS="-ldld $LIBS"
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h. */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17857 /* Override any GCC internal prototype to avoid an error.
17858 Use char because int might match the return type of a GCC
17859 builtin and then its argument prototype would still apply. */
17860 #ifdef __cplusplus
17861 extern "C"
17862 #endif
17863 char shl_load ();
17865 main ()
17867 return shl_load ();
17869 return 0;
17871 _ACEOF
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17877 esac
17878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17879 $as_echo "$ac_try_echo") >&5
17880 (eval "$ac_link") 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && {
17887 test -z "$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17889 } && test -s conftest$ac_exeext && {
17890 test "$cross_compiling" = yes ||
17891 $as_test_x conftest$ac_exeext
17892 }; then
17893 ac_cv_lib_dld_shl_load=yes
17894 else
17895 $as_echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 ac_cv_lib_dld_shl_load=no
17901 rm -rf conftest.dSYM
17902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17903 conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17906 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17907 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17908 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
17909 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17910 else
17911 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
17912 $as_echo_n "checking for dlopen... " >&6; }
17913 if test "${ac_cv_func_dlopen+set}" = set; then
17914 $as_echo_n "(cached) " >&6
17915 else
17916 cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h. */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17922 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17924 #define dlopen innocuous_dlopen
17926 /* System header to define __stub macros and hopefully few prototypes,
17927 which can conflict with char dlopen (); below.
17928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17929 <limits.h> exists even on freestanding compilers. */
17931 #ifdef __STDC__
17932 # include <limits.h>
17933 #else
17934 # include <assert.h>
17935 #endif
17937 #undef dlopen
17939 /* Override any GCC internal prototype to avoid an error.
17940 Use char because int might match the return type of a GCC
17941 builtin and then its argument prototype would still apply. */
17942 #ifdef __cplusplus
17943 extern "C"
17944 #endif
17945 char dlopen ();
17946 /* The GNU C library defines this for functions which it implements
17947 to always fail with ENOSYS. Some functions are actually named
17948 something starting with __ and the normal name is an alias. */
17949 #if defined __stub_dlopen || defined __stub___dlopen
17950 choke me
17951 #endif
17954 main ()
17956 return dlopen ();
17958 return 0;
17960 _ACEOF
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (ac_try="$ac_link"
17963 case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17966 esac
17967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17968 $as_echo "$ac_try_echo") >&5
17969 (eval "$ac_link") 2>conftest.er1
17970 ac_status=$?
17971 grep -v '^ *+' conftest.er1 >conftest.err
17972 rm -f conftest.er1
17973 cat conftest.err >&5
17974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); } && {
17976 test -z "$ac_c_werror_flag" ||
17977 test ! -s conftest.err
17978 } && test -s conftest$ac_exeext && {
17979 test "$cross_compiling" = yes ||
17980 $as_test_x conftest$ac_exeext
17981 }; then
17982 ac_cv_func_dlopen=yes
17983 else
17984 $as_echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.$ac_ext >&5
17987 ac_cv_func_dlopen=no
17990 rm -rf conftest.dSYM
17991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17992 conftest$ac_exeext conftest.$ac_ext
17994 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17995 $as_echo "$ac_cv_func_dlopen" >&6; }
17996 if test "x$ac_cv_func_dlopen" = x""yes; then
17997 lt_cv_dlopen="dlopen"
17998 else
17999 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18001 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18002 $as_echo_n "(cached) " >&6
18003 else
18004 ac_check_lib_save_LIBS=$LIBS
18005 LIBS="-ldl $LIBS"
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h. */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18013 /* Override any GCC internal prototype to avoid an error.
18014 Use char because int might match the return type of a GCC
18015 builtin and then its argument prototype would still apply. */
18016 #ifdef __cplusplus
18017 extern "C"
18018 #endif
18019 char dlopen ();
18021 main ()
18023 return dlopen ();
18025 return 0;
18027 _ACEOF
18028 rm -f conftest.$ac_objext conftest$ac_exeext
18029 if { (ac_try="$ac_link"
18030 case "(($ac_try" in
18031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18032 *) ac_try_echo=$ac_try;;
18033 esac
18034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18035 $as_echo "$ac_try_echo") >&5
18036 (eval "$ac_link") 2>conftest.er1
18037 ac_status=$?
18038 grep -v '^ *+' conftest.er1 >conftest.err
18039 rm -f conftest.er1
18040 cat conftest.err >&5
18041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } && {
18043 test -z "$ac_c_werror_flag" ||
18044 test ! -s conftest.err
18045 } && test -s conftest$ac_exeext && {
18046 test "$cross_compiling" = yes ||
18047 $as_test_x conftest$ac_exeext
18048 }; then
18049 ac_cv_lib_dl_dlopen=yes
18050 else
18051 $as_echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 ac_cv_lib_dl_dlopen=no
18057 rm -rf conftest.dSYM
18058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18059 conftest$ac_exeext conftest.$ac_ext
18060 LIBS=$ac_check_lib_save_LIBS
18062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18063 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18064 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
18065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18066 else
18067 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18068 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18069 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18070 $as_echo_n "(cached) " >&6
18071 else
18072 ac_check_lib_save_LIBS=$LIBS
18073 LIBS="-lsvld $LIBS"
18074 cat >conftest.$ac_ext <<_ACEOF
18075 /* confdefs.h. */
18076 _ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18081 /* Override any GCC internal prototype to avoid an error.
18082 Use char because int might match the return type of a GCC
18083 builtin and then its argument prototype would still apply. */
18084 #ifdef __cplusplus
18085 extern "C"
18086 #endif
18087 char dlopen ();
18089 main ()
18091 return dlopen ();
18093 return 0;
18095 _ACEOF
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (ac_try="$ac_link"
18098 case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18101 esac
18102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18103 $as_echo "$ac_try_echo") >&5
18104 (eval "$ac_link") 2>conftest.er1
18105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } && {
18111 test -z "$ac_c_werror_flag" ||
18112 test ! -s conftest.err
18113 } && test -s conftest$ac_exeext && {
18114 test "$cross_compiling" = yes ||
18115 $as_test_x conftest$ac_exeext
18116 }; then
18117 ac_cv_lib_svld_dlopen=yes
18118 else
18119 $as_echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18122 ac_cv_lib_svld_dlopen=no
18125 rm -rf conftest.dSYM
18126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18127 conftest$ac_exeext conftest.$ac_ext
18128 LIBS=$ac_check_lib_save_LIBS
18130 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18131 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18132 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
18133 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18134 else
18135 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18136 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18137 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18138 $as_echo_n "(cached) " >&6
18139 else
18140 ac_check_lib_save_LIBS=$LIBS
18141 LIBS="-ldld $LIBS"
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h. */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18149 /* Override any GCC internal prototype to avoid an error.
18150 Use char because int might match the return type of a GCC
18151 builtin and then its argument prototype would still apply. */
18152 #ifdef __cplusplus
18153 extern "C"
18154 #endif
18155 char dld_link ();
18157 main ()
18159 return dld_link ();
18161 return 0;
18163 _ACEOF
18164 rm -f conftest.$ac_objext conftest$ac_exeext
18165 if { (ac_try="$ac_link"
18166 case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169 esac
18170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18171 $as_echo "$ac_try_echo") >&5
18172 (eval "$ac_link") 2>conftest.er1
18173 ac_status=$?
18174 grep -v '^ *+' conftest.er1 >conftest.err
18175 rm -f conftest.er1
18176 cat conftest.err >&5
18177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } && {
18179 test -z "$ac_c_werror_flag" ||
18180 test ! -s conftest.err
18181 } && test -s conftest$ac_exeext && {
18182 test "$cross_compiling" = yes ||
18183 $as_test_x conftest$ac_exeext
18184 }; then
18185 ac_cv_lib_dld_dld_link=yes
18186 else
18187 $as_echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 ac_cv_lib_dld_dld_link=no
18193 rm -rf conftest.dSYM
18194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18195 conftest$ac_exeext conftest.$ac_ext
18196 LIBS=$ac_check_lib_save_LIBS
18198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18199 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18200 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
18201 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18220 esac
18222 if test "x$lt_cv_dlopen" != xno; then
18223 enable_dlopen=yes
18224 else
18225 enable_dlopen=no
18228 case $lt_cv_dlopen in
18229 dlopen)
18230 save_CPPFLAGS="$CPPFLAGS"
18231 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18233 save_LDFLAGS="$LDFLAGS"
18234 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18236 save_LIBS="$LIBS"
18237 LIBS="$lt_cv_dlopen_libs $LIBS"
18239 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18240 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18241 if test "${lt_cv_dlopen_self+set}" = set; then
18242 $as_echo_n "(cached) " >&6
18243 else
18244 if test "$cross_compiling" = yes; then :
18245 lt_cv_dlopen_self=cross
18246 else
18247 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18248 lt_status=$lt_dlunknown
18249 cat > conftest.$ac_ext <<_LT_EOF
18250 #line 18250 "configure"
18251 #include "confdefs.h"
18253 #if HAVE_DLFCN_H
18254 #include <dlfcn.h>
18255 #endif
18257 #include <stdio.h>
18259 #ifdef RTLD_GLOBAL
18260 # define LT_DLGLOBAL RTLD_GLOBAL
18261 #else
18262 # ifdef DL_GLOBAL
18263 # define LT_DLGLOBAL DL_GLOBAL
18264 # else
18265 # define LT_DLGLOBAL 0
18266 # endif
18267 #endif
18269 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18270 find out it does not work in some platform. */
18271 #ifndef LT_DLLAZY_OR_NOW
18272 # ifdef RTLD_LAZY
18273 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18274 # else
18275 # ifdef DL_LAZY
18276 # define LT_DLLAZY_OR_NOW DL_LAZY
18277 # else
18278 # ifdef RTLD_NOW
18279 # define LT_DLLAZY_OR_NOW RTLD_NOW
18280 # else
18281 # ifdef DL_NOW
18282 # define LT_DLLAZY_OR_NOW DL_NOW
18283 # else
18284 # define LT_DLLAZY_OR_NOW 0
18285 # endif
18286 # endif
18287 # endif
18288 # endif
18289 #endif
18291 #ifdef __cplusplus
18292 extern "C" void exit (int);
18293 #endif
18295 void fnord() { int i=42;}
18296 int main ()
18298 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18299 int status = $lt_dlunknown;
18301 if (self)
18303 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18304 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18305 /* dlclose (self); */
18307 else
18308 puts (dlerror ());
18310 exit (status);
18312 _LT_EOF
18313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18314 (eval $ac_link) 2>&5
18315 ac_status=$?
18316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18318 (./conftest; exit; ) >&5 2>/dev/null
18319 lt_status=$?
18320 case x$lt_status in
18321 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18322 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18323 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18324 esac
18325 else :
18326 # compilation failed
18327 lt_cv_dlopen_self=no
18330 rm -fr conftest*
18334 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18335 $as_echo "$lt_cv_dlopen_self" >&6; }
18337 if test "x$lt_cv_dlopen_self" = xyes; then
18338 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18339 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18340 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18341 if test "${lt_cv_dlopen_self_static+set}" = set; then
18342 $as_echo_n "(cached) " >&6
18343 else
18344 if test "$cross_compiling" = yes; then :
18345 lt_cv_dlopen_self_static=cross
18346 else
18347 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18348 lt_status=$lt_dlunknown
18349 cat > conftest.$ac_ext <<_LT_EOF
18350 #line 18350 "configure"
18351 #include "confdefs.h"
18353 #if HAVE_DLFCN_H
18354 #include <dlfcn.h>
18355 #endif
18357 #include <stdio.h>
18359 #ifdef RTLD_GLOBAL
18360 # define LT_DLGLOBAL RTLD_GLOBAL
18361 #else
18362 # ifdef DL_GLOBAL
18363 # define LT_DLGLOBAL DL_GLOBAL
18364 # else
18365 # define LT_DLGLOBAL 0
18366 # endif
18367 #endif
18369 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18370 find out it does not work in some platform. */
18371 #ifndef LT_DLLAZY_OR_NOW
18372 # ifdef RTLD_LAZY
18373 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18374 # else
18375 # ifdef DL_LAZY
18376 # define LT_DLLAZY_OR_NOW DL_LAZY
18377 # else
18378 # ifdef RTLD_NOW
18379 # define LT_DLLAZY_OR_NOW RTLD_NOW
18380 # else
18381 # ifdef DL_NOW
18382 # define LT_DLLAZY_OR_NOW DL_NOW
18383 # else
18384 # define LT_DLLAZY_OR_NOW 0
18385 # endif
18386 # endif
18387 # endif
18388 # endif
18389 #endif
18391 #ifdef __cplusplus
18392 extern "C" void exit (int);
18393 #endif
18395 void fnord() { int i=42;}
18396 int main ()
18398 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18399 int status = $lt_dlunknown;
18401 if (self)
18403 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18404 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18405 /* dlclose (self); */
18407 else
18408 puts (dlerror ());
18410 exit (status);
18412 _LT_EOF
18413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18414 (eval $ac_link) 2>&5
18415 ac_status=$?
18416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18418 (./conftest; exit; ) >&5 2>/dev/null
18419 lt_status=$?
18420 case x$lt_status in
18421 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18422 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18423 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18424 esac
18425 else :
18426 # compilation failed
18427 lt_cv_dlopen_self_static=no
18430 rm -fr conftest*
18434 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18435 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18438 CPPFLAGS="$save_CPPFLAGS"
18439 LDFLAGS="$save_LDFLAGS"
18440 LIBS="$save_LIBS"
18442 esac
18444 case $lt_cv_dlopen_self in
18445 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18446 *) enable_dlopen_self=unknown ;;
18447 esac
18449 case $lt_cv_dlopen_self_static in
18450 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18451 *) enable_dlopen_self_static=unknown ;;
18452 esac
18471 striplib=
18472 old_striplib=
18473 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18474 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18475 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18476 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18477 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18478 { $as_echo "$as_me:$LINENO: result: yes" >&5
18479 $as_echo "yes" >&6; }
18480 else
18481 # FIXME - insert some real tests, host_os isn't really good enough
18482 case $host_os in
18483 darwin*)
18484 if test -n "$STRIP" ; then
18485 striplib="$STRIP -x"
18486 old_striplib="$STRIP -S"
18487 { $as_echo "$as_me:$LINENO: result: yes" >&5
18488 $as_echo "yes" >&6; }
18489 else
18490 { $as_echo "$as_me:$LINENO: result: no" >&5
18491 $as_echo "no" >&6; }
18495 { $as_echo "$as_me:$LINENO: result: no" >&5
18496 $as_echo "no" >&6; }
18498 esac
18512 # Report which library types will actually be built
18513 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18514 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18515 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
18516 $as_echo "$can_build_shared" >&6; }
18518 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18519 $as_echo_n "checking whether to build shared libraries... " >&6; }
18520 test "$can_build_shared" = "no" && enable_shared=no
18522 # On AIX, shared libraries and static libraries use the same namespace, and
18523 # are all built from PIC.
18524 case $host_os in
18525 aix3*)
18526 test "$enable_shared" = yes && enable_static=no
18527 if test -n "$RANLIB"; then
18528 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18529 postinstall_cmds='$RANLIB $lib'
18533 aix[4-9]*)
18534 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18535 test "$enable_shared" = yes && enable_static=no
18538 esac
18539 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
18540 $as_echo "$enable_shared" >&6; }
18542 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18543 $as_echo_n "checking whether to build static libraries... " >&6; }
18544 # Make sure either enable_shared or enable_static is yes.
18545 test "$enable_shared" = yes || enable_static=yes
18546 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
18547 $as_echo "$enable_static" >&6; }
18553 ac_ext=c
18554 ac_cpp='$CPP $CPPFLAGS'
18555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18559 CC="$lt_save_CC"
18562 ac_ext=cpp
18563 ac_cpp='$CXXCPP $CPPFLAGS'
18564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18568 archive_cmds_need_lc_CXX=no
18569 allow_undefined_flag_CXX=
18570 always_export_symbols_CXX=no
18571 archive_expsym_cmds_CXX=
18572 compiler_needs_object_CXX=no
18573 export_dynamic_flag_spec_CXX=
18574 hardcode_direct_CXX=no
18575 hardcode_direct_absolute_CXX=no
18576 hardcode_libdir_flag_spec_CXX=
18577 hardcode_libdir_flag_spec_ld_CXX=
18578 hardcode_libdir_separator_CXX=
18579 hardcode_minus_L_CXX=no
18580 hardcode_shlibpath_var_CXX=unsupported
18581 hardcode_automatic_CXX=no
18582 inherit_rpath_CXX=no
18583 module_cmds_CXX=
18584 module_expsym_cmds_CXX=
18585 link_all_deplibs_CXX=unknown
18586 old_archive_cmds_CXX=$old_archive_cmds
18587 no_undefined_flag_CXX=
18588 whole_archive_flag_spec_CXX=
18589 enable_shared_with_static_runtimes_CXX=no
18591 # Source file extension for C++ test sources.
18592 ac_ext=cpp
18594 # Object file extension for compiled C++ test sources.
18595 objext=o
18596 objext_CXX=$objext
18598 # No sense in running all these tests if we already determined that
18599 # the CXX compiler isn't working. Some variables (like enable_shared)
18600 # are currently assumed to apply to all compilers on this platform,
18601 # and will be corrupted by setting them based on a non-working compiler.
18602 if test "$_lt_caught_CXX_error" != yes; then
18603 # Code to be used in simple compile tests
18604 lt_simple_compile_test_code="int some_variable = 0;"
18606 # Code to be used in simple link tests
18607 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18609 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18616 # If no C compiler was specified, use CC.
18617 LTCC=${LTCC-"$CC"}
18619 # If no C compiler flags were specified, use CFLAGS.
18620 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18622 # Allow CC to be a program name with arguments.
18623 compiler=$CC
18626 # save warnings/boilerplate of simple test code
18627 ac_outfile=conftest.$ac_objext
18628 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18630 _lt_compiler_boilerplate=`cat conftest.err`
18631 $RM conftest*
18633 ac_outfile=conftest.$ac_objext
18634 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18636 _lt_linker_boilerplate=`cat conftest.err`
18637 $RM -r conftest*
18640 # Allow CC to be a program name with arguments.
18641 lt_save_CC=$CC
18642 lt_save_LD=$LD
18643 lt_save_GCC=$GCC
18644 GCC=$GXX
18645 lt_save_with_gnu_ld=$with_gnu_ld
18646 lt_save_path_LD=$lt_cv_path_LD
18647 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18648 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18649 else
18650 $as_unset lt_cv_prog_gnu_ld
18652 if test -n "${lt_cv_path_LDCXX+set}"; then
18653 lt_cv_path_LD=$lt_cv_path_LDCXX
18654 else
18655 $as_unset lt_cv_path_LD
18657 test -z "${LDCXX+set}" || LD=$LDCXX
18658 CC=${CXX-"c++"}
18659 compiler=$CC
18660 compiler_CXX=$CC
18661 for cc_temp in $compiler""; do
18662 case $cc_temp in
18663 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18664 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18665 \-*) ;;
18666 *) break;;
18667 esac
18668 done
18669 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18672 if test -n "$compiler"; then
18673 # We don't want -fno-exception when compiling C++ code, so set the
18674 # no_builtin_flag separately
18675 if test "$GXX" = yes; then
18676 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18677 else
18678 lt_prog_compiler_no_builtin_flag_CXX=
18681 if test "$GXX" = yes; then
18682 # Set up default GNU C++ configuration
18686 # Check whether --with-gnu-ld was given.
18687 if test "${with_gnu_ld+set}" = set; then
18688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18689 else
18690 with_gnu_ld=no
18693 ac_prog=ld
18694 if test "$GCC" = yes; then
18695 # Check if gcc -print-prog-name=ld gives a path.
18696 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18697 $as_echo_n "checking for ld used by $CC... " >&6; }
18698 case $host in
18699 *-*-mingw*)
18700 # gcc leaves a trailing carriage return which upsets mingw
18701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18704 esac
18705 case $ac_prog in
18706 # Accept absolute paths.
18707 [\\/]* | ?:[\\/]*)
18708 re_direlt='/[^/][^/]*/\.\./'
18709 # Canonicalize the pathname of ld
18710 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18711 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18712 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18713 done
18714 test -z "$LD" && LD="$ac_prog"
18717 # If it fails, then pretend we aren't using GCC.
18718 ac_prog=ld
18721 # If it is relative, then search for the first ld in PATH.
18722 with_gnu_ld=unknown
18724 esac
18725 elif test "$with_gnu_ld" = yes; then
18726 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
18727 $as_echo_n "checking for GNU ld... " >&6; }
18728 else
18729 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18730 $as_echo_n "checking for non-GNU ld... " >&6; }
18732 if test "${lt_cv_path_LD+set}" = set; then
18733 $as_echo_n "(cached) " >&6
18734 else
18735 if test -z "$LD"; then
18736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18737 for ac_dir in $PATH; do
18738 IFS="$lt_save_ifs"
18739 test -z "$ac_dir" && ac_dir=.
18740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18741 lt_cv_path_LD="$ac_dir/$ac_prog"
18742 # Check to see if the program is GNU ld. I'd rather use --version,
18743 # but apparently some variants of GNU ld only accept -v.
18744 # Break only if it was the GNU/non-GNU ld that we prefer.
18745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18746 *GNU* | *'with BFD'*)
18747 test "$with_gnu_ld" != no && break
18750 test "$with_gnu_ld" != yes && break
18752 esac
18754 done
18755 IFS="$lt_save_ifs"
18756 else
18757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18761 LD="$lt_cv_path_LD"
18762 if test -n "$LD"; then
18763 { $as_echo "$as_me:$LINENO: result: $LD" >&5
18764 $as_echo "$LD" >&6; }
18765 else
18766 { $as_echo "$as_me:$LINENO: result: no" >&5
18767 $as_echo "no" >&6; }
18769 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18770 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18771 { (exit 1); exit 1; }; }
18772 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18773 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18774 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18775 $as_echo_n "(cached) " >&6
18776 else
18777 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18778 case `$LD -v 2>&1 </dev/null` in
18779 *GNU* | *'with BFD'*)
18780 lt_cv_prog_gnu_ld=yes
18783 lt_cv_prog_gnu_ld=no
18785 esac
18787 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18788 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18789 with_gnu_ld=$lt_cv_prog_gnu_ld
18797 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18798 # archiving commands below assume that GNU ld is being used.
18799 if test "$with_gnu_ld" = yes; then
18800 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18801 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18803 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18806 # If archive_cmds runs LD, not CC, wlarc should be empty
18807 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18808 # investigate it a little bit more. (MM)
18809 wlarc='${wl}'
18811 # ancient GNU ld didn't support --whole-archive et. al.
18812 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18813 $GREP 'no-whole-archive' > /dev/null; then
18814 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18815 else
18816 whole_archive_flag_spec_CXX=
18818 else
18819 with_gnu_ld=no
18820 wlarc=
18822 # A generic and very simple default shared library creation
18823 # command for GNU C++ for the case where it uses the native
18824 # linker, instead of GNU ld. If possible, this setting should
18825 # overridden to take advantage of the native linker features on
18826 # the platform it is being used on.
18827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18830 # Commands to make compiler produce verbose output that lists
18831 # what "hidden" libraries, object files and flags are used when
18832 # linking a shared library.
18833 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18835 else
18836 GXX=no
18837 with_gnu_ld=no
18838 wlarc=
18841 # PORTME: fill in a description of your system's C++ link characteristics
18842 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18843 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18844 ld_shlibs_CXX=yes
18845 case $host_os in
18846 aix3*)
18847 # FIXME: insert proper C++ library support
18848 ld_shlibs_CXX=no
18850 aix[4-9]*)
18851 if test "$host_cpu" = ia64; then
18852 # On IA64, the linker does run time linking by default, so we don't
18853 # have to do anything special.
18854 aix_use_runtimelinking=no
18855 exp_sym_flag='-Bexport'
18856 no_entry_flag=""
18857 else
18858 aix_use_runtimelinking=no
18860 # Test if we are trying to use run time linking or normal
18861 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18862 # need to do runtime linking.
18863 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18864 for ld_flag in $LDFLAGS; do
18865 case $ld_flag in
18866 *-brtl*)
18867 aix_use_runtimelinking=yes
18868 break
18870 esac
18871 done
18873 esac
18875 exp_sym_flag='-bexport'
18876 no_entry_flag='-bnoentry'
18879 # When large executables or shared objects are built, AIX ld can
18880 # have problems creating the table of contents. If linking a library
18881 # or program results in "error TOC overflow" add -mminimal-toc to
18882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18885 archive_cmds_CXX=''
18886 hardcode_direct_CXX=yes
18887 hardcode_direct_absolute_CXX=yes
18888 hardcode_libdir_separator_CXX=':'
18889 link_all_deplibs_CXX=yes
18890 file_list_spec_CXX='${wl}-f,'
18892 if test "$GXX" = yes; then
18893 case $host_os in aix4.[012]|aix4.[012].*)
18894 # We only want to do this on AIX 4.2 and lower, the check
18895 # below for broken collect2 doesn't work under 4.3+
18896 collect2name=`${CC} -print-prog-name=collect2`
18897 if test -f "$collect2name" &&
18898 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18899 then
18900 # We have reworked collect2
18902 else
18903 # We have old collect2
18904 hardcode_direct_CXX=unsupported
18905 # It fails to find uninstalled libraries when the uninstalled
18906 # path is not listed in the libpath. Setting hardcode_minus_L
18907 # to unsupported forces relinking
18908 hardcode_minus_L_CXX=yes
18909 hardcode_libdir_flag_spec_CXX='-L$libdir'
18910 hardcode_libdir_separator_CXX=
18912 esac
18913 shared_flag='-shared'
18914 if test "$aix_use_runtimelinking" = yes; then
18915 shared_flag="$shared_flag "'${wl}-G'
18917 else
18918 # not using gcc
18919 if test "$host_cpu" = ia64; then
18920 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18921 # chokes on -Wl,-G. The following line is correct:
18922 shared_flag='-G'
18923 else
18924 if test "$aix_use_runtimelinking" = yes; then
18925 shared_flag='${wl}-G'
18926 else
18927 shared_flag='${wl}-bM:SRE'
18932 # It seems that -bexpall does not export symbols beginning with
18933 # underscore (_), so it is better to generate a list of symbols to
18934 # export.
18935 always_export_symbols_CXX=yes
18936 if test "$aix_use_runtimelinking" = yes; then
18937 # Warning - without using the other runtime loading flags (-brtl),
18938 # -berok will link without error, but may produce a broken library.
18939 allow_undefined_flag_CXX='-berok'
18940 # Determine the default libpath from the value encoded in an empty
18941 # executable.
18942 cat >conftest.$ac_ext <<_ACEOF
18943 /* confdefs.h. */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18950 main ()
18954 return 0;
18956 _ACEOF
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (ac_try="$ac_link"
18959 case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18962 esac
18963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18964 $as_echo "$ac_try_echo") >&5
18965 (eval "$ac_link") 2>conftest.er1
18966 ac_status=$?
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
18970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } && {
18972 test -z "$ac_cxx_werror_flag" ||
18973 test ! -s conftest.err
18974 } && test -s conftest$ac_exeext && {
18975 test "$cross_compiling" = yes ||
18976 $as_test_x conftest$ac_exeext
18977 }; then
18979 lt_aix_libpath_sed='
18980 /Import File Strings/,/^$/ {
18981 /^0/ {
18982 s/^0 *\(.*\)$/\1/
18986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18987 # Check for a 64-bit object if we didn't find anything.
18988 if test -z "$aix_libpath"; then
18989 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18991 else
18992 $as_echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18998 rm -rf conftest.dSYM
18999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19000 conftest$ac_exeext conftest.$ac_ext
19001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19003 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19005 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19006 else
19007 if test "$host_cpu" = ia64; then
19008 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19009 allow_undefined_flag_CXX="-z nodefs"
19010 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19011 else
19012 # Determine the default libpath from the value encoded in an
19013 # empty executable.
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19022 main ()
19026 return 0;
19028 _ACEOF
19029 rm -f conftest.$ac_objext conftest$ac_exeext
19030 if { (ac_try="$ac_link"
19031 case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19034 esac
19035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19036 $as_echo "$ac_try_echo") >&5
19037 (eval "$ac_link") 2>conftest.er1
19038 ac_status=$?
19039 grep -v '^ *+' conftest.er1 >conftest.err
19040 rm -f conftest.er1
19041 cat conftest.err >&5
19042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } && {
19044 test -z "$ac_cxx_werror_flag" ||
19045 test ! -s conftest.err
19046 } && test -s conftest$ac_exeext && {
19047 test "$cross_compiling" = yes ||
19048 $as_test_x conftest$ac_exeext
19049 }; then
19051 lt_aix_libpath_sed='
19052 /Import File Strings/,/^$/ {
19053 /^0/ {
19054 s/^0 *\(.*\)$/\1/
19058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19059 # Check for a 64-bit object if we didn't find anything.
19060 if test -z "$aix_libpath"; then
19061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19063 else
19064 $as_echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19070 rm -rf conftest.dSYM
19071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072 conftest$ac_exeext conftest.$ac_ext
19073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19075 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19076 # Warning - without using the other run time loading flags,
19077 # -berok will link without error, but may produce a broken library.
19078 no_undefined_flag_CXX=' ${wl}-bernotok'
19079 allow_undefined_flag_CXX=' ${wl}-berok'
19080 # Exported symbols can be pulled into shared objects from archives
19081 whole_archive_flag_spec_CXX='$convenience'
19082 archive_cmds_need_lc_CXX=yes
19083 # This is similar to how AIX traditionally builds its shared
19084 # libraries.
19085 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19090 beos*)
19091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19092 allow_undefined_flag_CXX=unsupported
19093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19094 # support --undefined. This deserves some investigation. FIXME
19095 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19096 else
19097 ld_shlibs_CXX=no
19101 chorus*)
19102 case $cc_basename in
19104 # FIXME: insert proper C++ library support
19105 ld_shlibs_CXX=no
19107 esac
19110 cygwin* | mingw* | pw32*)
19111 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19112 # as there is no search path for DLLs.
19113 hardcode_libdir_flag_spec_CXX='-L$libdir'
19114 allow_undefined_flag_CXX=unsupported
19115 always_export_symbols_CXX=no
19116 enable_shared_with_static_runtimes_CXX=yes
19118 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19119 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19120 # If the export-symbols file already is a .def file (1st line
19121 # is EXPORTS), use it as is; otherwise, prepend...
19122 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19123 cp $export_symbols $output_objdir/$soname.def;
19124 else
19125 echo EXPORTS > $output_objdir/$soname.def;
19126 cat $export_symbols >> $output_objdir/$soname.def;
19128 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19129 else
19130 ld_shlibs_CXX=no
19133 darwin* | rhapsody*)
19136 archive_cmds_need_lc_CXX=no
19137 hardcode_direct_CXX=no
19138 hardcode_automatic_CXX=yes
19139 hardcode_shlibpath_var_CXX=unsupported
19140 whole_archive_flag_spec_CXX=''
19141 link_all_deplibs_CXX=yes
19142 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19143 if test "$GCC" = "yes"; then
19144 output_verbose_link_cmd=echo
19145 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19146 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19147 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19148 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19149 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19150 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19151 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19154 else
19155 ld_shlibs_CXX=no
19160 dgux*)
19161 case $cc_basename in
19162 ec++*)
19163 # FIXME: insert proper C++ library support
19164 ld_shlibs_CXX=no
19166 ghcx*)
19167 # Green Hills C++ Compiler
19168 # FIXME: insert proper C++ library support
19169 ld_shlibs_CXX=no
19172 # FIXME: insert proper C++ library support
19173 ld_shlibs_CXX=no
19175 esac
19178 freebsd[12]*)
19179 # C++ shared libraries reported to be fairly broken before
19180 # switch to ELF
19181 ld_shlibs_CXX=no
19184 freebsd-elf*)
19185 archive_cmds_need_lc_CXX=no
19188 freebsd* | dragonfly*)
19189 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19190 # conventions
19191 ld_shlibs_CXX=yes
19194 gnu*)
19197 hpux9*)
19198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19199 hardcode_libdir_separator_CXX=:
19200 export_dynamic_flag_spec_CXX='${wl}-E'
19201 hardcode_direct_CXX=yes
19202 hardcode_minus_L_CXX=yes # Not in the search PATH,
19203 # but as the default
19204 # location of the library.
19206 case $cc_basename in
19207 CC*)
19208 # FIXME: insert proper C++ library support
19209 ld_shlibs_CXX=no
19211 aCC*)
19212 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19213 # Commands to make compiler produce verbose output that lists
19214 # what "hidden" libraries, object files and flags are used when
19215 # linking a shared library.
19217 # There doesn't appear to be a way to prevent this compiler from
19218 # explicitly linking system object files so we need to strip them
19219 # from the output so that they don't get included in the library
19220 # dependencies.
19221 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19224 if test "$GXX" = yes; then
19225 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19226 else
19227 # FIXME: insert proper C++ library support
19228 ld_shlibs_CXX=no
19231 esac
19234 hpux10*|hpux11*)
19235 if test $with_gnu_ld = no; then
19236 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19237 hardcode_libdir_separator_CXX=:
19239 case $host_cpu in
19240 hppa*64*|ia64*)
19243 export_dynamic_flag_spec_CXX='${wl}-E'
19245 esac
19247 case $host_cpu in
19248 hppa*64*|ia64*)
19249 hardcode_direct_CXX=no
19250 hardcode_shlibpath_var_CXX=no
19253 hardcode_direct_CXX=yes
19254 hardcode_direct_absolute_CXX=yes
19255 hardcode_minus_L_CXX=yes # Not in the search PATH,
19256 # but as the default
19257 # location of the library.
19259 esac
19261 case $cc_basename in
19262 CC*)
19263 # FIXME: insert proper C++ library support
19264 ld_shlibs_CXX=no
19266 aCC*)
19267 case $host_cpu in
19268 hppa*64*)
19269 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19271 ia64*)
19272 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19275 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19277 esac
19278 # Commands to make compiler produce verbose output that lists
19279 # what "hidden" libraries, object files and flags are used when
19280 # linking a shared library.
19282 # There doesn't appear to be a way to prevent this compiler from
19283 # explicitly linking system object files so we need to strip them
19284 # from the output so that they don't get included in the library
19285 # dependencies.
19286 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19289 if test "$GXX" = yes; then
19290 if test $with_gnu_ld = no; then
19291 case $host_cpu in
19292 hppa*64*)
19293 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19295 ia64*)
19296 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19299 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19301 esac
19303 else
19304 # FIXME: insert proper C++ library support
19305 ld_shlibs_CXX=no
19308 esac
19311 interix[3-9]*)
19312 hardcode_direct_CXX=no
19313 hardcode_shlibpath_var_CXX=no
19314 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19315 export_dynamic_flag_spec_CXX='${wl}-E'
19316 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19317 # Instead, shared libraries are loaded at an image base (0x10000000 by
19318 # default) and relocated if they conflict, which is a slow very memory
19319 # consuming and fragmenting process. To avoid this, we pick a random,
19320 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19321 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19322 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19323 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19325 irix5* | irix6*)
19326 case $cc_basename in
19327 CC*)
19328 # SGI C++
19329 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19331 # Archives containing C++ object files must be created using
19332 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19333 # necessary to make sure instantiated templates are included
19334 # in the archive.
19335 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19338 if test "$GXX" = yes; then
19339 if test "$with_gnu_ld" = no; then
19340 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19341 else
19342 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
19345 link_all_deplibs_CXX=yes
19347 esac
19348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19349 hardcode_libdir_separator_CXX=:
19350 inherit_rpath_CXX=yes
19353 linux* | k*bsd*-gnu)
19354 case $cc_basename in
19355 KCC*)
19356 # Kuck and Associates, Inc. (KAI) C++ Compiler
19358 # KCC will only create a shared library if the output file
19359 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19360 # to its proper name (with version) after linking.
19361 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19362 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19363 # Commands to make compiler produce verbose output that lists
19364 # what "hidden" libraries, object files and flags are used when
19365 # linking a shared library.
19367 # There doesn't appear to be a way to prevent this compiler from
19368 # explicitly linking system object files so we need to strip them
19369 # from the output so that they don't get included in the library
19370 # dependencies.
19371 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19373 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19374 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19376 # Archives containing C++ object files must be created using
19377 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19378 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19380 icpc* | ecpc* )
19381 # Intel C++
19382 with_gnu_ld=yes
19383 # version 8.0 and above of icpc choke on multiply defined symbols
19384 # if we add $predep_objects and $postdep_objects, however 7.1 and
19385 # earlier do not add the objects themselves.
19386 case `$CC -V 2>&1` in
19387 *"Version 7."*)
19388 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19389 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19391 *) # Version 8.0 or newer
19392 tmp_idyn=
19393 case $host_cpu in
19394 ia64*) tmp_idyn=' -i_dynamic';;
19395 esac
19396 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19399 esac
19400 archive_cmds_need_lc_CXX=no
19401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19403 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19405 pgCC* | pgcpp*)
19406 # Portland Group C++ compiler
19407 case `$CC -V` in
19408 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
19409 prelink_cmds_CXX='tpldir=Template.dir~
19410 rm -rf $tpldir~
19411 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19412 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19413 old_archive_cmds_CXX='tpldir=Template.dir~
19414 rm -rf $tpldir~
19415 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19416 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19417 $RANLIB $oldlib'
19418 archive_cmds_CXX='tpldir=Template.dir~
19419 rm -rf $tpldir~
19420 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19421 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19422 archive_expsym_cmds_CXX='tpldir=Template.dir~
19423 rm -rf $tpldir~
19424 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19425 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19427 *) # Version 6 will use weak symbols
19428 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19429 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19431 esac
19433 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19435 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
19437 cxx*)
19438 # Compaq C++
19439 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19440 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19442 runpath_var=LD_RUN_PATH
19443 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19444 hardcode_libdir_separator_CXX=:
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19450 # There doesn't appear to be a way to prevent this compiler from
19451 # explicitly linking system object files so we need to strip them
19452 # from the output so that they don't get included in the library
19453 # dependencies.
19454 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19456 xl*)
19457 # IBM XL 8.0 on PPC, with GNU ld
19458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19459 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19460 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19461 if test "x$supports_anon_versioning" = xyes; then
19462 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19464 echo "local: *; };" >> $output_objdir/$libname.ver~
19465 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19469 case `$CC -V 2>&1 | sed 5q` in
19470 *Sun\ C*)
19471 # Sun C++ 5.9
19472 no_undefined_flag_CXX=' -zdefs'
19473 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19474 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19475 hardcode_libdir_flag_spec_CXX='-R$libdir'
19476 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
19477 compiler_needs_object_CXX=yes
19479 # Not sure whether something based on
19480 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19481 # would be better.
19482 output_verbose_link_cmd='echo'
19484 # Archives containing C++ object files must be created using
19485 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19486 # necessary to make sure instantiated templates are included
19487 # in the archive.
19488 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19490 esac
19492 esac
19495 lynxos*)
19496 # FIXME: insert proper C++ library support
19497 ld_shlibs_CXX=no
19500 m88k*)
19501 # FIXME: insert proper C++ library support
19502 ld_shlibs_CXX=no
19505 mvs*)
19506 case $cc_basename in
19507 cxx*)
19508 # FIXME: insert proper C++ library support
19509 ld_shlibs_CXX=no
19512 # FIXME: insert proper C++ library support
19513 ld_shlibs_CXX=no
19515 esac
19518 netbsd*)
19519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19520 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19521 wlarc=
19522 hardcode_libdir_flag_spec_CXX='-R$libdir'
19523 hardcode_direct_CXX=yes
19524 hardcode_shlibpath_var_CXX=no
19526 # Workaround some broken pre-1.5 toolchains
19527 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19530 *nto* | *qnx*)
19531 ld_shlibs_CXX=yes
19534 openbsd2*)
19535 # C++ shared libraries are fairly broken
19536 ld_shlibs_CXX=no
19539 openbsd*)
19540 if test -f /usr/libexec/ld.so; then
19541 hardcode_direct_CXX=yes
19542 hardcode_shlibpath_var_CXX=no
19543 hardcode_direct_absolute_CXX=yes
19544 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19546 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19547 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19548 export_dynamic_flag_spec_CXX='${wl}-E'
19549 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19551 output_verbose_link_cmd=echo
19552 else
19553 ld_shlibs_CXX=no
19557 osf3* | osf4* | osf5*)
19558 case $cc_basename in
19559 KCC*)
19560 # Kuck and Associates, Inc. (KAI) C++ Compiler
19562 # KCC will only create a shared library if the output file
19563 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19564 # to its proper name (with version) after linking.
19565 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19568 hardcode_libdir_separator_CXX=:
19570 # Archives containing C++ object files must be created using
19571 # the KAI C++ compiler.
19572 case $host in
19573 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19574 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19575 esac
19577 RCC*)
19578 # Rational C++ 2.4.1
19579 # FIXME: insert proper C++ library support
19580 ld_shlibs_CXX=no
19582 cxx*)
19583 case $host in
19584 osf3*)
19585 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19586 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19590 allow_undefined_flag_CXX=' -expect_unresolved \*'
19591 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19592 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19593 echo "-hidden">> $lib.exp~
19594 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
19595 $RM $lib.exp'
19596 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19598 esac
19600 hardcode_libdir_separator_CXX=:
19602 # Commands to make compiler produce verbose output that lists
19603 # what "hidden" libraries, object files and flags are used when
19604 # linking a shared library.
19606 # There doesn't appear to be a way to prevent this compiler from
19607 # explicitly linking system object files so we need to strip them
19608 # from the output so that they don't get included in the library
19609 # dependencies.
19610 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19613 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19614 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19615 case $host in
19616 osf3*)
19617 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19620 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19622 esac
19624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19625 hardcode_libdir_separator_CXX=:
19627 # Commands to make compiler produce verbose output that lists
19628 # what "hidden" libraries, object files and flags are used when
19629 # linking a shared library.
19630 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19632 else
19633 # FIXME: insert proper C++ library support
19634 ld_shlibs_CXX=no
19637 esac
19640 psos*)
19641 # FIXME: insert proper C++ library support
19642 ld_shlibs_CXX=no
19645 sunos4*)
19646 case $cc_basename in
19647 CC*)
19648 # Sun C++ 4.x
19649 # FIXME: insert proper C++ library support
19650 ld_shlibs_CXX=no
19652 lcc*)
19653 # Lucid
19654 # FIXME: insert proper C++ library support
19655 ld_shlibs_CXX=no
19658 # FIXME: insert proper C++ library support
19659 ld_shlibs_CXX=no
19661 esac
19664 solaris*)
19665 case $cc_basename in
19666 CC*)
19667 # Sun C++ 4.2, 5.x and Centerline C++
19668 archive_cmds_need_lc_CXX=yes
19669 no_undefined_flag_CXX=' -zdefs'
19670 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19671 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19672 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19674 hardcode_libdir_flag_spec_CXX='-R$libdir'
19675 hardcode_shlibpath_var_CXX=no
19676 case $host_os in
19677 solaris2.[0-5] | solaris2.[0-5].*) ;;
19679 # The compiler driver will combine and reorder linker options,
19680 # but understands `-z linker_flag'.
19681 # Supported since Solaris 2.6 (maybe 2.5.1?)
19682 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19684 esac
19685 link_all_deplibs_CXX=yes
19687 output_verbose_link_cmd='echo'
19689 # Archives containing C++ object files must be created using
19690 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19691 # necessary to make sure instantiated templates are included
19692 # in the archive.
19693 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19695 gcx*)
19696 # Green Hills C++ Compiler
19697 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19699 # The C++ compiler must be used to create the archive.
19700 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19703 # GNU C++ compiler with Solaris linker
19704 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19705 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19706 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19707 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19708 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19709 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19711 # Commands to make compiler produce verbose output that lists
19712 # what "hidden" libraries, object files and flags are used when
19713 # linking a shared library.
19714 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19715 else
19716 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19717 # platform.
19718 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19719 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19720 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19722 # Commands to make compiler produce verbose output that lists
19723 # what "hidden" libraries, object files and flags are used when
19724 # linking a shared library.
19725 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19728 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19729 case $host_os in
19730 solaris2.[0-5] | solaris2.[0-5].*) ;;
19732 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19734 esac
19737 esac
19740 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19741 no_undefined_flag_CXX='${wl}-z,text'
19742 archive_cmds_need_lc_CXX=no
19743 hardcode_shlibpath_var_CXX=no
19744 runpath_var='LD_RUN_PATH'
19746 case $cc_basename in
19747 CC*)
19748 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19749 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19752 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19753 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19755 esac
19758 sysv5* | sco3.2v5* | sco5v6*)
19759 # Note: We can NOT use -z defs as we might desire, because we do not
19760 # link with -lc, and that would cause any symbols used from libc to
19761 # always be unresolved, which means just about no library would
19762 # ever link correctly. If we're not using GNU ld we use -z text
19763 # though, which does catch some bad symbols but isn't as heavy-handed
19764 # as -z defs.
19765 no_undefined_flag_CXX='${wl}-z,text'
19766 allow_undefined_flag_CXX='${wl}-z,nodefs'
19767 archive_cmds_need_lc_CXX=no
19768 hardcode_shlibpath_var_CXX=no
19769 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19770 hardcode_libdir_separator_CXX=':'
19771 link_all_deplibs_CXX=yes
19772 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19773 runpath_var='LD_RUN_PATH'
19775 case $cc_basename in
19776 CC*)
19777 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19778 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19781 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19782 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19784 esac
19787 tandem*)
19788 case $cc_basename in
19789 NCC*)
19790 # NonStop-UX NCC 3.20
19791 # FIXME: insert proper C++ library support
19792 ld_shlibs_CXX=no
19795 # FIXME: insert proper C++ library support
19796 ld_shlibs_CXX=no
19798 esac
19801 vxworks*)
19802 # FIXME: insert proper C++ library support
19803 ld_shlibs_CXX=no
19807 # FIXME: insert proper C++ library support
19808 ld_shlibs_CXX=no
19810 esac
19812 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19813 $as_echo "$ld_shlibs_CXX" >&6; }
19814 test "$ld_shlibs_CXX" = no && can_build_shared=no
19816 GCC_CXX="$GXX"
19817 LD_CXX="$LD"
19819 ## CAVEAT EMPTOR:
19820 ## There is no encapsulation within the following macros, do not change
19821 ## the running order or otherwise move them around unless you know exactly
19822 ## what you are doing...
19823 # Dependencies to place before and after the object being linked:
19824 predep_objects_CXX=
19825 postdep_objects_CXX=
19826 predeps_CXX=
19827 postdeps_CXX=
19828 compiler_lib_search_path_CXX=
19830 cat > conftest.$ac_ext <<_LT_EOF
19831 class Foo
19833 public:
19834 Foo (void) { a = 0; }
19835 private:
19836 int a;
19838 _LT_EOF
19840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19841 (eval $ac_compile) 2>&5
19842 ac_status=$?
19843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; then
19845 # Parse the compiler output and extract the necessary
19846 # objects, libraries and library flags.
19848 # Sentinel used to keep track of whether or not we are before
19849 # the conftest object file.
19850 pre_test_object_deps_done=no
19852 for p in `eval "$output_verbose_link_cmd"`; do
19853 case $p in
19855 -L* | -R* | -l*)
19856 # Some compilers place space between "-{L,R}" and the path.
19857 # Remove the space.
19858 if test $p = "-L" ||
19859 test $p = "-R"; then
19860 prev=$p
19861 continue
19862 else
19863 prev=
19866 if test "$pre_test_object_deps_done" = no; then
19867 case $p in
19868 -L* | -R*)
19869 # Internal compiler library paths should come after those
19870 # provided the user. The postdeps already come after the
19871 # user supplied libs so there is no need to process them.
19872 if test -z "$compiler_lib_search_path_CXX"; then
19873 compiler_lib_search_path_CXX="${prev}${p}"
19874 else
19875 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19878 # The "-l" case would never come before the object being
19879 # linked, so don't bother handling this case.
19880 esac
19881 else
19882 if test -z "$postdeps_CXX"; then
19883 postdeps_CXX="${prev}${p}"
19884 else
19885 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19890 *.$objext)
19891 # This assumes that the test object file only shows up
19892 # once in the compiler output.
19893 if test "$p" = "conftest.$objext"; then
19894 pre_test_object_deps_done=yes
19895 continue
19898 if test "$pre_test_object_deps_done" = no; then
19899 if test -z "$predep_objects_CXX"; then
19900 predep_objects_CXX="$p"
19901 else
19902 predep_objects_CXX="$predep_objects_CXX $p"
19904 else
19905 if test -z "$postdep_objects_CXX"; then
19906 postdep_objects_CXX="$p"
19907 else
19908 postdep_objects_CXX="$postdep_objects_CXX $p"
19913 *) ;; # Ignore the rest.
19915 esac
19916 done
19918 # Clean up.
19919 rm -f a.out a.exe
19920 else
19921 echo "libtool.m4: error: problem compiling CXX test program"
19924 $RM -f confest.$objext
19926 # PORTME: override above test on systems where it is broken
19927 case $host_os in
19928 interix[3-9]*)
19929 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19930 # hack all around it, let's just trust "g++" to DTRT.
19931 predep_objects_CXX=
19932 postdep_objects_CXX=
19933 postdeps_CXX=
19936 linux*)
19937 case `$CC -V 2>&1 | sed 5q` in
19938 *Sun\ C*)
19939 # Sun C++ 5.9
19941 # The more standards-conforming stlport4 library is
19942 # incompatible with the Cstd library. Avoid specifying
19943 # it if it's in CXXFLAGS. Ignore libCrun as
19944 # -library=stlport4 depends on it.
19945 case " $CXX $CXXFLAGS " in
19946 *" -library=stlport4 "*)
19947 solaris_use_stlport4=yes
19949 esac
19951 if test "$solaris_use_stlport4" != yes; then
19952 postdeps_CXX='-library=Cstd -library=Crun'
19955 esac
19958 solaris*)
19959 case $cc_basename in
19960 CC*)
19961 # The more standards-conforming stlport4 library is
19962 # incompatible with the Cstd library. Avoid specifying
19963 # it if it's in CXXFLAGS. Ignore libCrun as
19964 # -library=stlport4 depends on it.
19965 case " $CXX $CXXFLAGS " in
19966 *" -library=stlport4 "*)
19967 solaris_use_stlport4=yes
19969 esac
19971 # Adding this requires a known-good setup of shared libraries for
19972 # Sun compiler versions before 5.6, else PIC objects from an old
19973 # archive will be linked into the output, leading to subtle bugs.
19974 if test "$solaris_use_stlport4" != yes; then
19975 postdeps_CXX='-library=Cstd -library=Crun'
19978 esac
19980 esac
19983 case " $postdeps_CXX " in
19984 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19985 esac
19986 compiler_lib_search_dirs_CXX=
19987 if test -n "${compiler_lib_search_path_CXX}"; then
19988 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20021 lt_prog_compiler_wl_CXX=
20022 lt_prog_compiler_pic_CXX=
20023 lt_prog_compiler_static_CXX=
20025 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20026 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20028 # C++ specific cases for pic, static, wl, etc.
20029 if test "$GXX" = yes; then
20030 lt_prog_compiler_wl_CXX='-Wl,'
20031 lt_prog_compiler_static_CXX='-static'
20033 case $host_os in
20034 aix*)
20035 # All AIX code is PIC.
20036 if test "$host_cpu" = ia64; then
20037 # AIX 5 now supports IA64 processor
20038 lt_prog_compiler_static_CXX='-Bstatic'
20041 amigaos*)
20042 if test "$host_cpu" = m68k; then
20043 # FIXME: we need at least 68020 code to build shared libraries, but
20044 # adding the `-m68020' flag to GCC prevents building anything better,
20045 # like `-m68040'.
20046 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20049 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20050 # PIC is the default for these OSes.
20052 mingw* | cygwin* | os2* | pw32*)
20053 # This hack is so that the source file can tell whether it is being
20054 # built for inclusion in a dll (and should export symbols for example).
20055 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20056 # (--disable-auto-import) libraries
20057 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20059 darwin* | rhapsody*)
20060 # PIC is the default on this platform
20061 # Common symbols not allowed in MH_DYLIB files
20062 lt_prog_compiler_pic_CXX='-fno-common'
20064 *djgpp*)
20065 # DJGPP does not support shared libraries at all
20066 lt_prog_compiler_pic_CXX=
20068 interix[3-9]*)
20069 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20070 # Instead, we relocate shared libraries at runtime.
20072 sysv4*MP*)
20073 if test -d /usr/nec; then
20074 lt_prog_compiler_pic_CXX=-Kconform_pic
20077 hpux*)
20078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20079 # not for PA HP-UX.
20080 case $host_cpu in
20081 hppa*64*|ia64*)
20084 lt_prog_compiler_pic_CXX='-fPIC'
20086 esac
20088 *qnx* | *nto*)
20089 # QNX uses GNU C++, but need to define -shared option too, otherwise
20090 # it will coredump.
20091 lt_prog_compiler_pic_CXX='-fPIC -shared'
20094 lt_prog_compiler_pic_CXX='-fPIC'
20096 esac
20097 else
20098 case $host_os in
20099 aix[4-9]*)
20100 # All AIX code is PIC.
20101 if test "$host_cpu" = ia64; then
20102 # AIX 5 now supports IA64 processor
20103 lt_prog_compiler_static_CXX='-Bstatic'
20104 else
20105 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20108 chorus*)
20109 case $cc_basename in
20110 cxch68*)
20111 # Green Hills C++ Compiler
20112 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20114 esac
20116 dgux*)
20117 case $cc_basename in
20118 ec++*)
20119 lt_prog_compiler_pic_CXX='-KPIC'
20121 ghcx*)
20122 # Green Hills C++ Compiler
20123 lt_prog_compiler_pic_CXX='-pic'
20127 esac
20129 freebsd* | dragonfly*)
20130 # FreeBSD uses GNU C++
20132 hpux9* | hpux10* | hpux11*)
20133 case $cc_basename in
20134 CC*)
20135 lt_prog_compiler_wl_CXX='-Wl,'
20136 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20137 if test "$host_cpu" != ia64; then
20138 lt_prog_compiler_pic_CXX='+Z'
20141 aCC*)
20142 lt_prog_compiler_wl_CXX='-Wl,'
20143 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20144 case $host_cpu in
20145 hppa*64*|ia64*)
20146 # +Z the default
20149 lt_prog_compiler_pic_CXX='+Z'
20151 esac
20155 esac
20157 interix*)
20158 # This is c89, which is MS Visual C++ (no shared libs)
20159 # Anyone wants to do a port?
20161 irix5* | irix6* | nonstopux*)
20162 case $cc_basename in
20163 CC*)
20164 lt_prog_compiler_wl_CXX='-Wl,'
20165 lt_prog_compiler_static_CXX='-non_shared'
20166 # CC pic flag -KPIC is the default.
20170 esac
20172 linux* | k*bsd*-gnu)
20173 case $cc_basename in
20174 KCC*)
20175 # KAI C++ Compiler
20176 lt_prog_compiler_wl_CXX='--backend -Wl,'
20177 lt_prog_compiler_pic_CXX='-fPIC'
20179 icpc* | ecpc* )
20180 # Intel C++
20181 lt_prog_compiler_wl_CXX='-Wl,'
20182 lt_prog_compiler_pic_CXX='-KPIC'
20183 lt_prog_compiler_static_CXX='-static'
20185 pgCC* | pgcpp*)
20186 # Portland Group C++ compiler
20187 lt_prog_compiler_wl_CXX='-Wl,'
20188 lt_prog_compiler_pic_CXX='-fpic'
20189 lt_prog_compiler_static_CXX='-Bstatic'
20191 cxx*)
20192 # Compaq C++
20193 # Make sure the PIC flag is empty. It appears that all Alpha
20194 # Linux and Compaq Tru64 Unix objects are PIC.
20195 lt_prog_compiler_pic_CXX=
20196 lt_prog_compiler_static_CXX='-non_shared'
20198 xlc* | xlC*)
20199 # IBM XL 8.0 on PPC
20200 lt_prog_compiler_wl_CXX='-Wl,'
20201 lt_prog_compiler_pic_CXX='-qpic'
20202 lt_prog_compiler_static_CXX='-qstaticlink'
20205 case `$CC -V 2>&1 | sed 5q` in
20206 *Sun\ C*)
20207 # Sun C++ 5.9
20208 lt_prog_compiler_pic_CXX='-KPIC'
20209 lt_prog_compiler_static_CXX='-Bstatic'
20210 lt_prog_compiler_wl_CXX='-Qoption ld '
20212 esac
20214 esac
20216 lynxos*)
20218 m88k*)
20220 mvs*)
20221 case $cc_basename in
20222 cxx*)
20223 lt_prog_compiler_pic_CXX='-W c,exportall'
20227 esac
20229 netbsd*)
20231 *qnx* | *nto*)
20232 # QNX uses GNU C++, but need to define -shared option too, otherwise
20233 # it will coredump.
20234 lt_prog_compiler_pic_CXX='-fPIC -shared'
20236 osf3* | osf4* | osf5*)
20237 case $cc_basename in
20238 KCC*)
20239 lt_prog_compiler_wl_CXX='--backend -Wl,'
20241 RCC*)
20242 # Rational C++ 2.4.1
20243 lt_prog_compiler_pic_CXX='-pic'
20245 cxx*)
20246 # Digital/Compaq C++
20247 lt_prog_compiler_wl_CXX='-Wl,'
20248 # Make sure the PIC flag is empty. It appears that all Alpha
20249 # Linux and Compaq Tru64 Unix objects are PIC.
20250 lt_prog_compiler_pic_CXX=
20251 lt_prog_compiler_static_CXX='-non_shared'
20255 esac
20257 psos*)
20259 solaris*)
20260 case $cc_basename in
20261 CC*)
20262 # Sun C++ 4.2, 5.x and Centerline C++
20263 lt_prog_compiler_pic_CXX='-KPIC'
20264 lt_prog_compiler_static_CXX='-Bstatic'
20265 lt_prog_compiler_wl_CXX='-Qoption ld '
20267 gcx*)
20268 # Green Hills C++ Compiler
20269 lt_prog_compiler_pic_CXX='-PIC'
20273 esac
20275 sunos4*)
20276 case $cc_basename in
20277 CC*)
20278 # Sun C++ 4.x
20279 lt_prog_compiler_pic_CXX='-pic'
20280 lt_prog_compiler_static_CXX='-Bstatic'
20282 lcc*)
20283 # Lucid
20284 lt_prog_compiler_pic_CXX='-pic'
20288 esac
20290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20291 case $cc_basename in
20292 CC*)
20293 lt_prog_compiler_wl_CXX='-Wl,'
20294 lt_prog_compiler_pic_CXX='-KPIC'
20295 lt_prog_compiler_static_CXX='-Bstatic'
20297 esac
20299 tandem*)
20300 case $cc_basename in
20301 NCC*)
20302 # NonStop-UX NCC 3.20
20303 lt_prog_compiler_pic_CXX='-KPIC'
20307 esac
20309 vxworks*)
20312 lt_prog_compiler_can_build_shared_CXX=no
20314 esac
20317 case $host_os in
20318 # For platforms which do not support PIC, -DPIC is meaningless:
20319 *djgpp*)
20320 lt_prog_compiler_pic_CXX=
20323 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20325 esac
20326 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20327 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20332 # Check to make sure the PIC flag actually works.
20334 if test -n "$lt_prog_compiler_pic_CXX"; then
20335 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20336 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20337 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
20338 $as_echo_n "(cached) " >&6
20339 else
20340 lt_cv_prog_compiler_pic_works_CXX=no
20341 ac_outfile=conftest.$ac_objext
20342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20343 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20344 # Insert the option either (1) after the last *FLAGS variable, or
20345 # (2) before a word containing "conftest.", or (3) at the end.
20346 # Note that $ac_compile itself does not contain backslashes and begins
20347 # with a dollar sign (not a hyphen), so the echo should work correctly.
20348 # The option is referenced via a variable to avoid confusing sed.
20349 lt_compile=`echo "$ac_compile" | $SED \
20350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20352 -e 's:$: $lt_compiler_flag:'`
20353 (eval echo "\"\$as_me:20353: $lt_compile\"" >&5)
20354 (eval "$lt_compile" 2>conftest.err)
20355 ac_status=$?
20356 cat conftest.err >&5
20357 echo "$as_me:20357: \$? = $ac_status" >&5
20358 if (exit $ac_status) && test -s "$ac_outfile"; then
20359 # The compiler can only warn and ignore the option if not recognized
20360 # So say no if there are warnings other than the usual output.
20361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20364 lt_cv_prog_compiler_pic_works_CXX=yes
20367 $RM conftest*
20370 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20371 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20373 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20374 case $lt_prog_compiler_pic_CXX in
20375 "" | " "*) ;;
20376 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20377 esac
20378 else
20379 lt_prog_compiler_pic_CXX=
20380 lt_prog_compiler_can_build_shared_CXX=no
20388 # Check to make sure the static flag actually works.
20390 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20391 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20392 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20393 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
20394 $as_echo_n "(cached) " >&6
20395 else
20396 lt_cv_prog_compiler_static_works_CXX=no
20397 save_LDFLAGS="$LDFLAGS"
20398 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20399 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20401 # The linker can only warn and ignore the option if not recognized
20402 # So say no if there are warnings
20403 if test -s conftest.err; then
20404 # Append any errors to the config.log.
20405 cat conftest.err 1>&5
20406 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20408 if diff conftest.exp conftest.er2 >/dev/null; then
20409 lt_cv_prog_compiler_static_works_CXX=yes
20411 else
20412 lt_cv_prog_compiler_static_works_CXX=yes
20415 $RM -r conftest*
20416 LDFLAGS="$save_LDFLAGS"
20419 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20420 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20422 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20424 else
20425 lt_prog_compiler_static_CXX=
20431 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20432 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20433 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20434 $as_echo_n "(cached) " >&6
20435 else
20436 lt_cv_prog_compiler_c_o_CXX=no
20437 $RM -r conftest 2>/dev/null
20438 mkdir conftest
20439 cd conftest
20440 mkdir out
20441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20443 lt_compiler_flag="-o out/conftest2.$ac_objext"
20444 # Insert the option either (1) after the last *FLAGS variable, or
20445 # (2) before a word containing "conftest.", or (3) at the end.
20446 # Note that $ac_compile itself does not contain backslashes and begins
20447 # with a dollar sign (not a hyphen), so the echo should work correctly.
20448 lt_compile=`echo "$ac_compile" | $SED \
20449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20451 -e 's:$: $lt_compiler_flag:'`
20452 (eval echo "\"\$as_me:20452: $lt_compile\"" >&5)
20453 (eval "$lt_compile" 2>out/conftest.err)
20454 ac_status=$?
20455 cat out/conftest.err >&5
20456 echo "$as_me:20456: \$? = $ac_status" >&5
20457 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20458 then
20459 # The compiler can only warn and ignore the option if not recognized
20460 # So say no if there are warnings
20461 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20462 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20463 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20464 lt_cv_prog_compiler_c_o_CXX=yes
20467 chmod u+w . 2>&5
20468 $RM conftest*
20469 # SGI C++ compiler will create directory out/ii_files/ for
20470 # template instantiation
20471 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20472 $RM out/* && rmdir out
20473 cd ..
20474 $RM -r conftest
20475 $RM conftest*
20478 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20479 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20483 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20484 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20485 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20486 $as_echo_n "(cached) " >&6
20487 else
20488 lt_cv_prog_compiler_c_o_CXX=no
20489 $RM -r conftest 2>/dev/null
20490 mkdir conftest
20491 cd conftest
20492 mkdir out
20493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20495 lt_compiler_flag="-o out/conftest2.$ac_objext"
20496 # Insert the option either (1) after the last *FLAGS variable, or
20497 # (2) before a word containing "conftest.", or (3) at the end.
20498 # Note that $ac_compile itself does not contain backslashes and begins
20499 # with a dollar sign (not a hyphen), so the echo should work correctly.
20500 lt_compile=`echo "$ac_compile" | $SED \
20501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20503 -e 's:$: $lt_compiler_flag:'`
20504 (eval echo "\"\$as_me:20504: $lt_compile\"" >&5)
20505 (eval "$lt_compile" 2>out/conftest.err)
20506 ac_status=$?
20507 cat out/conftest.err >&5
20508 echo "$as_me:20508: \$? = $ac_status" >&5
20509 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20510 then
20511 # The compiler can only warn and ignore the option if not recognized
20512 # So say no if there are warnings
20513 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20514 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20515 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20516 lt_cv_prog_compiler_c_o_CXX=yes
20519 chmod u+w . 2>&5
20520 $RM conftest*
20521 # SGI C++ compiler will create directory out/ii_files/ for
20522 # template instantiation
20523 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20524 $RM out/* && rmdir out
20525 cd ..
20526 $RM -r conftest
20527 $RM conftest*
20530 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20531 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20536 hard_links="nottested"
20537 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20538 # do not overwrite the value of need_locks provided by the user
20539 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20540 $as_echo_n "checking if we can lock with hard links... " >&6; }
20541 hard_links=yes
20542 $RM conftest*
20543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20544 touch conftest.a
20545 ln conftest.a conftest.b 2>&5 || hard_links=no
20546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20547 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
20548 $as_echo "$hard_links" >&6; }
20549 if test "$hard_links" = no; then
20550 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20551 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20552 need_locks=warn
20554 else
20555 need_locks=no
20560 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20564 case $host_os in
20565 aix[4-9]*)
20566 # If we're using GNU nm, then we don't want the "-C" option.
20567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20568 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20569 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20570 else
20571 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20574 pw32*)
20575 export_symbols_cmds_CXX="$ltdll_cmds"
20577 cygwin* | mingw*)
20578 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20581 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20583 esac
20584 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20586 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20587 $as_echo "$ld_shlibs_CXX" >&6; }
20588 test "$ld_shlibs_CXX" = no && can_build_shared=no
20590 with_gnu_ld_CXX=$with_gnu_ld
20598 # Do we need to explicitly link libc?
20600 case "x$archive_cmds_need_lc_CXX" in
20601 x|xyes)
20602 # Assume -lc should be added
20603 archive_cmds_need_lc_CXX=yes
20605 if test "$enable_shared" = yes && test "$GCC" = yes; then
20606 case $archive_cmds_CXX in
20607 *'~'*)
20608 # FIXME: we may have to deal with multi-command sequences.
20610 '$CC '*)
20611 # Test whether the compiler implicitly links with -lc since on some
20612 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20613 # to ld, don't add -lc before -lgcc.
20614 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20615 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20616 $RM conftest*
20617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20620 (eval $ac_compile) 2>&5
20621 ac_status=$?
20622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } 2>conftest.err; then
20624 soname=conftest
20625 lib=conftest
20626 libobjs=conftest.$ac_objext
20627 deplibs=
20628 wl=$lt_prog_compiler_wl_CXX
20629 pic_flag=$lt_prog_compiler_pic_CXX
20630 compiler_flags=-v
20631 linker_flags=-v
20632 verstring=
20633 output_objdir=.
20634 libname=conftest
20635 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20636 allow_undefined_flag_CXX=
20637 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
20638 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20639 ac_status=$?
20640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641 (exit $ac_status); }
20642 then
20643 archive_cmds_need_lc_CXX=no
20644 else
20645 archive_cmds_need_lc_CXX=yes
20647 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20648 else
20649 cat conftest.err 1>&5
20651 $RM conftest*
20652 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20653 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
20655 esac
20658 esac
20723 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20724 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20726 library_names_spec=
20727 libname_spec='lib$name'
20728 soname_spec=
20729 shrext_cmds=".so"
20730 postinstall_cmds=
20731 postuninstall_cmds=
20732 finish_cmds=
20733 finish_eval=
20734 shlibpath_var=
20735 shlibpath_overrides_runpath=unknown
20736 version_type=none
20737 dynamic_linker="$host_os ld.so"
20738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20739 need_lib_prefix=unknown
20740 hardcode_into_libs=no
20742 # when you set need_version to no, make sure it does not cause -set_version
20743 # flags to be left without arguments
20744 need_version=unknown
20746 case $host_os in
20747 aix3*)
20748 version_type=linux
20749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20750 shlibpath_var=LIBPATH
20752 # AIX 3 has no versioning support, so we append a major version to the name.
20753 soname_spec='${libname}${release}${shared_ext}$major'
20756 aix[4-9]*)
20757 version_type=linux
20758 need_lib_prefix=no
20759 need_version=no
20760 hardcode_into_libs=yes
20761 if test "$host_cpu" = ia64; then
20762 # AIX 5 supports IA64
20763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20764 shlibpath_var=LD_LIBRARY_PATH
20765 else
20766 # With GCC up to 2.95.x, collect2 would create an import file
20767 # for dependence libraries. The import file would start with
20768 # the line `#! .'. This would cause the generated library to
20769 # depend on `.', always an invalid library. This was fixed in
20770 # development snapshots of GCC prior to 3.0.
20771 case $host_os in
20772 aix4 | aix4.[01] | aix4.[01].*)
20773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20774 echo ' yes '
20775 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20777 else
20778 can_build_shared=no
20781 esac
20782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20783 # soname into executable. Probably we can add versioning support to
20784 # collect2, so additional links can be useful in future.
20785 if test "$aix_use_runtimelinking" = yes; then
20786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20787 # instead of lib<name>.a to let people know that these are not
20788 # typical AIX shared libraries.
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790 else
20791 # We preserve .a as extension for shared libraries through AIX4.2
20792 # and later when we are not doing run time linking.
20793 library_names_spec='${libname}${release}.a $libname.a'
20794 soname_spec='${libname}${release}${shared_ext}$major'
20796 shlibpath_var=LIBPATH
20800 amigaos*)
20801 if test "$host_cpu" = m68k; then
20802 library_names_spec='$libname.ixlibrary $libname.a'
20803 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20804 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20805 else
20806 dynamic_linker=no
20810 beos*)
20811 library_names_spec='${libname}${shared_ext}'
20812 dynamic_linker="$host_os ld.so"
20813 shlibpath_var=LIBRARY_PATH
20816 bsdi[45]*)
20817 version_type=linux
20818 need_version=no
20819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20820 soname_spec='${libname}${release}${shared_ext}$major'
20821 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20822 shlibpath_var=LD_LIBRARY_PATH
20823 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20824 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20825 # the default ld.so.conf also contains /usr/contrib/lib and
20826 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20827 # libtool to hard-code these into programs
20830 cygwin* | mingw* | pw32*)
20831 version_type=windows
20832 shrext_cmds=".dll"
20833 need_version=no
20834 need_lib_prefix=no
20836 case $GCC,$host_os in
20837 yes,cygwin* | yes,mingw* | yes,pw32*)
20838 library_names_spec='$libname.dll.a'
20839 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20840 postinstall_cmds='base_file=`basename \${file}`~
20841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20842 dldir=$destdir/`dirname \$dlpath`~
20843 test -d \$dldir || mkdir -p \$dldir~
20844 $install_prog $dir/$dlname \$dldir/$dlname~
20845 chmod a+x \$dldir/$dlname~
20846 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20847 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20850 dlpath=$dir/\$dldll~
20851 $RM \$dlpath'
20852 shlibpath_overrides_runpath=yes
20854 case $host_os in
20855 cygwin*)
20856 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20857 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20858 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20860 mingw*)
20861 # MinGW DLLs use traditional 'lib' prefix
20862 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20863 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20864 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20865 # It is most probably a Windows format PATH printed by
20866 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20867 # path with ; separators, and with drive letters. We can handle the
20868 # drive letters (cygwin fileutils understands them), so leave them,
20869 # especially as we might pass files found there to a mingw objdump,
20870 # which wouldn't understand a cygwinified path. Ahh.
20871 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20872 else
20873 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20876 pw32*)
20877 # pw32 DLLs use 'pw' prefix rather than 'lib'
20878 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20880 esac
20884 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20886 esac
20887 dynamic_linker='Win32 ld.exe'
20888 # FIXME: first we should search . and the directory the executable is in
20889 shlibpath_var=PATH
20892 darwin* | rhapsody*)
20893 dynamic_linker="$host_os dyld"
20894 version_type=darwin
20895 need_lib_prefix=no
20896 need_version=no
20897 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20898 soname_spec='${libname}${release}${major}$shared_ext'
20899 shlibpath_overrides_runpath=yes
20900 shlibpath_var=DYLD_LIBRARY_PATH
20901 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20903 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20906 dgux*)
20907 version_type=linux
20908 need_lib_prefix=no
20909 need_version=no
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20911 soname_spec='${libname}${release}${shared_ext}$major'
20912 shlibpath_var=LD_LIBRARY_PATH
20915 freebsd1*)
20916 dynamic_linker=no
20919 freebsd* | dragonfly*)
20920 # DragonFly does not have aout. When/if they implement a new
20921 # versioning mechanism, adjust this.
20922 if test -x /usr/bin/objformat; then
20923 objformat=`/usr/bin/objformat`
20924 else
20925 case $host_os in
20926 freebsd[123]*) objformat=aout ;;
20927 *) objformat=elf ;;
20928 esac
20930 version_type=freebsd-$objformat
20931 case $version_type in
20932 freebsd-elf*)
20933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20934 need_version=no
20935 need_lib_prefix=no
20937 freebsd-*)
20938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20939 need_version=yes
20941 esac
20942 shlibpath_var=LD_LIBRARY_PATH
20943 case $host_os in
20944 freebsd2*)
20945 shlibpath_overrides_runpath=yes
20947 freebsd3.[01]* | freebsdelf3.[01]*)
20948 shlibpath_overrides_runpath=yes
20949 hardcode_into_libs=yes
20951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20953 shlibpath_overrides_runpath=no
20954 hardcode_into_libs=yes
20956 *) # from 4.6 on, and DragonFly
20957 shlibpath_overrides_runpath=yes
20958 hardcode_into_libs=yes
20960 esac
20963 gnu*)
20964 version_type=linux
20965 need_lib_prefix=no
20966 need_version=no
20967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20968 soname_spec='${libname}${release}${shared_ext}$major'
20969 shlibpath_var=LD_LIBRARY_PATH
20970 hardcode_into_libs=yes
20973 hpux9* | hpux10* | hpux11*)
20974 # Give a soname corresponding to the major version so that dld.sl refuses to
20975 # link against other versions.
20976 version_type=sunos
20977 need_lib_prefix=no
20978 need_version=no
20979 case $host_cpu in
20980 ia64*)
20981 shrext_cmds='.so'
20982 hardcode_into_libs=yes
20983 dynamic_linker="$host_os dld.so"
20984 shlibpath_var=LD_LIBRARY_PATH
20985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20987 soname_spec='${libname}${release}${shared_ext}$major'
20988 if test "X$HPUX_IA64_MODE" = X32; then
20989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20990 else
20991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20995 hppa*64*)
20996 shrext_cmds='.sl'
20997 hardcode_into_libs=yes
20998 dynamic_linker="$host_os dld.sl"
20999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21002 soname_spec='${libname}${release}${shared_ext}$major'
21003 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21007 shrext_cmds='.sl'
21008 dynamic_linker="$host_os dld.sl"
21009 shlibpath_var=SHLIB_PATH
21010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21012 soname_spec='${libname}${release}${shared_ext}$major'
21014 esac
21015 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21016 postinstall_cmds='chmod 555 $lib'
21019 interix[3-9]*)
21020 version_type=linux
21021 need_lib_prefix=no
21022 need_version=no
21023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21024 soname_spec='${libname}${release}${shared_ext}$major'
21025 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21026 shlibpath_var=LD_LIBRARY_PATH
21027 shlibpath_overrides_runpath=no
21028 hardcode_into_libs=yes
21031 irix5* | irix6* | nonstopux*)
21032 case $host_os in
21033 nonstopux*) version_type=nonstopux ;;
21035 if test "$lt_cv_prog_gnu_ld" = yes; then
21036 version_type=linux
21037 else
21038 version_type=irix
21039 fi ;;
21040 esac
21041 need_lib_prefix=no
21042 need_version=no
21043 soname_spec='${libname}${release}${shared_ext}$major'
21044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21045 case $host_os in
21046 irix5* | nonstopux*)
21047 libsuff= shlibsuff=
21050 case $LD in # libtool.m4 will add one of these switches to LD
21051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21052 libsuff= shlibsuff= libmagic=32-bit;;
21053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21054 libsuff=32 shlibsuff=N32 libmagic=N32;;
21055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21056 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21057 *) libsuff= shlibsuff= libmagic=never-match;;
21058 esac
21060 esac
21061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21062 shlibpath_overrides_runpath=no
21063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21065 hardcode_into_libs=yes
21068 # No shared lib support for Linux oldld, aout, or coff.
21069 linux*oldld* | linux*aout* | linux*coff*)
21070 dynamic_linker=no
21073 # This must be Linux ELF.
21074 linux* | k*bsd*-gnu)
21075 version_type=linux
21076 need_lib_prefix=no
21077 need_version=no
21078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21079 soname_spec='${libname}${release}${shared_ext}$major'
21080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21081 shlibpath_var=LD_LIBRARY_PATH
21082 shlibpath_overrides_runpath=no
21083 # Some binutils ld are patched to set DT_RUNPATH
21084 save_LDFLAGS=$LDFLAGS
21085 save_libdir=$libdir
21086 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21087 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21088 cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h. */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21096 main ()
21100 return 0;
21102 _ACEOF
21103 rm -f conftest.$ac_objext conftest$ac_exeext
21104 if { (ac_try="$ac_link"
21105 case "(($ac_try" in
21106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107 *) ac_try_echo=$ac_try;;
21108 esac
21109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21110 $as_echo "$ac_try_echo") >&5
21111 (eval "$ac_link") 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && {
21118 test -z "$ac_cxx_werror_flag" ||
21119 test ! -s conftest.err
21120 } && test -s conftest$ac_exeext && {
21121 test "$cross_compiling" = yes ||
21122 $as_test_x conftest$ac_exeext
21123 }; then
21124 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
21125 shlibpath_overrides_runpath=yes
21128 else
21129 $as_echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21135 rm -rf conftest.dSYM
21136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21137 conftest$ac_exeext conftest.$ac_ext
21138 LDFLAGS=$save_LDFLAGS
21139 libdir=$save_libdir
21141 # This implies no fast_install, which is unacceptable.
21142 # Some rework will be needed to allow for fast_install
21143 # before this can be enabled.
21144 hardcode_into_libs=yes
21146 # Append ld.so.conf contents to the search path
21147 if test -f /etc/ld.so.conf; then
21148 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;/^$/d' | tr '\n' ' '`
21149 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21152 # We used to test for /lib/ld.so.1 and disable shared libraries on
21153 # powerpc, because MkLinux only supported shared libraries with the
21154 # GNU dynamic linker. Since this was broken with cross compilers,
21155 # most powerpc-linux boxes support dynamic linking these days and
21156 # people can always --disable-shared, the test was removed, and we
21157 # assume the GNU/Linux dynamic linker is in use.
21158 dynamic_linker='GNU/Linux ld.so'
21161 netbsd*)
21162 version_type=sunos
21163 need_lib_prefix=no
21164 need_version=no
21165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21168 dynamic_linker='NetBSD (a.out) ld.so'
21169 else
21170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21171 soname_spec='${libname}${release}${shared_ext}$major'
21172 dynamic_linker='NetBSD ld.elf_so'
21174 shlibpath_var=LD_LIBRARY_PATH
21175 shlibpath_overrides_runpath=yes
21176 hardcode_into_libs=yes
21179 newsos6)
21180 version_type=linux
21181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21182 shlibpath_var=LD_LIBRARY_PATH
21183 shlibpath_overrides_runpath=yes
21186 *nto* | *qnx*)
21187 version_type=qnx
21188 need_lib_prefix=no
21189 need_version=no
21190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21191 soname_spec='${libname}${release}${shared_ext}$major'
21192 shlibpath_var=LD_LIBRARY_PATH
21193 shlibpath_overrides_runpath=no
21194 hardcode_into_libs=yes
21195 dynamic_linker='ldqnx.so'
21198 openbsd*)
21199 version_type=sunos
21200 sys_lib_dlsearch_path_spec="/usr/lib"
21201 need_lib_prefix=no
21202 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21203 case $host_os in
21204 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21205 *) need_version=no ;;
21206 esac
21207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21209 shlibpath_var=LD_LIBRARY_PATH
21210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21211 case $host_os in
21212 openbsd2.[89] | openbsd2.[89].*)
21213 shlibpath_overrides_runpath=no
21216 shlibpath_overrides_runpath=yes
21218 esac
21219 else
21220 shlibpath_overrides_runpath=yes
21224 os2*)
21225 libname_spec='$name'
21226 shrext_cmds=".dll"
21227 need_lib_prefix=no
21228 library_names_spec='$libname${shared_ext} $libname.a'
21229 dynamic_linker='OS/2 ld.exe'
21230 shlibpath_var=LIBPATH
21233 osf3* | osf4* | osf5*)
21234 version_type=osf
21235 need_lib_prefix=no
21236 need_version=no
21237 soname_spec='${libname}${release}${shared_ext}$major'
21238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21239 shlibpath_var=LD_LIBRARY_PATH
21240 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21241 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21244 rdos*)
21245 dynamic_linker=no
21248 solaris*)
21249 version_type=linux
21250 need_lib_prefix=no
21251 need_version=no
21252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21253 soname_spec='${libname}${release}${shared_ext}$major'
21254 shlibpath_var=LD_LIBRARY_PATH
21255 shlibpath_overrides_runpath=yes
21256 hardcode_into_libs=yes
21257 # ldd complains unless libraries are executable
21258 postinstall_cmds='chmod +x $lib'
21261 sunos4*)
21262 version_type=sunos
21263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21264 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21265 shlibpath_var=LD_LIBRARY_PATH
21266 shlibpath_overrides_runpath=yes
21267 if test "$with_gnu_ld" = yes; then
21268 need_lib_prefix=no
21270 need_version=yes
21273 sysv4 | sysv4.3*)
21274 version_type=linux
21275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 soname_spec='${libname}${release}${shared_ext}$major'
21277 shlibpath_var=LD_LIBRARY_PATH
21278 case $host_vendor in
21279 sni)
21280 shlibpath_overrides_runpath=no
21281 need_lib_prefix=no
21282 runpath_var=LD_RUN_PATH
21284 siemens)
21285 need_lib_prefix=no
21287 motorola)
21288 need_lib_prefix=no
21289 need_version=no
21290 shlibpath_overrides_runpath=no
21291 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21293 esac
21296 sysv4*MP*)
21297 if test -d /usr/nec ;then
21298 version_type=linux
21299 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21300 soname_spec='$libname${shared_ext}.$major'
21301 shlibpath_var=LD_LIBRARY_PATH
21305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21306 version_type=freebsd-elf
21307 need_lib_prefix=no
21308 need_version=no
21309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21310 soname_spec='${libname}${release}${shared_ext}$major'
21311 shlibpath_var=LD_LIBRARY_PATH
21312 shlibpath_overrides_runpath=yes
21313 hardcode_into_libs=yes
21314 if test "$with_gnu_ld" = yes; then
21315 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21316 else
21317 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21318 case $host_os in
21319 sco3.2v5*)
21320 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21322 esac
21324 sys_lib_dlsearch_path_spec='/usr/lib'
21327 tpf*)
21328 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21329 version_type=linux
21330 need_lib_prefix=no
21331 need_version=no
21332 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21333 shlibpath_var=LD_LIBRARY_PATH
21334 shlibpath_overrides_runpath=no
21335 hardcode_into_libs=yes
21338 uts4*)
21339 version_type=linux
21340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21341 soname_spec='${libname}${release}${shared_ext}$major'
21342 shlibpath_var=LD_LIBRARY_PATH
21346 dynamic_linker=no
21348 esac
21349 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21350 $as_echo "$dynamic_linker" >&6; }
21351 test "$dynamic_linker" = no && can_build_shared=no
21353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21354 if test "$GCC" = yes; then
21355 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21358 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21359 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21361 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21362 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21400 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21401 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21402 hardcode_action_CXX=
21403 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21404 test -n "$runpath_var_CXX" ||
21405 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21407 # We can hardcode non-existent directories.
21408 if test "$hardcode_direct_CXX" != no &&
21409 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21410 # have to relink, otherwise we might link with an installed library
21411 # when we should be linking with a yet-to-be-installed one
21412 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21413 test "$hardcode_minus_L_CXX" != no; then
21414 # Linking always hardcodes the temporary library directory.
21415 hardcode_action_CXX=relink
21416 else
21417 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21418 hardcode_action_CXX=immediate
21420 else
21421 # We cannot hardcode anything, or else we can only hardcode existing
21422 # directories.
21423 hardcode_action_CXX=unsupported
21425 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21426 $as_echo "$hardcode_action_CXX" >&6; }
21428 if test "$hardcode_action_CXX" = relink ||
21429 test "$inherit_rpath_CXX" = yes; then
21430 # Fast installation is not supported
21431 enable_fast_install=no
21432 elif test "$shlibpath_overrides_runpath" = yes ||
21433 test "$enable_shared" = no; then
21434 # Fast installation is not necessary
21435 enable_fast_install=needless
21444 fi # test -n "$compiler"
21446 CC=$lt_save_CC
21447 LDCXX=$LD
21448 LD=$lt_save_LD
21449 GCC=$lt_save_GCC
21450 with_gnu_ld=$lt_save_with_gnu_ld
21451 lt_cv_path_LDCXX=$lt_cv_path_LD
21452 lt_cv_path_LD=$lt_save_path_LD
21453 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21454 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21455 fi # test "$_lt_caught_CXX_error" != yes
21457 ac_ext=c
21458 ac_cpp='$CPP $CPPFLAGS'
21459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21465 ac_ext=f
21466 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21467 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21468 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21471 archive_cmds_need_lc_F77=no
21472 allow_undefined_flag_F77=
21473 always_export_symbols_F77=no
21474 archive_expsym_cmds_F77=
21475 export_dynamic_flag_spec_F77=
21476 hardcode_direct_F77=no
21477 hardcode_direct_absolute_F77=no
21478 hardcode_libdir_flag_spec_F77=
21479 hardcode_libdir_flag_spec_ld_F77=
21480 hardcode_libdir_separator_F77=
21481 hardcode_minus_L_F77=no
21482 hardcode_automatic_F77=no
21483 inherit_rpath_F77=no
21484 module_cmds_F77=
21485 module_expsym_cmds_F77=
21486 link_all_deplibs_F77=unknown
21487 old_archive_cmds_F77=$old_archive_cmds
21488 no_undefined_flag_F77=
21489 whole_archive_flag_spec_F77=
21490 enable_shared_with_static_runtimes_F77=no
21492 # Source file extension for f77 test sources.
21493 ac_ext=f
21495 # Object file extension for compiled f77 test sources.
21496 objext=o
21497 objext_F77=$objext
21499 # No sense in running all these tests if we already determined that
21500 # the F77 compiler isn't working. Some variables (like enable_shared)
21501 # are currently assumed to apply to all compilers on this platform,
21502 # and will be corrupted by setting them based on a non-working compiler.
21503 if test "$_lt_disable_F77" != yes; then
21504 # Code to be used in simple compile tests
21505 lt_simple_compile_test_code="\
21506 subroutine t
21507 return
21511 # Code to be used in simple link tests
21512 lt_simple_link_test_code="\
21513 program t
21517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21524 # If no C compiler was specified, use CC.
21525 LTCC=${LTCC-"$CC"}
21527 # If no C compiler flags were specified, use CFLAGS.
21528 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21530 # Allow CC to be a program name with arguments.
21531 compiler=$CC
21534 # save warnings/boilerplate of simple test code
21535 ac_outfile=conftest.$ac_objext
21536 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21537 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21538 _lt_compiler_boilerplate=`cat conftest.err`
21539 $RM conftest*
21541 ac_outfile=conftest.$ac_objext
21542 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21543 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21544 _lt_linker_boilerplate=`cat conftest.err`
21545 $RM -r conftest*
21548 # Allow CC to be a program name with arguments.
21549 lt_save_CC="$CC"
21550 lt_save_GCC=$GCC
21551 CC=${F77-"f77"}
21552 compiler=$CC
21553 compiler_F77=$CC
21554 for cc_temp in $compiler""; do
21555 case $cc_temp in
21556 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21557 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21558 \-*) ;;
21559 *) break;;
21560 esac
21561 done
21562 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21564 GCC=$G77
21565 if test -n "$compiler"; then
21566 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21567 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21568 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
21569 $as_echo "$can_build_shared" >&6; }
21571 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21572 $as_echo_n "checking whether to build shared libraries... " >&6; }
21573 test "$can_build_shared" = "no" && enable_shared=no
21575 # On AIX, shared libraries and static libraries use the same namespace, and
21576 # are all built from PIC.
21577 case $host_os in
21578 aix3*)
21579 test "$enable_shared" = yes && enable_static=no
21580 if test -n "$RANLIB"; then
21581 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21582 postinstall_cmds='$RANLIB $lib'
21585 aix[4-9]*)
21586 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21587 test "$enable_shared" = yes && enable_static=no
21590 esac
21591 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
21592 $as_echo "$enable_shared" >&6; }
21594 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21595 $as_echo_n "checking whether to build static libraries... " >&6; }
21596 # Make sure either enable_shared or enable_static is yes.
21597 test "$enable_shared" = yes || enable_static=yes
21598 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
21599 $as_echo "$enable_static" >&6; }
21601 GCC_F77="$G77"
21602 LD_F77="$LD"
21604 ## CAVEAT EMPTOR:
21605 ## There is no encapsulation within the following macros, do not change
21606 ## the running order or otherwise move them around unless you know exactly
21607 ## what you are doing...
21608 lt_prog_compiler_wl_F77=
21609 lt_prog_compiler_pic_F77=
21610 lt_prog_compiler_static_F77=
21612 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21613 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21615 if test "$GCC" = yes; then
21616 lt_prog_compiler_wl_F77='-Wl,'
21617 lt_prog_compiler_static_F77='-static'
21619 case $host_os in
21620 aix*)
21621 # All AIX code is PIC.
21622 if test "$host_cpu" = ia64; then
21623 # AIX 5 now supports IA64 processor
21624 lt_prog_compiler_static_F77='-Bstatic'
21628 amigaos*)
21629 if test "$host_cpu" = m68k; then
21630 # FIXME: we need at least 68020 code to build shared libraries, but
21631 # adding the `-m68020' flag to GCC prevents building anything better,
21632 # like `-m68040'.
21633 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21638 # PIC is the default for these OSes.
21641 mingw* | cygwin* | pw32* | os2*)
21642 # This hack is so that the source file can tell whether it is being
21643 # built for inclusion in a dll (and should export symbols for example).
21644 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21645 # (--disable-auto-import) libraries
21646 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21649 darwin* | rhapsody*)
21650 # PIC is the default on this platform
21651 # Common symbols not allowed in MH_DYLIB files
21652 lt_prog_compiler_pic_F77='-fno-common'
21655 hpux*)
21656 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21657 # not for PA HP-UX.
21658 case $host_cpu in
21659 hppa*64*|ia64*)
21660 # +Z the default
21663 lt_prog_compiler_pic_F77='-fPIC'
21665 esac
21668 interix[3-9]*)
21669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21670 # Instead, we relocate shared libraries at runtime.
21673 msdosdjgpp*)
21674 # Just because we use GCC doesn't mean we suddenly get shared libraries
21675 # on systems that don't support them.
21676 lt_prog_compiler_can_build_shared_F77=no
21677 enable_shared=no
21680 *nto* | *qnx*)
21681 # QNX uses GNU C++, but need to define -shared option too, otherwise
21682 # it will coredump.
21683 lt_prog_compiler_pic_F77='-fPIC -shared'
21686 sysv4*MP*)
21687 if test -d /usr/nec; then
21688 lt_prog_compiler_pic_F77=-Kconform_pic
21693 lt_prog_compiler_pic_F77='-fPIC'
21695 esac
21696 else
21697 # PORTME Check for flag to pass linker flags through the system compiler.
21698 case $host_os in
21699 aix*)
21700 lt_prog_compiler_wl_F77='-Wl,'
21701 if test "$host_cpu" = ia64; then
21702 # AIX 5 now supports IA64 processor
21703 lt_prog_compiler_static_F77='-Bstatic'
21704 else
21705 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21709 mingw* | cygwin* | pw32* | os2*)
21710 # This hack is so that the source file can tell whether it is being
21711 # built for inclusion in a dll (and should export symbols for example).
21712 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21715 hpux9* | hpux10* | hpux11*)
21716 lt_prog_compiler_wl_F77='-Wl,'
21717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21718 # not for PA HP-UX.
21719 case $host_cpu in
21720 hppa*64*|ia64*)
21721 # +Z the default
21724 lt_prog_compiler_pic_F77='+Z'
21726 esac
21727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21728 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21731 irix5* | irix6* | nonstopux*)
21732 lt_prog_compiler_wl_F77='-Wl,'
21733 # PIC (with -KPIC) is the default.
21734 lt_prog_compiler_static_F77='-non_shared'
21737 linux* | k*bsd*-gnu)
21738 case $cc_basename in
21739 icc* | ecc* | ifort*)
21740 lt_prog_compiler_wl_F77='-Wl,'
21741 lt_prog_compiler_pic_F77='-KPIC'
21742 lt_prog_compiler_static_F77='-static'
21744 pgcc* | pgf77* | pgf90* | pgf95*)
21745 # Portland Group compilers (*not* the Pentium gcc compiler,
21746 # which looks to be a dead project)
21747 lt_prog_compiler_wl_F77='-Wl,'
21748 lt_prog_compiler_pic_F77='-fpic'
21749 lt_prog_compiler_static_F77='-Bstatic'
21751 ccc*)
21752 lt_prog_compiler_wl_F77='-Wl,'
21753 # All Alpha code is PIC.
21754 lt_prog_compiler_static_F77='-non_shared'
21756 xl*)
21757 # IBM XL C 8.0/Fortran 10.1 on PPC
21758 lt_prog_compiler_wl_F77='-Wl,'
21759 lt_prog_compiler_pic_F77='-qpic'
21760 lt_prog_compiler_static_F77='-qstaticlink'
21763 case `$CC -V 2>&1 | sed 5q` in
21764 *Sun\ C*)
21765 # Sun C 5.9
21766 lt_prog_compiler_pic_F77='-KPIC'
21767 lt_prog_compiler_static_F77='-Bstatic'
21768 lt_prog_compiler_wl_F77='-Wl,'
21770 *Sun\ F*)
21771 # Sun Fortran 8.3 passes all unrecognized flags to the linker
21772 lt_prog_compiler_pic_F77='-KPIC'
21773 lt_prog_compiler_static_F77='-Bstatic'
21774 lt_prog_compiler_wl_F77=''
21776 esac
21778 esac
21781 newsos6)
21782 lt_prog_compiler_pic_F77='-KPIC'
21783 lt_prog_compiler_static_F77='-Bstatic'
21786 *nto* | *qnx*)
21787 # QNX uses GNU C++, but need to define -shared option too, otherwise
21788 # it will coredump.
21789 lt_prog_compiler_pic_F77='-fPIC -shared'
21792 osf3* | osf4* | osf5*)
21793 lt_prog_compiler_wl_F77='-Wl,'
21794 # All OSF/1 code is PIC.
21795 lt_prog_compiler_static_F77='-non_shared'
21798 rdos*)
21799 lt_prog_compiler_static_F77='-non_shared'
21802 solaris*)
21803 lt_prog_compiler_pic_F77='-KPIC'
21804 lt_prog_compiler_static_F77='-Bstatic'
21805 case $cc_basename in
21806 f77* | f90* | f95*)
21807 lt_prog_compiler_wl_F77='-Qoption ld ';;
21809 lt_prog_compiler_wl_F77='-Wl,';;
21810 esac
21813 sunos4*)
21814 lt_prog_compiler_wl_F77='-Qoption ld '
21815 lt_prog_compiler_pic_F77='-PIC'
21816 lt_prog_compiler_static_F77='-Bstatic'
21819 sysv4 | sysv4.2uw2* | sysv4.3*)
21820 lt_prog_compiler_wl_F77='-Wl,'
21821 lt_prog_compiler_pic_F77='-KPIC'
21822 lt_prog_compiler_static_F77='-Bstatic'
21825 sysv4*MP*)
21826 if test -d /usr/nec ;then
21827 lt_prog_compiler_pic_F77='-Kconform_pic'
21828 lt_prog_compiler_static_F77='-Bstatic'
21832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21833 lt_prog_compiler_wl_F77='-Wl,'
21834 lt_prog_compiler_pic_F77='-KPIC'
21835 lt_prog_compiler_static_F77='-Bstatic'
21838 unicos*)
21839 lt_prog_compiler_wl_F77='-Wl,'
21840 lt_prog_compiler_can_build_shared_F77=no
21843 uts4*)
21844 lt_prog_compiler_pic_F77='-pic'
21845 lt_prog_compiler_static_F77='-Bstatic'
21849 lt_prog_compiler_can_build_shared_F77=no
21851 esac
21854 case $host_os in
21855 # For platforms which do not support PIC, -DPIC is meaningless:
21856 *djgpp*)
21857 lt_prog_compiler_pic_F77=
21860 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21862 esac
21863 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21864 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
21869 # Check to make sure the PIC flag actually works.
21871 if test -n "$lt_prog_compiler_pic_F77"; then
21872 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21873 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
21874 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
21875 $as_echo_n "(cached) " >&6
21876 else
21877 lt_cv_prog_compiler_pic_works_F77=no
21878 ac_outfile=conftest.$ac_objext
21879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21880 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21881 # Insert the option either (1) after the last *FLAGS variable, or
21882 # (2) before a word containing "conftest.", or (3) at the end.
21883 # Note that $ac_compile itself does not contain backslashes and begins
21884 # with a dollar sign (not a hyphen), so the echo should work correctly.
21885 # The option is referenced via a variable to avoid confusing sed.
21886 lt_compile=`echo "$ac_compile" | $SED \
21887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21889 -e 's:$: $lt_compiler_flag:'`
21890 (eval echo "\"\$as_me:21890: $lt_compile\"" >&5)
21891 (eval "$lt_compile" 2>conftest.err)
21892 ac_status=$?
21893 cat conftest.err >&5
21894 echo "$as_me:21894: \$? = $ac_status" >&5
21895 if (exit $ac_status) && test -s "$ac_outfile"; then
21896 # The compiler can only warn and ignore the option if not recognized
21897 # So say no if there are warnings other than the usual output.
21898 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21901 lt_cv_prog_compiler_pic_works_F77=yes
21904 $RM conftest*
21907 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
21908 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
21910 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21911 case $lt_prog_compiler_pic_F77 in
21912 "" | " "*) ;;
21913 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21914 esac
21915 else
21916 lt_prog_compiler_pic_F77=
21917 lt_prog_compiler_can_build_shared_F77=no
21925 # Check to make sure the static flag actually works.
21927 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21928 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21929 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21930 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
21931 $as_echo_n "(cached) " >&6
21932 else
21933 lt_cv_prog_compiler_static_works_F77=no
21934 save_LDFLAGS="$LDFLAGS"
21935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21938 # The linker can only warn and ignore the option if not recognized
21939 # So say no if there are warnings
21940 if test -s conftest.err; then
21941 # Append any errors to the config.log.
21942 cat conftest.err 1>&5
21943 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21945 if diff conftest.exp conftest.er2 >/dev/null; then
21946 lt_cv_prog_compiler_static_works_F77=yes
21948 else
21949 lt_cv_prog_compiler_static_works_F77=yes
21952 $RM -r conftest*
21953 LDFLAGS="$save_LDFLAGS"
21956 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
21957 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
21959 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21961 else
21962 lt_prog_compiler_static_F77=
21968 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21969 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21970 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21971 $as_echo_n "(cached) " >&6
21972 else
21973 lt_cv_prog_compiler_c_o_F77=no
21974 $RM -r conftest 2>/dev/null
21975 mkdir conftest
21976 cd conftest
21977 mkdir out
21978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21980 lt_compiler_flag="-o out/conftest2.$ac_objext"
21981 # Insert the option either (1) after the last *FLAGS variable, or
21982 # (2) before a word containing "conftest.", or (3) at the end.
21983 # Note that $ac_compile itself does not contain backslashes and begins
21984 # with a dollar sign (not a hyphen), so the echo should work correctly.
21985 lt_compile=`echo "$ac_compile" | $SED \
21986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21988 -e 's:$: $lt_compiler_flag:'`
21989 (eval echo "\"\$as_me:21989: $lt_compile\"" >&5)
21990 (eval "$lt_compile" 2>out/conftest.err)
21991 ac_status=$?
21992 cat out/conftest.err >&5
21993 echo "$as_me:21993: \$? = $ac_status" >&5
21994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21995 then
21996 # The compiler can only warn and ignore the option if not recognized
21997 # So say no if there are warnings
21998 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22001 lt_cv_prog_compiler_c_o_F77=yes
22004 chmod u+w . 2>&5
22005 $RM conftest*
22006 # SGI C++ compiler will create directory out/ii_files/ for
22007 # template instantiation
22008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22009 $RM out/* && rmdir out
22010 cd ..
22011 $RM -r conftest
22012 $RM conftest*
22015 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22016 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22020 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22022 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22023 $as_echo_n "(cached) " >&6
22024 else
22025 lt_cv_prog_compiler_c_o_F77=no
22026 $RM -r conftest 2>/dev/null
22027 mkdir conftest
22028 cd conftest
22029 mkdir out
22030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22032 lt_compiler_flag="-o out/conftest2.$ac_objext"
22033 # Insert the option either (1) after the last *FLAGS variable, or
22034 # (2) before a word containing "conftest.", or (3) at the end.
22035 # Note that $ac_compile itself does not contain backslashes and begins
22036 # with a dollar sign (not a hyphen), so the echo should work correctly.
22037 lt_compile=`echo "$ac_compile" | $SED \
22038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22040 -e 's:$: $lt_compiler_flag:'`
22041 (eval echo "\"\$as_me:22041: $lt_compile\"" >&5)
22042 (eval "$lt_compile" 2>out/conftest.err)
22043 ac_status=$?
22044 cat out/conftest.err >&5
22045 echo "$as_me:22045: \$? = $ac_status" >&5
22046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22047 then
22048 # The compiler can only warn and ignore the option if not recognized
22049 # So say no if there are warnings
22050 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22053 lt_cv_prog_compiler_c_o_F77=yes
22056 chmod u+w . 2>&5
22057 $RM conftest*
22058 # SGI C++ compiler will create directory out/ii_files/ for
22059 # template instantiation
22060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22061 $RM out/* && rmdir out
22062 cd ..
22063 $RM -r conftest
22064 $RM conftest*
22067 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22068 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
22073 hard_links="nottested"
22074 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22075 # do not overwrite the value of need_locks provided by the user
22076 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22077 $as_echo_n "checking if we can lock with hard links... " >&6; }
22078 hard_links=yes
22079 $RM conftest*
22080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22081 touch conftest.a
22082 ln conftest.a conftest.b 2>&5 || hard_links=no
22083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22084 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
22085 $as_echo "$hard_links" >&6; }
22086 if test "$hard_links" = no; then
22087 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22089 need_locks=warn
22091 else
22092 need_locks=no
22097 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22100 runpath_var=
22101 allow_undefined_flag_F77=
22102 always_export_symbols_F77=no
22103 archive_cmds_F77=
22104 archive_expsym_cmds_F77=
22105 compiler_needs_object_F77=no
22106 enable_shared_with_static_runtimes_F77=no
22107 export_dynamic_flag_spec_F77=
22108 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22109 hardcode_automatic_F77=no
22110 hardcode_direct_F77=no
22111 hardcode_direct_absolute_F77=no
22112 hardcode_libdir_flag_spec_F77=
22113 hardcode_libdir_flag_spec_ld_F77=
22114 hardcode_libdir_separator_F77=
22115 hardcode_minus_L_F77=no
22116 hardcode_shlibpath_var_F77=unsupported
22117 inherit_rpath_F77=no
22118 link_all_deplibs_F77=unknown
22119 module_cmds_F77=
22120 module_expsym_cmds_F77=
22121 old_archive_from_new_cmds_F77=
22122 old_archive_from_expsyms_cmds_F77=
22123 thread_safe_flag_spec_F77=
22124 whole_archive_flag_spec_F77=
22125 # include_expsyms should be a list of space-separated symbols to be *always*
22126 # included in the symbol list
22127 include_expsyms_F77=
22128 # exclude_expsyms can be an extended regexp of symbols to exclude
22129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22131 # as well as any symbol that contains `d'.
22132 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22134 # platforms (ab)use it in PIC code, but their linkers get confused if
22135 # the symbol is explicitly referenced. Since portable code cannot
22136 # rely on this symbol name, it's probably fine to never include it in
22137 # preloaded symbol tables.
22138 # Exclude shared library initialization/finalization symbols.
22139 extract_expsyms_cmds=
22141 case $host_os in
22142 cygwin* | mingw* | pw32*)
22143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22144 # When not using gcc, we currently assume that we are using
22145 # Microsoft Visual C++.
22146 if test "$GCC" != yes; then
22147 with_gnu_ld=no
22150 interix*)
22151 # we just hope/assume this is gcc and not c89 (= MSVC++)
22152 with_gnu_ld=yes
22154 openbsd*)
22155 with_gnu_ld=no
22157 esac
22159 ld_shlibs_F77=yes
22160 if test "$with_gnu_ld" = yes; then
22161 # If archive_cmds runs LD, not CC, wlarc should be empty
22162 wlarc='${wl}'
22164 # Set some defaults for GNU ld with shared library support. These
22165 # are reset later if shared libraries are not supported. Putting them
22166 # here allows them to be overridden if necessary.
22167 runpath_var=LD_RUN_PATH
22168 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22169 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22170 # ancient GNU ld didn't support --whole-archive et. al.
22171 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
22172 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22173 else
22174 whole_archive_flag_spec_F77=
22176 supports_anon_versioning=no
22177 case `$LD -v 2>&1` in
22178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22181 *\ 2.11.*) ;; # other 2.11 versions
22182 *) supports_anon_versioning=yes ;;
22183 esac
22185 # See if GNU ld supports shared libraries.
22186 case $host_os in
22187 aix[3-9]*)
22188 # On AIX/PPC, the GNU linker is very broken
22189 if test "$host_cpu" != ia64; then
22190 ld_shlibs_F77=no
22191 cat <<_LT_EOF 1>&2
22193 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22194 *** to be unable to reliably create shared libraries on AIX.
22195 *** Therefore, libtool is disabling shared libraries support. If you
22196 *** really care for shared libraries, you may want to modify your PATH
22197 *** so that a non-GNU linker is found, and then restart.
22199 _LT_EOF
22203 amigaos*)
22204 if test "$host_cpu" = m68k; then
22205 archive_cmds_F77='$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)'
22206 hardcode_libdir_flag_spec_F77='-L$libdir'
22207 hardcode_minus_L_F77=yes
22210 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22211 # that the semantics of dynamic libraries on AmigaOS, at least up
22212 # to version 4, is to share data among multiple programs linked
22213 # with the same dynamic library. Since this doesn't match the
22214 # behavior of shared libraries on other platforms, we can't use
22215 # them.
22216 ld_shlibs_F77=no
22219 beos*)
22220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22221 allow_undefined_flag_F77=unsupported
22222 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22223 # support --undefined. This deserves some investigation. FIXME
22224 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22225 else
22226 ld_shlibs_F77=no
22230 cygwin* | mingw* | pw32*)
22231 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22232 # as there is no search path for DLLs.
22233 hardcode_libdir_flag_spec_F77='-L$libdir'
22234 allow_undefined_flag_F77=unsupported
22235 always_export_symbols_F77=no
22236 enable_shared_with_static_runtimes_F77=yes
22237 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22239 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22240 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22241 # If the export-symbols file already is a .def file (1st line
22242 # is EXPORTS), use it as is; otherwise, prepend...
22243 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22244 cp $export_symbols $output_objdir/$soname.def;
22245 else
22246 echo EXPORTS > $output_objdir/$soname.def;
22247 cat $export_symbols >> $output_objdir/$soname.def;
22249 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22250 else
22251 ld_shlibs_F77=no
22255 interix[3-9]*)
22256 hardcode_direct_F77=no
22257 hardcode_shlibpath_var_F77=no
22258 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22259 export_dynamic_flag_spec_F77='${wl}-E'
22260 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22261 # Instead, shared libraries are loaded at an image base (0x10000000 by
22262 # default) and relocated if they conflict, which is a slow very memory
22263 # consuming and fragmenting process. To avoid this, we pick a random,
22264 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22265 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22266 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22267 archive_expsym_cmds_F77='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'
22270 gnu* | linux* | tpf* | k*bsd*-gnu)
22271 tmp_diet=no
22272 if test "$host_os" = linux-dietlibc; then
22273 case $cc_basename in
22274 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
22275 esac
22277 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
22278 && test "$tmp_diet" = no
22279 then
22280 tmp_addflag=
22281 tmp_sharedflag='-shared'
22282 case $cc_basename,$host_cpu in
22283 pgcc*) # Portland Group C compiler
22284 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
22285 tmp_addflag=' $pic_flag'
22287 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22288 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
22289 tmp_addflag=' $pic_flag -Mnomain' ;;
22290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22291 tmp_addflag=' -i_dynamic' ;;
22292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22293 tmp_addflag=' -i_dynamic -nofor_main' ;;
22294 ifc* | ifort*) # Intel Fortran compiler
22295 tmp_addflag=' -nofor_main' ;;
22296 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
22297 tmp_sharedflag='-qmkshrobj'
22298 tmp_addflag= ;;
22299 esac
22300 case `$CC -V 2>&1 | sed 5q` in
22301 *Sun\ C*) # Sun C 5.9
22302 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
22303 compiler_needs_object_F77=yes
22304 tmp_sharedflag='-G' ;;
22305 *Sun\ F*) # Sun Fortran 8.3
22306 tmp_sharedflag='-G' ;;
22307 esac
22308 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22310 if test "x$supports_anon_versioning" = xyes; then
22311 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22313 echo "local: *; };" >> $output_objdir/$libname.ver~
22314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22317 case $cc_basename in
22318 xlf*)
22319 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
22320 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
22321 hardcode_libdir_flag_spec_F77=
22322 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22323 archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
22324 if test "x$supports_anon_versioning" = xyes; then
22325 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22326 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22327 echo "local: *; };" >> $output_objdir/$libname.ver~
22328 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22331 esac
22332 else
22333 ld_shlibs_F77=no
22337 netbsd*)
22338 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22339 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22340 wlarc=
22341 else
22342 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22343 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22347 solaris*)
22348 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
22349 ld_shlibs_F77=no
22350 cat <<_LT_EOF 1>&2
22352 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22353 *** create shared libraries on Solaris systems. Therefore, libtool
22354 *** is disabling shared libraries support. We urge you to upgrade GNU
22355 *** binutils to release 2.9.1 or newer. Another option is to modify
22356 *** your PATH or compiler configuration so that the native linker is
22357 *** used, and then restart.
22359 _LT_EOF
22360 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22361 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22362 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22363 else
22364 ld_shlibs_F77=no
22368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22369 case `$LD -v 2>&1` in
22370 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22371 ld_shlibs_F77=no
22372 cat <<_LT_EOF 1>&2
22374 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22375 *** reliably create shared libraries on SCO systems. Therefore, libtool
22376 *** is disabling shared libraries support. We urge you to upgrade GNU
22377 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22378 *** your PATH or compiler configuration so that the native linker is
22379 *** used, and then restart.
22381 _LT_EOF
22384 # For security reasons, it is highly recommended that you always
22385 # use absolute paths for naming shared libraries, and exclude the
22386 # DT_RUNPATH tag from executables and libraries. But doing so
22387 # requires that you compile everything twice, which is a pain.
22388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22389 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22390 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22391 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22392 else
22393 ld_shlibs_F77=no
22396 esac
22399 sunos4*)
22400 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22401 wlarc=
22402 hardcode_direct_F77=yes
22403 hardcode_shlibpath_var_F77=no
22407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22408 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22409 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22410 else
22411 ld_shlibs_F77=no
22414 esac
22416 if test "$ld_shlibs_F77" = no; then
22417 runpath_var=
22418 hardcode_libdir_flag_spec_F77=
22419 export_dynamic_flag_spec_F77=
22420 whole_archive_flag_spec_F77=
22422 else
22423 # PORTME fill in a description of your system's linker (not GNU ld)
22424 case $host_os in
22425 aix3*)
22426 allow_undefined_flag_F77=unsupported
22427 always_export_symbols_F77=yes
22428 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22429 # Note: this linker hardcodes the directories in LIBPATH if there
22430 # are no directories specified by -L.
22431 hardcode_minus_L_F77=yes
22432 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22433 # Neither direct hardcoding nor static linking is supported with a
22434 # broken collect2.
22435 hardcode_direct_F77=unsupported
22439 aix[4-9]*)
22440 if test "$host_cpu" = ia64; then
22441 # On IA64, the linker does run time linking by default, so we don't
22442 # have to do anything special.
22443 aix_use_runtimelinking=no
22444 exp_sym_flag='-Bexport'
22445 no_entry_flag=""
22446 else
22447 # If we're using GNU nm, then we don't want the "-C" option.
22448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22449 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22450 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
22451 else
22452 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
22454 aix_use_runtimelinking=no
22456 # Test if we are trying to use run time linking or normal
22457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22458 # need to do runtime linking.
22459 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22460 for ld_flag in $LDFLAGS; do
22461 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22462 aix_use_runtimelinking=yes
22463 break
22465 done
22467 esac
22469 exp_sym_flag='-bexport'
22470 no_entry_flag='-bnoentry'
22473 # When large executables or shared objects are built, AIX ld can
22474 # have problems creating the table of contents. If linking a library
22475 # or program results in "error TOC overflow" add -mminimal-toc to
22476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22479 archive_cmds_F77=''
22480 hardcode_direct_F77=yes
22481 hardcode_direct_absolute_F77=yes
22482 hardcode_libdir_separator_F77=':'
22483 link_all_deplibs_F77=yes
22484 file_list_spec_F77='${wl}-f,'
22486 if test "$GCC" = yes; then
22487 case $host_os in aix4.[012]|aix4.[012].*)
22488 # We only want to do this on AIX 4.2 and lower, the check
22489 # below for broken collect2 doesn't work under 4.3+
22490 collect2name=`${CC} -print-prog-name=collect2`
22491 if test -f "$collect2name" &&
22492 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22493 then
22494 # We have reworked collect2
22496 else
22497 # We have old collect2
22498 hardcode_direct_F77=unsupported
22499 # It fails to find uninstalled libraries when the uninstalled
22500 # path is not listed in the libpath. Setting hardcode_minus_L
22501 # to unsupported forces relinking
22502 hardcode_minus_L_F77=yes
22503 hardcode_libdir_flag_spec_F77='-L$libdir'
22504 hardcode_libdir_separator_F77=
22507 esac
22508 shared_flag='-shared'
22509 if test "$aix_use_runtimelinking" = yes; then
22510 shared_flag="$shared_flag "'${wl}-G'
22512 else
22513 # not using gcc
22514 if test "$host_cpu" = ia64; then
22515 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22516 # chokes on -Wl,-G. The following line is correct:
22517 shared_flag='-G'
22518 else
22519 if test "$aix_use_runtimelinking" = yes; then
22520 shared_flag='${wl}-G'
22521 else
22522 shared_flag='${wl}-bM:SRE'
22527 # It seems that -bexpall does not export symbols beginning with
22528 # underscore (_), so it is better to generate a list of symbols to export.
22529 always_export_symbols_F77=yes
22530 if test "$aix_use_runtimelinking" = yes; then
22531 # Warning - without using the other runtime loading flags (-brtl),
22532 # -berok will link without error, but may produce a broken library.
22533 allow_undefined_flag_F77='-berok'
22534 # Determine the default libpath from the value encoded in an
22535 # empty executable.
22536 cat >conftest.$ac_ext <<_ACEOF
22537 program main
22540 _ACEOF
22541 rm -f conftest.$ac_objext conftest$ac_exeext
22542 if { (ac_try="$ac_link"
22543 case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22546 esac
22547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22548 $as_echo "$ac_try_echo") >&5
22549 (eval "$ac_link") 2>conftest.er1
22550 ac_status=$?
22551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
22554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } && {
22556 test -z "$ac_f77_werror_flag" ||
22557 test ! -s conftest.err
22558 } && test -s conftest$ac_exeext && {
22559 test "$cross_compiling" = yes ||
22560 $as_test_x conftest$ac_exeext
22561 }; then
22563 lt_aix_libpath_sed='
22564 /Import File Strings/,/^$/ {
22565 /^0/ {
22566 s/^0 *\(.*\)$/\1/
22570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22571 # Check for a 64-bit object if we didn't find anything.
22572 if test -z "$aix_libpath"; then
22573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22575 else
22576 $as_echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22582 rm -rf conftest.dSYM
22583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22584 conftest$ac_exeext conftest.$ac_ext
22585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22587 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22588 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22589 else
22590 if test "$host_cpu" = ia64; then
22591 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22592 allow_undefined_flag_F77="-z nodefs"
22593 archive_expsym_cmds_F77="\$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"
22594 else
22595 # Determine the default libpath from the value encoded in an
22596 # empty executable.
22597 cat >conftest.$ac_ext <<_ACEOF
22598 program main
22601 _ACEOF
22602 rm -f conftest.$ac_objext conftest$ac_exeext
22603 if { (ac_try="$ac_link"
22604 case "(($ac_try" in
22605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606 *) ac_try_echo=$ac_try;;
22607 esac
22608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22609 $as_echo "$ac_try_echo") >&5
22610 (eval "$ac_link") 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } && {
22617 test -z "$ac_f77_werror_flag" ||
22618 test ! -s conftest.err
22619 } && test -s conftest$ac_exeext && {
22620 test "$cross_compiling" = yes ||
22621 $as_test_x conftest$ac_exeext
22622 }; then
22624 lt_aix_libpath_sed='
22625 /Import File Strings/,/^$/ {
22626 /^0/ {
22627 s/^0 *\(.*\)$/\1/
22631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22632 # Check for a 64-bit object if we didn't find anything.
22633 if test -z "$aix_libpath"; then
22634 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22636 else
22637 $as_echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22643 rm -rf conftest.dSYM
22644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22645 conftest$ac_exeext conftest.$ac_ext
22646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22648 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22649 # Warning - without using the other run time loading flags,
22650 # -berok will link without error, but may produce a broken library.
22651 no_undefined_flag_F77=' ${wl}-bernotok'
22652 allow_undefined_flag_F77=' ${wl}-berok'
22653 # Exported symbols can be pulled into shared objects from archives
22654 whole_archive_flag_spec_F77='$convenience'
22655 archive_cmds_need_lc_F77=yes
22656 # This is similar to how AIX traditionally builds its shared libraries.
22657 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22662 amigaos*)
22663 if test "$host_cpu" = m68k; then
22664 archive_cmds_F77='$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)'
22665 hardcode_libdir_flag_spec_F77='-L$libdir'
22666 hardcode_minus_L_F77=yes
22668 # see comment about different semantics on the GNU ld section
22669 ld_shlibs_F77=no
22672 bsdi[45]*)
22673 export_dynamic_flag_spec_F77=-rdynamic
22676 cygwin* | mingw* | pw32*)
22677 # When not using gcc, we currently assume that we are using
22678 # Microsoft Visual C++.
22679 # hardcode_libdir_flag_spec is actually meaningless, as there is
22680 # no search path for DLLs.
22681 hardcode_libdir_flag_spec_F77=' '
22682 allow_undefined_flag_F77=unsupported
22683 # Tell ltmain to make .lib files, not .a files.
22684 libext=lib
22685 # Tell ltmain to make .dll files, not .so files.
22686 shrext_cmds=".dll"
22687 # FIXME: Setting linknames here is a bad hack.
22688 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
22689 # The linker will automatically build a .lib file if we build a DLL.
22690 old_archive_from_new_cmds_F77='true'
22691 # FIXME: Should let the user specify the lib program.
22692 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22693 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22694 enable_shared_with_static_runtimes_F77=yes
22697 darwin* | rhapsody*)
22700 archive_cmds_need_lc_F77=no
22701 hardcode_direct_F77=no
22702 hardcode_automatic_F77=yes
22703 hardcode_shlibpath_var_F77=unsupported
22704 whole_archive_flag_spec_F77=''
22705 link_all_deplibs_F77=yes
22706 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
22707 if test "$GCC" = "yes"; then
22708 output_verbose_link_cmd=echo
22709 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22710 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22711 archive_expsym_cmds_F77="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}"
22712 module_expsym_cmds_F77="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}"
22714 else
22715 ld_shlibs_F77=no
22720 dgux*)
22721 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22722 hardcode_libdir_flag_spec_F77='-L$libdir'
22723 hardcode_shlibpath_var_F77=no
22726 freebsd1*)
22727 ld_shlibs_F77=no
22730 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22731 # support. Future versions do this automatically, but an explicit c++rt0.o
22732 # does not break anything, and helps significantly (at the cost of a little
22733 # extra space).
22734 freebsd2.2*)
22735 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22736 hardcode_libdir_flag_spec_F77='-R$libdir'
22737 hardcode_direct_F77=yes
22738 hardcode_shlibpath_var_F77=no
22741 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22742 freebsd2*)
22743 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22744 hardcode_direct_F77=yes
22745 hardcode_minus_L_F77=yes
22746 hardcode_shlibpath_var_F77=no
22749 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22750 freebsd* | dragonfly*)
22751 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22752 hardcode_libdir_flag_spec_F77='-R$libdir'
22753 hardcode_direct_F77=yes
22754 hardcode_shlibpath_var_F77=no
22757 hpux9*)
22758 if test "$GCC" = yes; then
22759 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22760 else
22761 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22763 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22764 hardcode_libdir_separator_F77=:
22765 hardcode_direct_F77=yes
22767 # hardcode_minus_L: Not really in the search PATH,
22768 # but as the default location of the library.
22769 hardcode_minus_L_F77=yes
22770 export_dynamic_flag_spec_F77='${wl}-E'
22773 hpux10*)
22774 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22775 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22776 else
22777 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22779 if test "$with_gnu_ld" = no; then
22780 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22781 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22782 hardcode_libdir_separator_F77=:
22783 hardcode_direct_F77=yes
22784 hardcode_direct_absolute_F77=yes
22785 export_dynamic_flag_spec_F77='${wl}-E'
22786 # hardcode_minus_L: Not really in the search PATH,
22787 # but as the default location of the library.
22788 hardcode_minus_L_F77=yes
22792 hpux11*)
22793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22794 case $host_cpu in
22795 hppa*64*)
22796 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22798 ia64*)
22799 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22802 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22804 esac
22805 else
22806 case $host_cpu in
22807 hppa*64*)
22808 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22810 ia64*)
22811 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22814 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22816 esac
22818 if test "$with_gnu_ld" = no; then
22819 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22820 hardcode_libdir_separator_F77=:
22822 case $host_cpu in
22823 hppa*64*|ia64*)
22824 hardcode_direct_F77=no
22825 hardcode_shlibpath_var_F77=no
22828 hardcode_direct_F77=yes
22829 hardcode_direct_absolute_F77=yes
22830 export_dynamic_flag_spec_F77='${wl}-E'
22832 # hardcode_minus_L: Not really in the search PATH,
22833 # but as the default location of the library.
22834 hardcode_minus_L_F77=yes
22836 esac
22840 irix5* | irix6* | nonstopux*)
22841 if test "$GCC" = yes; then
22842 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22843 # Try to use the -exported_symbol ld option, if it does not
22844 # work, assume that -exports_file does not work either and
22845 # implicitly export all symbols.
22846 save_LDFLAGS="$LDFLAGS"
22847 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22848 cat >conftest.$ac_ext <<_ACEOF
22849 int foo(void) {}
22850 _ACEOF
22851 rm -f conftest.$ac_objext conftest$ac_exeext
22852 if { (ac_try="$ac_link"
22853 case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22856 esac
22857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22858 $as_echo "$ac_try_echo") >&5
22859 (eval "$ac_link") 2>conftest.er1
22860 ac_status=$?
22861 grep -v '^ *+' conftest.er1 >conftest.err
22862 rm -f conftest.er1
22863 cat conftest.err >&5
22864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } && {
22866 test -z "$ac_f77_werror_flag" ||
22867 test ! -s conftest.err
22868 } && test -s conftest$ac_exeext && {
22869 test "$cross_compiling" = yes ||
22870 $as_test_x conftest$ac_exeext
22871 }; then
22872 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
22874 else
22875 $as_echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22881 rm -rf conftest.dSYM
22882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22883 conftest$ac_exeext conftest.$ac_ext
22884 LDFLAGS="$save_LDFLAGS"
22885 else
22886 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
22887 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
22889 archive_cmds_need_lc_F77='no'
22890 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22891 hardcode_libdir_separator_F77=:
22892 inherit_rpath_F77=yes
22893 link_all_deplibs_F77=yes
22896 netbsd*)
22897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22898 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22899 else
22900 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22902 hardcode_libdir_flag_spec_F77='-R$libdir'
22903 hardcode_direct_F77=yes
22904 hardcode_shlibpath_var_F77=no
22907 newsos6)
22908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22909 hardcode_direct_F77=yes
22910 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22911 hardcode_libdir_separator_F77=:
22912 hardcode_shlibpath_var_F77=no
22915 *nto* | *qnx*)
22918 openbsd*)
22919 if test -f /usr/libexec/ld.so; then
22920 hardcode_direct_F77=yes
22921 hardcode_shlibpath_var_F77=no
22922 hardcode_direct_absolute_F77=yes
22923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22924 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22925 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22926 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22927 export_dynamic_flag_spec_F77='${wl}-E'
22928 else
22929 case $host_os in
22930 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22931 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22932 hardcode_libdir_flag_spec_F77='-R$libdir'
22935 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22936 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22938 esac
22940 else
22941 ld_shlibs_F77=no
22945 os2*)
22946 hardcode_libdir_flag_spec_F77='-L$libdir'
22947 hardcode_minus_L_F77=yes
22948 allow_undefined_flag_F77=unsupported
22949 archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
22950 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22953 osf3*)
22954 if test "$GCC" = yes; then
22955 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22956 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22957 else
22958 allow_undefined_flag_F77=' -expect_unresolved \*'
22959 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
22961 archive_cmds_need_lc_F77='no'
22962 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22963 hardcode_libdir_separator_F77=:
22966 osf4* | osf5*) # as osf3* with the addition of -msym flag
22967 if test "$GCC" = yes; then
22968 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22969 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22970 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22971 else
22972 allow_undefined_flag_F77=' -expect_unresolved \*'
22973 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
22974 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
22975 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
22977 # Both c and cxx compiler support -rpath directly
22978 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22980 archive_cmds_need_lc_F77='no'
22981 hardcode_libdir_separator_F77=:
22984 solaris*)
22985 no_undefined_flag_F77=' -z defs'
22986 if test "$GCC" = yes; then
22987 wlarc='${wl}'
22988 archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22989 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22990 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22991 else
22992 case `$CC -V 2>&1` in
22993 *"Compilers 5.0"*)
22994 wlarc=''
22995 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22996 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22997 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
23000 wlarc='${wl}'
23001 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
23002 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23003 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
23005 esac
23007 hardcode_libdir_flag_spec_F77='-R$libdir'
23008 hardcode_shlibpath_var_F77=no
23009 case $host_os in
23010 solaris2.[0-5] | solaris2.[0-5].*) ;;
23012 # The compiler driver will combine and reorder linker options,
23013 # but understands `-z linker_flag'. GCC discards it without `$wl',
23014 # but is careful enough not to reorder.
23015 # Supported since Solaris 2.6 (maybe 2.5.1?)
23016 if test "$GCC" = yes; then
23017 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23018 else
23019 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
23022 esac
23023 link_all_deplibs_F77=yes
23026 sunos4*)
23027 if test "x$host_vendor" = xsequent; then
23028 # Use $CC to link under sequent, because it throws in some extra .o
23029 # files that make .init and .fini sections work.
23030 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23031 else
23032 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23034 hardcode_libdir_flag_spec_F77='-L$libdir'
23035 hardcode_direct_F77=yes
23036 hardcode_minus_L_F77=yes
23037 hardcode_shlibpath_var_F77=no
23040 sysv4)
23041 case $host_vendor in
23042 sni)
23043 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23044 hardcode_direct_F77=yes # is this really true???
23046 siemens)
23047 ## LD is ld it makes a PLAMLIB
23048 ## CC just makes a GrossModule.
23049 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23050 reload_cmds_F77='$CC -r -o $output$reload_objs'
23051 hardcode_direct_F77=no
23053 motorola)
23054 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23055 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23057 esac
23058 runpath_var='LD_RUN_PATH'
23059 hardcode_shlibpath_var_F77=no
23062 sysv4.3*)
23063 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23064 hardcode_shlibpath_var_F77=no
23065 export_dynamic_flag_spec_F77='-Bexport'
23068 sysv4*MP*)
23069 if test -d /usr/nec; then
23070 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23071 hardcode_shlibpath_var_F77=no
23072 runpath_var=LD_RUN_PATH
23073 hardcode_runpath_var=yes
23074 ld_shlibs_F77=yes
23078 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
23079 no_undefined_flag_F77='${wl}-z,text'
23080 archive_cmds_need_lc_F77=no
23081 hardcode_shlibpath_var_F77=no
23082 runpath_var='LD_RUN_PATH'
23084 if test "$GCC" = yes; then
23085 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23086 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23087 else
23088 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23089 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23093 sysv5* | sco3.2v5* | sco5v6*)
23094 # Note: We can NOT use -z defs as we might desire, because we do not
23095 # link with -lc, and that would cause any symbols used from libc to
23096 # always be unresolved, which means just about no library would
23097 # ever link correctly. If we're not using GNU ld we use -z text
23098 # though, which does catch some bad symbols but isn't as heavy-handed
23099 # as -z defs.
23100 no_undefined_flag_F77='${wl}-z,text'
23101 allow_undefined_flag_F77='${wl}-z,nodefs'
23102 archive_cmds_need_lc_F77=no
23103 hardcode_shlibpath_var_F77=no
23104 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
23105 hardcode_libdir_separator_F77=':'
23106 link_all_deplibs_F77=yes
23107 export_dynamic_flag_spec_F77='${wl}-Bexport'
23108 runpath_var='LD_RUN_PATH'
23110 if test "$GCC" = yes; then
23111 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23112 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23113 else
23114 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23115 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23119 uts4*)
23120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23121 hardcode_libdir_flag_spec_F77='-L$libdir'
23122 hardcode_shlibpath_var_F77=no
23126 ld_shlibs_F77=no
23128 esac
23130 if test x$host_vendor = xsni; then
23131 case $host in
23132 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23133 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
23135 esac
23139 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23140 $as_echo "$ld_shlibs_F77" >&6; }
23141 test "$ld_shlibs_F77" = no && can_build_shared=no
23143 with_gnu_ld_F77=$with_gnu_ld
23151 # Do we need to explicitly link libc?
23153 case "x$archive_cmds_need_lc_F77" in
23154 x|xyes)
23155 # Assume -lc should be added
23156 archive_cmds_need_lc_F77=yes
23158 if test "$enable_shared" = yes && test "$GCC" = yes; then
23159 case $archive_cmds_F77 in
23160 *'~'*)
23161 # FIXME: we may have to deal with multi-command sequences.
23163 '$CC '*)
23164 # Test whether the compiler implicitly links with -lc since on some
23165 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23166 # to ld, don't add -lc before -lgcc.
23167 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23168 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
23169 $RM conftest*
23170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23173 (eval $ac_compile) 2>&5
23174 ac_status=$?
23175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } 2>conftest.err; then
23177 soname=conftest
23178 lib=conftest
23179 libobjs=conftest.$ac_objext
23180 deplibs=
23181 wl=$lt_prog_compiler_wl_F77
23182 pic_flag=$lt_prog_compiler_pic_F77
23183 compiler_flags=-v
23184 linker_flags=-v
23185 verstring=
23186 output_objdir=.
23187 libname=conftest
23188 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23189 allow_undefined_flag_F77=
23190 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
23191 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
23192 ac_status=$?
23193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }
23195 then
23196 archive_cmds_need_lc_F77=no
23197 else
23198 archive_cmds_need_lc_F77=yes
23200 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23201 else
23202 cat conftest.err 1>&5
23204 $RM conftest*
23205 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23206 $as_echo "$archive_cmds_need_lc_F77" >&6; }
23208 esac
23211 esac
23276 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23277 $as_echo_n "checking dynamic linker characteristics... " >&6; }
23279 library_names_spec=
23280 libname_spec='lib$name'
23281 soname_spec=
23282 shrext_cmds=".so"
23283 postinstall_cmds=
23284 postuninstall_cmds=
23285 finish_cmds=
23286 finish_eval=
23287 shlibpath_var=
23288 shlibpath_overrides_runpath=unknown
23289 version_type=none
23290 dynamic_linker="$host_os ld.so"
23291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23292 need_lib_prefix=unknown
23293 hardcode_into_libs=no
23295 # when you set need_version to no, make sure it does not cause -set_version
23296 # flags to be left without arguments
23297 need_version=unknown
23299 case $host_os in
23300 aix3*)
23301 version_type=linux
23302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23303 shlibpath_var=LIBPATH
23305 # AIX 3 has no versioning support, so we append a major version to the name.
23306 soname_spec='${libname}${release}${shared_ext}$major'
23309 aix[4-9]*)
23310 version_type=linux
23311 need_lib_prefix=no
23312 need_version=no
23313 hardcode_into_libs=yes
23314 if test "$host_cpu" = ia64; then
23315 # AIX 5 supports IA64
23316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23317 shlibpath_var=LD_LIBRARY_PATH
23318 else
23319 # With GCC up to 2.95.x, collect2 would create an import file
23320 # for dependence libraries. The import file would start with
23321 # the line `#! .'. This would cause the generated library to
23322 # depend on `.', always an invalid library. This was fixed in
23323 # development snapshots of GCC prior to 3.0.
23324 case $host_os in
23325 aix4 | aix4.[01] | aix4.[01].*)
23326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23327 echo ' yes '
23328 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
23330 else
23331 can_build_shared=no
23334 esac
23335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23336 # soname into executable. Probably we can add versioning support to
23337 # collect2, so additional links can be useful in future.
23338 if test "$aix_use_runtimelinking" = yes; then
23339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23340 # instead of lib<name>.a to let people know that these are not
23341 # typical AIX shared libraries.
23342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23343 else
23344 # We preserve .a as extension for shared libraries through AIX4.2
23345 # and later when we are not doing run time linking.
23346 library_names_spec='${libname}${release}.a $libname.a'
23347 soname_spec='${libname}${release}${shared_ext}$major'
23349 shlibpath_var=LIBPATH
23353 amigaos*)
23354 if test "$host_cpu" = m68k; then
23355 library_names_spec='$libname.ixlibrary $libname.a'
23356 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23357 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
23358 else
23359 dynamic_linker=no
23363 beos*)
23364 library_names_spec='${libname}${shared_ext}'
23365 dynamic_linker="$host_os ld.so"
23366 shlibpath_var=LIBRARY_PATH
23369 bsdi[45]*)
23370 version_type=linux
23371 need_version=no
23372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23373 soname_spec='${libname}${release}${shared_ext}$major'
23374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23375 shlibpath_var=LD_LIBRARY_PATH
23376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23378 # the default ld.so.conf also contains /usr/contrib/lib and
23379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23380 # libtool to hard-code these into programs
23383 cygwin* | mingw* | pw32*)
23384 version_type=windows
23385 shrext_cmds=".dll"
23386 need_version=no
23387 need_lib_prefix=no
23389 case $GCC,$host_os in
23390 yes,cygwin* | yes,mingw* | yes,pw32*)
23391 library_names_spec='$libname.dll.a'
23392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23393 postinstall_cmds='base_file=`basename \${file}`~
23394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
23395 dldir=$destdir/`dirname \$dlpath`~
23396 test -d \$dldir || mkdir -p \$dldir~
23397 $install_prog $dir/$dlname \$dldir/$dlname~
23398 chmod a+x \$dldir/$dlname~
23399 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23400 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23402 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23403 dlpath=$dir/\$dldll~
23404 $RM \$dlpath'
23405 shlibpath_overrides_runpath=yes
23407 case $host_os in
23408 cygwin*)
23409 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23410 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23411 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23413 mingw*)
23414 # MinGW DLLs use traditional 'lib' prefix
23415 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23416 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23417 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23418 # It is most probably a Windows format PATH printed by
23419 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23420 # path with ; separators, and with drive letters. We can handle the
23421 # drive letters (cygwin fileutils understands them), so leave them,
23422 # especially as we might pass files found there to a mingw objdump,
23423 # which wouldn't understand a cygwinified path. Ahh.
23424 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23425 else
23426 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23429 pw32*)
23430 # pw32 DLLs use 'pw' prefix rather than 'lib'
23431 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23433 esac
23437 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23439 esac
23440 dynamic_linker='Win32 ld.exe'
23441 # FIXME: first we should search . and the directory the executable is in
23442 shlibpath_var=PATH
23445 darwin* | rhapsody*)
23446 dynamic_linker="$host_os dyld"
23447 version_type=darwin
23448 need_lib_prefix=no
23449 need_version=no
23450 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23451 soname_spec='${libname}${release}${major}$shared_ext'
23452 shlibpath_overrides_runpath=yes
23453 shlibpath_var=DYLD_LIBRARY_PATH
23454 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23456 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23459 dgux*)
23460 version_type=linux
23461 need_lib_prefix=no
23462 need_version=no
23463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23464 soname_spec='${libname}${release}${shared_ext}$major'
23465 shlibpath_var=LD_LIBRARY_PATH
23468 freebsd1*)
23469 dynamic_linker=no
23472 freebsd* | dragonfly*)
23473 # DragonFly does not have aout. When/if they implement a new
23474 # versioning mechanism, adjust this.
23475 if test -x /usr/bin/objformat; then
23476 objformat=`/usr/bin/objformat`
23477 else
23478 case $host_os in
23479 freebsd[123]*) objformat=aout ;;
23480 *) objformat=elf ;;
23481 esac
23483 version_type=freebsd-$objformat
23484 case $version_type in
23485 freebsd-elf*)
23486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23487 need_version=no
23488 need_lib_prefix=no
23490 freebsd-*)
23491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23492 need_version=yes
23494 esac
23495 shlibpath_var=LD_LIBRARY_PATH
23496 case $host_os in
23497 freebsd2*)
23498 shlibpath_overrides_runpath=yes
23500 freebsd3.[01]* | freebsdelf3.[01]*)
23501 shlibpath_overrides_runpath=yes
23502 hardcode_into_libs=yes
23504 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23505 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23506 shlibpath_overrides_runpath=no
23507 hardcode_into_libs=yes
23509 *) # from 4.6 on, and DragonFly
23510 shlibpath_overrides_runpath=yes
23511 hardcode_into_libs=yes
23513 esac
23516 gnu*)
23517 version_type=linux
23518 need_lib_prefix=no
23519 need_version=no
23520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23521 soname_spec='${libname}${release}${shared_ext}$major'
23522 shlibpath_var=LD_LIBRARY_PATH
23523 hardcode_into_libs=yes
23526 hpux9* | hpux10* | hpux11*)
23527 # Give a soname corresponding to the major version so that dld.sl refuses to
23528 # link against other versions.
23529 version_type=sunos
23530 need_lib_prefix=no
23531 need_version=no
23532 case $host_cpu in
23533 ia64*)
23534 shrext_cmds='.so'
23535 hardcode_into_libs=yes
23536 dynamic_linker="$host_os dld.so"
23537 shlibpath_var=LD_LIBRARY_PATH
23538 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23540 soname_spec='${libname}${release}${shared_ext}$major'
23541 if test "X$HPUX_IA64_MODE" = X32; then
23542 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23543 else
23544 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23546 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23548 hppa*64*)
23549 shrext_cmds='.sl'
23550 hardcode_into_libs=yes
23551 dynamic_linker="$host_os dld.sl"
23552 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23555 soname_spec='${libname}${release}${shared_ext}$major'
23556 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23557 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23560 shrext_cmds='.sl'
23561 dynamic_linker="$host_os dld.sl"
23562 shlibpath_var=SHLIB_PATH
23563 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23565 soname_spec='${libname}${release}${shared_ext}$major'
23567 esac
23568 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23569 postinstall_cmds='chmod 555 $lib'
23572 interix[3-9]*)
23573 version_type=linux
23574 need_lib_prefix=no
23575 need_version=no
23576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23577 soname_spec='${libname}${release}${shared_ext}$major'
23578 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23579 shlibpath_var=LD_LIBRARY_PATH
23580 shlibpath_overrides_runpath=no
23581 hardcode_into_libs=yes
23584 irix5* | irix6* | nonstopux*)
23585 case $host_os in
23586 nonstopux*) version_type=nonstopux ;;
23588 if test "$lt_cv_prog_gnu_ld" = yes; then
23589 version_type=linux
23590 else
23591 version_type=irix
23592 fi ;;
23593 esac
23594 need_lib_prefix=no
23595 need_version=no
23596 soname_spec='${libname}${release}${shared_ext}$major'
23597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23598 case $host_os in
23599 irix5* | nonstopux*)
23600 libsuff= shlibsuff=
23603 case $LD in # libtool.m4 will add one of these switches to LD
23604 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23605 libsuff= shlibsuff= libmagic=32-bit;;
23606 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23607 libsuff=32 shlibsuff=N32 libmagic=N32;;
23608 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23609 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23610 *) libsuff= shlibsuff= libmagic=never-match;;
23611 esac
23613 esac
23614 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23615 shlibpath_overrides_runpath=no
23616 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23617 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23618 hardcode_into_libs=yes
23621 # No shared lib support for Linux oldld, aout, or coff.
23622 linux*oldld* | linux*aout* | linux*coff*)
23623 dynamic_linker=no
23626 # This must be Linux ELF.
23627 linux* | k*bsd*-gnu)
23628 version_type=linux
23629 need_lib_prefix=no
23630 need_version=no
23631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23632 soname_spec='${libname}${release}${shared_ext}$major'
23633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23634 shlibpath_var=LD_LIBRARY_PATH
23635 shlibpath_overrides_runpath=no
23636 # Some binutils ld are patched to set DT_RUNPATH
23637 save_LDFLAGS=$LDFLAGS
23638 save_libdir=$libdir
23639 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
23640 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
23641 cat >conftest.$ac_ext <<_ACEOF
23642 program main
23645 _ACEOF
23646 rm -f conftest.$ac_objext conftest$ac_exeext
23647 if { (ac_try="$ac_link"
23648 case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23651 esac
23652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23653 $as_echo "$ac_try_echo") >&5
23654 (eval "$ac_link") 2>conftest.er1
23655 ac_status=$?
23656 grep -v '^ *+' conftest.er1 >conftest.err
23657 rm -f conftest.er1
23658 cat conftest.err >&5
23659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); } && {
23661 test -z "$ac_f77_werror_flag" ||
23662 test ! -s conftest.err
23663 } && test -s conftest$ac_exeext && {
23664 test "$cross_compiling" = yes ||
23665 $as_test_x conftest$ac_exeext
23666 }; then
23667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
23668 shlibpath_overrides_runpath=yes
23671 else
23672 $as_echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23678 rm -rf conftest.dSYM
23679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23680 conftest$ac_exeext conftest.$ac_ext
23681 LDFLAGS=$save_LDFLAGS
23682 libdir=$save_libdir
23684 # This implies no fast_install, which is unacceptable.
23685 # Some rework will be needed to allow for fast_install
23686 # before this can be enabled.
23687 hardcode_into_libs=yes
23689 # Append ld.so.conf contents to the search path
23690 if test -f /etc/ld.so.conf; then
23691 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;/^$/d' | tr '\n' ' '`
23692 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23695 # We used to test for /lib/ld.so.1 and disable shared libraries on
23696 # powerpc, because MkLinux only supported shared libraries with the
23697 # GNU dynamic linker. Since this was broken with cross compilers,
23698 # most powerpc-linux boxes support dynamic linking these days and
23699 # people can always --disable-shared, the test was removed, and we
23700 # assume the GNU/Linux dynamic linker is in use.
23701 dynamic_linker='GNU/Linux ld.so'
23704 netbsd*)
23705 version_type=sunos
23706 need_lib_prefix=no
23707 need_version=no
23708 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23711 dynamic_linker='NetBSD (a.out) ld.so'
23712 else
23713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23714 soname_spec='${libname}${release}${shared_ext}$major'
23715 dynamic_linker='NetBSD ld.elf_so'
23717 shlibpath_var=LD_LIBRARY_PATH
23718 shlibpath_overrides_runpath=yes
23719 hardcode_into_libs=yes
23722 newsos6)
23723 version_type=linux
23724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23725 shlibpath_var=LD_LIBRARY_PATH
23726 shlibpath_overrides_runpath=yes
23729 *nto* | *qnx*)
23730 version_type=qnx
23731 need_lib_prefix=no
23732 need_version=no
23733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23734 soname_spec='${libname}${release}${shared_ext}$major'
23735 shlibpath_var=LD_LIBRARY_PATH
23736 shlibpath_overrides_runpath=no
23737 hardcode_into_libs=yes
23738 dynamic_linker='ldqnx.so'
23741 openbsd*)
23742 version_type=sunos
23743 sys_lib_dlsearch_path_spec="/usr/lib"
23744 need_lib_prefix=no
23745 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23746 case $host_os in
23747 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23748 *) need_version=no ;;
23749 esac
23750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23752 shlibpath_var=LD_LIBRARY_PATH
23753 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23754 case $host_os in
23755 openbsd2.[89] | openbsd2.[89].*)
23756 shlibpath_overrides_runpath=no
23759 shlibpath_overrides_runpath=yes
23761 esac
23762 else
23763 shlibpath_overrides_runpath=yes
23767 os2*)
23768 libname_spec='$name'
23769 shrext_cmds=".dll"
23770 need_lib_prefix=no
23771 library_names_spec='$libname${shared_ext} $libname.a'
23772 dynamic_linker='OS/2 ld.exe'
23773 shlibpath_var=LIBPATH
23776 osf3* | osf4* | osf5*)
23777 version_type=osf
23778 need_lib_prefix=no
23779 need_version=no
23780 soname_spec='${libname}${release}${shared_ext}$major'
23781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23782 shlibpath_var=LD_LIBRARY_PATH
23783 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23784 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23787 rdos*)
23788 dynamic_linker=no
23791 solaris*)
23792 version_type=linux
23793 need_lib_prefix=no
23794 need_version=no
23795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23796 soname_spec='${libname}${release}${shared_ext}$major'
23797 shlibpath_var=LD_LIBRARY_PATH
23798 shlibpath_overrides_runpath=yes
23799 hardcode_into_libs=yes
23800 # ldd complains unless libraries are executable
23801 postinstall_cmds='chmod +x $lib'
23804 sunos4*)
23805 version_type=sunos
23806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23807 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23808 shlibpath_var=LD_LIBRARY_PATH
23809 shlibpath_overrides_runpath=yes
23810 if test "$with_gnu_ld" = yes; then
23811 need_lib_prefix=no
23813 need_version=yes
23816 sysv4 | sysv4.3*)
23817 version_type=linux
23818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23819 soname_spec='${libname}${release}${shared_ext}$major'
23820 shlibpath_var=LD_LIBRARY_PATH
23821 case $host_vendor in
23822 sni)
23823 shlibpath_overrides_runpath=no
23824 need_lib_prefix=no
23825 runpath_var=LD_RUN_PATH
23827 siemens)
23828 need_lib_prefix=no
23830 motorola)
23831 need_lib_prefix=no
23832 need_version=no
23833 shlibpath_overrides_runpath=no
23834 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23836 esac
23839 sysv4*MP*)
23840 if test -d /usr/nec ;then
23841 version_type=linux
23842 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23843 soname_spec='$libname${shared_ext}.$major'
23844 shlibpath_var=LD_LIBRARY_PATH
23848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23849 version_type=freebsd-elf
23850 need_lib_prefix=no
23851 need_version=no
23852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23853 soname_spec='${libname}${release}${shared_ext}$major'
23854 shlibpath_var=LD_LIBRARY_PATH
23855 shlibpath_overrides_runpath=yes
23856 hardcode_into_libs=yes
23857 if test "$with_gnu_ld" = yes; then
23858 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23859 else
23860 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23861 case $host_os in
23862 sco3.2v5*)
23863 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23865 esac
23867 sys_lib_dlsearch_path_spec='/usr/lib'
23870 tpf*)
23871 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23872 version_type=linux
23873 need_lib_prefix=no
23874 need_version=no
23875 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23876 shlibpath_var=LD_LIBRARY_PATH
23877 shlibpath_overrides_runpath=no
23878 hardcode_into_libs=yes
23881 uts4*)
23882 version_type=linux
23883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23884 soname_spec='${libname}${release}${shared_ext}$major'
23885 shlibpath_var=LD_LIBRARY_PATH
23889 dynamic_linker=no
23891 esac
23892 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23893 $as_echo "$dynamic_linker" >&6; }
23894 test "$dynamic_linker" = no && can_build_shared=no
23896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23897 if test "$GCC" = yes; then
23898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23901 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23902 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23904 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23905 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23943 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23944 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23945 hardcode_action_F77=
23946 if test -n "$hardcode_libdir_flag_spec_F77" ||
23947 test -n "$runpath_var_F77" ||
23948 test "X$hardcode_automatic_F77" = "Xyes" ; then
23950 # We can hardcode non-existent directories.
23951 if test "$hardcode_direct_F77" != no &&
23952 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23953 # have to relink, otherwise we might link with an installed library
23954 # when we should be linking with a yet-to-be-installed one
23955 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23956 test "$hardcode_minus_L_F77" != no; then
23957 # Linking always hardcodes the temporary library directory.
23958 hardcode_action_F77=relink
23959 else
23960 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23961 hardcode_action_F77=immediate
23963 else
23964 # We cannot hardcode anything, or else we can only hardcode existing
23965 # directories.
23966 hardcode_action_F77=unsupported
23968 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23969 $as_echo "$hardcode_action_F77" >&6; }
23971 if test "$hardcode_action_F77" = relink ||
23972 test "$inherit_rpath_F77" = yes; then
23973 # Fast installation is not supported
23974 enable_fast_install=no
23975 elif test "$shlibpath_overrides_runpath" = yes ||
23976 test "$enable_shared" = no; then
23977 # Fast installation is not necessary
23978 enable_fast_install=needless
23987 fi # test -n "$compiler"
23989 GCC=$lt_save_GCC
23990 CC="$lt_save_CC"
23991 fi # test "$_lt_disable_F77" != yes
23993 ac_ext=c
23994 ac_cpp='$CPP $CPPFLAGS'
23995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24009 ac_config_commands="$ac_config_commands libtool"
24014 # Only expand once:
24020 { $as_echo "$as_me:$LINENO: checking whether gcc __attribute__ ((mode (XX))) works" >&5
24021 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
24022 if test "${gmp_cv_c_attribute_mode+set}" = set; then
24023 $as_echo_n "(cached) " >&6
24024 else
24025 cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h. */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24031 typedef int SItype __attribute__ ((mode (SI)));
24033 main ()
24037 return 0;
24039 _ACEOF
24040 rm -f conftest.$ac_objext
24041 if { (ac_try="$ac_compile"
24042 case "(($ac_try" in
24043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24044 *) ac_try_echo=$ac_try;;
24045 esac
24046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24047 $as_echo "$ac_try_echo") >&5
24048 (eval "$ac_compile") 2>conftest.er1
24049 ac_status=$?
24050 grep -v '^ *+' conftest.er1 >conftest.err
24051 rm -f conftest.er1
24052 cat conftest.err >&5
24053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); } && {
24055 test -z "$ac_c_werror_flag" ||
24056 test ! -s conftest.err
24057 } && test -s conftest.$ac_objext; then
24058 gmp_cv_c_attribute_mode=yes
24059 else
24060 $as_echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24063 gmp_cv_c_attribute_mode=no
24066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069 { $as_echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_mode" >&5
24070 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
24071 if test $gmp_cv_c_attribute_mode = yes; then
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_ATTRIBUTE_MODE 1
24075 _ACEOF
24082 { $as_echo "$as_me:$LINENO: checking for recent GMP" >&5
24083 $as_echo_n "checking for recent GMP... " >&6; }
24084 cat >conftest.$ac_ext <<_ACEOF
24085 /* confdefs.h. */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h. */
24091 #include "gmp.h"
24092 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
24093 # error "min GMP version is 4.1.0"
24094 error
24095 #endif
24097 _ACEOF
24098 rm -f conftest.$ac_objext
24099 if { (ac_try="$ac_compile"
24100 case "(($ac_try" in
24101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102 *) ac_try_echo=$ac_try;;
24103 esac
24104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24105 $as_echo "$ac_try_echo") >&5
24106 (eval "$ac_compile") 2>conftest.er1
24107 ac_status=$?
24108 grep -v '^ *+' conftest.er1 >conftest.err
24109 rm -f conftest.er1
24110 cat conftest.err >&5
24111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); } && {
24113 test -z "$ac_c_werror_flag" ||
24114 test ! -s conftest.err
24115 } && test -s conftest.$ac_objext; then
24116 { $as_echo "$as_me:$LINENO: result: yes" >&5
24117 $as_echo "yes" >&6; }
24118 else
24119 $as_echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24123 { $as_echo "$as_me:$LINENO: result: no" >&5
24124 $as_echo "no" >&6; }
24125 { { $as_echo "$as_me:$LINENO: error: GMP 4.1.0 min required" >&5
24126 $as_echo "$as_me: error: GMP 4.1.0 min required" >&2;}
24127 { (exit 1); exit 1; }; }
24131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24133 { $as_echo "$as_me:$LINENO: checking for gmp internal files" >&5
24134 $as_echo_n "checking for gmp internal files... " >&6; }
24135 cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h. */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24142 #include "gmp.h"
24143 #include "gmp-impl.h"
24144 #include "longlong.h"
24146 _ACEOF
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24152 esac
24153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154 $as_echo "$ac_try_echo") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24156 ac_status=$?
24157 grep -v '^ *+' conftest.er1 >conftest.err
24158 rm -f conftest.er1
24159 cat conftest.err >&5
24160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24166 { $as_echo "$as_me:$LINENO: result: yes" >&5
24167 $as_echo "yes" >&6; }
24169 cat >>confdefs.h <<\_ACEOF
24170 #define MPFR_HAVE_GMP_IMPL 1
24171 _ACEOF
24173 gmp_internal_file_check=yes
24175 else
24176 $as_echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24180 { $as_echo "$as_me:$LINENO: result: no" >&5
24181 $as_echo "no" >&6; }
24182 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24183 # for constant arguments. Useless!
24184 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
24185 $as_echo_n "checking for working alloca.h... " >&6; }
24186 if test "${ac_cv_working_alloca_h+set}" = set; then
24187 $as_echo_n "(cached) " >&6
24188 else
24189 cat >conftest.$ac_ext <<_ACEOF
24190 /* confdefs.h. */
24191 _ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 #include <alloca.h>
24197 main ()
24199 char *p = (char *) alloca (2 * sizeof (int));
24200 if (p) return 0;
24202 return 0;
24204 _ACEOF
24205 rm -f conftest.$ac_objext conftest$ac_exeext
24206 if { (ac_try="$ac_link"
24207 case "(($ac_try" in
24208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24209 *) ac_try_echo=$ac_try;;
24210 esac
24211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24212 $as_echo "$ac_try_echo") >&5
24213 (eval "$ac_link") 2>conftest.er1
24214 ac_status=$?
24215 grep -v '^ *+' conftest.er1 >conftest.err
24216 rm -f conftest.er1
24217 cat conftest.err >&5
24218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219 (exit $ac_status); } && {
24220 test -z "$ac_c_werror_flag" ||
24221 test ! -s conftest.err
24222 } && test -s conftest$ac_exeext && {
24223 test "$cross_compiling" = yes ||
24224 $as_test_x conftest$ac_exeext
24225 }; then
24226 ac_cv_working_alloca_h=yes
24227 else
24228 $as_echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24231 ac_cv_working_alloca_h=no
24234 rm -rf conftest.dSYM
24235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24236 conftest$ac_exeext conftest.$ac_ext
24238 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24239 $as_echo "$ac_cv_working_alloca_h" >&6; }
24240 if test $ac_cv_working_alloca_h = yes; then
24242 cat >>confdefs.h <<\_ACEOF
24243 #define HAVE_ALLOCA_H 1
24244 _ACEOF
24248 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
24249 $as_echo_n "checking for alloca... " >&6; }
24250 if test "${ac_cv_func_alloca_works+set}" = set; then
24251 $as_echo_n "(cached) " >&6
24252 else
24253 cat >conftest.$ac_ext <<_ACEOF
24254 /* confdefs.h. */
24255 _ACEOF
24256 cat confdefs.h >>conftest.$ac_ext
24257 cat >>conftest.$ac_ext <<_ACEOF
24258 /* end confdefs.h. */
24259 #ifdef __GNUC__
24260 # define alloca __builtin_alloca
24261 #else
24262 # ifdef _MSC_VER
24263 # include <malloc.h>
24264 # define alloca _alloca
24265 # else
24266 # ifdef HAVE_ALLOCA_H
24267 # include <alloca.h>
24268 # else
24269 # ifdef _AIX
24270 #pragma alloca
24271 # else
24272 # ifndef alloca /* predefined by HP cc +Olibcalls */
24273 char *alloca ();
24274 # endif
24275 # endif
24276 # endif
24277 # endif
24278 #endif
24281 main ()
24283 char *p = (char *) alloca (1);
24284 if (p) return 0;
24286 return 0;
24288 _ACEOF
24289 rm -f conftest.$ac_objext conftest$ac_exeext
24290 if { (ac_try="$ac_link"
24291 case "(($ac_try" in
24292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293 *) ac_try_echo=$ac_try;;
24294 esac
24295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24296 $as_echo "$ac_try_echo") >&5
24297 (eval "$ac_link") 2>conftest.er1
24298 ac_status=$?
24299 grep -v '^ *+' conftest.er1 >conftest.err
24300 rm -f conftest.er1
24301 cat conftest.err >&5
24302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } && {
24304 test -z "$ac_c_werror_flag" ||
24305 test ! -s conftest.err
24306 } && test -s conftest$ac_exeext && {
24307 test "$cross_compiling" = yes ||
24308 $as_test_x conftest$ac_exeext
24309 }; then
24310 ac_cv_func_alloca_works=yes
24311 else
24312 $as_echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24315 ac_cv_func_alloca_works=no
24318 rm -rf conftest.dSYM
24319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24320 conftest$ac_exeext conftest.$ac_ext
24322 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24323 $as_echo "$ac_cv_func_alloca_works" >&6; }
24325 if test $ac_cv_func_alloca_works = yes; then
24327 cat >>confdefs.h <<\_ACEOF
24328 #define HAVE_ALLOCA 1
24329 _ACEOF
24331 else
24332 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24333 # that cause trouble. Some versions do not even contain alloca or
24334 # contain a buggy version. If you still want to use their alloca,
24335 # use ar to extract alloca.o from them instead of compiling alloca.c.
24337 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24339 cat >>confdefs.h <<\_ACEOF
24340 #define C_ALLOCA 1
24341 _ACEOF
24344 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24345 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
24346 if test "${ac_cv_os_cray+set}" = set; then
24347 $as_echo_n "(cached) " >&6
24348 else
24349 cat >conftest.$ac_ext <<_ACEOF
24350 /* confdefs.h. */
24351 _ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h. */
24355 #if defined CRAY && ! defined CRAY2
24356 webecray
24357 #else
24358 wenotbecray
24359 #endif
24361 _ACEOF
24362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24363 $EGREP "webecray" >/dev/null 2>&1; then
24364 ac_cv_os_cray=yes
24365 else
24366 ac_cv_os_cray=no
24368 rm -f conftest*
24371 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24372 $as_echo "$ac_cv_os_cray" >&6; }
24373 if test $ac_cv_os_cray = yes; then
24374 for ac_func in _getb67 GETB67 getb67; do
24375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24376 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24377 $as_echo_n "checking for $ac_func... " >&6; }
24378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24379 $as_echo_n "(cached) " >&6
24380 else
24381 cat >conftest.$ac_ext <<_ACEOF
24382 /* confdefs.h. */
24383 _ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h. */
24387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24389 #define $ac_func innocuous_$ac_func
24391 /* System header to define __stub macros and hopefully few prototypes,
24392 which can conflict with char $ac_func (); below.
24393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24394 <limits.h> exists even on freestanding compilers. */
24396 #ifdef __STDC__
24397 # include <limits.h>
24398 #else
24399 # include <assert.h>
24400 #endif
24402 #undef $ac_func
24404 /* Override any GCC internal prototype to avoid an error.
24405 Use char because int might match the return type of a GCC
24406 builtin and then its argument prototype would still apply. */
24407 #ifdef __cplusplus
24408 extern "C"
24409 #endif
24410 char $ac_func ();
24411 /* The GNU C library defines this for functions which it implements
24412 to always fail with ENOSYS. Some functions are actually named
24413 something starting with __ and the normal name is an alias. */
24414 #if defined __stub_$ac_func || defined __stub___$ac_func
24415 choke me
24416 #endif
24419 main ()
24421 return $ac_func ();
24423 return 0;
24425 _ACEOF
24426 rm -f conftest.$ac_objext conftest$ac_exeext
24427 if { (ac_try="$ac_link"
24428 case "(($ac_try" in
24429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24430 *) ac_try_echo=$ac_try;;
24431 esac
24432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24433 $as_echo "$ac_try_echo") >&5
24434 (eval "$ac_link") 2>conftest.er1
24435 ac_status=$?
24436 grep -v '^ *+' conftest.er1 >conftest.err
24437 rm -f conftest.er1
24438 cat conftest.err >&5
24439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440 (exit $ac_status); } && {
24441 test -z "$ac_c_werror_flag" ||
24442 test ! -s conftest.err
24443 } && test -s conftest$ac_exeext && {
24444 test "$cross_compiling" = yes ||
24445 $as_test_x conftest$ac_exeext
24446 }; then
24447 eval "$as_ac_var=yes"
24448 else
24449 $as_echo "$as_me: failed program was:" >&5
24450 sed 's/^/| /' conftest.$ac_ext >&5
24452 eval "$as_ac_var=no"
24455 rm -rf conftest.dSYM
24456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24457 conftest$ac_exeext conftest.$ac_ext
24459 ac_res=`eval 'as_val=${'$as_ac_var'}
24460 $as_echo "$as_val"'`
24461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24462 $as_echo "$ac_res" >&6; }
24463 as_val=`eval 'as_val=${'$as_ac_var'}
24464 $as_echo "$as_val"'`
24465 if test "x$as_val" = x""yes; then
24467 cat >>confdefs.h <<_ACEOF
24468 #define CRAY_STACKSEG_END $ac_func
24469 _ACEOF
24471 break
24474 done
24477 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24478 $as_echo_n "checking stack direction for C alloca... " >&6; }
24479 if test "${ac_cv_c_stack_direction+set}" = set; then
24480 $as_echo_n "(cached) " >&6
24481 else
24482 if test "$cross_compiling" = yes; then
24483 ac_cv_c_stack_direction=0
24484 else
24485 cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 $ac_includes_default
24493 find_stack_direction ()
24495 static char *addr = 0;
24496 auto char dummy;
24497 if (addr == 0)
24499 addr = &dummy;
24500 return find_stack_direction ();
24502 else
24503 return (&dummy > addr) ? 1 : -1;
24507 main ()
24509 return find_stack_direction () < 0;
24511 _ACEOF
24512 rm -f conftest$ac_exeext
24513 if { (ac_try="$ac_link"
24514 case "(($ac_try" in
24515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516 *) ac_try_echo=$ac_try;;
24517 esac
24518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24519 $as_echo "$ac_try_echo") >&5
24520 (eval "$ac_link") 2>&5
24521 ac_status=$?
24522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24524 { (case "(($ac_try" in
24525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526 *) ac_try_echo=$ac_try;;
24527 esac
24528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24529 $as_echo "$ac_try_echo") >&5
24530 (eval "$ac_try") 2>&5
24531 ac_status=$?
24532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); }; }; then
24534 ac_cv_c_stack_direction=1
24535 else
24536 $as_echo "$as_me: program exited with status $ac_status" >&5
24537 $as_echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24540 ( exit $ac_status )
24541 ac_cv_c_stack_direction=-1
24543 rm -rf conftest.dSYM
24544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24549 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24550 $as_echo "$ac_cv_c_stack_direction" >&6; }
24552 cat >>confdefs.h <<_ACEOF
24553 #define STACK_DIRECTION $ac_cv_c_stack_direction
24554 _ACEOF
24562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24564 if test -n "$gmp_internal_file_check" ; then
24565 { $as_echo "$as_me:$LINENO: checking for valid BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB" >&5
24566 $as_echo_n "checking for valid BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB... " >&6; }
24567 if test "$cross_compiling" = yes; then
24568 { $as_echo "$as_me:$LINENO: result: can't test" >&5
24569 $as_echo "can't test" >&6; }
24570 else
24571 cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h. */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h. */
24578 #include <limits.h>
24579 #include "gmp.h"
24580 #include "gmp-impl.h"
24583 main ()
24586 return BITS_PER_MP_LIMB == BYTES_PER_MP_LIMB * CHAR_BIT
24587 && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
24590 return 0;
24592 _ACEOF
24593 rm -f conftest$ac_exeext
24594 if { (ac_try="$ac_link"
24595 case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24598 esac
24599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24600 $as_echo "$ac_try_echo") >&5
24601 (eval "$ac_link") 2>&5
24602 ac_status=$?
24603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24605 { (case "(($ac_try" in
24606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24607 *) ac_try_echo=$ac_try;;
24608 esac
24609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24610 $as_echo "$ac_try_echo") >&5
24611 (eval "$ac_try") 2>&5
24612 ac_status=$?
24613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); }; }; then
24615 { $as_echo "$as_me:$LINENO: result: yes" >&5
24616 $as_echo "yes" >&6; }
24617 else
24618 $as_echo "$as_me: program exited with status $ac_status" >&5
24619 $as_echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24622 ( exit $ac_status )
24624 { $as_echo "$as_me:$LINENO: result: no" >&5
24625 $as_echo "no" >&6; }
24626 { { $as_echo "$as_me:$LINENO: error: BITS_PER_MP_LIMB or BYTES_PER_MP_LIMB are incorrect.
24627 You probably need to change some of the GMP or MPFR compile options." >&5
24628 $as_echo "$as_me: error: BITS_PER_MP_LIMB or BYTES_PER_MP_LIMB are incorrect.
24629 You probably need to change some of the GMP or MPFR compile options." >&2;}
24630 { (exit 1); exit 1; }; }
24632 rm -rf conftest.dSYM
24633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24640 if test "$dont_link_with_gmp" = yes ; then
24641 LIBS="-lgmp $LIBS"
24642 else
24644 { $as_echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
24645 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
24646 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
24647 $as_echo_n "(cached) " >&6
24648 else
24649 ac_check_lib_save_LIBS=$LIBS
24650 LIBS="-lgmp $LIBS"
24651 cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h. */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h. */
24658 /* Override any GCC internal prototype to avoid an error.
24659 Use char because int might match the return type of a GCC
24660 builtin and then its argument prototype would still apply. */
24661 #ifdef __cplusplus
24662 extern "C"
24663 #endif
24664 char __gmpz_init ();
24666 main ()
24668 return __gmpz_init ();
24670 return 0;
24672 _ACEOF
24673 rm -f conftest.$ac_objext conftest$ac_exeext
24674 if { (ac_try="$ac_link"
24675 case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24678 esac
24679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24680 $as_echo "$ac_try_echo") >&5
24681 (eval "$ac_link") 2>conftest.er1
24682 ac_status=$?
24683 grep -v '^ *+' conftest.er1 >conftest.err
24684 rm -f conftest.er1
24685 cat conftest.err >&5
24686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); } && {
24688 test -z "$ac_c_werror_flag" ||
24689 test ! -s conftest.err
24690 } && test -s conftest$ac_exeext && {
24691 test "$cross_compiling" = yes ||
24692 $as_test_x conftest$ac_exeext
24693 }; then
24694 ac_cv_lib_gmp___gmpz_init=yes
24695 else
24696 $as_echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24699 ac_cv_lib_gmp___gmpz_init=no
24702 rm -rf conftest.dSYM
24703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24704 conftest$ac_exeext conftest.$ac_ext
24705 LIBS=$ac_check_lib_save_LIBS
24707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
24708 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
24709 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then
24710 LIBS="-lgmp $LIBS"
24711 else
24712 { { $as_echo "$as_me:$LINENO: error: libgmp not found or uses a different ABI.
24713 Please read the INSTALL file -- see \"In case of problem\"." >&5
24714 $as_echo "$as_me: error: libgmp not found or uses a different ABI.
24715 Please read the INSTALL file -- see \"In case of problem\"." >&2;}
24716 { (exit 1); exit 1; }; }
24720 { $as_echo "$as_me:$LINENO: checking if gmp.h version and libgmp version are the same" >&5
24721 $as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
24722 saved_LD_RUN_PATH="$LD_RUN_PATH"
24723 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
24724 export LD_RUN_PATH
24725 if test "$cross_compiling" = yes; then
24726 { $as_echo "$as_me:$LINENO: result: can not test" >&5
24727 $as_echo "can not test" >&6; }
24729 else
24730 cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h. */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24737 #include <stdio.h>
24738 #include <string.h>
24739 #include "gmp.h"
24742 main ()
24745 char buffer[100];
24746 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
24747 __GNU_MP_VERSION_PATCHLEVEL);
24748 printf ("(%s/%s) ", buffer, gmp_version);
24749 if (strcmp (buffer, gmp_version) == 0)
24750 return 0;
24751 if (__GNU_MP_VERSION_PATCHLEVEL != 0)
24752 return 1;
24753 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
24754 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
24757 return 0;
24759 _ACEOF
24760 rm -f conftest$ac_exeext
24761 if { (ac_try="$ac_link"
24762 case "(($ac_try" in
24763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764 *) ac_try_echo=$ac_try;;
24765 esac
24766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24767 $as_echo "$ac_try_echo") >&5
24768 (eval "$ac_link") 2>&5
24769 ac_status=$?
24770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24772 { (case "(($ac_try" in
24773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774 *) ac_try_echo=$ac_try;;
24775 esac
24776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24777 $as_echo "$ac_try_echo") >&5
24778 (eval "$ac_try") 2>&5
24779 ac_status=$?
24780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); }; }; then
24782 { $as_echo "$as_me:$LINENO: result: yes" >&5
24783 $as_echo "yes" >&6; }
24785 if test "$ac_cv_type_intmax_t" == yes; then
24787 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%jd\"" >&5
24788 $as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
24789 if test "$cross_compiling" = yes; then
24790 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24792 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24793 See \`config.log' for more details." >&5
24794 $as_echo "$as_me: error: cannot run test program while cross compiling
24795 See \`config.log' for more details." >&2;}
24796 { (exit 1); exit 1; }; }; }
24797 else
24798 cat >conftest.$ac_ext <<_ACEOF
24799 /* confdefs.h. */
24800 _ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h. */
24805 #include <stdio.h>
24807 #ifdef HAVE_STDINT_H
24808 # include <stdint.h>
24809 #endif
24810 #ifdef HAVE_INTTYPES_H
24811 # include <inttypes.h>
24812 #endif
24814 #include <gmp.h>
24818 main ()
24821 char s[256];
24822 intmax_t a = 0;
24823 return (gmp_sprintf (s, "%jd", a) != 1) ? 1 : 0;
24826 return 0;
24828 _ACEOF
24829 rm -f conftest$ac_exeext
24830 if { (ac_try="$ac_link"
24831 case "(($ac_try" in
24832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24833 *) ac_try_echo=$ac_try;;
24834 esac
24835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24836 $as_echo "$ac_try_echo") >&5
24837 (eval "$ac_link") 2>&5
24838 ac_status=$?
24839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24841 { (case "(($ac_try" in
24842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843 *) ac_try_echo=$ac_try;;
24844 esac
24845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24846 $as_echo "$ac_try_echo") >&5
24847 (eval "$ac_try") 2>&5
24848 ac_status=$?
24849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; }; then
24851 { $as_echo "$as_me:$LINENO: result: yes" >&5
24852 $as_echo "yes" >&6; }
24854 else
24855 $as_echo "$as_me: program exited with status $ac_status" >&5
24856 $as_echo "$as_me: failed program was:" >&5
24857 sed 's/^/| /' conftest.$ac_ext >&5
24859 ( exit $ac_status )
24860 { $as_echo "$as_me:$LINENO: result: no" >&5
24861 $as_echo "no" >&6; }
24863 cat >>confdefs.h <<\_ACEOF
24864 #define NPRINTF_J 1
24865 _ACEOF
24868 rm -rf conftest.dSYM
24869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24877 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%hhd\"" >&5
24878 $as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
24879 if test "$cross_compiling" = yes; then
24880 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24882 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24883 See \`config.log' for more details." >&5
24884 $as_echo "$as_me: error: cannot run test program while cross compiling
24885 See \`config.log' for more details." >&2;}
24886 { (exit 1); exit 1; }; }; }
24887 else
24888 cat >conftest.$ac_ext <<_ACEOF
24889 /* confdefs.h. */
24890 _ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h. */
24895 #include <stdio.h>
24897 #include <gmp.h>
24901 main ()
24904 char s[256];
24905 char a = 0;
24906 return (gmp_sprintf (s, "%hhd", a) != 1) ? 1 : 0;
24909 return 0;
24911 _ACEOF
24912 rm -f conftest$ac_exeext
24913 if { (ac_try="$ac_link"
24914 case "(($ac_try" in
24915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24916 *) ac_try_echo=$ac_try;;
24917 esac
24918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24919 $as_echo "$ac_try_echo") >&5
24920 (eval "$ac_link") 2>&5
24921 ac_status=$?
24922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24924 { (case "(($ac_try" in
24925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926 *) ac_try_echo=$ac_try;;
24927 esac
24928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24929 $as_echo "$ac_try_echo") >&5
24930 (eval "$ac_try") 2>&5
24931 ac_status=$?
24932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; }; then
24934 { $as_echo "$as_me:$LINENO: result: yes" >&5
24935 $as_echo "yes" >&6; }
24937 else
24938 $as_echo "$as_me: program exited with status $ac_status" >&5
24939 $as_echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24942 ( exit $ac_status )
24943 { $as_echo "$as_me:$LINENO: result: no" >&5
24944 $as_echo "no" >&6; }
24946 cat >>confdefs.h <<\_ACEOF
24947 #define NPRINTF_HH 1
24948 _ACEOF
24951 rm -rf conftest.dSYM
24952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24959 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%lld\"" >&5
24960 $as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
24961 if test "$cross_compiling" = yes; then
24962 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24964 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24965 See \`config.log' for more details." >&5
24966 $as_echo "$as_me: error: cannot run test program while cross compiling
24967 See \`config.log' for more details." >&2;}
24968 { (exit 1); exit 1; }; }; }
24969 else
24970 cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h. */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24977 #include <stdio.h>
24979 #include <gmp.h>
24983 main ()
24986 char s[256];
24987 long long int a = 0;
24988 return (gmp_sprintf (s, "%lld", a) != 1) ? 1 : 0;
24991 return 0;
24993 _ACEOF
24994 rm -f conftest$ac_exeext
24995 if { (ac_try="$ac_link"
24996 case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
24999 esac
25000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25001 $as_echo "$ac_try_echo") >&5
25002 (eval "$ac_link") 2>&5
25003 ac_status=$?
25004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25006 { (case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25009 esac
25010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011 $as_echo "$ac_try_echo") >&5
25012 (eval "$ac_try") 2>&5
25013 ac_status=$?
25014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; }; then
25016 { $as_echo "$as_me:$LINENO: result: yes" >&5
25017 $as_echo "yes" >&6; }
25019 else
25020 $as_echo "$as_me: program exited with status $ac_status" >&5
25021 $as_echo "$as_me: failed program was:" >&5
25022 sed 's/^/| /' conftest.$ac_ext >&5
25024 ( exit $ac_status )
25025 { $as_echo "$as_me:$LINENO: result: no" >&5
25026 $as_echo "no" >&6; }
25028 cat >>confdefs.h <<\_ACEOF
25029 #define NPRINTF_LL 1
25030 _ACEOF
25033 rm -rf conftest.dSYM
25034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25041 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%.0Lf\"" >&5
25042 $as_echo_n "checking if gmp_printf supports \"%.0Lf\"... " >&6; }
25043 if test "$cross_compiling" = yes; then
25044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25046 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25047 See \`config.log' for more details." >&5
25048 $as_echo "$as_me: error: cannot run test program while cross compiling
25049 See \`config.log' for more details." >&2;}
25050 { (exit 1); exit 1; }; }; }
25051 else
25052 cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h. */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25059 #include <stdio.h>
25061 #include <gmp.h>
25065 main ()
25068 char s[256];
25069 long double a = 0;
25070 return (gmp_sprintf (s, "%.0Lf", a) != 1) ? 1 : 0;
25073 return 0;
25075 _ACEOF
25076 rm -f conftest$ac_exeext
25077 if { (ac_try="$ac_link"
25078 case "(($ac_try" in
25079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080 *) ac_try_echo=$ac_try;;
25081 esac
25082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25083 $as_echo "$ac_try_echo") >&5
25084 (eval "$ac_link") 2>&5
25085 ac_status=$?
25086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25088 { (case "(($ac_try" in
25089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090 *) ac_try_echo=$ac_try;;
25091 esac
25092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25093 $as_echo "$ac_try_echo") >&5
25094 (eval "$ac_try") 2>&5
25095 ac_status=$?
25096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); }; }; then
25098 { $as_echo "$as_me:$LINENO: result: yes" >&5
25099 $as_echo "yes" >&6; }
25101 else
25102 $as_echo "$as_me: program exited with status $ac_status" >&5
25103 $as_echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25106 ( exit $ac_status )
25107 { $as_echo "$as_me:$LINENO: result: no" >&5
25108 $as_echo "no" >&6; }
25110 cat >>confdefs.h <<\_ACEOF
25111 #define NPRINTF_L 1
25112 _ACEOF
25115 rm -rf conftest.dSYM
25116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25123 { $as_echo "$as_me:$LINENO: checking if gmp_printf supports \"%td\"" >&5
25124 $as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
25125 if test "$cross_compiling" = yes; then
25126 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25128 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25129 See \`config.log' for more details." >&5
25130 $as_echo "$as_me: error: cannot run test program while cross compiling
25131 See \`config.log' for more details." >&2;}
25132 { (exit 1); exit 1; }; }; }
25133 else
25134 cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h. */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h. */
25141 #include <stdio.h>
25143 #if defined (__cplusplus)
25144 #include <cstddef>
25145 #else
25146 #include <stddef.h>
25147 #endif
25148 #include "gmp.h"
25152 main ()
25155 char s[256];
25156 ptrdiff_t a = 0;
25157 return (gmp_sprintf (s, "%td", a) != 1) ? 1 : 0;
25160 return 0;
25162 _ACEOF
25163 rm -f conftest$ac_exeext
25164 if { (ac_try="$ac_link"
25165 case "(($ac_try" in
25166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167 *) ac_try_echo=$ac_try;;
25168 esac
25169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25170 $as_echo "$ac_try_echo") >&5
25171 (eval "$ac_link") 2>&5
25172 ac_status=$?
25173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25175 { (case "(($ac_try" in
25176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177 *) ac_try_echo=$ac_try;;
25178 esac
25179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25180 $as_echo "$ac_try_echo") >&5
25181 (eval "$ac_try") 2>&5
25182 ac_status=$?
25183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); }; }; then
25185 { $as_echo "$as_me:$LINENO: result: yes" >&5
25186 $as_echo "yes" >&6; }
25188 else
25189 $as_echo "$as_me: program exited with status $ac_status" >&5
25190 $as_echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25193 ( exit $ac_status )
25194 { $as_echo "$as_me:$LINENO: result: no" >&5
25195 $as_echo "no" >&6; }
25197 cat >>confdefs.h <<\_ACEOF
25198 #define NPRINTF_T 1
25199 _ACEOF
25202 rm -rf conftest.dSYM
25203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25209 else
25210 $as_echo "$as_me: program exited with status $ac_status" >&5
25211 $as_echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.$ac_ext >&5
25214 ( exit $ac_status )
25215 { $as_echo "$as_me:$LINENO: result: no" >&5
25216 $as_echo "no" >&6; }
25217 { $as_echo "$as_me:$LINENO: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&5
25218 $as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&2;}
25219 { $as_echo "$as_me:$LINENO: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
25220 $as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
25221 { $as_echo "$as_me:$LINENO: WARNING: see the version numbers above)." >&5
25222 $as_echo "$as_me: WARNING: see the version numbers above)." >&2;}
25223 { $as_echo "$as_me:$LINENO: WARNING: However since we can't use 'libtool' inside the configure," >&5
25224 $as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;}
25225 { $as_echo "$as_me:$LINENO: WARNING: we can't be sure. See 'config.log' for details." >&5
25226 $as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
25229 rm -rf conftest.dSYM
25230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25234 LD_RUN_PATH="$saved_LD_RUN_PATH"
25238 if test -f confdefs.h; then
25239 sed '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp
25240 sed '/#define HAVE_STRING/d' <confdefs.tmp >confdefs.h
25241 sed '/#define HAVE_ALLOCA /d' <confdefs.h >confdefs.tmp
25242 sed '/#define HAVE_DLFCN_H/d' <confdefs.tmp >confdefs.h
25243 sed '/#define HAVE_MEM/d' <confdefs.h >confdefs.tmp
25244 sed '/#define STDC_HEADERS/d' <confdefs.tmp >confdefs.h
25245 sed '/#define HAVE_STRTOL/d' <confdefs.h >confdefs.tmp
25246 sed '/#define HAVE_STDLIB_H/d' <confdefs.tmp >confdefs.h
25247 sed '/#define HAVE_UNISTD_H/d' <confdefs.h >confdefs.tmp
25248 sed '/#define HAVE_STDC_HEADERS/d' <confdefs.tmp >confdefs.h
25249 sed '/#define HAVE_LONG_DOUBLE/d' <confdefs.h >confdefs.tmp
25250 sed '/#define HAVE_SYS_STAT_H/d' <confdefs.tmp >confdefs.h
25251 sed '/#define HAVE_SYS_TYPES_H/d' <confdefs.h >confdefs.tmp
25252 sed '/#define PROTOTYPES/d' <confdefs.tmp >confdefs.h
25253 sed '/#define __PROTOTYPES/d' <confdefs.h >confdefs.tmp
25255 mv confdefs.tmp confdefs.h
25258 ac_config_files="$ac_config_files Makefile tests/Makefile mparam.h:mparam_h.in"
25260 cat >confcache <<\_ACEOF
25261 # This file is a shell script that caches the results of configure
25262 # tests run on this system so they can be shared between configure
25263 # scripts and configure runs, see configure's option --config-cache.
25264 # It is not useful on other systems. If it contains results you don't
25265 # want to keep, you may remove or edit it.
25267 # config.status only pays attention to the cache file if you give it
25268 # the --recheck option to rerun configure.
25270 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25272 # following values.
25274 _ACEOF
25276 # The following way of writing the cache mishandles newlines in values,
25277 # but we know of no workaround that is simple, portable, and efficient.
25278 # So, we kill variables containing newlines.
25279 # Ultrix sh set writes to stderr and can't be redirected directly,
25280 # and sets the high bit in the cache file unless we assign to the vars.
25282 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25283 eval ac_val=\$$ac_var
25284 case $ac_val in #(
25285 *${as_nl}*)
25286 case $ac_var in #(
25287 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
25288 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25289 esac
25290 case $ac_var in #(
25291 _ | IFS | as_nl) ;; #(
25292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25293 *) $as_unset $ac_var ;;
25294 esac ;;
25295 esac
25296 done
25298 (set) 2>&1 |
25299 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25300 *${as_nl}ac_space=\ *)
25301 # `set' does not quote correctly, so add quotes (double-quote
25302 # substitution turns \\\\ into \\, and sed turns \\ into \).
25303 sed -n \
25304 "s/'/'\\\\''/g;
25305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25306 ;; #(
25308 # `set' quotes correctly as required by POSIX, so do not add quotes.
25309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25311 esac |
25312 sort
25314 sed '
25315 /^ac_cv_env_/b end
25316 t clear
25317 :clear
25318 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25319 t end
25320 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25321 :end' >>confcache
25322 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25323 if test -w "$cache_file"; then
25324 test "x$cache_file" != "x/dev/null" &&
25325 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25326 $as_echo "$as_me: updating cache $cache_file" >&6;}
25327 cat confcache >$cache_file
25328 else
25329 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25330 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25333 rm -f confcache
25335 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25336 # Let make expand exec_prefix.
25337 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25339 # Transform confdefs.h into DEFS.
25340 # Protect against shell expansion while executing Makefile rules.
25341 # Protect against Makefile macro expansion.
25343 # If the first sed substitution is executed (which looks for macros that
25344 # take arguments), then branch to the quote section. Otherwise,
25345 # look for a macro that doesn't take arguments.
25346 ac_script='
25347 :mline
25348 /\\$/{
25350 s,\\\n,,
25351 b mline
25353 t clear
25354 :clear
25355 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
25356 t quote
25357 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
25358 t quote
25359 b any
25360 :quote
25361 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
25362 s/\[/\\&/g
25363 s/\]/\\&/g
25364 s/\$/$$/g
25366 :any
25369 s/^\n//
25370 s/\n/ /g
25374 DEFS=`sed -n "$ac_script" confdefs.h`
25377 ac_libobjs=
25378 ac_ltlibobjs=
25379 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25380 # 1. Remove the extension, and $U if already installed.
25381 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25382 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25383 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25384 # will be set to the directory where LIBOBJS objects are built.
25385 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25386 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25387 done
25388 LIBOBJS=$ac_libobjs
25390 LTLIBOBJS=$ac_ltlibobjs
25393 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25394 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25395 Usually this means the macro was only invoked conditionally." >&5
25396 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25397 Usually this means the macro was only invoked conditionally." >&2;}
25398 { (exit 1); exit 1; }; }
25400 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25401 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25402 Usually this means the macro was only invoked conditionally." >&5
25403 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
25404 Usually this means the macro was only invoked conditionally." >&2;}
25405 { (exit 1); exit 1; }; }
25407 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25408 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25409 Usually this means the macro was only invoked conditionally." >&5
25410 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25411 Usually this means the macro was only invoked conditionally." >&2;}
25412 { (exit 1); exit 1; }; }
25414 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25415 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25416 Usually this means the macro was only invoked conditionally." >&5
25417 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25418 Usually this means the macro was only invoked conditionally." >&2;}
25419 { (exit 1); exit 1; }; }
25421 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25422 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25423 Usually this means the macro was only invoked conditionally." >&5
25424 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25425 Usually this means the macro was only invoked conditionally." >&2;}
25426 { (exit 1); exit 1; }; }
25429 : ${CONFIG_STATUS=./config.status}
25430 ac_write_fail=0
25431 ac_clean_files_save=$ac_clean_files
25432 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25433 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25434 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25435 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25436 #! $SHELL
25437 # Generated by $as_me.
25438 # Run this file to recreate the current configuration.
25439 # Compiler output produced by configure, useful for debugging
25440 # configure, is in config.log if it exists.
25442 debug=false
25443 ac_cs_recheck=false
25444 ac_cs_silent=false
25445 SHELL=\${CONFIG_SHELL-$SHELL}
25446 _ACEOF
25448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25449 ## --------------------- ##
25450 ## M4sh Initialization. ##
25451 ## --------------------- ##
25453 # Be more Bourne compatible
25454 DUALCASE=1; export DUALCASE # for MKS sh
25455 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25456 emulate sh
25457 NULLCMD=:
25458 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25459 # is contrary to our usage. Disable this feature.
25460 alias -g '${1+"$@"}'='"$@"'
25461 setopt NO_GLOB_SUBST
25462 else
25463 case `(set -o) 2>/dev/null` in
25464 *posix*) set -o posix ;;
25465 esac
25472 # PATH needs CR
25473 # Avoid depending upon Character Ranges.
25474 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25475 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25476 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25477 as_cr_digits='0123456789'
25478 as_cr_alnum=$as_cr_Letters$as_cr_digits
25480 as_nl='
25482 export as_nl
25483 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25484 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25485 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25486 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25487 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25488 as_echo='printf %s\n'
25489 as_echo_n='printf %s'
25490 else
25491 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25492 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25493 as_echo_n='/usr/ucb/echo -n'
25494 else
25495 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25496 as_echo_n_body='eval
25497 arg=$1;
25498 case $arg in
25499 *"$as_nl"*)
25500 expr "X$arg" : "X\\(.*\\)$as_nl";
25501 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25502 esac;
25503 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25505 export as_echo_n_body
25506 as_echo_n='sh -c $as_echo_n_body as_echo'
25508 export as_echo_body
25509 as_echo='sh -c $as_echo_body as_echo'
25512 # The user is always right.
25513 if test "${PATH_SEPARATOR+set}" != set; then
25514 PATH_SEPARATOR=:
25515 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25516 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25517 PATH_SEPARATOR=';'
25521 # Support unset when possible.
25522 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25523 as_unset=unset
25524 else
25525 as_unset=false
25529 # IFS
25530 # We need space, tab and new line, in precisely that order. Quoting is
25531 # there to prevent editors from complaining about space-tab.
25532 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25533 # splitting by setting IFS to empty value.)
25534 IFS=" "" $as_nl"
25536 # Find who we are. Look in the path if we contain no directory separator.
25537 case $0 in
25538 *[\\/]* ) as_myself=$0 ;;
25539 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25540 for as_dir in $PATH
25542 IFS=$as_save_IFS
25543 test -z "$as_dir" && as_dir=.
25544 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25545 done
25546 IFS=$as_save_IFS
25549 esac
25550 # We did not find ourselves, most probably we were run as `sh COMMAND'
25551 # in which case we are not to be found in the path.
25552 if test "x$as_myself" = x; then
25553 as_myself=$0
25555 if test ! -f "$as_myself"; then
25556 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25557 { (exit 1); exit 1; }
25560 # Work around bugs in pre-3.0 UWIN ksh.
25561 for as_var in ENV MAIL MAILPATH
25562 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25563 done
25564 PS1='$ '
25565 PS2='> '
25566 PS4='+ '
25568 # NLS nuisances.
25569 LC_ALL=C
25570 export LC_ALL
25571 LANGUAGE=C
25572 export LANGUAGE
25574 # Required to use basename.
25575 if expr a : '\(a\)' >/dev/null 2>&1 &&
25576 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25577 as_expr=expr
25578 else
25579 as_expr=false
25582 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25583 as_basename=basename
25584 else
25585 as_basename=false
25589 # Name of the executable.
25590 as_me=`$as_basename -- "$0" ||
25591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25592 X"$0" : 'X\(//\)$' \| \
25593 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25594 $as_echo X/"$0" |
25595 sed '/^.*\/\([^/][^/]*\)\/*$/{
25596 s//\1/
25599 /^X\/\(\/\/\)$/{
25600 s//\1/
25603 /^X\/\(\/\).*/{
25604 s//\1/
25607 s/.*/./; q'`
25609 # CDPATH.
25610 $as_unset CDPATH
25614 as_lineno_1=$LINENO
25615 as_lineno_2=$LINENO
25616 test "x$as_lineno_1" != "x$as_lineno_2" &&
25617 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25619 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25620 # uniformly replaced by the line number. The first 'sed' inserts a
25621 # line-number line after each line using $LINENO; the second 'sed'
25622 # does the real work. The second script uses 'N' to pair each
25623 # line-number line with the line containing $LINENO, and appends
25624 # trailing '-' during substitution so that $LINENO is not a special
25625 # case at line end.
25626 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25627 # scripts with optimization help from Paolo Bonzini. Blame Lee
25628 # E. McMahon (1931-1989) for sed's syntax. :-)
25629 sed -n '
25631 /[$]LINENO/=
25632 ' <$as_myself |
25633 sed '
25634 s/[$]LINENO.*/&-/
25635 t lineno
25637 :lineno
25639 :loop
25640 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25641 t loop
25642 s/-\n.*//
25643 ' >$as_me.lineno &&
25644 chmod +x "$as_me.lineno" ||
25645 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25646 { (exit 1); exit 1; }; }
25648 # Don't try to exec as it changes $[0], causing all sort of problems
25649 # (the dirname of $[0] is not the place where we might find the
25650 # original and so on. Autoconf is especially sensitive to this).
25651 . "./$as_me.lineno"
25652 # Exit status is that of the last command.
25653 exit
25657 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25658 as_dirname=dirname
25659 else
25660 as_dirname=false
25663 ECHO_C= ECHO_N= ECHO_T=
25664 case `echo -n x` in
25665 -n*)
25666 case `echo 'x\c'` in
25667 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25668 *) ECHO_C='\c';;
25669 esac;;
25671 ECHO_N='-n';;
25672 esac
25673 if expr a : '\(a\)' >/dev/null 2>&1 &&
25674 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25675 as_expr=expr
25676 else
25677 as_expr=false
25680 rm -f conf$$ conf$$.exe conf$$.file
25681 if test -d conf$$.dir; then
25682 rm -f conf$$.dir/conf$$.file
25683 else
25684 rm -f conf$$.dir
25685 mkdir conf$$.dir 2>/dev/null
25687 if (echo >conf$$.file) 2>/dev/null; then
25688 if ln -s conf$$.file conf$$ 2>/dev/null; then
25689 as_ln_s='ln -s'
25690 # ... but there are two gotchas:
25691 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25692 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25693 # In both cases, we have to default to `cp -p'.
25694 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25695 as_ln_s='cp -p'
25696 elif ln conf$$.file conf$$ 2>/dev/null; then
25697 as_ln_s=ln
25698 else
25699 as_ln_s='cp -p'
25701 else
25702 as_ln_s='cp -p'
25704 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25705 rmdir conf$$.dir 2>/dev/null
25707 if mkdir -p . 2>/dev/null; then
25708 as_mkdir_p=:
25709 else
25710 test -d ./-p && rmdir ./-p
25711 as_mkdir_p=false
25714 if test -x / >/dev/null 2>&1; then
25715 as_test_x='test -x'
25716 else
25717 if ls -dL / >/dev/null 2>&1; then
25718 as_ls_L_option=L
25719 else
25720 as_ls_L_option=
25722 as_test_x='
25723 eval sh -c '\''
25724 if test -d "$1"; then
25725 test -d "$1/.";
25726 else
25727 case $1 in
25728 -*)set "./$1";;
25729 esac;
25730 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25731 ???[sx]*):;;*)false;;esac;fi
25732 '\'' sh
25735 as_executable_p=$as_test_x
25737 # Sed expression to map a string onto a valid CPP name.
25738 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25740 # Sed expression to map a string onto a valid variable name.
25741 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25744 exec 6>&1
25746 # Save the log message, to keep $[0] and so on meaningful, and to
25747 # report actual input values of CONFIG_FILES etc. instead of their
25748 # values after options handling.
25749 ac_log="
25750 This file was extended by MPFR $as_me 2.4.1, which was
25751 generated by GNU Autoconf 2.63. Invocation command line was
25753 CONFIG_FILES = $CONFIG_FILES
25754 CONFIG_HEADERS = $CONFIG_HEADERS
25755 CONFIG_LINKS = $CONFIG_LINKS
25756 CONFIG_COMMANDS = $CONFIG_COMMANDS
25757 $ $0 $@
25759 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25762 _ACEOF
25764 case $ac_config_files in *"
25765 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25766 esac
25770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25771 # Files that config.status was made for.
25772 config_files="$ac_config_files"
25773 config_commands="$ac_config_commands"
25775 _ACEOF
25777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25778 ac_cs_usage="\
25779 \`$as_me' instantiates files from templates according to the
25780 current configuration.
25782 Usage: $0 [OPTION]... [FILE]...
25784 -h, --help print this help, then exit
25785 -V, --version print version number and configuration settings, then exit
25786 -q, --quiet, --silent
25787 do not print progress messages
25788 -d, --debug don't remove temporary files
25789 --recheck update $as_me by reconfiguring in the same conditions
25790 --file=FILE[:TEMPLATE]
25791 instantiate the configuration file FILE
25793 Configuration files:
25794 $config_files
25796 Configuration commands:
25797 $config_commands
25799 Report bugs to <bug-autoconf@gnu.org>."
25801 _ACEOF
25802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25803 ac_cs_version="\\
25804 MPFR config.status 2.4.1
25805 configured by $0, generated by GNU Autoconf 2.63,
25806 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25808 Copyright (C) 2008 Free Software Foundation, Inc.
25809 This config.status script is free software; the Free Software Foundation
25810 gives unlimited permission to copy, distribute and modify it."
25812 ac_pwd='$ac_pwd'
25813 srcdir='$srcdir'
25814 INSTALL='$INSTALL'
25815 MKDIR_P='$MKDIR_P'
25816 AWK='$AWK'
25817 test -n "\$AWK" || AWK=awk
25818 _ACEOF
25820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25821 # The default lists apply if the user does not specify any file.
25822 ac_need_defaults=:
25823 while test $# != 0
25825 case $1 in
25826 --*=*)
25827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25828 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25829 ac_shift=:
25832 ac_option=$1
25833 ac_optarg=$2
25834 ac_shift=shift
25836 esac
25838 case $ac_option in
25839 # Handling of the options.
25840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25841 ac_cs_recheck=: ;;
25842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25843 $as_echo "$ac_cs_version"; exit ;;
25844 --debug | --debu | --deb | --de | --d | -d )
25845 debug=: ;;
25846 --file | --fil | --fi | --f )
25847 $ac_shift
25848 case $ac_optarg in
25849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25850 esac
25851 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25852 ac_need_defaults=false;;
25853 --he | --h | --help | --hel | -h )
25854 $as_echo "$ac_cs_usage"; exit ;;
25855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25856 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25857 ac_cs_silent=: ;;
25859 # This is an error.
25860 -*) { $as_echo "$as_me: error: unrecognized option: $1
25861 Try \`$0 --help' for more information." >&2
25862 { (exit 1); exit 1; }; } ;;
25864 *) ac_config_targets="$ac_config_targets $1"
25865 ac_need_defaults=false ;;
25867 esac
25868 shift
25869 done
25871 ac_configure_extra_args=
25873 if $ac_cs_silent; then
25874 exec 6>/dev/null
25875 ac_configure_extra_args="$ac_configure_extra_args --silent"
25878 _ACEOF
25879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25880 if \$ac_cs_recheck; then
25881 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25882 shift
25883 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25884 CONFIG_SHELL='$SHELL'
25885 export CONFIG_SHELL
25886 exec "\$@"
25889 _ACEOF
25890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25891 exec 5>>config.log
25893 echo
25894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25895 ## Running $as_me. ##
25896 _ASBOX
25897 $as_echo "$ac_log"
25898 } >&5
25900 _ACEOF
25901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25903 # INIT-COMMANDS
25905 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25908 # The HP-UX ksh and POSIX shell print the target directory to stdout
25909 # if CDPATH is set.
25910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25912 sed_quote_subst='$sed_quote_subst'
25913 double_quote_subst='$double_quote_subst'
25914 delay_variable_subst='$delay_variable_subst'
25915 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
25916 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25917 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25918 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25919 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25920 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25921 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25922 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25923 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25924 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25925 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25926 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25927 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25928 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25929 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25930 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25931 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25932 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25933 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25934 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25935 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25936 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25937 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25938 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25939 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25940 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25941 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25942 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25943 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25944 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25945 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25946 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25947 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25948 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25949 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25950 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25951 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25952 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25953 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25954 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25955 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25956 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25957 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25958 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25959 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25960 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25961 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
25962 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25963 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25964 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25965 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25966 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25967 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25968 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25969 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25970 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25971 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25972 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25973 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25974 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25975 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25976 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25977 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25978 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25979 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25980 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25981 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25982 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25983 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25984 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25985 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25986 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25987 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25988 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25989 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25990 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25991 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25992 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25993 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25994 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25995 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25996 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25997 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25998 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25999 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26000 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26001 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26002 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26003 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26004 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26005 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26006 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26007 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26008 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26009 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26010 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26011 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26012 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26013 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26014 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26015 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26016 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26017 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26018 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26019 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26020 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26021 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26022 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26023 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26024 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26025 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26026 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26027 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26028 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26029 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26030 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26031 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26032 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
26033 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26034 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
26035 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
26036 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
26037 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
26038 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26039 LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
26040 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26041 old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26042 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26043 compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
26044 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26045 GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
26046 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26047 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
26048 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26049 lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
26050 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26051 lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
26052 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26053 lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
26054 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26055 lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
26056 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26057 archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
26058 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26059 enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
26060 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26061 export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
26062 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26063 whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
26064 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26065 compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
26066 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26067 old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26068 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26069 old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26070 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26071 archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26072 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26073 archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26074 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26075 module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26076 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26077 module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26078 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26079 with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
26080 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26081 allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
26082 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26083 no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
26084 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26085 hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
26086 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26087 hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
26088 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26089 hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
26090 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26091 hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
26092 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26093 hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
26094 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26095 hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
26096 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26097 hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
26098 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26099 hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
26100 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26101 inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
26102 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26103 link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
26104 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26105 fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
26106 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26107 always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
26108 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26109 export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26110 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26111 exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
26112 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26113 include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
26114 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26115 prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
26116 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26117 file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
26118 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26119 hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
26120 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26121 compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
26122 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26123 predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
26124 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26125 postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
26126 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26127 predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
26128 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26129 postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
26130 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
26131 compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
26133 LTCC='$LTCC'
26134 LTCFLAGS='$LTCFLAGS'
26135 compiler='$compiler_DEFAULT'
26137 # Quote evaled strings.
26138 for var in SED \
26139 GREP \
26140 EGREP \
26141 FGREP \
26142 LD \
26143 NM \
26144 LN_S \
26145 lt_SP2NL \
26146 lt_NL2SP \
26147 reload_flag \
26148 deplibs_check_method \
26149 file_magic_cmd \
26150 AR \
26151 AR_FLAGS \
26152 STRIP \
26153 RANLIB \
26154 CC \
26155 CFLAGS \
26156 compiler \
26157 lt_cv_sys_global_symbol_pipe \
26158 lt_cv_sys_global_symbol_to_cdecl \
26159 lt_cv_sys_global_symbol_to_c_name_address \
26160 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26161 SHELL \
26162 ECHO \
26163 lt_prog_compiler_no_builtin_flag \
26164 lt_prog_compiler_wl \
26165 lt_prog_compiler_pic \
26166 lt_prog_compiler_static \
26167 lt_cv_prog_compiler_c_o \
26168 need_locks \
26169 DSYMUTIL \
26170 NMEDIT \
26171 shrext_cmds \
26172 export_dynamic_flag_spec \
26173 whole_archive_flag_spec \
26174 compiler_needs_object \
26175 with_gnu_ld \
26176 allow_undefined_flag \
26177 no_undefined_flag \
26178 hardcode_libdir_flag_spec \
26179 hardcode_libdir_flag_spec_ld \
26180 hardcode_libdir_separator \
26181 fix_srcfile_path \
26182 exclude_expsyms \
26183 include_expsyms \
26184 file_list_spec \
26185 variables_saved_for_relink \
26186 libname_spec \
26187 library_names_spec \
26188 soname_spec \
26189 finish_eval \
26190 old_striplib \
26191 striplib \
26192 compiler_lib_search_dirs \
26193 predep_objects \
26194 postdep_objects \
26195 predeps \
26196 postdeps \
26197 compiler_lib_search_path \
26198 LD_CXX \
26199 LD_F77 \
26200 compiler_CXX \
26201 compiler_F77 \
26202 lt_prog_compiler_no_builtin_flag_CXX \
26203 lt_prog_compiler_no_builtin_flag_F77 \
26204 lt_prog_compiler_wl_CXX \
26205 lt_prog_compiler_wl_F77 \
26206 lt_prog_compiler_pic_CXX \
26207 lt_prog_compiler_pic_F77 \
26208 lt_prog_compiler_static_CXX \
26209 lt_prog_compiler_static_F77 \
26210 lt_cv_prog_compiler_c_o_CXX \
26211 lt_cv_prog_compiler_c_o_F77 \
26212 export_dynamic_flag_spec_CXX \
26213 export_dynamic_flag_spec_F77 \
26214 whole_archive_flag_spec_CXX \
26215 whole_archive_flag_spec_F77 \
26216 compiler_needs_object_CXX \
26217 compiler_needs_object_F77 \
26218 with_gnu_ld_CXX \
26219 with_gnu_ld_F77 \
26220 allow_undefined_flag_CXX \
26221 allow_undefined_flag_F77 \
26222 no_undefined_flag_CXX \
26223 no_undefined_flag_F77 \
26224 hardcode_libdir_flag_spec_CXX \
26225 hardcode_libdir_flag_spec_F77 \
26226 hardcode_libdir_flag_spec_ld_CXX \
26227 hardcode_libdir_flag_spec_ld_F77 \
26228 hardcode_libdir_separator_CXX \
26229 hardcode_libdir_separator_F77 \
26230 fix_srcfile_path_CXX \
26231 fix_srcfile_path_F77 \
26232 exclude_expsyms_CXX \
26233 exclude_expsyms_F77 \
26234 include_expsyms_CXX \
26235 include_expsyms_F77 \
26236 file_list_spec_CXX \
26237 file_list_spec_F77 \
26238 compiler_lib_search_dirs_CXX \
26239 compiler_lib_search_dirs_F77 \
26240 predep_objects_CXX \
26241 predep_objects_F77 \
26242 postdep_objects_CXX \
26243 postdep_objects_F77 \
26244 predeps_CXX \
26245 predeps_F77 \
26246 postdeps_CXX \
26247 postdeps_F77 \
26248 compiler_lib_search_path_CXX \
26249 compiler_lib_search_path_F77; do
26250 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26251 *[\\\\\\\`\\"\\\$]*)
26252 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26255 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26257 esac
26258 done
26260 # Double-quote double-evaled strings.
26261 for var in reload_cmds \
26262 old_postinstall_cmds \
26263 old_postuninstall_cmds \
26264 old_archive_cmds \
26265 extract_expsyms_cmds \
26266 old_archive_from_new_cmds \
26267 old_archive_from_expsyms_cmds \
26268 archive_cmds \
26269 archive_expsym_cmds \
26270 module_cmds \
26271 module_expsym_cmds \
26272 export_symbols_cmds \
26273 prelink_cmds \
26274 postinstall_cmds \
26275 postuninstall_cmds \
26276 finish_cmds \
26277 sys_lib_search_path_spec \
26278 sys_lib_dlsearch_path_spec \
26279 old_archive_cmds_CXX \
26280 old_archive_cmds_F77 \
26281 old_archive_from_new_cmds_CXX \
26282 old_archive_from_new_cmds_F77 \
26283 old_archive_from_expsyms_cmds_CXX \
26284 old_archive_from_expsyms_cmds_F77 \
26285 archive_cmds_CXX \
26286 archive_cmds_F77 \
26287 archive_expsym_cmds_CXX \
26288 archive_expsym_cmds_F77 \
26289 module_cmds_CXX \
26290 module_cmds_F77 \
26291 module_expsym_cmds_CXX \
26292 module_expsym_cmds_F77 \
26293 export_symbols_cmds_CXX \
26294 export_symbols_cmds_F77 \
26295 prelink_cmds_CXX \
26296 prelink_cmds_F77; do
26297 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26298 *[\\\\\\\`\\"\\\$]*)
26299 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26302 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26304 esac
26305 done
26307 # Fix-up fallback echo if it was mangled by the above quoting rules.
26308 case \$lt_ECHO in
26309 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26311 esac
26313 ac_aux_dir='$ac_aux_dir'
26314 xsi_shell='$xsi_shell'
26315 lt_shell_append='$lt_shell_append'
26317 # See if we are running on zsh, and set the options which allow our
26318 # commands through without removal of \ escapes INIT.
26319 if test -n "\${ZSH_VERSION+set}" ; then
26320 setopt NO_GLOB_SUBST
26324 PACKAGE='$PACKAGE'
26325 VERSION='$VERSION'
26326 TIMESTAMP='$TIMESTAMP'
26327 RM='$RM'
26328 ofile='$ofile'
26337 _ACEOF
26339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26341 # Handling of arguments.
26342 for ac_config_target in $ac_config_targets
26344 case $ac_config_target in
26345 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26346 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26347 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26348 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26349 "mparam.h") CONFIG_FILES="$CONFIG_FILES mparam.h:mparam_h.in" ;;
26351 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26352 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26353 { (exit 1); exit 1; }; };;
26354 esac
26355 done
26358 # If the user did not use the arguments to specify the items to instantiate,
26359 # then the envvar interface is used. Set only those that are not.
26360 # We use the long form for the default assignment because of an extremely
26361 # bizarre bug on SunOS 4.1.3.
26362 if $ac_need_defaults; then
26363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26364 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26367 # Have a temporary directory for convenience. Make it in the build tree
26368 # simply because there is no reason against having it here, and in addition,
26369 # creating and moving files from /tmp can sometimes cause problems.
26370 # Hook for its removal unless debugging.
26371 # Note that there is a small window in which the directory will not be cleaned:
26372 # after its creation but before its name has been assigned to `$tmp'.
26373 $debug ||
26375 tmp=
26376 trap 'exit_status=$?
26377 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26379 trap '{ (exit 1); exit 1; }' 1 2 13 15
26381 # Create a (secure) tmp directory for tmp files.
26384 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26385 test -n "$tmp" && test -d "$tmp"
26386 } ||
26388 tmp=./conf$$-$RANDOM
26389 (umask 077 && mkdir "$tmp")
26390 } ||
26392 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26393 { (exit 1); exit 1; }
26396 # Set up the scripts for CONFIG_FILES section.
26397 # No need to generate them if there are no CONFIG_FILES.
26398 # This happens for instance with `./config.status config.h'.
26399 if test -n "$CONFIG_FILES"; then
26402 ac_cr=' '
26403 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26404 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26405 ac_cs_awk_cr='\\r'
26406 else
26407 ac_cs_awk_cr=$ac_cr
26410 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26411 _ACEOF
26415 echo "cat >conf$$subs.awk <<_ACEOF" &&
26416 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26417 echo "_ACEOF"
26418 } >conf$$subs.sh ||
26419 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26420 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26421 { (exit 1); exit 1; }; }
26422 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26423 ac_delim='%!_!# '
26424 for ac_last_try in false false false false false :; do
26425 . ./conf$$subs.sh ||
26426 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26427 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26428 { (exit 1); exit 1; }; }
26430 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26431 if test $ac_delim_n = $ac_delim_num; then
26432 break
26433 elif $ac_last_try; then
26434 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26435 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26436 { (exit 1); exit 1; }; }
26437 else
26438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26440 done
26441 rm -f conf$$subs.sh
26443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26444 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26445 _ACEOF
26446 sed -n '
26448 s/^/S["/; s/!.*/"]=/
26451 s/^[^!]*!//
26452 :repl
26453 t repl
26454 s/'"$ac_delim"'$//
26455 t delim
26458 s/\(.\{148\}\).*/\1/
26459 t more1
26460 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26463 b repl
26464 :more1
26465 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26468 s/.\{148\}//
26469 t nl
26470 :delim
26472 s/\(.\{148\}\).*/\1/
26473 t more2
26474 s/["\\]/\\&/g; s/^/"/; s/$/"/
26477 :more2
26478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26481 s/.\{148\}//
26482 t delim
26483 ' <conf$$subs.awk | sed '
26484 /^[^""]/{
26486 s/\n//
26488 ' >>$CONFIG_STATUS || ac_write_fail=1
26489 rm -f conf$$subs.awk
26490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26491 _ACAWK
26492 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26493 for (key in S) S_is_set[key] = 1
26494 FS = "\a"
26498 line = $ 0
26499 nfields = split(line, field, "@")
26500 substed = 0
26501 len = length(field[1])
26502 for (i = 2; i < nfields; i++) {
26503 key = field[i]
26504 keylen = length(key)
26505 if (S_is_set[key]) {
26506 value = S[key]
26507 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26508 len += length(value) + length(field[++i])
26509 substed = 1
26510 } else
26511 len += 1 + keylen
26514 print line
26517 _ACAWK
26518 _ACEOF
26519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26520 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26521 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26522 else
26524 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26525 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26526 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26527 { (exit 1); exit 1; }; }
26528 _ACEOF
26530 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26531 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26532 # trailing colons and then remove the whole line if VPATH becomes empty
26533 # (actually we leave an empty line to preserve line numbers).
26534 if test "x$srcdir" = x.; then
26535 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26536 s/:*\$(srcdir):*/:/
26537 s/:*\${srcdir}:*/:/
26538 s/:*@srcdir@:*/:/
26539 s/^\([^=]*=[ ]*\):*/\1/
26540 s/:*$//
26541 s/^[^=]*=[ ]*$//
26545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26546 fi # test -n "$CONFIG_FILES"
26549 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
26550 shift
26551 for ac_tag
26553 case $ac_tag in
26554 :[FHLC]) ac_mode=$ac_tag; continue;;
26555 esac
26556 case $ac_mode$ac_tag in
26557 :[FHL]*:*);;
26558 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
26559 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
26560 { (exit 1); exit 1; }; };;
26561 :[FH]-) ac_tag=-:-;;
26562 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26563 esac
26564 ac_save_IFS=$IFS
26565 IFS=:
26566 set x $ac_tag
26567 IFS=$ac_save_IFS
26568 shift
26569 ac_file=$1
26570 shift
26572 case $ac_mode in
26573 :L) ac_source=$1;;
26574 :[FH])
26575 ac_file_inputs=
26576 for ac_f
26578 case $ac_f in
26579 -) ac_f="$tmp/stdin";;
26580 *) # Look for the file first in the build tree, then in the source tree
26581 # (if the path is not absolute). The absolute path cannot be DOS-style,
26582 # because $ac_f cannot contain `:'.
26583 test -f "$ac_f" ||
26584 case $ac_f in
26585 [\\/$]*) false;;
26586 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26587 esac ||
26588 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26589 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26590 { (exit 1); exit 1; }; };;
26591 esac
26592 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26593 ac_file_inputs="$ac_file_inputs '$ac_f'"
26594 done
26596 # Let's still pretend it is `configure' which instantiates (i.e., don't
26597 # use $as_me), people would be surprised to read:
26598 # /* config.h. Generated by config.status. */
26599 configure_input='Generated from '`
26600 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26601 `' by configure.'
26602 if test x"$ac_file" != x-; then
26603 configure_input="$ac_file. $configure_input"
26604 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26605 $as_echo "$as_me: creating $ac_file" >&6;}
26607 # Neutralize special characters interpreted by sed in replacement strings.
26608 case $configure_input in #(
26609 *\&* | *\|* | *\\* )
26610 ac_sed_conf_input=`$as_echo "$configure_input" |
26611 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26612 *) ac_sed_conf_input=$configure_input;;
26613 esac
26615 case $ac_tag in
26616 *:-:* | *:-) cat >"$tmp/stdin" \
26617 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26618 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26619 { (exit 1); exit 1; }; } ;;
26620 esac
26622 esac
26624 ac_dir=`$as_dirname -- "$ac_file" ||
26625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26626 X"$ac_file" : 'X\(//\)[^/]' \| \
26627 X"$ac_file" : 'X\(//\)$' \| \
26628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26629 $as_echo X"$ac_file" |
26630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26631 s//\1/
26634 /^X\(\/\/\)[^/].*/{
26635 s//\1/
26638 /^X\(\/\/\)$/{
26639 s//\1/
26642 /^X\(\/\).*/{
26643 s//\1/
26646 s/.*/./; q'`
26647 { as_dir="$ac_dir"
26648 case $as_dir in #(
26649 -*) as_dir=./$as_dir;;
26650 esac
26651 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26652 as_dirs=
26653 while :; do
26654 case $as_dir in #(
26655 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26656 *) as_qdir=$as_dir;;
26657 esac
26658 as_dirs="'$as_qdir' $as_dirs"
26659 as_dir=`$as_dirname -- "$as_dir" ||
26660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26661 X"$as_dir" : 'X\(//\)[^/]' \| \
26662 X"$as_dir" : 'X\(//\)$' \| \
26663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26664 $as_echo X"$as_dir" |
26665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26666 s//\1/
26669 /^X\(\/\/\)[^/].*/{
26670 s//\1/
26673 /^X\(\/\/\)$/{
26674 s//\1/
26677 /^X\(\/\).*/{
26678 s//\1/
26681 s/.*/./; q'`
26682 test -d "$as_dir" && break
26683 done
26684 test -z "$as_dirs" || eval "mkdir $as_dirs"
26685 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26686 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26687 { (exit 1); exit 1; }; }; }
26688 ac_builddir=.
26690 case "$ac_dir" in
26691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26694 # A ".." for each directory in $ac_dir_suffix.
26695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26696 case $ac_top_builddir_sub in
26697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26699 esac ;;
26700 esac
26701 ac_abs_top_builddir=$ac_pwd
26702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26703 # for backward compatibility:
26704 ac_top_builddir=$ac_top_build_prefix
26706 case $srcdir in
26707 .) # We are building in place.
26708 ac_srcdir=.
26709 ac_top_srcdir=$ac_top_builddir_sub
26710 ac_abs_top_srcdir=$ac_pwd ;;
26711 [\\/]* | ?:[\\/]* ) # Absolute name.
26712 ac_srcdir=$srcdir$ac_dir_suffix;
26713 ac_top_srcdir=$srcdir
26714 ac_abs_top_srcdir=$srcdir ;;
26715 *) # Relative name.
26716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26717 ac_top_srcdir=$ac_top_build_prefix$srcdir
26718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26719 esac
26720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26723 case $ac_mode in
26726 # CONFIG_FILE
26729 case $INSTALL in
26730 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26731 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26732 esac
26733 ac_MKDIR_P=$MKDIR_P
26734 case $MKDIR_P in
26735 [\\/$]* | ?:[\\/]* ) ;;
26736 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26737 esac
26738 _ACEOF
26740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26741 # If the template does not know about datarootdir, expand it.
26742 # FIXME: This hack should be removed a few years after 2.60.
26743 ac_datarootdir_hack=; ac_datarootdir_seen=
26745 ac_sed_dataroot='
26746 /datarootdir/ {
26750 /@datadir@/p
26751 /@docdir@/p
26752 /@infodir@/p
26753 /@localedir@/p
26754 /@mandir@/p
26756 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26757 *datarootdir*) ac_datarootdir_seen=yes;;
26758 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26759 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26760 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26761 _ACEOF
26762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26763 ac_datarootdir_hack='
26764 s&@datadir@&$datadir&g
26765 s&@docdir@&$docdir&g
26766 s&@infodir@&$infodir&g
26767 s&@localedir@&$localedir&g
26768 s&@mandir@&$mandir&g
26769 s&\\\${datarootdir}&$datarootdir&g' ;;
26770 esac
26771 _ACEOF
26773 # Neutralize VPATH when `$srcdir' = `.'.
26774 # Shell code in configure.ac might set extrasub.
26775 # FIXME: do we really want to maintain this feature?
26776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26777 ac_sed_extra="$ac_vpsub
26778 $extrasub
26779 _ACEOF
26780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26783 s|@configure_input@|$ac_sed_conf_input|;t t
26784 s&@top_builddir@&$ac_top_builddir_sub&;t t
26785 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26786 s&@srcdir@&$ac_srcdir&;t t
26787 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26788 s&@top_srcdir@&$ac_top_srcdir&;t t
26789 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26790 s&@builddir@&$ac_builddir&;t t
26791 s&@abs_builddir@&$ac_abs_builddir&;t t
26792 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26793 s&@INSTALL@&$ac_INSTALL&;t t
26794 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26795 $ac_datarootdir_hack
26797 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26798 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26799 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26800 { (exit 1); exit 1; }; }
26802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26803 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26804 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26805 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26806 which seems to be undefined. Please make sure it is defined." >&5
26807 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26808 which seems to be undefined. Please make sure it is defined." >&2;}
26810 rm -f "$tmp/stdin"
26811 case $ac_file in
26812 -) cat "$tmp/out" && rm -f "$tmp/out";;
26813 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26814 esac \
26815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26816 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26817 { (exit 1); exit 1; }; }
26821 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26822 $as_echo "$as_me: executing $ac_file commands" >&6;}
26824 esac
26827 case $ac_file$ac_mode in
26828 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26829 # Strip MF so we end up with the name of the file.
26830 mf=`echo "$mf" | sed -e 's/:.*$//'`
26831 # Check whether this is an Automake generated Makefile or not.
26832 # We used to match only the files named `Makefile.in', but
26833 # some people rename them; so instead we look at the file content.
26834 # Grep'ing the first line is not enough: some people post-process
26835 # each Makefile.in and add a new line on top of each file to say so.
26836 # Grep'ing the whole file is not good either: AIX grep has a line
26837 # limit of 2048, but all sed's we know have understand at least 4000.
26838 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26839 dirpart=`$as_dirname -- "$mf" ||
26840 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26841 X"$mf" : 'X\(//\)[^/]' \| \
26842 X"$mf" : 'X\(//\)$' \| \
26843 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26844 $as_echo X"$mf" |
26845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26846 s//\1/
26849 /^X\(\/\/\)[^/].*/{
26850 s//\1/
26853 /^X\(\/\/\)$/{
26854 s//\1/
26857 /^X\(\/\).*/{
26858 s//\1/
26861 s/.*/./; q'`
26862 else
26863 continue
26865 # Extract the definition of DEPDIR, am__include, and am__quote
26866 # from the Makefile without running `make'.
26867 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26868 test -z "$DEPDIR" && continue
26869 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26870 test -z "am__include" && continue
26871 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26872 # When using ansi2knr, U may be empty or an underscore; expand it
26873 U=`sed -n 's/^U = //p' < "$mf"`
26874 # Find all dependency output files, they are included files with
26875 # $(DEPDIR) in their names. We invoke sed twice because it is the
26876 # simplest approach to changing $(DEPDIR) to its actual value in the
26877 # expansion.
26878 for file in `sed -n "
26879 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26880 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26881 # Make sure the directory exists.
26882 test -f "$dirpart/$file" && continue
26883 fdir=`$as_dirname -- "$file" ||
26884 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26885 X"$file" : 'X\(//\)[^/]' \| \
26886 X"$file" : 'X\(//\)$' \| \
26887 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26888 $as_echo X"$file" |
26889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26890 s//\1/
26893 /^X\(\/\/\)[^/].*/{
26894 s//\1/
26897 /^X\(\/\/\)$/{
26898 s//\1/
26901 /^X\(\/\).*/{
26902 s//\1/
26905 s/.*/./; q'`
26906 { as_dir=$dirpart/$fdir
26907 case $as_dir in #(
26908 -*) as_dir=./$as_dir;;
26909 esac
26910 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26911 as_dirs=
26912 while :; do
26913 case $as_dir in #(
26914 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26915 *) as_qdir=$as_dir;;
26916 esac
26917 as_dirs="'$as_qdir' $as_dirs"
26918 as_dir=`$as_dirname -- "$as_dir" ||
26919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26920 X"$as_dir" : 'X\(//\)[^/]' \| \
26921 X"$as_dir" : 'X\(//\)$' \| \
26922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26923 $as_echo X"$as_dir" |
26924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26925 s//\1/
26928 /^X\(\/\/\)[^/].*/{
26929 s//\1/
26932 /^X\(\/\/\)$/{
26933 s//\1/
26936 /^X\(\/\).*/{
26937 s//\1/
26940 s/.*/./; q'`
26941 test -d "$as_dir" && break
26942 done
26943 test -z "$as_dirs" || eval "mkdir $as_dirs"
26944 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26945 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26946 { (exit 1); exit 1; }; }; }
26947 # echo "creating $dirpart/$file"
26948 echo '# dummy' > "$dirpart/$file"
26949 done
26950 done
26952 "libtool":C)
26954 # See if we are running on zsh, and set the options which allow our
26955 # commands through without removal of \ escapes.
26956 if test -n "${ZSH_VERSION+set}" ; then
26957 setopt NO_GLOB_SUBST
26960 cfgfile="${ofile}T"
26961 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26962 $RM "$cfgfile"
26964 cat <<_LT_EOF >> "$cfgfile"
26965 #! $SHELL
26967 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26968 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
26969 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26970 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26972 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26973 # 2006, 2007, 2008 Free Software Foundation, Inc.
26974 # Written by Gordon Matzigkeit, 1996
26976 # This file is part of GNU Libtool.
26978 # GNU Libtool is free software; you can redistribute it and/or
26979 # modify it under the terms of the GNU General Public License as
26980 # published by the Free Software Foundation; either version 2 of
26981 # the License, or (at your option) any later version.
26983 # As a special exception to the GNU General Public License,
26984 # if you distribute this file as part of a program or library that
26985 # is built using GNU Libtool, you may include this file under the
26986 # same distribution terms that you use for the rest of that program.
26988 # GNU Libtool is distributed in the hope that it will be useful,
26989 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26990 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26991 # GNU General Public License for more details.
26993 # You should have received a copy of the GNU General Public License
26994 # along with GNU Libtool; see the file COPYING. If not, a copy
26995 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26996 # obtained by writing to the Free Software Foundation, Inc.,
26997 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27000 # The names of the tagged configurations supported by this script.
27001 available_tags="CXX F77 "
27003 # ### BEGIN LIBTOOL CONFIG
27005 # Assembler program.
27006 AS=$AS
27008 # DLL creation program.
27009 DLLTOOL=$DLLTOOL
27011 # Object dumper program.
27012 OBJDUMP=$OBJDUMP
27014 # Which release of libtool.m4 was used?
27015 macro_version=$macro_version
27016 macro_revision=$macro_revision
27018 # Whether or not to build shared libraries.
27019 build_libtool_libs=$enable_shared
27021 # Whether or not to build static libraries.
27022 build_old_libs=$enable_static
27024 # What type of objects to build.
27025 pic_mode=$pic_mode
27027 # Whether or not to optimize for fast installation.
27028 fast_install=$enable_fast_install
27030 # The host system.
27031 host_alias=$host_alias
27032 host=$host
27033 host_os=$host_os
27035 # The build system.
27036 build_alias=$build_alias
27037 build=$build
27038 build_os=$build_os
27040 # A sed program that does not truncate output.
27041 SED=$lt_SED
27043 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27044 Xsed="\$SED -e 1s/^X//"
27046 # A grep program that handles long lines.
27047 GREP=$lt_GREP
27049 # An ERE matcher.
27050 EGREP=$lt_EGREP
27052 # A literal string matcher.
27053 FGREP=$lt_FGREP
27055 # A BSD- or MS-compatible name lister.
27056 NM=$lt_NM
27058 # Whether we need soft or hard links.
27059 LN_S=$lt_LN_S
27061 # What is the maximum length of a command?
27062 max_cmd_len=$max_cmd_len
27064 # Object file suffix (normally "o").
27065 objext=$ac_objext
27067 # Executable file suffix (normally "").
27068 exeext=$exeext
27070 # whether the shell understands "unset".
27071 lt_unset=$lt_unset
27073 # turn spaces into newlines.
27074 SP2NL=$lt_lt_SP2NL
27076 # turn newlines into spaces.
27077 NL2SP=$lt_lt_NL2SP
27079 # How to create reloadable object files.
27080 reload_flag=$lt_reload_flag
27081 reload_cmds=$lt_reload_cmds
27083 # Method to check whether dependent libraries are shared objects.
27084 deplibs_check_method=$lt_deplibs_check_method
27086 # Command to use when deplibs_check_method == "file_magic".
27087 file_magic_cmd=$lt_file_magic_cmd
27089 # The archiver.
27090 AR=$lt_AR
27091 AR_FLAGS=$lt_AR_FLAGS
27093 # A symbol stripping program.
27094 STRIP=$lt_STRIP
27096 # Commands used to install an old-style archive.
27097 RANLIB=$lt_RANLIB
27098 old_postinstall_cmds=$lt_old_postinstall_cmds
27099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27101 # A C compiler.
27102 LTCC=$lt_CC
27104 # LTCC compiler flags.
27105 LTCFLAGS=$lt_CFLAGS
27107 # Take the output of nm and produce a listing of raw symbols and C names.
27108 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27110 # Transform the output of nm in a proper C declaration.
27111 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27113 # Transform the output of nm in a C name address pair.
27114 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27116 # Transform the output of nm in a C name address pair when lib prefix is needed.
27117 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27119 # The name of the directory that contains temporary libtool files.
27120 objdir=$objdir
27122 # Shell to use when invoking shell scripts.
27123 SHELL=$lt_SHELL
27125 # An echo program that does not interpret backslashes.
27126 ECHO=$lt_ECHO
27128 # Used to examine libraries when file_magic_cmd begins with "file".
27129 MAGIC_CMD=$MAGIC_CMD
27131 # Must we lock files when doing compilation?
27132 need_locks=$lt_need_locks
27134 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27135 DSYMUTIL=$lt_DSYMUTIL
27137 # Tool to change global to local symbols on Mac OS X.
27138 NMEDIT=$lt_NMEDIT
27140 # Old archive suffix (normally "a").
27141 libext=$libext
27143 # Shared library suffix (normally ".so").
27144 shrext_cmds=$lt_shrext_cmds
27146 # The commands to extract the exported symbol list from a shared archive.
27147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27149 # Variables whose values should be saved in libtool wrapper scripts and
27150 # restored at link time.
27151 variables_saved_for_relink=$lt_variables_saved_for_relink
27153 # Do we need the "lib" prefix for modules?
27154 need_lib_prefix=$need_lib_prefix
27156 # Do we need a version for libraries?
27157 need_version=$need_version
27159 # Library versioning type.
27160 version_type=$version_type
27162 # Shared library runtime path variable.
27163 runpath_var=$runpath_var
27165 # Shared library path variable.
27166 shlibpath_var=$shlibpath_var
27168 # Is shlibpath searched before the hard-coded library search path?
27169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27171 # Format of library name prefix.
27172 libname_spec=$lt_libname_spec
27174 # List of archive names. First name is the real one, the rest are links.
27175 # The last name is the one that the linker finds with -lNAME
27176 library_names_spec=$lt_library_names_spec
27178 # The coded name of the library, if different from the real name.
27179 soname_spec=$lt_soname_spec
27181 # Command to use after installation of a shared archive.
27182 postinstall_cmds=$lt_postinstall_cmds
27184 # Command to use after uninstallation of a shared archive.
27185 postuninstall_cmds=$lt_postuninstall_cmds
27187 # Commands used to finish a libtool library installation in a directory.
27188 finish_cmds=$lt_finish_cmds
27190 # As "finish_cmds", except a single script fragment to be evaled but
27191 # not shown.
27192 finish_eval=$lt_finish_eval
27194 # Whether we should hardcode library paths into libraries.
27195 hardcode_into_libs=$hardcode_into_libs
27197 # Compile-time system search path for libraries.
27198 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27200 # Run-time system search path for libraries.
27201 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27203 # Whether dlopen is supported.
27204 dlopen_support=$enable_dlopen
27206 # Whether dlopen of programs is supported.
27207 dlopen_self=$enable_dlopen_self
27209 # Whether dlopen of statically linked programs is supported.
27210 dlopen_self_static=$enable_dlopen_self_static
27212 # Commands to strip libraries.
27213 old_striplib=$lt_old_striplib
27214 striplib=$lt_striplib
27217 # The linker used to build libraries.
27218 LD=$lt_LD
27220 # Commands used to build an old-style archive.
27221 old_archive_cmds=$lt_old_archive_cmds
27223 # A language specific compiler.
27224 CC=$lt_compiler
27226 # Is the compiler the GNU compiler?
27227 with_gcc=$GCC
27229 # Compiler flag to turn off builtin functions.
27230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27232 # How to pass a linker flag through the compiler.
27233 wl=$lt_lt_prog_compiler_wl
27235 # Additional compiler flags for building library objects.
27236 pic_flag=$lt_lt_prog_compiler_pic
27238 # Compiler flag to prevent dynamic linking.
27239 link_static_flag=$lt_lt_prog_compiler_static
27241 # Does compiler simultaneously support -c and -o options?
27242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27244 # Whether or not to add -lc for building shared libraries.
27245 build_libtool_need_lc=$archive_cmds_need_lc
27247 # Whether or not to disallow shared libs when runtime libs are static.
27248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27250 # Compiler flag to allow reflexive dlopens.
27251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27253 # Compiler flag to generate shared objects directly from archives.
27254 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27256 # Whether the compiler copes with passing no objects directly.
27257 compiler_needs_object=$lt_compiler_needs_object
27259 # Create an old-style archive from a shared archive.
27260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27262 # Create a temporary old-style archive to link instead of a shared archive.
27263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27265 # Commands used to build a shared archive.
27266 archive_cmds=$lt_archive_cmds
27267 archive_expsym_cmds=$lt_archive_expsym_cmds
27269 # Commands used to build a loadable module if different from building
27270 # a shared archive.
27271 module_cmds=$lt_module_cmds
27272 module_expsym_cmds=$lt_module_expsym_cmds
27274 # Whether we are building with GNU ld or not.
27275 with_gnu_ld=$lt_with_gnu_ld
27277 # Flag that allows shared libraries with undefined symbols to be built.
27278 allow_undefined_flag=$lt_allow_undefined_flag
27280 # Flag that enforces no undefined symbols.
27281 no_undefined_flag=$lt_no_undefined_flag
27283 # Flag to hardcode \$libdir into a binary during linking.
27284 # This must work even if \$libdir does not exist
27285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27287 # If ld is used when linking, flag to hardcode \$libdir into a binary
27288 # during linking. This must work even if \$libdir does not exist.
27289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27291 # Whether we need a single "-rpath" flag with a separated argument.
27292 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27294 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27295 # DIR into the resulting binary.
27296 hardcode_direct=$hardcode_direct
27298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27299 # DIR into the resulting binary and the resulting library dependency is
27300 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27301 # library is relocated.
27302 hardcode_direct_absolute=$hardcode_direct_absolute
27304 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27305 # into the resulting binary.
27306 hardcode_minus_L=$hardcode_minus_L
27308 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27309 # into the resulting binary.
27310 hardcode_shlibpath_var=$hardcode_shlibpath_var
27312 # Set to "yes" if building a shared library automatically hardcodes DIR
27313 # into the library and all subsequent libraries and executables linked
27314 # against it.
27315 hardcode_automatic=$hardcode_automatic
27317 # Set to yes if linker adds runtime paths of dependent libraries
27318 # to runtime path list.
27319 inherit_rpath=$inherit_rpath
27321 # Whether libtool must link a program against all its dependency libraries.
27322 link_all_deplibs=$link_all_deplibs
27324 # Fix the shell variable \$srcfile for the compiler.
27325 fix_srcfile_path=$lt_fix_srcfile_path
27327 # Set to "yes" if exported symbols are required.
27328 always_export_symbols=$always_export_symbols
27330 # The commands to list exported symbols.
27331 export_symbols_cmds=$lt_export_symbols_cmds
27333 # Symbols that should not be listed in the preloaded symbols.
27334 exclude_expsyms=$lt_exclude_expsyms
27336 # Symbols that must always be exported.
27337 include_expsyms=$lt_include_expsyms
27339 # Commands necessary for linking programs (against libraries) with templates.
27340 prelink_cmds=$lt_prelink_cmds
27342 # Specify filename containing input files.
27343 file_list_spec=$lt_file_list_spec
27345 # How to hardcode a shared library path into an executable.
27346 hardcode_action=$hardcode_action
27348 # The directories searched by this compiler when creating a shared library.
27349 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27351 # Dependencies to place before and after the objects being linked to
27352 # create a shared library.
27353 predep_objects=$lt_predep_objects
27354 postdep_objects=$lt_postdep_objects
27355 predeps=$lt_predeps
27356 postdeps=$lt_postdeps
27358 # The library search path used internally by the compiler when linking
27359 # a shared library.
27360 compiler_lib_search_path=$lt_compiler_lib_search_path
27362 # ### END LIBTOOL CONFIG
27364 _LT_EOF
27366 case $host_os in
27367 aix3*)
27368 cat <<\_LT_EOF >> "$cfgfile"
27369 # AIX sometimes has problems with the GCC collect2 program. For some
27370 # reason, if we set the COLLECT_NAMES environment variable, the problems
27371 # vanish in a puff of smoke.
27372 if test "X${COLLECT_NAMES+set}" != Xset; then
27373 COLLECT_NAMES=
27374 export COLLECT_NAMES
27376 _LT_EOF
27378 esac
27381 ltmain="$ac_aux_dir/ltmain.sh"
27384 # We use sed instead of cat because bash on DJGPP gets confused if
27385 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27386 # text mode, it properly converts lines to CR/LF. This bash problem
27387 # is reportedly fixed, but why not run on old versions too?
27388 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27389 || (rm -f "$cfgfile"; exit 1)
27391 case $xsi_shell in
27392 yes)
27393 cat << \_LT_EOF >> "$cfgfile"
27394 # func_dirname file append nondir_replacement
27395 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27396 # otherwise set result to NONDIR_REPLACEMENT.
27397 func_dirname ()
27399 case ${1} in
27400 */*) func_dirname_result="${1%/*}${2}" ;;
27401 * ) func_dirname_result="${3}" ;;
27402 esac
27405 # func_basename file
27406 func_basename ()
27408 func_basename_result="${1##*/}"
27411 # func_dirname_and_basename file append nondir_replacement
27412 # perform func_basename and func_dirname in a single function
27413 # call:
27414 # dirname: Compute the dirname of FILE. If nonempty,
27415 # add APPEND to the result, otherwise set result
27416 # to NONDIR_REPLACEMENT.
27417 # value returned in "$func_dirname_result"
27418 # basename: Compute filename of FILE.
27419 # value retuned in "$func_basename_result"
27420 # Implementation must be kept synchronized with func_dirname
27421 # and func_basename. For efficiency, we do not delegate to
27422 # those functions but instead duplicate the functionality here.
27423 func_dirname_and_basename ()
27425 case ${1} in
27426 */*) func_dirname_result="${1%/*}${2}" ;;
27427 * ) func_dirname_result="${3}" ;;
27428 esac
27429 func_basename_result="${1##*/}"
27432 # func_stripname prefix suffix name
27433 # strip PREFIX and SUFFIX off of NAME.
27434 # PREFIX and SUFFIX must not contain globbing or regex special
27435 # characters, hashes, percent signs, but SUFFIX may contain a leading
27436 # dot (in which case that matches only a dot).
27437 func_stripname ()
27439 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27440 # positional parameters, so assign one to ordinary parameter first.
27441 func_stripname_result=${3}
27442 func_stripname_result=${func_stripname_result#"${1}"}
27443 func_stripname_result=${func_stripname_result%"${2}"}
27446 # func_opt_split
27447 func_opt_split ()
27449 func_opt_split_opt=${1%%=*}
27450 func_opt_split_arg=${1#*=}
27453 # func_lo2o object
27454 func_lo2o ()
27456 case ${1} in
27457 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27458 *) func_lo2o_result=${1} ;;
27459 esac
27461 _LT_EOF
27463 *) # Bourne compatible functions.
27464 cat << \_LT_EOF >> "$cfgfile"
27465 # func_dirname file append nondir_replacement
27466 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27467 # otherwise set result to NONDIR_REPLACEMENT.
27468 func_dirname ()
27470 # Extract subdirectory from the argument.
27471 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27472 if test "X$func_dirname_result" = "X${1}"; then
27473 func_dirname_result="${3}"
27474 else
27475 func_dirname_result="$func_dirname_result${2}"
27479 # func_basename file
27480 func_basename ()
27482 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27485 # func_dirname_and_basename file append nondir_replacement
27486 # perform func_basename and func_dirname in a single function
27487 # call:
27488 # dirname: Compute the dirname of FILE. If nonempty,
27489 # add APPEND to the result, otherwise set result
27490 # to NONDIR_REPLACEMENT.
27491 # value returned in "$func_dirname_result"
27492 # basename: Compute filename of FILE.
27493 # value retuned in "$func_basename_result"
27494 # Implementation must be kept synchronized with func_dirname
27495 # and func_basename. For efficiency, we do not delegate to
27496 # those functions but instead duplicate the functionality here.
27497 func_dirname_and_basename ()
27499 # Extract subdirectory from the argument.
27500 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27501 if test "X$func_dirname_result" = "X${1}"; then
27502 func_dirname_result="${3}"
27503 else
27504 func_dirname_result="$func_dirname_result${2}"
27506 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27509 # func_stripname prefix suffix name
27510 # strip PREFIX and SUFFIX off of NAME.
27511 # PREFIX and SUFFIX must not contain globbing or regex special
27512 # characters, hashes, percent signs, but SUFFIX may contain a leading
27513 # dot (in which case that matches only a dot).
27514 # func_strip_suffix prefix name
27515 func_stripname ()
27517 case ${2} in
27518 .*) func_stripname_result=`$ECHO "X${3}" \
27519 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27520 *) func_stripname_result=`$ECHO "X${3}" \
27521 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27522 esac
27525 # sed scripts:
27526 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27527 my_sed_long_arg='1s/^-[^=]*=//'
27529 # func_opt_split
27530 func_opt_split ()
27532 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27533 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27536 # func_lo2o object
27537 func_lo2o ()
27539 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27541 _LT_EOF
27542 esac
27544 case $lt_shell_append in
27545 yes)
27546 cat << \_LT_EOF >> "$cfgfile"
27548 # func_append var value
27549 # Append VALUE to the end of shell variable VAR.
27550 func_append ()
27552 eval "$1+=\$2"
27554 _LT_EOF
27557 cat << \_LT_EOF >> "$cfgfile"
27559 # func_append var value
27560 # Append VALUE to the end of shell variable VAR.
27561 func_append ()
27563 eval "$1=\$$1\$2"
27565 _LT_EOF
27567 esac
27570 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27571 || (rm -f "$cfgfile"; exit 1)
27573 mv -f "$cfgfile" "$ofile" ||
27574 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27575 chmod +x "$ofile"
27578 cat <<_LT_EOF >> "$ofile"
27580 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27582 # The linker used to build libraries.
27583 LD=$lt_LD_CXX
27585 # Commands used to build an old-style archive.
27586 old_archive_cmds=$lt_old_archive_cmds_CXX
27588 # A language specific compiler.
27589 CC=$lt_compiler_CXX
27591 # Is the compiler the GNU compiler?
27592 with_gcc=$GCC_CXX
27594 # Compiler flag to turn off builtin functions.
27595 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27597 # How to pass a linker flag through the compiler.
27598 wl=$lt_lt_prog_compiler_wl_CXX
27600 # Additional compiler flags for building library objects.
27601 pic_flag=$lt_lt_prog_compiler_pic_CXX
27603 # Compiler flag to prevent dynamic linking.
27604 link_static_flag=$lt_lt_prog_compiler_static_CXX
27606 # Does compiler simultaneously support -c and -o options?
27607 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27609 # Whether or not to add -lc for building shared libraries.
27610 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27612 # Whether or not to disallow shared libs when runtime libs are static.
27613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27615 # Compiler flag to allow reflexive dlopens.
27616 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27618 # Compiler flag to generate shared objects directly from archives.
27619 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27621 # Whether the compiler copes with passing no objects directly.
27622 compiler_needs_object=$lt_compiler_needs_object_CXX
27624 # Create an old-style archive from a shared archive.
27625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27627 # Create a temporary old-style archive to link instead of a shared archive.
27628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27630 # Commands used to build a shared archive.
27631 archive_cmds=$lt_archive_cmds_CXX
27632 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27634 # Commands used to build a loadable module if different from building
27635 # a shared archive.
27636 module_cmds=$lt_module_cmds_CXX
27637 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27639 # Whether we are building with GNU ld or not.
27640 with_gnu_ld=$lt_with_gnu_ld_CXX
27642 # Flag that allows shared libraries with undefined symbols to be built.
27643 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27645 # Flag that enforces no undefined symbols.
27646 no_undefined_flag=$lt_no_undefined_flag_CXX
27648 # Flag to hardcode \$libdir into a binary during linking.
27649 # This must work even if \$libdir does not exist
27650 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27652 # If ld is used when linking, flag to hardcode \$libdir into a binary
27653 # during linking. This must work even if \$libdir does not exist.
27654 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27656 # Whether we need a single "-rpath" flag with a separated argument.
27657 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27659 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27660 # DIR into the resulting binary.
27661 hardcode_direct=$hardcode_direct_CXX
27663 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27664 # DIR into the resulting binary and the resulting library dependency is
27665 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27666 # library is relocated.
27667 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27669 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27670 # into the resulting binary.
27671 hardcode_minus_L=$hardcode_minus_L_CXX
27673 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27674 # into the resulting binary.
27675 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27677 # Set to "yes" if building a shared library automatically hardcodes DIR
27678 # into the library and all subsequent libraries and executables linked
27679 # against it.
27680 hardcode_automatic=$hardcode_automatic_CXX
27682 # Set to yes if linker adds runtime paths of dependent libraries
27683 # to runtime path list.
27684 inherit_rpath=$inherit_rpath_CXX
27686 # Whether libtool must link a program against all its dependency libraries.
27687 link_all_deplibs=$link_all_deplibs_CXX
27689 # Fix the shell variable \$srcfile for the compiler.
27690 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27692 # Set to "yes" if exported symbols are required.
27693 always_export_symbols=$always_export_symbols_CXX
27695 # The commands to list exported symbols.
27696 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27698 # Symbols that should not be listed in the preloaded symbols.
27699 exclude_expsyms=$lt_exclude_expsyms_CXX
27701 # Symbols that must always be exported.
27702 include_expsyms=$lt_include_expsyms_CXX
27704 # Commands necessary for linking programs (against libraries) with templates.
27705 prelink_cmds=$lt_prelink_cmds_CXX
27707 # Specify filename containing input files.
27708 file_list_spec=$lt_file_list_spec_CXX
27710 # How to hardcode a shared library path into an executable.
27711 hardcode_action=$hardcode_action_CXX
27713 # The directories searched by this compiler when creating a shared library.
27714 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27716 # Dependencies to place before and after the objects being linked to
27717 # create a shared library.
27718 predep_objects=$lt_predep_objects_CXX
27719 postdep_objects=$lt_postdep_objects_CXX
27720 predeps=$lt_predeps_CXX
27721 postdeps=$lt_postdeps_CXX
27723 # The library search path used internally by the compiler when linking
27724 # a shared library.
27725 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27727 # ### END LIBTOOL TAG CONFIG: CXX
27728 _LT_EOF
27731 cat <<_LT_EOF >> "$ofile"
27733 # ### BEGIN LIBTOOL TAG CONFIG: F77
27735 # The linker used to build libraries.
27736 LD=$lt_LD_F77
27738 # Commands used to build an old-style archive.
27739 old_archive_cmds=$lt_old_archive_cmds_F77
27741 # A language specific compiler.
27742 CC=$lt_compiler_F77
27744 # Is the compiler the GNU compiler?
27745 with_gcc=$GCC_F77
27747 # Compiler flag to turn off builtin functions.
27748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
27750 # How to pass a linker flag through the compiler.
27751 wl=$lt_lt_prog_compiler_wl_F77
27753 # Additional compiler flags for building library objects.
27754 pic_flag=$lt_lt_prog_compiler_pic_F77
27756 # Compiler flag to prevent dynamic linking.
27757 link_static_flag=$lt_lt_prog_compiler_static_F77
27759 # Does compiler simultaneously support -c and -o options?
27760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
27762 # Whether or not to add -lc for building shared libraries.
27763 build_libtool_need_lc=$archive_cmds_need_lc_F77
27765 # Whether or not to disallow shared libs when runtime libs are static.
27766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
27768 # Compiler flag to allow reflexive dlopens.
27769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
27771 # Compiler flag to generate shared objects directly from archives.
27772 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
27774 # Whether the compiler copes with passing no objects directly.
27775 compiler_needs_object=$lt_compiler_needs_object_F77
27777 # Create an old-style archive from a shared archive.
27778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
27780 # Create a temporary old-style archive to link instead of a shared archive.
27781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
27783 # Commands used to build a shared archive.
27784 archive_cmds=$lt_archive_cmds_F77
27785 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
27787 # Commands used to build a loadable module if different from building
27788 # a shared archive.
27789 module_cmds=$lt_module_cmds_F77
27790 module_expsym_cmds=$lt_module_expsym_cmds_F77
27792 # Whether we are building with GNU ld or not.
27793 with_gnu_ld=$lt_with_gnu_ld_F77
27795 # Flag that allows shared libraries with undefined symbols to be built.
27796 allow_undefined_flag=$lt_allow_undefined_flag_F77
27798 # Flag that enforces no undefined symbols.
27799 no_undefined_flag=$lt_no_undefined_flag_F77
27801 # Flag to hardcode \$libdir into a binary during linking.
27802 # This must work even if \$libdir does not exist
27803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
27805 # If ld is used when linking, flag to hardcode \$libdir into a binary
27806 # during linking. This must work even if \$libdir does not exist.
27807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
27809 # Whether we need a single "-rpath" flag with a separated argument.
27810 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
27812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27813 # DIR into the resulting binary.
27814 hardcode_direct=$hardcode_direct_F77
27816 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27817 # DIR into the resulting binary and the resulting library dependency is
27818 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27819 # library is relocated.
27820 hardcode_direct_absolute=$hardcode_direct_absolute_F77
27822 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27823 # into the resulting binary.
27824 hardcode_minus_L=$hardcode_minus_L_F77
27826 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27827 # into the resulting binary.
27828 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
27830 # Set to "yes" if building a shared library automatically hardcodes DIR
27831 # into the library and all subsequent libraries and executables linked
27832 # against it.
27833 hardcode_automatic=$hardcode_automatic_F77
27835 # Set to yes if linker adds runtime paths of dependent libraries
27836 # to runtime path list.
27837 inherit_rpath=$inherit_rpath_F77
27839 # Whether libtool must link a program against all its dependency libraries.
27840 link_all_deplibs=$link_all_deplibs_F77
27842 # Fix the shell variable \$srcfile for the compiler.
27843 fix_srcfile_path=$lt_fix_srcfile_path_F77
27845 # Set to "yes" if exported symbols are required.
27846 always_export_symbols=$always_export_symbols_F77
27848 # The commands to list exported symbols.
27849 export_symbols_cmds=$lt_export_symbols_cmds_F77
27851 # Symbols that should not be listed in the preloaded symbols.
27852 exclude_expsyms=$lt_exclude_expsyms_F77
27854 # Symbols that must always be exported.
27855 include_expsyms=$lt_include_expsyms_F77
27857 # Commands necessary for linking programs (against libraries) with templates.
27858 prelink_cmds=$lt_prelink_cmds_F77
27860 # Specify filename containing input files.
27861 file_list_spec=$lt_file_list_spec_F77
27863 # How to hardcode a shared library path into an executable.
27864 hardcode_action=$hardcode_action_F77
27866 # The directories searched by this compiler when creating a shared library.
27867 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
27869 # Dependencies to place before and after the objects being linked to
27870 # create a shared library.
27871 predep_objects=$lt_predep_objects_F77
27872 postdep_objects=$lt_postdep_objects_F77
27873 predeps=$lt_predeps_F77
27874 postdeps=$lt_postdeps_F77
27876 # The library search path used internally by the compiler when linking
27877 # a shared library.
27878 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
27880 # ### END LIBTOOL TAG CONFIG: F77
27881 _LT_EOF
27885 esac
27886 done # for ac_tag
27889 { (exit 0); exit 0; }
27890 _ACEOF
27891 chmod +x $CONFIG_STATUS
27892 ac_clean_files=$ac_clean_files_save
27894 test $ac_write_fail = 0 ||
27895 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27896 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27897 { (exit 1); exit 1; }; }
27900 # configure is writing to config.log, and then calls config.status.
27901 # config.status does its own redirection, appending to config.log.
27902 # Unfortunately, on DOS this fails, as config.log is still kept open
27903 # by configure, so config.status won't be able to write to it; its
27904 # output is simply discarded. So we exec the FD to /dev/null,
27905 # effectively closing config.log, so it can be properly (re)opened and
27906 # appended to by config.status. When coming back to configure, we
27907 # need to make the FD available again.
27908 if test "$no_create" != yes; then
27909 ac_cs_success=:
27910 ac_config_status_args=
27911 test "$silent" = yes &&
27912 ac_config_status_args="$ac_config_status_args --quiet"
27913 exec 5>/dev/null
27914 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27915 exec 5>>config.log
27916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27917 # would make configure fail if this is the last instruction.
27918 $ac_cs_success || { (exit 1); exit 1; }
27920 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27921 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27922 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}