Should be xfailed for llvm-gcc3.4
[llvm-complete.git] / configure
blobef8a5406707f08299d850a5915dd2bfde0a55890
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 1.9cvs.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
275 (as_func_return () {
276 (exit $1)
278 as_func_success () {
279 as_func_return 0
281 as_func_failure () {
282 as_func_return 1
284 as_func_ret_success () {
285 return 0
287 as_func_ret_failure () {
288 return 1
291 exitcode=0
292 if as_func_success; then
294 else
295 exitcode=1
296 echo as_func_success failed.
299 if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
306 else
307 exitcode=1
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 else
319 exitcode=1
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331 _ASEOF
332 }; then
333 break
338 done
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
365 (exit \$1)
367 as_func_success () {
368 as_func_return 0
370 as_func_failure () {
371 as_func_return 1
373 as_func_ret_success () {
374 return 0
376 as_func_ret_failure () {
377 return 1
380 exitcode=0
381 if as_func_success; then
383 else
384 exitcode=1
385 echo as_func_success failed.
388 if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
395 else
396 exitcode=1
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 else
408 exitcode=1
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
444 :lineno
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484 else
485 as_expr=false
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491 else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506 else
507 as_ln_s='cp -p'
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528 else
529 as_executable_p=:
531 rm -f conf$$.file
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542 # Check that we are running under the correct shell.
543 SHELL=${CONFIG_SHELL-/bin/sh}
545 case X$ECHO in
546 X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
550 esac
552 echo=${ECHO-echo}
553 if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556 elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
559 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560 # Yippee, $echo works!
562 else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
567 if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
573 exit 0
576 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 # if CDPATH is set.
578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
580 if test -z "$ECHO"; then
581 if test "X${echo_test_string+set}" != Xset; then
582 # find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
591 done
594 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
598 else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
603 # So, first we look for a working echo in the user's PATH.
605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606 for dir in $PATH /usr/ucb; do
607 IFS="$lt_save_ifs"
608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
615 done
616 IFS="$lt_save_ifs"
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
664 prev="$cmd"
665 done
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
681 # Copy echo and quote the copy suitably for passing to libtool from
682 # the Makefile, instead of quoting the original, which is used later.
683 ECHO=$echo
684 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
691 tagnames=${tagnames+${tagnames},}CXX
693 tagnames=${tagnames+${tagnames},}F77
695 exec 7<&0 </dev/null 6>&1
697 # Name of the host.
698 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699 # so uname gets run too.
700 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 # Initializations.
705 ac_default_prefix=/usr/local
706 ac_clean_files=
707 ac_config_libobj_dir=.
708 LIBOBJS=
709 cross_compiling=no
710 subdirs=
711 MFLAGS=
712 MAKEFLAGS=
713 SHELL=${CONFIG_SHELL-/bin/sh}
715 # Identity of this package.
716 PACKAGE_NAME='llvm'
717 PACKAGE_TARNAME='-llvm-'
718 PACKAGE_VERSION='1.9cvs'
719 PACKAGE_STRING='llvm 1.9cvs'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 # include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 # include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 DEBUG_RUNTIME
835 TARGET_HAS_JIT
836 ENABLE_DOXYGEN
837 ENABLE_THREADS
838 TARGETS_TO_BUILD
839 ENABLE_CBE_PRINTF_A
840 EXTRA_OPTIONS
842 CXXFLAGS
843 ac_ct_CXX
845 LEXLIB
846 LEX_OUTPUT_ROOT
847 FLEX
848 YACC
849 YFLAGS
850 BISON
852 ifGNUmake
853 LN_S
856 DATE
857 FIND
858 MKDIR
860 RANLIB
864 BINPWD
865 GRAPHVIZ
868 DOTTY
869 PERL
870 HAVE_PERL
871 INSTALL_PROGRAM
872 INSTALL_SCRIPT
873 INSTALL_DATA
874 BZIP2
875 DOXYGEN
876 GROFF
877 GZIP
878 POD2HTML
879 POD2MAN
880 RUNTEST
881 TCLSH
883 INSTALL_LTDL_TRUE
884 INSTALL_LTDL_FALSE
885 CONVENIENCE_LTDL_TRUE
886 CONVENIENCE_LTDL_FALSE
887 LIBADD_DL
888 ECHO
890 STRIP
891 CXXCPP
893 FFLAGS
894 ac_ct_F77
895 LIBTOOL
896 ETAGSFLAGS
897 LLVMGCC
898 LLVMGXX
899 HUGE_VAL_SANITY
900 ALLOCA
901 MMAP_FILE
902 LLVMCC1
903 LLVMCC1PLUS
904 LLVMGCCDIR
905 LLVMGCC_VERSION
906 LLVMGCC_MAJVERS
907 SHLIBEXT
908 LLVM_PREFIX
909 LLVM_BINDIR
910 LLVM_LIBDIR
911 LLVM_DATADIR
912 LLVM_DOCSDIR
913 LLVM_ETCDIR
914 LLVM_INCLUDEDIR
915 LLVM_INFODIR
916 LLVM_MANDIR
917 LLVM_CONFIGTIME
918 LIBOBJS
919 LTLIBOBJS'
920 ac_subst_files=''
921 ac_precious_vars='build_alias
922 host_alias
923 target_alias
925 CFLAGS
926 LDFLAGS
927 CPPFLAGS
930 CXXFLAGS
932 YACC
933 YFLAGS
934 CXXCPP
936 FFLAGS'
937 ac_subdirs_all='projects/sample
938 projects/Stacker
939 projects/privbracket
940 projects/llvm-test
941 projects/llvm-reopt
942 projects/llvm-gcc
943 projects/llvm-java
944 projects/llvm-tv
945 projects/llvm-poolalloc
946 projects/llvm-kernel'
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
994 ac_prev=
995 ac_dashdash=
996 for ac_option
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1001 ac_prev=
1002 continue
1005 case $ac_option in
1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 *) ac_optarg=yes ;;
1008 esac
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1014 ac_dashdash=yes ;;
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 ac_prev=bindir ;;
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1037 ac_prev=datadir ;;
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1055 eval enable_$ac_feature=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1058 ac_prev=docdir ;;
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 ac_prev=dvidir ;;
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1074 eval enable_$ac_feature=\$ac_optarg ;;
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
1083 exec_prefix=$ac_optarg ;;
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1087 with_gas=yes ;;
1089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
1096 -host | --host | --hos | --ho)
1097 ac_prev=host_alias ;;
1098 -host=* | --host=* | --hos=* | --ho=*)
1099 host_alias=$ac_optarg ;;
1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 ac_prev=htmldir ;;
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 | --ht=*)
1105 htmldir=$ac_optarg ;;
1107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
1112 includedir=$ac_optarg ;;
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 ac_prev=infodir ;;
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117 infodir=$ac_optarg ;;
1119 -libdir | --libdir | --libdi | --libd)
1120 ac_prev=libdir ;;
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122 libdir=$ac_optarg ;;
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
1129 libexecdir=$ac_optarg ;;
1131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1136 -localstatedir | --localstatedir | --localstatedi | --localstated \
1137 | --localstate | --localstat | --localsta | --localst | --locals)
1138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141 localstatedir=$ac_optarg ;;
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 ac_prev=mandir ;;
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146 mandir=$ac_optarg ;;
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1150 with_fp=no ;;
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n)
1154 no_create=yes ;;
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 no_recursion=yes ;;
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167 oldincludedir=$ac_optarg ;;
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 ac_prev=prefix ;;
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172 prefix=$ac_optarg ;;
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179 program_prefix=$ac_optarg ;;
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186 program_suffix=$ac_optarg ;;
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
1203 program_transform_name=$ac_optarg ;;
1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 ac_prev=pdfdir ;;
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1210 -psdir | --psdir | --psdi | --psd | --ps)
1211 ac_prev=psdir ;;
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 psdir=$ac_optarg ;;
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 silent=yes ;;
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1264 -with-* | --with-*)
1265 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package| sed 's/-/_/g'`
1271 eval with_$ac_package=\$ac_optarg ;;
1273 -without-* | --without-*)
1274 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid package name: $ac_package" >&2
1278 { (exit 1); exit 1; }; }
1279 ac_package=`echo $ac_package | sed 's/-/_/g'`
1280 eval with_$ac_package=no ;;
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1300 -*) { echo "$as_me: error: unrecognized option: $ac_option
1301 Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310 { (exit 1); exit 1; }; }
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1322 esac
1323 done
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 { echo "$as_me: error: missing argument to $ac_option" >&2
1328 { (exit 1); exit 1; }; }
1331 # Be sure to have absolute directory names.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val=\$$ac_var
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
1342 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1343 { (exit 1); exit 1; }; }
1344 done
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1349 build=$build_alias
1350 host=$host_alias
1351 target=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1358 If a cross compiler is detected then cross compile mode will be used." >&2
1359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367 test "$silent" = yes && exec 6>/dev/null
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 { echo "$as_me: error: Working directory cannot be determined" >&2
1374 { (exit 1); exit 1; }; }
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 { echo "$as_me: error: pwd does not report name of working directory" >&2
1377 { (exit 1); exit 1; }; }
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$0" ||
1385 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$0" : 'X\(//\)[^/]' \| \
1387 X"$0" : 'X\(//\)$' \| \
1388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1389 echo X"$0" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1398 /^X\(\/\/\)$/{
1399 s//\1/
1402 /^X\(\/\).*/{
1403 s//\1/
1406 s/.*/./; q'`
1407 srcdir=$ac_confdir
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 srcdir=..
1411 else
1412 ac_srcdir_defaulted=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1417 { (exit 1); exit 1; }; }
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1422 { (exit 1); exit 1; }; }
1423 pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 srcdir=.
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448 \`configure' configures llvm 1.9cvs to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1457 Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 [PREFIX]
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1501 _ACEOF
1503 cat <<\_ACEOF
1505 System types:
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1508 --target=TARGET configure for building compilers for TARGET [HOST]
1509 _ACEOF
1512 if test -n "$ac_init_help"; then
1513 case $ac_init_help in
1514 short | recursive ) echo "Configuration of llvm 1.9cvs:";;
1515 esac
1516 cat <<\_ACEOF
1518 Optional Features:
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1521 --enable-optimized
1522 --enable-assertions
1523 --enable-debug-runtime
1524 --enable-jit Enable Just In Time Compiling (default is YES)
1525 --enable-doxygen Build doxygen documentation (default is NO)
1526 --enable-threads Use threads if available (default is YES)
1527 --enable-targets Build specific host targets:
1528 all,host-only,{target-name} (default=all)
1529 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1530 %a (default is YES)
1531 --enable-ltdl-install install libltdl
1532 --enable-shared[=PKGS] build shared libraries
1533 [default=enable_shared_default]
1534 --enable-static[=PKGS] build static libraries
1535 [default=enable_static_default]
1536 --enable-fast-install[=PKGS]
1537 optimize for fast installation
1538 [default=enable_Fast_install_default]
1539 --disable-libtool-lock avoid locking (might break parallel builds)
1541 Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1545 searches PATH)
1546 --with-extra-options Specify addtional options to compile LLVM with
1547 --with-tclinclude directory where tcl headers are
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-pic try to use only PIC/non-PIC objects [default=use
1550 both]
1551 --with-tags[=TAGS] include additional configurations [automatic]
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CPP C preprocessor
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1564 the first program found out of: `bison -y', `byacc', `yacc'.
1565 YFLAGS The list of arguments that will be passed by default to $YACC.
1566 This script will default YFLAGS to the empty string to avoid a
1567 default value of `-d' given by some make applications.
1568 CXXCPP C++ preprocessor
1569 F77 Fortran 77 compiler command
1570 FFLAGS Fortran 77 compiler flags
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1575 Report bugs to <llvmbugs@cs.uiuc.edu>.
1576 _ACEOF
1577 ac_status=$?
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" || continue
1584 ac_builddir=.
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1602 case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1626 else
1627 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1630 done
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635 cat <<\_ACEOF
1636 llvm configure 1.9cvs
1637 generated by GNU Autoconf 2.60
1639 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1644 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1645 _ACEOF
1646 exit
1648 cat >config.log <<_ACEOF
1649 This file contains any messages produced by compilers while
1650 running configure, to aid debugging if configure makes a mistake.
1652 It was created by llvm $as_me 1.9cvs, which was
1653 generated by GNU Autoconf 2.60. Invocation command line was
1655 $ $0 $@
1657 _ACEOF
1658 exec 5>>config.log
1660 cat <<_ASUNAME
1661 ## --------- ##
1662 ## Platform. ##
1663 ## --------- ##
1665 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1674 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1675 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1676 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1677 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1678 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1679 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1680 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1682 _ASUNAME
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1687 IFS=$as_save_IFS
1688 test -z "$as_dir" && as_dir=.
1689 echo "PATH: $as_dir"
1690 done
1691 IFS=$as_save_IFS
1693 } >&5
1695 cat >&5 <<_ACEOF
1698 ## ----------- ##
1699 ## Core tests. ##
1700 ## ----------- ##
1702 _ACEOF
1705 # Keep a trace of the command line.
1706 # Strip out --no-create and --no-recursion so they do not pile up.
1707 # Strip out --silent because we don't want to record it for future runs.
1708 # Also quote any args containing shell meta-characters.
1709 # Make two passes to allow for proper duplicate-argument suppression.
1710 ac_configure_args=
1711 ac_configure_args0=
1712 ac_configure_args1=
1713 ac_must_keep_next=false
1714 for ac_pass in 1 2
1716 for ac_arg
1718 case $ac_arg in
1719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721 | -silent | --silent | --silen | --sile | --sil)
1722 continue ;;
1723 *\'*)
1724 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 esac
1726 case $ac_pass in
1727 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730 if test $ac_must_keep_next = true; then
1731 ac_must_keep_next=false # Got value, back to normal.
1732 else
1733 case $ac_arg in
1734 *=* | --config-cache | -C | -disable-* | --disable-* \
1735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737 | -with-* | --with-* | -without-* | --without-* | --x)
1738 case "$ac_configure_args0 " in
1739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740 esac
1742 -* ) ac_must_keep_next=true ;;
1743 esac
1745 ac_configure_args="$ac_configure_args '$ac_arg'"
1747 esac
1748 done
1749 done
1750 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753 # When interrupted or exit'd, cleanup temporary files, and complete
1754 # config.log. We remove comments because anyway the quotes in there
1755 # would cause problems or look ugly.
1756 # WARNING: Use '\'' to represent an apostrophe within the trap.
1757 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1758 trap 'exit_status=$?
1759 # Save into config.log some information that might help in debugging.
1761 echo
1763 cat <<\_ASBOX
1764 ## ---------------- ##
1765 ## Cache variables. ##
1766 ## ---------------- ##
1767 _ASBOX
1768 echo
1769 # The following way of writing the cache mishandles newlines in values,
1771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772 eval ac_val=\$$ac_var
1773 case $ac_val in #(
1774 *${as_nl}*)
1775 case $ac_var in #(
1776 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778 esac
1779 case $ac_var in #(
1780 _ | IFS | as_nl) ;; #(
1781 *) $as_unset $ac_var ;;
1782 esac ;;
1783 esac
1784 done
1785 (set) 2>&1 |
1786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787 *${as_nl}ac_space=\ *)
1788 sed -n \
1789 "s/'\''/'\''\\\\'\'''\''/g;
1790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791 ;; #(
1793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795 esac |
1796 sort
1798 echo
1800 cat <<\_ASBOX
1801 ## ----------------- ##
1802 ## Output variables. ##
1803 ## ----------------- ##
1804 _ASBOX
1805 echo
1806 for ac_var in $ac_subst_vars
1808 eval ac_val=\$$ac_var
1809 case $ac_val in
1810 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 esac
1812 echo "$ac_var='\''$ac_val'\''"
1813 done | sort
1814 echo
1816 if test -n "$ac_subst_files"; then
1817 cat <<\_ASBOX
1818 ## ------------------- ##
1819 ## File substitutions. ##
1820 ## ------------------- ##
1821 _ASBOX
1822 echo
1823 for ac_var in $ac_subst_files
1825 eval ac_val=\$$ac_var
1826 case $ac_val in
1827 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 esac
1829 echo "$ac_var='\''$ac_val'\''"
1830 done | sort
1831 echo
1834 if test -s confdefs.h; then
1835 cat <<\_ASBOX
1836 ## ----------- ##
1837 ## confdefs.h. ##
1838 ## ----------- ##
1839 _ASBOX
1840 echo
1841 cat confdefs.h
1842 echo
1844 test "$ac_signal" != 0 &&
1845 echo "$as_me: caught signal $ac_signal"
1846 echo "$as_me: exit $exit_status"
1847 } >&5
1848 rm -f core *.core core.conftest.* &&
1849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1850 exit $exit_status
1852 for ac_signal in 1 2 13 15; do
1853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854 done
1855 ac_signal=0
1857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1858 rm -f -r conftest* confdefs.h
1860 # Predefined preprocessor variables.
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_NAME "$PACKAGE_NAME"
1864 _ACEOF
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1874 _ACEOF
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_STRING "$PACKAGE_STRING"
1879 _ACEOF
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884 _ACEOF
1887 # Let the site file select an alternate cache file if it wants to.
1888 # Prefer explicitly selected file to automatically selected ones.
1889 if test -n "$CONFIG_SITE"; then
1890 set x "$CONFIG_SITE"
1891 elif test "x$prefix" != xNONE; then
1892 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1893 else
1894 set x "$ac_default_prefix/share/config.site" \
1895 "$ac_default_prefix/etc/config.site"
1897 shift
1898 for ac_site_file
1900 if test -r "$ac_site_file"; then
1901 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902 echo "$as_me: loading site script $ac_site_file" >&6;}
1903 sed 's/^/| /' "$ac_site_file" >&5
1904 . "$ac_site_file"
1906 done
1908 if test -r "$cache_file"; then
1909 # Some versions of bash will fail to source /dev/null (special
1910 # files actually), so we avoid doing that.
1911 if test -f "$cache_file"; then
1912 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913 echo "$as_me: loading cache $cache_file" >&6;}
1914 case $cache_file in
1915 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916 *) . "./$cache_file";;
1917 esac
1919 else
1920 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921 echo "$as_me: creating cache $cache_file" >&6;}
1922 >$cache_file
1925 # Check that the precious variables saved in the cache have kept the same
1926 # value.
1927 ac_cache_corrupted=false
1928 for ac_var in $ac_precious_vars; do
1929 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930 eval ac_new_set=\$ac_env_${ac_var}_set
1931 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932 eval ac_new_val=\$ac_env_${ac_var}_value
1933 case $ac_old_set,$ac_new_set in
1934 set,)
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1938 ,set)
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1942 ,);;
1944 if test "x$ac_old_val" != "x$ac_new_val"; then
1945 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1948 echo "$as_me: former value: $ac_old_val" >&2;}
1949 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1950 echo "$as_me: current value: $ac_new_val" >&2;}
1951 ac_cache_corrupted=:
1952 fi;;
1953 esac
1954 # Pass precious variables to config.status.
1955 if test "$ac_new_set" = set; then
1956 case $ac_new_val in
1957 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 *) ac_arg=$ac_var=$ac_new_val ;;
1959 esac
1960 case " $ac_configure_args " in
1961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1962 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 esac
1965 done
1966 if $ac_cache_corrupted; then
1967 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971 { (exit 1); exit 1; }; }
1998 ac_ext=c
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
2014 ac_aux_dir=
2015 for ac_dir in autoconf "$srcdir"/autoconf; do
2016 if test -f "$ac_dir/install-sh"; then
2017 ac_aux_dir=$ac_dir
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2019 break
2020 elif test -f "$ac_dir/install.sh"; then
2021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2023 break
2024 elif test -f "$ac_dir/shtool"; then
2025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2027 break
2029 done
2030 if test -z "$ac_aux_dir"; then
2031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2032 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2046 if test ${srcdir} != "." ; then
2047 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2048 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2049 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2050 { (exit 1); exit 1; }; }
2054 for i in `ls ${srcdir}/projects`
2056 if test -d ${srcdir}/projects/${i} ; then
2057 case ${i} in
2058 "CVS") ;;
2059 "sample") subdirs="$subdirs projects/sample"
2061 "Stacker") subdirs="$subdirs projects/Stacker"
2063 "privbracket") subdirs="$subdirs projects/privbracket"
2065 "llvm-test") subdirs="$subdirs projects/llvm-test"
2067 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
2069 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
2071 "llvm-java") subdirs="$subdirs projects/llvm-java"
2073 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
2075 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
2077 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
2080 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2081 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2083 esac
2085 done
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: checking build system type" >&5
2095 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 ac_build_alias=$build_alias
2100 test "x$ac_build_alias" = x &&
2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x &&
2103 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
2106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 echo "${ECHO_T}$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2115 *-*-*) ;;
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2119 esac
2120 build=$ac_cv_build
2121 ac_save_IFS=$IFS; IFS='-'
2122 set x $ac_cv_build
2123 shift
2124 build_cpu=$1
2125 build_vendor=$2
2126 shift; shift
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2129 build_os=$*
2130 IFS=$ac_save_IFS
2131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134 { echo "$as_me:$LINENO: checking host system type" >&5
2135 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 if test "x$host_alias" = x; then
2140 ac_cv_host=$ac_cv_build
2141 else
2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 echo "${ECHO_T}$ac_cv_host" >&6; }
2151 case $ac_cv_host in
2152 *-*-*) ;;
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2156 esac
2157 host=$ac_cv_host
2158 ac_save_IFS=$IFS; IFS='-'
2159 set x $ac_cv_host
2160 shift
2161 host_cpu=$1
2162 host_vendor=$2
2163 shift; shift
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2166 host_os=$*
2167 IFS=$ac_save_IFS
2168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2171 { echo "$as_me:$LINENO: checking target system type" >&5
2172 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2173 if test "${ac_cv_target+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test "x$target_alias" = x; then
2177 ac_cv_target=$ac_cv_host
2178 else
2179 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2181 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2182 { (exit 1); exit 1; }; }
2186 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2187 echo "${ECHO_T}$ac_cv_target" >&6; }
2188 case $ac_cv_target in
2189 *-*-*) ;;
2190 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2191 echo "$as_me: error: invalid value of canonical target" >&2;}
2192 { (exit 1); exit 1; }; };;
2193 esac
2194 target=$ac_cv_target
2195 ac_save_IFS=$IFS; IFS='-'
2196 set x $ac_cv_target
2197 shift
2198 target_cpu=$1
2199 target_vendor=$2
2200 shift; shift
2201 # Remember, the first character of IFS is used to create $*,
2202 # except with old shells:
2203 target_os=$*
2204 IFS=$ac_save_IFS
2205 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2208 # The aliases save the names the user supplied, while $host etc.
2209 # will get canonicalized.
2210 test -n "$target_alias" &&
2211 test "$program_prefix$program_suffix$program_transform_name" = \
2212 NONENONEs,x,x, &&
2213 program_prefix=${target_alias}-
2215 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2216 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2217 if test "${llvm_cv_os_type+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 case $host in
2221 *-*-aix*)
2222 llvm_cv_link_all_option="-Wl,--whole-archive"
2223 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2224 llvm_cv_os_type="AIX"
2225 llvm_cv_platform_type="Unix" ;;
2226 *-*-irix*)
2227 llvm_cv_link_all_option="-Wl,--whole-archive"
2228 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229 llvm_cv_os_type="IRIX"
2230 llvm_cv_platform_type="Unix" ;;
2231 *-*-cygwin*)
2232 llvm_cv_link_all_option="-Wl,--whole-archive"
2233 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2234 llvm_cv_os_type="Cygwin"
2235 llvm_cv_platform_type="Unix" ;;
2236 *-*-darwin*)
2237 llvm_cv_link_all_option="-Wl,-all_load"
2238 llvm_cv_link_all_option="-Wl,-noall_load"
2239 llvm_cv_os_type="Darwin"
2240 llvm_cv_platform_type="Unix" ;;
2241 *-*-freebsd*)
2242 llvm_cv_link_all_option="-Wl,--whole-archive"
2243 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2244 llvm_cv_os_type="FreeBSD"
2245 llvm_cv_platform_type="Unix" ;;
2246 *-*-openbsd*)
2247 llvm_cv_link_all_option="-Wl,--whole-archive"
2248 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2249 llvm_cv_os_type="OpenBSD"
2250 llvm_cv_platform_type="Unix" ;;
2251 *-*-hpux*)
2252 llvm_cv_link_all_option="-Wl,--whole-archive"
2253 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2254 llvm_cv_os_type="HP-UX"
2255 llvm_cv_platform_type="Unix" ;;
2256 *-*-interix*)
2257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2259 llvm_cv_os_type="Interix"
2260 llvm_cv_platform_type="Unix" ;;
2261 *-*-linux*)
2262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2264 llvm_cv_os_type="Linux"
2265 llvm_cv_platform_type="Unix" ;;
2266 *-*-solaris*)
2267 llvm_cv_link_all_option="-Wl,-z,allextract"
2268 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2269 llvm_cv_os_type="SunOS"
2270 llvm_cv_platform_type="Unix" ;;
2271 *-*-win32*)
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="Win32"
2275 llvm_cv_platform_type="Win32" ;;
2276 *-*-mingw*)
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="MingW"
2280 llvm_cv_platform_type="Win32" ;;
2282 llvm_cv_link_all_option=""
2283 llvm_cv_no_link_all_option=""
2284 llvm_cv_os_type="Unknown"
2285 llvm_cv_platform_type="Unknown" ;;
2286 esac
2288 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2289 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2291 if test "$llvm_cv_os_type" = "Unknown" ; then
2292 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2293 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2294 { (exit 1); exit 1; }; }
2297 OS=$llvm_cv_os_type
2300 LINKALL=$llvm_cv_link_all_option
2302 NOLINKALL=$llvm_cv_no_link_all_option
2305 case $llvm_cv_platform_type in
2306 Unix)
2308 cat >>confdefs.h <<\_ACEOF
2309 #define LLVM_ON_UNIX 1
2310 _ACEOF
2312 LLVM_ON_UNIX=1
2314 LLVM_ON_WIN32=0
2317 Win32)
2319 cat >>confdefs.h <<\_ACEOF
2320 #define LLVM_ON_WIN32 1
2321 _ACEOF
2323 LLVM_ON_UNIX=0
2325 LLVM_ON_WIN32=1
2328 esac
2330 { echo "$as_me:$LINENO: checking target architecture" >&5
2331 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2332 if test "${llvm_cv_target_arch+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 case $target in
2336 i?86-*) llvm_cv_target_arch="x86" ;;
2337 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2338 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2339 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2340 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2341 ia64-*) llvm_cv_target_arch="IA64" ;;
2342 *) llvm_cv_target_arch="Unknown" ;;
2343 esac
2345 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2346 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2348 if test "$llvm_cv_target_arch" = "Unknown" ; then
2349 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2350 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2353 ARCH=$llvm_cv_target_arch
2356 ac_ext=c
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2383 done
2384 done
2385 IFS=$as_save_IFS
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391 { echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6; }
2393 else
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2400 if test -z "$ac_cv_prog_CC"; then
2401 ac_ct_CC=$CC
2402 # Extract the first word of "gcc", so it can be a program name with args.
2403 set dummy gcc; ac_word=$2
2404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409 if test -n "$ac_ct_CC"; then
2410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2419 ac_cv_prog_ac_ct_CC="gcc"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2423 done
2424 done
2425 IFS=$as_save_IFS
2429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430 if test -n "$ac_ct_CC"; then
2431 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432 echo "${ECHO_T}$ac_ct_CC" >&6; }
2433 else
2434 { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2438 if test "x$ac_ct_CC" = x; then
2439 CC=""
2440 else
2441 case $cross_compiling:$ac_tool_warned in
2442 yes:)
2443 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444 whose name does not start with the host triplet. If you think this
2445 configuration is useful to you, please write to autoconf@gnu.org." >&5
2446 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447 whose name does not start with the host triplet. If you think this
2448 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449 ac_tool_warned=yes ;;
2450 esac
2451 CC=$ac_ct_CC
2453 else
2454 CC="$ac_cv_prog_CC"
2457 if test -z "$CC"; then
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2476 ac_cv_prog_CC="${ac_tool_prefix}cc"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2480 done
2481 done
2482 IFS=$as_save_IFS
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488 { echo "$as_me:$LINENO: result: $CC" >&5
2489 echo "${ECHO_T}$CC" >&6; }
2490 else
2491 { echo "$as_me:$LINENO: result: no" >&5
2492 echo "${ECHO_T}no" >&6; }
2498 if test -z "$CC"; then
2499 # Extract the first word of "cc", so it can be a program name with args.
2500 set dummy cc; ac_word=$2
2501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503 if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 else
2509 ac_prog_rejected=no
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 for as_dir in $PATH
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518 ac_prog_rejected=yes
2519 continue
2521 ac_cv_prog_CC="cc"
2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2525 done
2526 done
2527 IFS=$as_save_IFS
2529 if test $ac_prog_rejected = yes; then
2530 # We found a bogon in the path, so make sure we never use it.
2531 set dummy $ac_cv_prog_CC
2532 shift
2533 if test $# != 0; then
2534 # We chose a different compiler from the bogus one.
2535 # However, it has the same basename, so the bogon will be chosen
2536 # first if we set CC to just the basename; use the full file name.
2537 shift
2538 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545 { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2547 else
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2554 if test -z "$CC"; then
2555 if test -n "$ac_tool_prefix"; then
2556 for ac_prog in cl.exe
2558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 else
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2579 done
2580 done
2581 IFS=$as_save_IFS
2585 CC=$ac_cv_prog_CC
2586 if test -n "$CC"; then
2587 { echo "$as_me:$LINENO: result: $CC" >&5
2588 echo "${ECHO_T}$CC" >&6; }
2589 else
2590 { echo "$as_me:$LINENO: result: no" >&5
2591 echo "${ECHO_T}no" >&6; }
2595 test -n "$CC" && break
2596 done
2598 if test -z "$CC"; then
2599 ac_ct_CC=$CC
2600 for ac_prog in cl.exe
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_ac_ct_CC="$ac_prog"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2623 done
2624 done
2625 IFS=$as_save_IFS
2629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 echo "${ECHO_T}$ac_ct_CC" >&6; }
2633 else
2634 { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2639 test -n "$ac_ct_CC" && break
2640 done
2642 if test "x$ac_ct_CC" = x; then
2643 CC=""
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646 yes:)
2647 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648 whose name does not start with the host triplet. If you think this
2649 configuration is useful to you, please write to autoconf@gnu.org." >&5
2650 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2653 ac_tool_warned=yes ;;
2654 esac
2655 CC=$ac_ct_CC
2662 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&5
2664 echo "$as_me: error: no acceptable C compiler found in \$PATH
2665 See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2668 # Provide some information about the compiler.
2669 echo "$as_me:$LINENO: checking for C compiler version" >&5
2670 ac_compiler=`set X $ac_compile; echo $2`
2671 { (ac_try="$ac_compiler --version >&5"
2672 case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compiler --version >&5") 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681 { (ac_try="$ac_compiler -v >&5"
2682 case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compiler -v >&5") 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
2691 { (ac_try="$ac_compiler -V >&5"
2692 case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695 esac
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compiler -V >&5") 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2710 main ()
2714 return 0;
2716 _ACEOF
2717 ac_clean_files_save=$ac_clean_files
2718 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2719 # Try to create an executable without -o first, disregard a.out.
2720 # It will help us diagnose broken compilers, and finding out an intuition
2721 # of exeext.
2722 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2723 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2724 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2726 # List of possible output files, starting from the most likely.
2727 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2728 # only as a last resort. b.out is created by i960 compilers.
2729 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2731 # The IRIX 6 linker writes into existing files which may not be
2732 # executable, retaining their permissions. Remove them first so a
2733 # subsequent execution test works.
2734 ac_rmfiles=
2735 for ac_file in $ac_files
2737 case $ac_file in
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2739 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740 esac
2741 done
2742 rm -f $ac_rmfiles
2744 if { (ac_try="$ac_link_default"
2745 case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_link_default") 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
2754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2757 # so that the user can short-circuit this test for compilers unknown to
2758 # Autoconf.
2759 for ac_file in $ac_files
2761 test -f "$ac_file" || continue
2762 case $ac_file in
2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2765 [ab].out )
2766 # We found the default executable, but exeext='' is most
2767 # certainly right.
2768 break;;
2769 *.* )
2770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771 then :; else
2772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774 # We set ac_cv_exeext here because the later test for it is not
2775 # safe: cross compilers may not add the suffix if given an `-o'
2776 # argument, so we may need to know it at that point already.
2777 # Even if this section looks crufty: it has the advantage of
2778 # actually working.
2779 break;;
2781 break;;
2782 esac
2783 done
2784 test "$ac_cv_exeext" = no && ac_cv_exeext=
2786 else
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794 { (exit 77); exit 77; }; }
2797 ac_exeext=$ac_cv_exeext
2798 { echo "$as_me:$LINENO: result: $ac_file" >&5
2799 echo "${ECHO_T}$ac_file" >&6; }
2801 # Check that the compiler produces executables we can run. If not, either
2802 # the compiler is broken, or we cross compile.
2803 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2804 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2805 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2806 # If not cross compiling, check that we can run a simple program.
2807 if test "$cross_compiling" != yes; then
2808 if { ac_try='./$ac_file'
2809 { (case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_try") 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; }; then
2818 cross_compiling=no
2819 else
2820 if test "$cross_compiling" = maybe; then
2821 cross_compiling=yes
2822 else
2823 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details." >&5
2826 echo "$as_me: error: cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details." >&2;}
2829 { (exit 1); exit 1; }; }
2833 { echo "$as_me:$LINENO: result: yes" >&5
2834 echo "${ECHO_T}yes" >&6; }
2836 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2837 ac_clean_files=$ac_clean_files_save
2838 # Check that the compiler produces executables we can run. If not, either
2839 # the compiler is broken, or we cross compile.
2840 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2841 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2842 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2843 echo "${ECHO_T}$cross_compiling" >&6; }
2845 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2846 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2847 if { (ac_try="$ac_link"
2848 case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_link") 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; then
2857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2859 # work properly (i.e., refer to `conftest.exe'), while it won't with
2860 # `rm'.
2861 for ac_file in conftest.exe conftest conftest.*; do
2862 test -f "$ac_file" || continue
2863 case $ac_file in
2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866 break;;
2867 * ) break;;
2868 esac
2869 done
2870 else
2871 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
2878 rm -f conftest$ac_cv_exeext
2879 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2880 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2882 rm -f conftest.$ac_ext
2883 EXEEXT=$ac_cv_exeext
2884 ac_exeext=$EXEEXT
2885 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2886 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2887 if test "${ac_cv_objext+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h. */
2898 main ()
2902 return 0;
2904 _ACEOF
2905 rm -f conftest.o conftest.obj
2906 if { (ac_try="$ac_compile"
2907 case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910 esac
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compile") 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; then
2916 for ac_file in conftest.o conftest.obj conftest.*; do
2917 test -f "$ac_file" || continue;
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921 break;;
2922 esac
2923 done
2924 else
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2928 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&5
2930 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." >&2;}
2932 { (exit 1); exit 1; }; }
2935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2937 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2938 echo "${ECHO_T}$ac_cv_objext" >&6; }
2939 OBJEXT=$ac_cv_objext
2940 ac_objext=$OBJEXT
2941 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2942 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2943 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946 cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h. */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2954 main ()
2956 #ifndef __GNUC__
2957 choke me
2958 #endif
2961 return 0;
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_compile") 2>conftest.er1
2972 ac_status=$?
2973 grep -v '^ *+' conftest.er1 >conftest.err
2974 rm -f conftest.er1
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2979 { (case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982 esac
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_try") 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_try") 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
2998 ac_compiler_gnu=yes
2999 else
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 ac_compiler_gnu=no
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3010 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3012 GCC=`test $ac_compiler_gnu = yes && echo yes`
3013 ac_test_CFLAGS=${CFLAGS+set}
3014 ac_save_CFLAGS=$CFLAGS
3015 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3016 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3017 if test "${ac_cv_prog_cc_g+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 ac_save_c_werror_flag=$ac_c_werror_flag
3021 ac_c_werror_flag=yes
3022 ac_cv_prog_cc_g=no
3023 CFLAGS="-g"
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h. */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3032 main ()
3036 return 0;
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_try") 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try='test -s conftest.$ac_objext'
3064 { (case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_try") 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3073 ac_cv_prog_cc_g=yes
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3078 CFLAGS=""
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3087 main ()
3091 return 0;
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109 { (case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_try") 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3129 else
3130 echo "$as_me: failed program was:" >&5
3131 sed 's/^/| /' conftest.$ac_ext >&5
3133 ac_c_werror_flag=$ac_save_c_werror_flag
3134 CFLAGS="-g"
3135 cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h. */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h. */
3143 main ()
3147 return 0;
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165 { (case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_try") 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_prog_cc_g=yes
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3201 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3203 if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205 elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3207 CFLAGS="-g -O2"
3208 else
3209 CFLAGS="-g"
3211 else
3212 if test "$GCC" = yes; then
3213 CFLAGS="-O2"
3214 else
3215 CFLAGS=
3218 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3219 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3220 if test "${ac_cv_prog_cc_c89+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 ac_cv_prog_cc_c89=no
3224 ac_save_CC=$CC
3225 cat >conftest.$ac_ext <<_ACEOF
3226 /* confdefs.h. */
3227 _ACEOF
3228 cat confdefs.h >>conftest.$ac_ext
3229 cat >>conftest.$ac_ext <<_ACEOF
3230 /* end confdefs.h. */
3231 #include <stdarg.h>
3232 #include <stdio.h>
3233 #include <sys/types.h>
3234 #include <sys/stat.h>
3235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236 struct buf { int x; };
3237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238 static char *e (p, i)
3239 char **p;
3240 int i;
3242 return p[i];
3244 static char *f (char * (*g) (char **, int), char **p, ...)
3246 char *s;
3247 va_list v;
3248 va_start (v,p);
3249 s = g (p, va_arg (v,int));
3250 va_end (v);
3251 return s;
3254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
3257 as 'x'. The following induces an error, until -std is added to get
3258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
3260 that's true only with -std. */
3261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3265 #define FOO(x) 'x'
3266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268 int test (int i, double x);
3269 struct s1 {int (*f) (int a);};
3270 struct s2 {int (*f) (double a);};
3271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 int argc;
3273 char **argv;
3275 main ()
3277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 return 0;
3281 _ACEOF
3282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3285 CC="$ac_save_CC $ac_arg"
3286 rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301 { (case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_try") 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; } &&
3310 { ac_try='test -s conftest.$ac_objext'
3311 { (case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_try") 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3320 ac_cv_prog_cc_c89=$ac_arg
3321 else
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f core conftest.err conftest.$ac_objext
3329 test "x$ac_cv_prog_cc_c89" != "xno" && break
3330 done
3331 rm -f conftest.$ac_ext
3332 CC=$ac_save_CC
3335 # AC_CACHE_VAL
3336 case "x$ac_cv_prog_cc_c89" in
3338 { echo "$as_me:$LINENO: result: none needed" >&5
3339 echo "${ECHO_T}none needed" >&6; } ;;
3340 xno)
3341 { echo "$as_me:$LINENO: result: unsupported" >&5
3342 echo "${ECHO_T}unsupported" >&6; } ;;
3344 CC="$CC $ac_cv_prog_cc_c89"
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3347 esac
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3363 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3364 # On Suns, sometimes $CPP names a directory.
3365 if test -n "$CPP" && test -d "$CPP"; then
3366 CPP=
3368 if test -z "$CPP"; then
3369 if test "${ac_cv_prog_CPP+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3375 ac_preproc_ok=false
3376 for ac_c_preproc_warn_flag in '' yes
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3390 #ifdef __STDC__
3391 # include <limits.h>
3392 #else
3393 # include <assert.h>
3394 #endif
3395 Syntax error
3396 _ACEOF
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 else
3414 ac_cpp_err=
3416 else
3417 ac_cpp_err=yes
3419 if test -z "$ac_cpp_err"; then
3421 else
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3425 # Broken: fails on valid input.
3426 continue
3429 rm -f conftest.err conftest.$ac_ext
3431 # OK, works on sane cases. Now check whether nonexistent headers
3432 # can be detected and how.
3433 cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h. */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include <ac_nonexistent.h>
3440 _ACEOF
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457 else
3458 ac_cpp_err=
3460 else
3461 ac_cpp_err=yes
3463 if test -z "$ac_cpp_err"; then
3464 # Broken: success on invalid input.
3465 continue
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 # Passes both tests.
3471 ac_preproc_ok=:
3472 break
3475 rm -f conftest.err conftest.$ac_ext
3477 done
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3481 break
3484 done
3485 ac_cv_prog_CPP=$CPP
3488 CPP=$ac_cv_prog_CPP
3489 else
3490 ac_cv_prog_CPP=$CPP
3492 { echo "$as_me:$LINENO: result: $CPP" >&5
3493 echo "${ECHO_T}$CPP" >&6; }
3494 ac_preproc_ok=false
3495 for ac_c_preproc_warn_flag in '' yes
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
3503 cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h. */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 #ifdef __STDC__
3510 # include <limits.h>
3511 #else
3512 # include <assert.h>
3513 #endif
3514 Syntax error
3515 _ACEOF
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null; then
3529 if test -s conftest.err; then
3530 ac_cpp_err=$ac_c_preproc_warn_flag
3531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3532 else
3533 ac_cpp_err=
3535 else
3536 ac_cpp_err=yes
3538 if test -z "$ac_cpp_err"; then
3540 else
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Broken: fails on valid input.
3545 continue
3548 rm -f conftest.err conftest.$ac_ext
3550 # OK, works on sane cases. Now check whether nonexistent headers
3551 # can be detected and how.
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 #include <ac_nonexistent.h>
3559 _ACEOF
3560 if { (ac_try="$ac_cpp conftest.$ac_ext"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_c_preproc_warn_flag
3575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576 else
3577 ac_cpp_err=
3579 else
3580 ac_cpp_err=yes
3582 if test -z "$ac_cpp_err"; then
3583 # Broken: success on invalid input.
3584 continue
3585 else
3586 echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # Passes both tests.
3590 ac_preproc_ok=:
3591 break
3594 rm -f conftest.err conftest.$ac_ext
3596 done
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then
3601 else
3602 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605 See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3617 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3618 if test "${ac_cv_path_GREP+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 # Extract the first word of "grep ggrep" to use in msg output
3622 if test -z "$GREP"; then
3623 set dummy grep ggrep; ac_prog_name=$2
3624 if test "${ac_cv_path_GREP+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 ac_path_GREP_found=false
3628 # Loop through the user's path and test for each of PROGNAME-LIST
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
3634 for ac_prog in grep ggrep; do
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3638 # Check for GNU ac_path_GREP and select it if it is found.
3639 # Check for GNU $ac_path_GREP
3640 case `"$ac_path_GREP" --version 2>&1` in
3641 *GNU*)
3642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3644 ac_count=0
3645 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3646 while :
3648 cat "conftest.in" "conftest.in" >"conftest.tmp"
3649 mv "conftest.tmp" "conftest.in"
3650 cp "conftest.in" "conftest.nl"
3651 echo 'GREP' >> "conftest.nl"
3652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654 ac_count=`expr $ac_count + 1`
3655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656 # Best one so far, save it but keep looking for a better one
3657 ac_cv_path_GREP="$ac_path_GREP"
3658 ac_path_GREP_max=$ac_count
3660 # 10*(2^10) chars as input seems more than enough
3661 test $ac_count -gt 10 && break
3662 done
3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664 esac
3667 $ac_path_GREP_found && break 3
3668 done
3669 done
3671 done
3672 IFS=$as_save_IFS
3677 GREP="$ac_cv_path_GREP"
3678 if test -z "$GREP"; then
3679 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3681 { (exit 1); exit 1; }; }
3684 else
3685 ac_cv_path_GREP=$GREP
3690 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3691 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3692 GREP="$ac_cv_path_GREP"
3695 { echo "$as_me:$LINENO: checking for egrep" >&5
3696 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3697 if test "${ac_cv_path_EGREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701 then ac_cv_path_EGREP="$GREP -E"
3702 else
3703 # Extract the first word of "egrep" to use in msg output
3704 if test -z "$EGREP"; then
3705 set dummy egrep; ac_prog_name=$2
3706 if test "${ac_cv_path_EGREP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 ac_path_EGREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_prog in egrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3720 # Check for GNU ac_path_EGREP and select it if it is found.
3721 # Check for GNU $ac_path_EGREP
3722 case `"$ac_path_EGREP" --version 2>&1` in
3723 *GNU*)
3724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3726 ac_count=0
3727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728 while :
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
3733 echo 'EGREP' >> "conftest.nl"
3734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736 ac_count=`expr $ac_count + 1`
3737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_EGREP="$ac_path_EGREP"
3740 ac_path_EGREP_max=$ac_count
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3744 done
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746 esac
3749 $ac_path_EGREP_found && break 3
3750 done
3751 done
3753 done
3754 IFS=$as_save_IFS
3759 EGREP="$ac_cv_path_EGREP"
3760 if test -z "$EGREP"; then
3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763 { (exit 1); exit 1; }; }
3766 else
3767 ac_cv_path_EGREP=$EGREP
3773 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3774 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3775 EGREP="$ac_cv_path_EGREP"
3778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3780 if test "${ac_cv_header_stdc+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h. */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3789 #include <stdlib.h>
3790 #include <stdarg.h>
3791 #include <string.h>
3792 #include <float.h>
3795 main ()
3799 return 0;
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3817 { (case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_try") 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_try") 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_cv_header_stdc=yes
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 ac_cv_header_stdc=no
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 if test $ac_cv_header_stdc = yes; then
3847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854 #include <string.h>
3856 _ACEOF
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 $EGREP "memchr" >/dev/null 2>&1; then
3860 else
3861 ac_cv_header_stdc=no
3863 rm -f conftest*
3867 if test $ac_cv_header_stdc = yes; then
3868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 #include <stdlib.h>
3877 _ACEOF
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879 $EGREP "free" >/dev/null 2>&1; then
3881 else
3882 ac_cv_header_stdc=no
3884 rm -f conftest*
3888 if test $ac_cv_header_stdc = yes; then
3889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3890 if test "$cross_compiling" = yes; then
3892 else
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #include <ctype.h>
3900 #include <stdlib.h>
3901 #if ((' ' & 0x0FF) == 0x020)
3902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3904 #else
3905 # define ISLOWER(c) \
3906 (('a' <= (c) && (c) <= 'i') \
3907 || ('j' <= (c) && (c) <= 'r') \
3908 || ('s' <= (c) && (c) <= 'z'))
3909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3910 #endif
3912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3914 main ()
3916 int i;
3917 for (i = 0; i < 256; i++)
3918 if (XOR (islower (i), ISLOWER (i))
3919 || toupper (i) != TOUPPER (i))
3920 return 2;
3921 return 0;
3923 _ACEOF
3924 rm -f conftest$ac_exeext
3925 if { (ac_try="$ac_link"
3926 case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_link") 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3935 { (case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_try") 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3945 else
3946 echo "$as_me: program exited with status $ac_status" >&5
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 ( exit $ac_status )
3951 ac_cv_header_stdc=no
3953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3959 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3960 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3961 if test $ac_cv_header_stdc = yes; then
3963 cat >>confdefs.h <<\_ACEOF
3964 #define STDC_HEADERS 1
3965 _ACEOF
3969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3980 inttypes.h stdint.h unistd.h
3982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 $ac_includes_default
3996 #include <$ac_header>
3997 _ACEOF
3998 rm -f conftest.$ac_objext
3999 if { (ac_try="$ac_compile"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_compile") 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_try") 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 eval "$as_ac_Header=yes"
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 eval "$as_ac_Header=no"
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 ac_res=`eval echo '${'$as_ac_Header'}'`
4043 { echo "$as_me:$LINENO: result: $ac_res" >&5
4044 echo "${ECHO_T}$ac_res" >&6; }
4045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4046 cat >>confdefs.h <<_ACEOF
4047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4048 _ACEOF
4052 done
4055 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4056 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4057 if test "${ac_cv_c_bigendian+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 # See if sys/param.h defines the BYTE_ORDER macro.
4061 cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h. */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4067 #include <sys/types.h>
4068 #include <sys/param.h>
4071 main ()
4073 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4074 bogus endian macros
4075 #endif
4078 return 0;
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_try") 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 # It does; now see whether it defined to BIG_ENDIAN or not.
4116 cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h. */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4122 #include <sys/types.h>
4123 #include <sys/param.h>
4126 main ()
4128 #if BYTE_ORDER != BIG_ENDIAN
4129 not big endian
4130 #endif
4133 return 0;
4135 _ACEOF
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4138 case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141 esac
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154 esac
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164 esac
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 ac_cv_c_bigendian=yes
4171 else
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4175 ac_cv_c_bigendian=no
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4183 # It does not; compile a test program.
4184 if test "$cross_compiling" = yes; then
4185 # try to guess the endianness by grepping values into an object file
4186 ac_cv_c_bigendian=unknown
4187 cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h. */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4193 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4194 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4196 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4197 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4198 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4200 main ()
4202 _ascii (); _ebcdic ();
4204 return 0;
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222 { (case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_try") 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235 esac
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_try") 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4242 ac_cv_c_bigendian=yes
4244 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4245 if test "$ac_cv_c_bigendian" = unknown; then
4246 ac_cv_c_bigendian=no
4247 else
4248 # finding both strings is unlikely to happen, but who knows?
4249 ac_cv_c_bigendian=unknown
4252 else
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 else
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 $ac_includes_default
4269 main ()
4272 /* Are we little or big endian? From Harbison&Steele. */
4273 union
4275 long int l;
4276 char c[sizeof (long int)];
4277 } u;
4278 u.l = 1;
4279 return u.c[sizeof (long int) - 1] == 1;
4282 return 0;
4284 _ACEOF
4285 rm -f conftest$ac_exeext
4286 if { (ac_try="$ac_link"
4287 case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290 esac
4291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_link") 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_c_bigendian=no
4306 else
4307 echo "$as_me: program exited with status $ac_status" >&5
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 ( exit $ac_status )
4312 ac_cv_c_bigendian=yes
4314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4323 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4324 case $ac_cv_c_bigendian in
4325 yes)
4326 ENDIAN=big
4329 ENDIAN=little
4332 { { echo "$as_me:$LINENO: error: unknown endianness
4333 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4334 echo "$as_me: error: unknown endianness
4335 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4336 { (exit 1); exit 1; }; } ;;
4337 esac
4340 if test "$cross_compiling" = yes; then
4341 LLVM_CROSS_COMPILING=1
4344 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4345 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4346 if test "${ac_cv_build_exeext+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4350 ac_cv_build_exeext=.exe
4351 else
4352 ac_build_prefix=${build_alias}-
4354 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4355 set dummy ${ac_build_prefix}gcc; ac_word=$2
4356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4358 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 else
4361 if test -n "$BUILD_CC"; then
4362 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4375 done
4376 done
4377 IFS=$as_save_IFS
4381 BUILD_CC=$ac_cv_prog_BUILD_CC
4382 if test -n "$BUILD_CC"; then
4383 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4384 echo "${ECHO_T}$BUILD_CC" >&6; }
4385 else
4386 { echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6; }
4391 if test -z "$BUILD_CC"; then
4392 # Extract the first word of "gcc", so it can be a program name with args.
4393 set dummy gcc; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399 if test -n "$BUILD_CC"; then
4400 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_BUILD_CC="gcc"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4413 done
4414 done
4415 IFS=$as_save_IFS
4419 BUILD_CC=$ac_cv_prog_BUILD_CC
4420 if test -n "$BUILD_CC"; then
4421 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4422 echo "${ECHO_T}$BUILD_CC" >&6; }
4423 else
4424 { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4429 if test -z "$BUILD_CC"; then
4430 # Extract the first word of "cc", so it can be a program name with args.
4431 set dummy cc; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439 else
4440 ac_prog_rejected=no
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4449 ac_prog_rejected=yes
4450 continue
4452 ac_cv_prog_BUILD_CC="cc"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4456 done
4457 done
4458 IFS=$as_save_IFS
4460 if test $ac_prog_rejected = yes; then
4461 # We found a bogon in the path, so make sure we never use it.
4462 set dummy $ac_cv_prog_BUILD_CC
4463 shift
4464 if test $# != 0; then
4465 # We chose a different compiler from the bogus one.
4466 # However, it has the same basename, so the bogon will be chosen
4467 # first if we set BUILD_CC to just the basename; use the full file name.
4468 shift
4469 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4474 BUILD_CC=$ac_cv_prog_BUILD_CC
4475 if test -n "$BUILD_CC"; then
4476 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477 echo "${ECHO_T}$BUILD_CC" >&6; }
4478 else
4479 { echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6; }
4486 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4487 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4488 { (exit 1); exit 1; }; }
4489 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4490 rm -f conftest*
4491 echo 'int main () { return 0; }' > conftest.$ac_ext
4492 ac_cv_build_exeext=
4493 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4494 (eval $ac_build_link) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; then
4498 for file in conftest.*; do
4499 case $file in
4500 *.c | *.o | *.obj) ;;
4501 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4502 esac
4503 done
4504 else
4505 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4506 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4507 { (exit 1); exit 1; }; }
4509 rm -f conftest*
4510 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4514 BUILD_EXEEXT=""
4515 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4516 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4517 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4518 ac_build_exeext=$BUILD_EXEEXT
4520 else
4521 LLVM_CROSS_COMPILING=0
4525 if test -d "CVS" -o -d "${srcdir}/CVS"; then
4526 cvsbuild="yes"
4527 optimize="no"
4528 CVSBUILD=CVSBUILD=1
4530 else
4531 cvsbuild="no"
4532 optimize="yes"
4536 # Check whether --enable-optimized was given.
4537 if test "${enable_optimized+set}" = set; then
4538 enableval=$enable_optimized;
4539 else
4540 enableval=$optimize
4543 if test ${enableval} = "no" ; then
4544 ENABLE_OPTIMIZED=
4546 else
4547 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4551 # Check whether --enable-assertions was given.
4552 if test "${enable_assertions+set}" = set; then
4553 enableval=$enable_assertions;
4554 else
4555 enableval="yes"
4558 if test ${enableval} = "yes" ; then
4559 DISABLE_ASSERTIONS=
4561 else
4562 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4566 # Check whether --enable-debug-runtime was given.
4567 if test "${enable_debug_runtime+set}" = set; then
4568 enableval=$enable_debug_runtime;
4569 else
4570 enableval=no
4573 if test ${enableval} = "no" ; then
4574 DEBUG_RUNTIME=
4576 else
4577 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4581 # Check whether --enable-jit was given.
4582 if test "${enable_jit+set}" = set; then
4583 enableval=$enable_jit;
4584 else
4585 enableval=default
4588 if test ${enableval} = "no"
4589 then
4590 JIT=
4592 else
4593 case "$llvm_cv_target_arch" in
4594 x86) TARGET_HAS_JIT=1
4596 Sparc) TARGET_HAS_JIT=1
4598 PowerPC) TARGET_HAS_JIT=1
4600 x86_64) TARGET_HAS_JIT=0
4602 Alpha) TARGET_HAS_JIT=1
4604 IA64) TARGET_HAS_JIT=0
4606 *) TARGET_HAS_JIT=0
4608 esac
4611 # Check whether --enable-doxygen was given.
4612 if test "${enable_doxygen+set}" = set; then
4613 enableval=$enable_doxygen;
4614 else
4615 enableval=default
4618 case "$enableval" in
4619 yes) ENABLE_DOXYGEN=1
4621 no) ENABLE_DOXYGEN=0
4623 default) ENABLE_DOXYGEN=0
4625 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4626 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4627 { (exit 1); exit 1; }; } ;;
4628 esac
4630 # Check whether --enable-threads was given.
4631 if test "${enable_threads+set}" = set; then
4632 enableval=$enable_threads;
4633 else
4634 enableval=default
4637 case "$enableval" in
4638 yes) ENABLE_THREADS=1
4640 no) ENABLE_THREADS=0
4642 default) ENABLE_THREADS=1
4644 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4645 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4646 { (exit 1); exit 1; }; } ;;
4647 esac
4649 cat >>confdefs.h <<_ACEOF
4650 #define ENABLE_THREADS $ENABLE_THREADS
4651 _ACEOF
4654 TARGETS_TO_BUILD=""
4655 # Check whether --enable-targets was given.
4656 if test "${enable_targets+set}" = set; then
4657 enableval=$enable_targets;
4658 else
4659 enableval=all
4662 case "$enableval" in
4663 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4664 host-only)
4665 case "$llvm_cv_target_arch" in
4666 x86) TARGETS_TO_BUILD="X86" ;;
4667 x86_64) TARGETS_TO_BUILD="X86" ;;
4668 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4669 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4670 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4671 IA64) TARGETS_TO_BUILD="IA64" ;;
4672 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4673 echo "$as_me: error: Can not set target to build" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4675 esac
4677 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4678 case "$a_target" in
4679 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4680 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4681 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4682 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4683 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4684 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4685 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4686 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4687 { (exit 1); exit 1; }; } ;;
4688 esac
4689 done
4691 esac
4692 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4693 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4696 # Check whether --enable-cbe-printf-a was given.
4697 if test "${enable_cbe_printf_a+set}" = set; then
4698 enableval=$enable_cbe_printf_a;
4699 else
4700 enableval=default
4703 case "$enableval" in
4704 yes) ENABLE_CBE_PRINTF_A=1
4706 no) ENABLE_CBE_PRINTF_A=0
4708 default) ENABLE_CBE_PRINTF_A=1
4710 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4711 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4712 { (exit 1); exit 1; }; } ;;
4713 esac
4715 cat >>confdefs.h <<_ACEOF
4716 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4717 _ACEOF
4721 # Check whether --with-llvmgccdir was given.
4722 if test "${with_llvmgccdir+set}" = set; then
4723 withval=$with_llvmgccdir;
4724 else
4725 withval=default
4728 case "$withval" in
4729 default) WITH_LLVMGCCDIR=default ;;
4730 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4731 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4732 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4733 { (exit 1); exit 1; }; } ;;
4734 esac
4737 # Check whether --with-extra-options was given.
4738 if test "${with_extra_options+set}" = set; then
4739 withval=$with_extra_options;
4740 else
4741 withval=default
4744 case "$withval" in
4745 default) EXTRA_OPTIONS= ;;
4746 *) EXTRA_OPTIONS=$withval ;;
4747 esac
4748 EXTRA_OPTIONS=$EXTRA_OPTIONS
4752 ac_ext=c
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4758 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4759 # On Suns, sometimes $CPP names a directory.
4760 if test -n "$CPP" && test -d "$CPP"; then
4761 CPP=
4763 if test -z "$CPP"; then
4764 if test "${ac_cv_prog_CPP+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 # Double quotes because CPP needs to be expanded
4768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4770 ac_preproc_ok=false
4771 for ac_c_preproc_warn_flag in '' yes
4773 # Use a header file that comes with gcc, so configuring glibc
4774 # with a fresh cross-compiler works.
4775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776 # <limits.h> exists even on freestanding compilers.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #ifdef __STDC__
4786 # include <limits.h>
4787 #else
4788 # include <assert.h>
4789 #endif
4790 Syntax error
4791 _ACEOF
4792 if { (ac_try="$ac_cpp conftest.$ac_ext"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } >/dev/null; then
4805 if test -s conftest.err; then
4806 ac_cpp_err=$ac_c_preproc_warn_flag
4807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4808 else
4809 ac_cpp_err=
4811 else
4812 ac_cpp_err=yes
4814 if test -z "$ac_cpp_err"; then
4816 else
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 # Broken: fails on valid input.
4821 continue
4824 rm -f conftest.err conftest.$ac_ext
4826 # OK, works on sane cases. Now check whether nonexistent headers
4827 # can be detected and how.
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 #include <ac_nonexistent.h>
4835 _ACEOF
4836 if { (ac_try="$ac_cpp conftest.$ac_ext"
4837 case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840 esac
4841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null; then
4849 if test -s conftest.err; then
4850 ac_cpp_err=$ac_c_preproc_warn_flag
4851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4852 else
4853 ac_cpp_err=
4855 else
4856 ac_cpp_err=yes
4858 if test -z "$ac_cpp_err"; then
4859 # Broken: success on invalid input.
4860 continue
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4865 # Passes both tests.
4866 ac_preproc_ok=:
4867 break
4870 rm -f conftest.err conftest.$ac_ext
4872 done
4873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874 rm -f conftest.err conftest.$ac_ext
4875 if $ac_preproc_ok; then
4876 break
4879 done
4880 ac_cv_prog_CPP=$CPP
4883 CPP=$ac_cv_prog_CPP
4884 else
4885 ac_cv_prog_CPP=$CPP
4887 { echo "$as_me:$LINENO: result: $CPP" >&5
4888 echo "${ECHO_T}$CPP" >&6; }
4889 ac_preproc_ok=false
4890 for ac_c_preproc_warn_flag in '' yes
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #ifdef __STDC__
4905 # include <limits.h>
4906 #else
4907 # include <assert.h>
4908 #endif
4909 Syntax error
4910 _ACEOF
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4912 case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918 ac_status=$?
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_c_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927 else
4928 ac_cpp_err=
4930 else
4931 ac_cpp_err=yes
4933 if test -z "$ac_cpp_err"; then
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 # Broken: fails on valid input.
4940 continue
4943 rm -f conftest.err conftest.$ac_ext
4945 # OK, works on sane cases. Now check whether nonexistent headers
4946 # can be detected and how.
4947 cat >conftest.$ac_ext <<_ACEOF
4948 /* confdefs.h. */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4953 #include <ac_nonexistent.h>
4954 _ACEOF
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_c_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971 else
4972 ac_cpp_err=
4974 else
4975 ac_cpp_err=yes
4977 if test -z "$ac_cpp_err"; then
4978 # Broken: success on invalid input.
4979 continue
4980 else
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 # Passes both tests.
4985 ac_preproc_ok=:
4986 break
4989 rm -f conftest.err conftest.$ac_ext
4991 done
4992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4993 rm -f conftest.err conftest.$ac_ext
4994 if $ac_preproc_ok; then
4996 else
4997 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4998 See \`config.log' for more details." >&5
4999 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5000 See \`config.log' for more details." >&2;}
5001 { (exit 1); exit 1; }; }
5004 ac_ext=c
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015 if test -n "$ac_tool_prefix"; then
5016 for ac_prog in gcc
5018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_prog_CC+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 if test -n "$CC"; then
5026 ac_cv_prog_CC="$CC" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5039 done
5040 done
5041 IFS=$as_save_IFS
5045 CC=$ac_cv_prog_CC
5046 if test -n "$CC"; then
5047 { echo "$as_me:$LINENO: result: $CC" >&5
5048 echo "${ECHO_T}$CC" >&6; }
5049 else
5050 { echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6; }
5055 test -n "$CC" && break
5056 done
5058 if test -z "$CC"; then
5059 ac_ct_CC=$CC
5060 for ac_prog in gcc
5062 # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 else
5069 if test -n "$ac_ct_CC"; then
5070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_ac_ct_CC="$ac_prog"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5083 done
5084 done
5085 IFS=$as_save_IFS
5089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5090 if test -n "$ac_ct_CC"; then
5091 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5092 echo "${ECHO_T}$ac_ct_CC" >&6; }
5093 else
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5099 test -n "$ac_ct_CC" && break
5100 done
5102 if test "x$ac_ct_CC" = x; then
5103 CC=""
5104 else
5105 case $cross_compiling:$ac_tool_warned in
5106 yes:)
5107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5108 whose name does not start with the host triplet. If you think this
5109 configuration is useful to you, please write to autoconf@gnu.org." >&5
5110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet. If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5113 ac_tool_warned=yes ;;
5114 esac
5115 CC=$ac_ct_CC
5120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: no acceptable C compiler found in \$PATH
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5126 # Provide some information about the compiler.
5127 echo "$as_me:$LINENO: checking for C compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (ac_try="$ac_compiler --version >&5"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compiler --version >&5") 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }
5139 { (ac_try="$ac_compiler -v >&5"
5140 case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compiler -v >&5") 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }
5149 { (ac_try="$ac_compiler -V >&5"
5150 case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153 esac
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compiler -V >&5") 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }
5160 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5161 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5162 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5173 main ()
5175 #ifndef __GNUC__
5176 choke me
5177 #endif
5180 return 0;
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5185 case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_compile") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5198 { (case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_try") 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try='test -s conftest.$ac_objext'
5208 { (case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_try") 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 ac_compiler_gnu=yes
5218 else
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5222 ac_compiler_gnu=no
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5229 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5230 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5231 GCC=`test $ac_compiler_gnu = yes && echo yes`
5232 ac_test_CFLAGS=${CFLAGS+set}
5233 ac_save_CFLAGS=$CFLAGS
5234 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5235 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5236 if test "${ac_cv_prog_cc_g+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 ac_save_c_werror_flag=$ac_c_werror_flag
5240 ac_c_werror_flag=yes
5241 ac_cv_prog_cc_g=no
5242 CFLAGS="-g"
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5251 main ()
5255 return 0;
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5260 case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_try") 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_prog_cc_g=yes
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5297 CFLAGS=""
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5306 main ()
5310 return 0;
5312 _ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5315 case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5318 esac
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_compile") 2>conftest.er1
5321 ac_status=$?
5322 grep -v '^ *+' conftest.er1 >conftest.err
5323 rm -f conftest.er1
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5328 { (case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_try") 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_try") 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 ac_c_werror_flag=$ac_save_c_werror_flag
5353 CFLAGS="-g"
5354 cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h. */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5362 main ()
5366 return 0;
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (ac_try="$ac_compile"
5371 case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374 esac
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_compile") 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5384 { (case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_try") 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_try") 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_cv_prog_cc_g=yes
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_c_werror_flag=$ac_save_c_werror_flag
5420 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5422 if test "$ac_test_CFLAGS" = set; then
5423 CFLAGS=$ac_save_CFLAGS
5424 elif test $ac_cv_prog_cc_g = yes; then
5425 if test "$GCC" = yes; then
5426 CFLAGS="-g -O2"
5427 else
5428 CFLAGS="-g"
5430 else
5431 if test "$GCC" = yes; then
5432 CFLAGS="-O2"
5433 else
5434 CFLAGS=
5437 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5438 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5439 if test "${ac_cv_prog_cc_c89+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442 ac_cv_prog_cc_c89=no
5443 ac_save_CC=$CC
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 #include <stdarg.h>
5451 #include <stdio.h>
5452 #include <sys/types.h>
5453 #include <sys/stat.h>
5454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5455 struct buf { int x; };
5456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5457 static char *e (p, i)
5458 char **p;
5459 int i;
5461 return p[i];
5463 static char *f (char * (*g) (char **, int), char **p, ...)
5465 char *s;
5466 va_list v;
5467 va_start (v,p);
5468 s = g (p, va_arg (v,int));
5469 va_end (v);
5470 return s;
5473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5474 function prototypes and stuff, but not '\xHH' hex character constants.
5475 These don't provoke an error unfortunately, instead are silently treated
5476 as 'x'. The following induces an error, until -std is added to get
5477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5478 array size at least. It's necessary to write '\x00'==0 to get something
5479 that's true only with -std. */
5480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5482 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5483 inside strings and character constants. */
5484 #define FOO(x) 'x'
5485 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5487 int test (int i, double x);
5488 struct s1 {int (*f) (int a);};
5489 struct s2 {int (*f) (double a);};
5490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5491 int argc;
5492 char **argv;
5494 main ()
5496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5498 return 0;
5500 _ACEOF
5501 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5504 CC="$ac_save_CC $ac_arg"
5505 rm -f conftest.$ac_objext
5506 if { (ac_try="$ac_compile"
5507 case "(($ac_try" in
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5510 esac
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_compile") 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5520 { (case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_try") 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; } &&
5529 { ac_try='test -s conftest.$ac_objext'
5530 { (case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_try") 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 ac_cv_prog_cc_c89=$ac_arg
5540 else
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5547 rm -f core conftest.err conftest.$ac_objext
5548 test "x$ac_cv_prog_cc_c89" != "xno" && break
5549 done
5550 rm -f conftest.$ac_ext
5551 CC=$ac_save_CC
5554 # AC_CACHE_VAL
5555 case "x$ac_cv_prog_cc_c89" in
5557 { echo "$as_me:$LINENO: result: none needed" >&5
5558 echo "${ECHO_T}none needed" >&6; } ;;
5559 xno)
5560 { echo "$as_me:$LINENO: result: unsupported" >&5
5561 echo "${ECHO_T}unsupported" >&6; } ;;
5563 CC="$CC $ac_cv_prog_cc_c89"
5564 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5565 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5566 esac
5569 ac_ext=c
5570 ac_cpp='$CPP $CPPFLAGS'
5571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575 ac_ext=cpp
5576 ac_cpp='$CXXCPP $CPPFLAGS'
5577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5580 if test -z "$CXX"; then
5581 if test -n "$CCC"; then
5582 CXX=$CCC
5583 else
5584 if test -n "$ac_tool_prefix"; then
5585 for ac_prog in g++
5587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5591 if test "${ac_cv_prog_CXX+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594 if test -n "$CXX"; then
5595 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5608 done
5609 done
5610 IFS=$as_save_IFS
5614 CXX=$ac_cv_prog_CXX
5615 if test -n "$CXX"; then
5616 { echo "$as_me:$LINENO: result: $CXX" >&5
5617 echo "${ECHO_T}$CXX" >&6; }
5618 else
5619 { echo "$as_me:$LINENO: result: no" >&5
5620 echo "${ECHO_T}no" >&6; }
5624 test -n "$CXX" && break
5625 done
5627 if test -z "$CXX"; then
5628 ac_ct_CXX=$CXX
5629 for ac_prog in g++
5631 # Extract the first word of "$ac_prog", so it can be a program name with args.
5632 set dummy $ac_prog; ac_word=$2
5633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5635 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 if test -n "$ac_ct_CXX"; then
5639 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_ac_ct_CXX="$ac_prog"
5649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5652 done
5653 done
5654 IFS=$as_save_IFS
5658 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5659 if test -n "$ac_ct_CXX"; then
5660 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5661 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5662 else
5663 { echo "$as_me:$LINENO: result: no" >&5
5664 echo "${ECHO_T}no" >&6; }
5668 test -n "$ac_ct_CXX" && break
5669 done
5671 if test "x$ac_ct_CXX" = x; then
5672 CXX="g++"
5673 else
5674 case $cross_compiling:$ac_tool_warned in
5675 yes:)
5676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5677 whose name does not start with the host triplet. If you think this
5678 configuration is useful to you, please write to autoconf@gnu.org." >&5
5679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5680 whose name does not start with the host triplet. If you think this
5681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684 CXX=$ac_ct_CXX
5690 # Provide some information about the compiler.
5691 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5692 ac_compiler=`set X $ac_compile; echo $2`
5693 { (ac_try="$ac_compiler --version >&5"
5694 case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697 esac
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compiler --version >&5") 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }
5703 { (ac_try="$ac_compiler -v >&5"
5704 case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compiler -v >&5") 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }
5713 { (ac_try="$ac_compiler -V >&5"
5714 case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717 esac
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compiler -V >&5") 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }
5724 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5725 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5726 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h. */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5737 main ()
5739 #ifndef __GNUC__
5740 choke me
5741 #endif
5744 return 0;
5746 _ACEOF
5747 rm -f conftest.$ac_objext
5748 if { (ac_try="$ac_compile"
5749 case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5762 { (case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_try") 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_compiler_gnu=yes
5782 else
5783 echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5786 ac_compiler_gnu=no
5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5793 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5794 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5795 GXX=`test $ac_compiler_gnu = yes && echo yes`
5796 ac_test_CXXFLAGS=${CXXFLAGS+set}
5797 ac_save_CXXFLAGS=$CXXFLAGS
5798 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5799 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5800 if test "${ac_cv_prog_cxx_g+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5804 ac_cxx_werror_flag=yes
5805 ac_cv_prog_cxx_g=no
5806 CXXFLAGS="-g"
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h. */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5815 main ()
5819 return 0;
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5824 case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837 { (case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_try") 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try='test -s conftest.$ac_objext'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_prog_cxx_g=yes
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 CXXFLAGS=""
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5870 main ()
5874 return 0;
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compile") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5892 { (case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_try") 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; } &&
5901 { ac_try='test -s conftest.$ac_objext'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5917 CXXFLAGS="-g"
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h. */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5926 main ()
5930 return 0;
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5948 { (case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951 esac
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_try") 2>&5
5954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try='test -s conftest.$ac_objext'
5958 { (case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_try") 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5967 ac_cv_prog_cxx_g=yes
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5984 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5985 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5986 if test "$ac_test_CXXFLAGS" = set; then
5987 CXXFLAGS=$ac_save_CXXFLAGS
5988 elif test $ac_cv_prog_cxx_g = yes; then
5989 if test "$GXX" = yes; then
5990 CXXFLAGS="-g -O2"
5991 else
5992 CXXFLAGS="-g"
5994 else
5995 if test "$GXX" = yes; then
5996 CXXFLAGS="-O2"
5997 else
5998 CXXFLAGS=
6001 ac_ext=c
6002 ac_cpp='$CPP $CPPFLAGS'
6003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007 { echo "$as_me:$LINENO: checking " >&5
6008 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6009 if test "${ac_cv_has_flex+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 for ac_prog in flex lex
6014 # Extract the first word of "$ac_prog", so it can be a program name with args.
6015 set dummy $ac_prog; ac_word=$2
6016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018 if test "${ac_cv_prog_LEX+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 if test -n "$LEX"; then
6022 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_LEX="$ac_prog"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6035 done
6036 done
6037 IFS=$as_save_IFS
6041 LEX=$ac_cv_prog_LEX
6042 if test -n "$LEX"; then
6043 { echo "$as_me:$LINENO: result: $LEX" >&5
6044 echo "${ECHO_T}$LEX" >&6; }
6045 else
6046 { echo "$as_me:$LINENO: result: no" >&5
6047 echo "${ECHO_T}no" >&6; }
6051 test -n "$LEX" && break
6052 done
6053 test -n "$LEX" || LEX=":"
6055 if test -z "$LEXLIB"
6056 then
6057 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6058 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6059 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 ac_check_lib_save_LIBS=$LIBS
6063 LIBS="-lfl $LIBS"
6064 cat >conftest.$ac_ext <<_ACEOF
6065 /* confdefs.h. */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6071 /* Override any GCC internal prototype to avoid an error.
6072 Use char because int might match the return type of a GCC
6073 builtin and then its argument prototype would still apply. */
6074 #ifdef __cplusplus
6075 extern "C"
6076 #endif
6077 char yywrap ();
6079 main ()
6081 return yywrap ();
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (ac_try="$ac_link"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_link") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6101 { (case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_try") 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest$ac_exeext'
6111 { (case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_try") 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_lib_fl_yywrap=yes
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_lib_fl_yywrap=no
6128 rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130 LIBS=$ac_check_lib_save_LIBS
6132 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6133 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6134 if test $ac_cv_lib_fl_yywrap = yes; then
6135 LEXLIB="-lfl"
6136 else
6137 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6138 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6139 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 ac_check_lib_save_LIBS=$LIBS
6143 LIBS="-ll $LIBS"
6144 cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6154 #ifdef __cplusplus
6155 extern "C"
6156 #endif
6157 char yywrap ();
6159 main ()
6161 return yywrap ();
6163 return 0;
6165 _ACEOF
6166 rm -f conftest.$ac_objext conftest$ac_exeext
6167 if { (ac_try="$ac_link"
6168 case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_link") 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6181 { (case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184 esac
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest$ac_exeext'
6191 { (case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_try") 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_lib_l_yywrap=yes
6201 else
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6205 ac_cv_lib_l_yywrap=no
6208 rm -f core conftest.err conftest.$ac_objext \
6209 conftest$ac_exeext conftest.$ac_ext
6210 LIBS=$ac_check_lib_save_LIBS
6212 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6213 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6214 if test $ac_cv_lib_l_yywrap = yes; then
6215 LEXLIB="-ll"
6222 if test "x$LEX" != "x:"; then
6223 { echo "$as_me:$LINENO: checking lex output file root" >&5
6224 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_lex_root+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 # The minimal lex program is just a single line: %%. But some broken lexes
6229 # (Solaris, I think it was) want two %% lines, so accommodate them.
6230 cat >conftest.l <<_ACEOF
6233 _ACEOF
6234 { (ac_try="$LEX conftest.l"
6235 case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$LEX conftest.l") 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }
6244 if test -f lex.yy.c; then
6245 ac_cv_prog_lex_root=lex.yy
6246 elif test -f lexyy.c; then
6247 ac_cv_prog_lex_root=lexyy
6248 else
6249 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6250 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6251 { (exit 1); exit 1; }; }
6254 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6255 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6256 rm -f conftest.l
6257 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6259 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6260 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6261 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264 # POSIX says lex can declare yytext either as a pointer or an array; the
6265 # default is implementation-dependent. Figure out which it is, since
6266 # not all implementations provide the %pointer and %array declarations.
6267 ac_cv_prog_lex_yytext_pointer=no
6268 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6269 ac_save_LIBS=$LIBS
6270 LIBS="$LIBS $LEXLIB"
6271 cat >conftest.$ac_ext <<_ACEOF
6272 `cat $LEX_OUTPUT_ROOT.c`
6273 _ACEOF
6274 rm -f conftest.$ac_objext conftest$ac_exeext
6275 if { (ac_try="$ac_link"
6276 case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279 esac
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_link") 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6289 { (case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_try") 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_try") 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_prog_lex_yytext_pointer=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6316 rm -f core conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6318 LIBS=$ac_save_LIBS
6319 rm -f "${LEX_OUTPUT_ROOT}.c"
6322 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6323 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6324 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6326 cat >>confdefs.h <<\_ACEOF
6327 #define YYTEXT_POINTER 1
6328 _ACEOF
6335 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6336 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6337 if test "$LEX" != "flex"; then
6338 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6339 echo "$as_me: error: flex not found but required" >&2;}
6340 { (exit 1); exit 1; }; }
6341 else
6342 FLEX=flex
6346 { echo "$as_me:$LINENO: checking " >&5
6347 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6348 if test "${llvm_cv_has_bison+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350 else
6351 for ac_prog in 'bison -y' byacc
6353 # Extract the first word of "$ac_prog", so it can be a program name with args.
6354 set dummy $ac_prog; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_YACC+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360 if test -n "$YACC"; then
6361 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_YACC="$ac_prog"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6374 done
6375 done
6376 IFS=$as_save_IFS
6380 YACC=$ac_cv_prog_YACC
6381 if test -n "$YACC"; then
6382 { echo "$as_me:$LINENO: result: $YACC" >&5
6383 echo "${ECHO_T}$YACC" >&6; }
6384 else
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6390 test -n "$YACC" && break
6391 done
6392 test -n "$YACC" || YACC="yacc"
6395 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6396 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6397 if test "$YACC" != "bison -y"; then
6399 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6400 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6401 else
6402 BISON=bison
6406 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6407 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6408 if test "${lt_cv_path_NM+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 if test -n "$NM"; then
6412 # Let the user override the test.
6413 lt_cv_path_NM="$NM"
6414 else
6415 lt_nm_to_check="${ac_tool_prefix}nm"
6416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6417 lt_nm_to_check="$lt_nm_to_check nm"
6419 for lt_tmp_nm in $lt_nm_to_check; do
6420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6422 IFS="$lt_save_ifs"
6423 test -z "$ac_dir" && ac_dir=.
6424 tmp_nm="$ac_dir/$lt_tmp_nm"
6425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6426 # Check to see if the nm accepts a BSD-compat flag.
6427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6428 # nm: unknown option "B" ignored
6429 # Tru64's nm complains that /dev/null is an invalid object file
6430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6431 */dev/null* | *'Invalid file or object type'*)
6432 lt_cv_path_NM="$tmp_nm -B"
6433 break
6436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6437 */dev/null*)
6438 lt_cv_path_NM="$tmp_nm -p"
6439 break
6442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6443 continue # so that we can try to find one that supports BSD flags
6445 esac
6447 esac
6449 done
6450 IFS="$lt_save_ifs"
6451 done
6452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6455 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6456 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6457 NM="$lt_cv_path_NM"
6461 { echo "$as_me:$LINENO: checking for GNU make" >&5
6462 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6463 if test "${llvm_cv_gnu_make_command+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466 llvm_cv_gnu_make_command=''
6467 for a in "$MAKE" make gmake gnumake ; do
6468 if test -z "$a" ; then continue ; fi ;
6469 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6470 then
6471 llvm_cv_gnu_make_command=$a ;
6472 break;
6474 done
6476 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6477 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6478 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6479 ifGNUmake='' ;
6480 else
6481 ifGNUmake='#' ;
6482 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6483 echo "${ECHO_T}\"Not found\"" >&6; };
6487 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6489 LN_S=$as_ln_s
6490 if test "$LN_S" = "ln -s"; then
6491 { echo "$as_me:$LINENO: result: yes" >&5
6492 echo "${ECHO_T}yes" >&6; }
6493 else
6494 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6495 echo "${ECHO_T}no, using $LN_S" >&6; }
6498 # Extract the first word of "cmp", so it can be a program name with args.
6499 set dummy cmp; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_path_CMP+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 case $CMP in
6506 [\\/]* | ?:[\\/]*)
6507 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6525 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6527 esac
6529 CMP=$ac_cv_path_CMP
6530 if test -n "$CMP"; then
6531 { echo "$as_me:$LINENO: result: $CMP" >&5
6532 echo "${ECHO_T}$CMP" >&6; }
6533 else
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6539 # Extract the first word of "cp", so it can be a program name with args.
6540 set dummy cp; ac_word=$2
6541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543 if test "${ac_cv_path_CP+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 else
6546 case $CP in
6547 [\\/]* | ?:[\\/]*)
6548 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6562 done
6563 done
6564 IFS=$as_save_IFS
6566 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6568 esac
6570 CP=$ac_cv_path_CP
6571 if test -n "$CP"; then
6572 { echo "$as_me:$LINENO: result: $CP" >&5
6573 echo "${ECHO_T}$CP" >&6; }
6574 else
6575 { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6580 # Extract the first word of "date", so it can be a program name with args.
6581 set dummy date; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_DATE+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 case $DATE in
6588 [\\/]* | ?:[\\/]*)
6589 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6603 done
6604 done
6605 IFS=$as_save_IFS
6607 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6609 esac
6611 DATE=$ac_cv_path_DATE
6612 if test -n "$DATE"; then
6613 { echo "$as_me:$LINENO: result: $DATE" >&5
6614 echo "${ECHO_T}$DATE" >&6; }
6615 else
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6621 # Extract the first word of "find", so it can be a program name with args.
6622 set dummy find; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_path_FIND+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 case $FIND in
6629 [\\/]* | ?:[\\/]*)
6630 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6644 done
6645 done
6646 IFS=$as_save_IFS
6648 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6650 esac
6652 FIND=$ac_cv_path_FIND
6653 if test -n "$FIND"; then
6654 { echo "$as_me:$LINENO: result: $FIND" >&5
6655 echo "${ECHO_T}$FIND" >&6; }
6656 else
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6662 # Extract the first word of "grep", so it can be a program name with args.
6663 set dummy grep; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_path_GREP+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 case $GREP in
6670 [\\/]* | ?:[\\/]*)
6671 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6685 done
6686 done
6687 IFS=$as_save_IFS
6689 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6691 esac
6693 GREP=$ac_cv_path_GREP
6694 if test -n "$GREP"; then
6695 { echo "$as_me:$LINENO: result: $GREP" >&5
6696 echo "${ECHO_T}$GREP" >&6; }
6697 else
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6703 # Extract the first word of "mkdir", so it can be a program name with args.
6704 set dummy mkdir; ac_word=$2
6705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707 if test "${ac_cv_path_MKDIR+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709 else
6710 case $MKDIR in
6711 [\\/]* | ?:[\\/]*)
6712 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6726 done
6727 done
6728 IFS=$as_save_IFS
6730 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6732 esac
6734 MKDIR=$ac_cv_path_MKDIR
6735 if test -n "$MKDIR"; then
6736 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6737 echo "${ECHO_T}$MKDIR" >&6; }
6738 else
6739 { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6744 # Extract the first word of "mv", so it can be a program name with args.
6745 set dummy mv; ac_word=$2
6746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6748 if test "${ac_cv_path_MV+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751 case $MV in
6752 [\\/]* | ?:[\\/]*)
6753 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6767 done
6768 done
6769 IFS=$as_save_IFS
6771 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6773 esac
6775 MV=$ac_cv_path_MV
6776 if test -n "$MV"; then
6777 { echo "$as_me:$LINENO: result: $MV" >&5
6778 echo "${ECHO_T}$MV" >&6; }
6779 else
6780 { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_RANLIB+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 if test -n "$RANLIB"; then
6794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6807 done
6808 done
6809 IFS=$as_save_IFS
6813 RANLIB=$ac_cv_prog_RANLIB
6814 if test -n "$RANLIB"; then
6815 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6816 echo "${ECHO_T}$RANLIB" >&6; }
6817 else
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6824 if test -z "$ac_cv_prog_RANLIB"; then
6825 ac_ct_RANLIB=$RANLIB
6826 # Extract the first word of "ranlib", so it can be a program name with args.
6827 set dummy ranlib; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 if test -n "$ac_ct_RANLIB"; then
6834 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_ac_ct_RANLIB="ranlib"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845 break 2
6847 done
6848 done
6849 IFS=$as_save_IFS
6853 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854 if test -n "$ac_ct_RANLIB"; then
6855 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6856 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6857 else
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6862 if test "x$ac_ct_RANLIB" = x; then
6863 RANLIB=":"
6864 else
6865 case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet. If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet. If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875 RANLIB=$ac_ct_RANLIB
6877 else
6878 RANLIB="$ac_cv_prog_RANLIB"
6881 # Extract the first word of "rm", so it can be a program name with args.
6882 set dummy rm; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_path_RM+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 case $RM in
6889 [\\/]* | ?:[\\/]*)
6890 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6904 done
6905 done
6906 IFS=$as_save_IFS
6908 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6910 esac
6912 RM=$ac_cv_path_RM
6913 if test -n "$RM"; then
6914 { echo "$as_me:$LINENO: result: $RM" >&5
6915 echo "${ECHO_T}$RM" >&6; }
6916 else
6917 { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6922 # Extract the first word of "sed", so it can be a program name with args.
6923 set dummy sed; ac_word=$2
6924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926 if test "${ac_cv_path_SED+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 case $SED in
6930 [\\/]* | ?:[\\/]*)
6931 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6949 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6951 esac
6953 SED=$ac_cv_path_SED
6954 if test -n "$SED"; then
6955 { echo "$as_me:$LINENO: result: $SED" >&5
6956 echo "${ECHO_T}$SED" >&6; }
6957 else
6958 { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6963 # Extract the first word of "tar", so it can be a program name with args.
6964 set dummy tar; ac_word=$2
6965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967 if test "${ac_cv_path_TAR+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970 case $TAR in
6971 [\\/]* | ?:[\\/]*)
6972 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6986 done
6987 done
6988 IFS=$as_save_IFS
6990 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6992 esac
6994 TAR=$ac_cv_path_TAR
6995 if test -n "$TAR"; then
6996 { echo "$as_me:$LINENO: result: $TAR" >&5
6997 echo "${ECHO_T}$TAR" >&6; }
6998 else
6999 { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7004 # Extract the first word of "pwd", so it can be a program name with args.
7005 set dummy pwd; ac_word=$2
7006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008 if test "${ac_cv_path_BINPWD+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 case $BINPWD in
7012 [\\/]* | ?:[\\/]*)
7013 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7027 done
7028 done
7029 IFS=$as_save_IFS
7031 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7033 esac
7035 BINPWD=$ac_cv_path_BINPWD
7036 if test -n "$BINPWD"; then
7037 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7038 echo "${ECHO_T}$BINPWD" >&6; }
7039 else
7040 { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7046 # Extract the first word of "Graphviz", so it can be a program name with args.
7047 set dummy Graphviz; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 case $GRAPHVIZ in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7069 done
7070 done
7071 IFS=$as_save_IFS
7073 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7075 esac
7077 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7078 if test -n "$GRAPHVIZ"; then
7079 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7080 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7081 else
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7087 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7089 cat >>confdefs.h <<\_ACEOF
7090 #define HAVE_GRAPHVIZ 1
7091 _ACEOF
7093 if test "$llvm_cv_os_type" == "MingW" ; then
7094 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7097 cat >>confdefs.h <<_ACEOF
7098 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7099 _ACEOF
7102 # Extract the first word of "dot", so it can be a program name with args.
7103 set dummy dot; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_DOT+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 case $DOT in
7110 [\\/]* | ?:[\\/]*)
7111 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7125 done
7126 done
7127 IFS=$as_save_IFS
7129 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7131 esac
7133 DOT=$ac_cv_path_DOT
7134 if test -n "$DOT"; then
7135 { echo "$as_me:$LINENO: result: $DOT" >&5
7136 echo "${ECHO_T}$DOT" >&6; }
7137 else
7138 { echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6; }
7143 if test "$DOT" != "echo dot" ; then
7145 cat >>confdefs.h <<\_ACEOF
7146 #define HAVE_DOT 1
7147 _ACEOF
7149 if test "$llvm_cv_os_type" == "MingW" ; then
7150 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7153 cat >>confdefs.h <<_ACEOF
7154 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7155 _ACEOF
7158 for ac_prog in gv gsview32
7160 # Extract the first word of "$ac_prog", so it can be a program name with args.
7161 set dummy $ac_prog; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_GV+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 case $GV in
7168 [\\/]* | ?:[\\/]*)
7169 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7183 done
7184 done
7185 IFS=$as_save_IFS
7188 esac
7190 GV=$ac_cv_path_GV
7191 if test -n "$GV"; then
7192 { echo "$as_me:$LINENO: result: $GV" >&5
7193 echo "${ECHO_T}$GV" >&6; }
7194 else
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 test -n "$GV" && break
7201 done
7202 test -n "$GV" || GV="echo gv"
7204 if test "$GV" != "echo gv" ; then
7206 cat >>confdefs.h <<\_ACEOF
7207 #define HAVE_GV 1
7208 _ACEOF
7210 if test "$llvm_cv_os_type" == "MingW" ; then
7211 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7214 cat >>confdefs.h <<_ACEOF
7215 #define LLVM_PATH_GV "$GV${EXEEXT}"
7216 _ACEOF
7219 # Extract the first word of "dotty", so it can be a program name with args.
7220 set dummy dotty; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_DOTTY+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 case $DOTTY in
7227 [\\/]* | ?:[\\/]*)
7228 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7242 done
7243 done
7244 IFS=$as_save_IFS
7246 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7248 esac
7250 DOTTY=$ac_cv_path_DOTTY
7251 if test -n "$DOTTY"; then
7252 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7253 echo "${ECHO_T}$DOTTY" >&6; }
7254 else
7255 { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7260 if test "$DOTTY" != "echo dotty" ; then
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_DOTTY 1
7264 _ACEOF
7266 if test "$llvm_cv_os_type" == "MingW" ; then
7267 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7270 cat >>confdefs.h <<_ACEOF
7271 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7272 _ACEOF
7277 # Extract the first word of "perl", so it can be a program name with args.
7278 set dummy perl; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_PERL+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284 case $PERL in
7285 [\\/]* | ?:[\\/]*)
7286 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7300 done
7301 done
7302 IFS=$as_save_IFS
7304 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7306 esac
7308 PERL=$ac_cv_path_PERL
7309 if test -n "$PERL"; then
7310 { echo "$as_me:$LINENO: result: $PERL" >&5
7311 echo "${ECHO_T}$PERL" >&6; }
7312 else
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7318 if test "$PERL" != "none"; then
7319 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7320 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7321 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7322 { echo "$as_me:$LINENO: result: yes" >&5
7323 echo "${ECHO_T}yes" >&6; }
7324 else
7325 PERL=none
7326 { echo "$as_me:$LINENO: result: not found" >&5
7327 echo "${ECHO_T}not found" >&6; }
7332 if test x"$PERL" = xnone; then
7333 HAVE_PERL=0
7335 else
7336 HAVE_PERL=1
7340 # Find a good install program. We prefer a C program (faster),
7341 # so one script is as good as another. But avoid the broken or
7342 # incompatible versions:
7343 # SysV /etc/install, /usr/sbin/install
7344 # SunOS /usr/etc/install
7345 # IRIX /sbin/install
7346 # AIX /bin/install
7347 # AmigaOS /C/install, which installs bootblocks on floppy discs
7348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7351 # OS/2's system install, which has a completely different semantic
7352 # ./install, which can be erroneously created by make from ./install.sh.
7353 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7354 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7355 if test -z "$INSTALL"; then
7356 if test "${ac_cv_path_install+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 # Account for people who put trailing slashes in PATH elements.
7365 case $as_dir/ in
7366 ./ | .// | /cC/* | \
7367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7368 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7369 /usr/ucb/* ) ;;
7371 # OSF1 and SCO ODT 3.0 have their own names for install.
7372 # Don't use installbsd from OSF since it installs stuff as root
7373 # by default.
7374 for ac_prog in ginstall scoinst install; do
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7377 if test $ac_prog = install &&
7378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7379 # AIX install. It has an incompatible calling convention.
7381 elif test $ac_prog = install &&
7382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7383 # program-specific install script used by HP pwplus--don't use.
7385 else
7386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7387 break 3
7390 done
7391 done
7393 esac
7394 done
7395 IFS=$as_save_IFS
7399 if test "${ac_cv_path_install+set}" = set; then
7400 INSTALL=$ac_cv_path_install
7401 else
7402 # As a last resort, use the slow shell script. Don't cache a
7403 # value for INSTALL within a source directory, because that will
7404 # break other packages using the cache if that directory is
7405 # removed, or if the value is a relative name.
7406 INSTALL=$ac_install_sh
7409 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7410 echo "${ECHO_T}$INSTALL" >&6; }
7412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7413 # It thinks the first close brace ends the variable substitution.
7414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7421 # Extract the first word of "bzip2", so it can be a program name with args.
7422 set dummy bzip2; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_path_BZIP2+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428 case $BZIP2 in
7429 [\\/]* | ?:[\\/]*)
7430 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7444 done
7445 done
7446 IFS=$as_save_IFS
7448 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7450 esac
7452 BZIP2=$ac_cv_path_BZIP2
7453 if test -n "$BZIP2"; then
7454 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7455 echo "${ECHO_T}$BZIP2" >&6; }
7456 else
7457 { echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6; }
7462 # Extract the first word of "doxygen", so it can be a program name with args.
7463 set dummy doxygen; ac_word=$2
7464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469 case $DOXYGEN in
7470 [\\/]* | ?:[\\/]*)
7471 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7485 done
7486 done
7487 IFS=$as_save_IFS
7489 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7491 esac
7493 DOXYGEN=$ac_cv_path_DOXYGEN
7494 if test -n "$DOXYGEN"; then
7495 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7496 echo "${ECHO_T}$DOXYGEN" >&6; }
7497 else
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 # Extract the first word of "groff", so it can be a program name with args.
7504 set dummy groff; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_GROFF+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 case $GROFF in
7511 [\\/]* | ?:[\\/]*)
7512 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7526 done
7527 done
7528 IFS=$as_save_IFS
7530 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7532 esac
7534 GROFF=$ac_cv_path_GROFF
7535 if test -n "$GROFF"; then
7536 { echo "$as_me:$LINENO: result: $GROFF" >&5
7537 echo "${ECHO_T}$GROFF" >&6; }
7538 else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7544 # Extract the first word of "gzip", so it can be a program name with args.
7545 set dummy gzip; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_GZIP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 case $GZIP in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7567 done
7568 done
7569 IFS=$as_save_IFS
7571 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7573 esac
7575 GZIP=$ac_cv_path_GZIP
7576 if test -n "$GZIP"; then
7577 { echo "$as_me:$LINENO: result: $GZIP" >&5
7578 echo "${ECHO_T}$GZIP" >&6; }
7579 else
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7585 # Extract the first word of "pod2html", so it can be a program name with args.
7586 set dummy pod2html; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_POD2HTML+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 else
7592 case $POD2HTML in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7608 done
7609 done
7610 IFS=$as_save_IFS
7612 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7614 esac
7616 POD2HTML=$ac_cv_path_POD2HTML
7617 if test -n "$POD2HTML"; then
7618 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7619 echo "${ECHO_T}$POD2HTML" >&6; }
7620 else
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 # Extract the first word of "pod2man", so it can be a program name with args.
7627 set dummy pod2man; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_POD2MAN+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633 case $POD2MAN in
7634 [\\/]* | ?:[\\/]*)
7635 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 break 2
7649 done
7650 done
7651 IFS=$as_save_IFS
7653 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7655 esac
7657 POD2MAN=$ac_cv_path_POD2MAN
7658 if test -n "$POD2MAN"; then
7659 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7660 echo "${ECHO_T}$POD2MAN" >&6; }
7661 else
7662 { echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6; }
7667 # Extract the first word of "runtest", so it can be a program name with args.
7668 set dummy runtest; ac_word=$2
7669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671 if test "${ac_cv_path_RUNTEST+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674 case $RUNTEST in
7675 [\\/]* | ?:[\\/]*)
7676 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7690 done
7691 done
7692 IFS=$as_save_IFS
7694 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7696 esac
7698 RUNTEST=$ac_cv_path_RUNTEST
7699 if test -n "$RUNTEST"; then
7700 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7701 echo "${ECHO_T}$RUNTEST" >&6; }
7702 else
7703 { echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6; }
7709 no_itcl=true
7710 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7711 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7713 # Check whether --with-tclinclude was given.
7714 if test "${with_tclinclude+set}" = set; then
7715 withval=$with_tclinclude; with_tclinclude=${withval}
7716 else
7717 with_tclinclude=''
7720 if test "${ac_cv_path_tclsh+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7724 if test x"${with_tclinclude}" != x ; then
7725 if test -f ${with_tclinclude}/tclsh ; then
7726 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7727 elif test -f ${with_tclinclude}/src/tclsh ; then
7728 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7729 else
7730 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7731 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7732 { (exit 1); exit 1; }; }
7736 if test x"${ac_cv_path_tclsh}" = x ; then
7737 { echo "$as_me:$LINENO: result: none" >&5
7738 echo "${ECHO_T}none" >&6; }
7739 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7741 # Extract the first word of "$ac_prog", so it can be a program name with args.
7742 set dummy $ac_prog; ac_word=$2
7743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745 if test "${ac_cv_path_TCLSH+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 case $TCLSH in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7764 done
7765 done
7766 IFS=$as_save_IFS
7769 esac
7771 TCLSH=$ac_cv_path_TCLSH
7772 if test -n "$TCLSH"; then
7773 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7774 echo "${ECHO_T}$TCLSH" >&6; }
7775 else
7776 { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7781 test -n "$TCLSH" && break
7782 done
7784 if test x"${TCLSH}" = x ; then
7785 ac_cv_path_tclsh='';
7786 else
7787 ac_cv_path_tclsh="${TCLSH}";
7789 else
7790 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7791 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7792 TCLSH="${ac_cv_path_tclsh}"
7798 # Extract the first word of "zip", so it can be a program name with args.
7799 set dummy zip; ac_word=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_path_ZIP+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805 case $ZIP in
7806 [\\/]* | ?:[\\/]*)
7807 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 break 2
7821 done
7822 done
7823 IFS=$as_save_IFS
7825 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7827 esac
7829 ZIP=$ac_cv_path_ZIP
7830 if test -n "$ZIP"; then
7831 { echo "$as_me:$LINENO: result: $ZIP" >&5
7832 echo "${ECHO_T}$ZIP" >&6; }
7833 else
7834 { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7840 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7841 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7842 if test "${llvm_cv_link_use_r+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845 ac_ext=c
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851 oldcflags="$CFLAGS"
7852 CFLAGS="$CFLAGS -Wl,-R."
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7861 main ()
7863 int main() { return 0; }
7865 return 0;
7867 _ACEOF
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (ac_try="$ac_link"
7870 case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873 esac
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7886 esac
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 llvm_cv_link_use_r=yes
7903 else
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 llvm_cv_link_use_r=no
7910 rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 CFLAGS="$oldcflags"
7913 ac_ext=c
7914 ac_cpp='$CPP $CPPFLAGS'
7915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7922 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7923 if test "$llvm_cv_link_use_r" = yes ; then
7925 cat >>confdefs.h <<\_ACEOF
7926 #define HAVE_LINK_R 1
7927 _ACEOF
7934 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7935 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7936 if test "${ac_cv_c_const+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7947 main ()
7949 /* FIXME: Include the comments suggested by Paul. */
7950 #ifndef __cplusplus
7951 /* Ultrix mips cc rejects this. */
7952 typedef int charset[2];
7953 const charset x;
7954 /* SunOS 4.1.1 cc rejects this. */
7955 char const *const *ccp;
7956 char **p;
7957 /* NEC SVR4.0.2 mips cc rejects this. */
7958 struct point {int x, y;};
7959 static struct point const zero = {0,0};
7960 /* AIX XL C 1.02.0.0 rejects this.
7961 It does not let you subtract one const X* pointer from another in
7962 an arm of an if-expression whose if-part is not a constant
7963 expression */
7964 const char *g = "string";
7965 ccp = &g + (g ? g-g : 0);
7966 /* HPUX 7.0 cc rejects these. */
7967 ++ccp;
7968 p = (char**) ccp;
7969 ccp = (char const *const *) p;
7970 { /* SCO 3.2v4 cc rejects this. */
7971 char *t;
7972 char const *s = 0 ? (char *) 0 : (char const *) 0;
7974 *t++ = 0;
7975 if (s) return 0;
7977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7978 int x[] = {25, 17};
7979 const int *foo = &x[0];
7980 ++foo;
7982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7983 typedef const int *iptr;
7984 iptr p = 0;
7985 ++p;
7987 { /* AIX XL C 1.02.0.0 rejects this saying
7988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7989 struct s { int j; const int *ap[3]; };
7990 struct s *b; b->j = 5;
7992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7993 const int foo = 10;
7994 if (!foo) return 0;
7996 return !x[0] && !zero.x;
7997 #endif
8000 return 0;
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8005 case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8018 { (case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021 esac
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_try") 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest.$ac_objext'
8028 { (case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031 esac
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_try") 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_cv_c_const=yes
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 ac_cv_c_const=no
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8048 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8049 if test $ac_cv_c_const = no; then
8051 cat >>confdefs.h <<\_ACEOF
8052 #define const
8053 _ACEOF
8062 ac_header_dirent=no
8063 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8064 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8065 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8066 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070 cat >conftest.$ac_ext <<_ACEOF
8071 /* confdefs.h. */
8072 _ACEOF
8073 cat confdefs.h >>conftest.$ac_ext
8074 cat >>conftest.$ac_ext <<_ACEOF
8075 /* end confdefs.h. */
8076 #include <sys/types.h>
8077 #include <$ac_hdr>
8080 main ()
8082 if ((DIR *) 0)
8083 return 0;
8085 return 0;
8087 _ACEOF
8088 rm -f conftest.$ac_objext
8089 if { (ac_try="$ac_compile"
8090 case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8093 esac
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8103 { (case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_try") 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest.$ac_objext'
8113 { (case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_try") 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 eval "$as_ac_Header=yes"
8123 else
8124 echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8127 eval "$as_ac_Header=no"
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 ac_res=`eval echo '${'$as_ac_Header'}'`
8133 { echo "$as_me:$LINENO: result: $ac_res" >&5
8134 echo "${ECHO_T}$ac_res" >&6; }
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136 cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8138 _ACEOF
8140 ac_header_dirent=$ac_hdr; break
8143 done
8144 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8145 if test $ac_header_dirent = dirent.h; then
8146 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8147 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8148 if test "${ac_cv_search_opendir+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150 else
8151 ac_func_search_save_LIBS=$LIBS
8152 cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h. */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8159 /* Override any GCC internal prototype to avoid an error.
8160 Use char because int might match the return type of a GCC
8161 builtin and then its argument prototype would still apply. */
8162 #ifdef __cplusplus
8163 extern "C"
8164 #endif
8165 char opendir ();
8167 main ()
8169 return opendir ();
8171 return 0;
8173 _ACEOF
8174 for ac_lib in '' dir; do
8175 if test -z "$ac_lib"; then
8176 ac_res="none required"
8177 else
8178 ac_res=-l$ac_lib
8179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (ac_try="$ac_link"
8183 case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186 esac
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_link") 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8196 { (case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_try") 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_search_opendir=$ac_res
8216 else
8217 echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8223 rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext
8225 if test "${ac_cv_search_opendir+set}" = set; then
8226 break
8228 done
8229 if test "${ac_cv_search_opendir+set}" = set; then
8231 else
8232 ac_cv_search_opendir=no
8234 rm conftest.$ac_ext
8235 LIBS=$ac_func_search_save_LIBS
8237 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8238 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8239 ac_res=$ac_cv_search_opendir
8240 if test "$ac_res" != no; then
8241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8245 else
8246 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8247 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8248 if test "${ac_cv_search_opendir+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251 ac_func_search_save_LIBS=$LIBS
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 char opendir ();
8267 main ()
8269 return opendir ();
8271 return 0;
8273 _ACEOF
8274 for ac_lib in '' x; do
8275 if test -z "$ac_lib"; then
8276 ac_res="none required"
8277 else
8278 ac_res=-l$ac_lib
8279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (ac_try="$ac_link"
8283 case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_link") 2>conftest.er1
8289 ac_status=$?
8290 grep -v '^ *+' conftest.er1 >conftest.err
8291 rm -f conftest.er1
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8296 { (case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_try") 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_try") 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_search_opendir=$ac_res
8316 else
8317 echo "$as_me: failed program was:" >&5
8318 sed 's/^/| /' conftest.$ac_ext >&5
8323 rm -f core conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext
8325 if test "${ac_cv_search_opendir+set}" = set; then
8326 break
8328 done
8329 if test "${ac_cv_search_opendir+set}" = set; then
8331 else
8332 ac_cv_search_opendir=no
8334 rm conftest.$ac_ext
8335 LIBS=$ac_func_search_save_LIBS
8337 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8338 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8339 ac_res=$ac_cv_search_opendir
8340 if test "$ac_res" != no; then
8341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8348 for ac_header in dlfcn.h
8350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 ac_res=`eval echo '${'$as_ac_Header'}'`
8358 { echo "$as_me:$LINENO: result: $ac_res" >&5
8359 echo "${ECHO_T}$ac_res" >&6; }
8360 else
8361 # Is the header compilable?
8362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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. */
8370 $ac_includes_default
8371 #include <$ac_header>
8372 _ACEOF
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8375 case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_compile") 2>conftest.er1
8381 ac_status=$?
8382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
8387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8388 { (case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_try") 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest.$ac_objext'
8398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8401 esac
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_header_compiler=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8412 ac_header_compiler=no
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8417 echo "${ECHO_T}$ac_header_compiler" >&6; }
8419 # Is the header present?
8420 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8422 cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h. */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8428 #include <$ac_header>
8429 _ACEOF
8430 if { (ac_try="$ac_cpp conftest.$ac_ext"
8431 case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } >/dev/null; then
8443 if test -s conftest.err; then
8444 ac_cpp_err=$ac_c_preproc_warn_flag
8445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8446 else
8447 ac_cpp_err=
8449 else
8450 ac_cpp_err=yes
8452 if test -z "$ac_cpp_err"; then
8453 ac_header_preproc=yes
8454 else
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_header_preproc=no
8461 rm -f conftest.err conftest.$ac_ext
8462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8463 echo "${ECHO_T}$ac_header_preproc" >&6; }
8465 # So? What about this header?
8466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8467 yes:no: )
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8472 ac_header_preproc=yes
8474 no:yes:* )
8475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8487 ( cat <<\_ASBOX
8488 ## ----------------------------------- ##
8489 ## Report this to llvmbugs@cs.uiuc.edu ##
8490 ## ----------------------------------- ##
8491 _ASBOX
8492 ) | sed "s/^/$as_me: WARNING: /" >&2
8494 esac
8495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500 eval "$as_ac_Header=\$ac_header_preproc"
8502 ac_res=`eval echo '${'$as_ac_Header'}'`
8503 { echo "$as_me:$LINENO: result: $ac_res" >&5
8504 echo "${ECHO_T}$ac_res" >&6; }
8507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8508 cat >>confdefs.h <<_ACEOF
8509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8510 _ACEOF
8514 done
8516 # Check whether --enable-ltdl-install was given.
8517 if test "${enable_ltdl_install+set}" = set; then
8518 enableval=$enable_ltdl_install;
8524 if test x"${enable_ltdl_install-no}" != xno; then
8525 INSTALL_LTDL_TRUE=
8526 INSTALL_LTDL_FALSE='#'
8527 else
8528 INSTALL_LTDL_TRUE='#'
8529 INSTALL_LTDL_FALSE=
8534 if test x"${enable_ltdl_convenience-no}" != xno; then
8535 CONVENIENCE_LTDL_TRUE=
8536 CONVENIENCE_LTDL_FALSE='#'
8537 else
8538 CONVENIENCE_LTDL_TRUE='#'
8539 CONVENIENCE_LTDL_FALSE=
8543 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8544 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8545 library_names_spec=
8546 libname_spec='lib$name'
8547 soname_spec=
8548 shrext_cmds=".so"
8549 postinstall_cmds=
8550 postuninstall_cmds=
8551 finish_cmds=
8552 finish_eval=
8553 shlibpath_var=
8554 shlibpath_overrides_runpath=unknown
8555 version_type=none
8556 dynamic_linker="$host_os ld.so"
8557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8558 if test "$GCC" = yes; then
8559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8560 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8561 # if the path contains ";" then we assume it to be the separator
8562 # otherwise default to the standard path separator (i.e. ":") - it is
8563 # assumed that no part of a normal pathname contains ";" but that should
8564 # okay in the real world where ";" in dirpaths is itself problematic.
8565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8566 else
8567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8569 else
8570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8572 need_lib_prefix=unknown
8573 hardcode_into_libs=no
8575 # when you set need_version to no, make sure it does not cause -set_version
8576 # flags to be left without arguments
8577 need_version=unknown
8579 case $host_os in
8580 aix3*)
8581 version_type=linux
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8583 shlibpath_var=LIBPATH
8585 # AIX 3 has no versioning support, so we append a major version to the name.
8586 soname_spec='${libname}${release}${shared_ext}$major'
8589 aix4* | aix5*)
8590 version_type=linux
8591 need_lib_prefix=no
8592 need_version=no
8593 hardcode_into_libs=yes
8594 if test "$host_cpu" = ia64; then
8595 # AIX 5 supports IA64
8596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8597 shlibpath_var=LD_LIBRARY_PATH
8598 else
8599 # With GCC up to 2.95.x, collect2 would create an import file
8600 # for dependence libraries. The import file would start with
8601 # the line `#! .'. This would cause the generated library to
8602 # depend on `.', always an invalid library. This was fixed in
8603 # development snapshots of GCC prior to 3.0.
8604 case $host_os in
8605 aix4 | aix4.[01] | aix4.[01].*)
8606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8607 echo ' yes '
8608 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8610 else
8611 can_build_shared=no
8614 esac
8615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8616 # soname into executable. Probably we can add versioning support to
8617 # collect2, so additional links can be useful in future.
8618 if test "$aix_use_runtimelinking" = yes; then
8619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8620 # instead of lib<name>.a to let people know that these are not
8621 # typical AIX shared libraries.
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 else
8624 # We preserve .a as extension for shared libraries through AIX4.2
8625 # and later when we are not doing run time linking.
8626 library_names_spec='${libname}${release}.a $libname.a'
8627 soname_spec='${libname}${release}${shared_ext}$major'
8629 shlibpath_var=LIBPATH
8633 amigaos*)
8634 library_names_spec='$libname.ixlibrary $libname.a'
8635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8636 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'
8639 beos*)
8640 library_names_spec='${libname}${shared_ext}'
8641 dynamic_linker="$host_os ld.so"
8642 shlibpath_var=LIBRARY_PATH
8645 bsdi[45]*)
8646 version_type=linux
8647 need_version=no
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8651 shlibpath_var=LD_LIBRARY_PATH
8652 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8653 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8654 # the default ld.so.conf also contains /usr/contrib/lib and
8655 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8656 # libtool to hard-code these into programs
8659 cygwin* | mingw* | pw32*)
8660 version_type=windows
8661 shrext_cmds=".dll"
8662 need_version=no
8663 need_lib_prefix=no
8665 case $GCC,$host_os in
8666 yes,cygwin* | yes,mingw* | yes,pw32*)
8667 library_names_spec='$libname.dll.a'
8668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8669 postinstall_cmds='base_file=`basename \${file}`~
8670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8671 dldir=$destdir/`dirname \$dlpath`~
8672 test -d \$dldir || mkdir -p \$dldir~
8673 $install_prog $dir/$dlname \$dldir/$dlname~
8674 chmod a+x \$dldir/$dlname'
8675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8676 dlpath=$dir/\$dldll~
8677 $rm \$dlpath'
8678 shlibpath_overrides_runpath=yes
8680 case $host_os in
8681 cygwin*)
8682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8686 mingw*)
8687 # MinGW DLLs use traditional 'lib' prefix
8688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8691 # It is most probably a Windows format PATH printed by
8692 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8693 # path with ; separators, and with drive letters. We can handle the
8694 # drive letters (cygwin fileutils understands them), so leave them,
8695 # especially as we might pass files found there to a mingw objdump,
8696 # which wouldn't understand a cygwinified path. Ahh.
8697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8698 else
8699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8702 pw32*)
8703 # pw32 DLLs use 'pw' prefix rather than 'lib'
8704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706 esac
8710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8712 esac
8713 dynamic_linker='Win32 ld.exe'
8714 # FIXME: first we should search . and the directory the executable is in
8715 shlibpath_var=PATH
8718 darwin* | rhapsody*)
8719 dynamic_linker="$host_os dyld"
8720 version_type=darwin
8721 need_lib_prefix=no
8722 need_version=no
8723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8724 soname_spec='${libname}${release}${major}$shared_ext'
8725 shlibpath_overrides_runpath=yes
8726 shlibpath_var=DYLD_LIBRARY_PATH
8727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8729 if test "$GCC" = yes; then
8730 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8731 else
8732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8737 dgux*)
8738 version_type=linux
8739 need_lib_prefix=no
8740 need_version=no
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8743 shlibpath_var=LD_LIBRARY_PATH
8746 freebsd1*)
8747 dynamic_linker=no
8750 kfreebsd*-gnu)
8751 version_type=linux
8752 need_lib_prefix=no
8753 need_version=no
8754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8755 soname_spec='${libname}${release}${shared_ext}$major'
8756 shlibpath_var=LD_LIBRARY_PATH
8757 shlibpath_overrides_runpath=no
8758 hardcode_into_libs=yes
8759 dynamic_linker='GNU ld.so'
8762 freebsd* | dragonfly*)
8763 # DragonFly does not have aout. When/if they implement a new
8764 # versioning mechanism, adjust this.
8765 if test -x /usr/bin/objformat; then
8766 objformat=`/usr/bin/objformat`
8767 else
8768 case $host_os in
8769 freebsd[123]*) objformat=aout ;;
8770 *) objformat=elf ;;
8771 esac
8773 version_type=freebsd-$objformat
8774 case $version_type in
8775 freebsd-elf*)
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8777 need_version=no
8778 need_lib_prefix=no
8780 freebsd-*)
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8782 need_version=yes
8784 esac
8785 shlibpath_var=LD_LIBRARY_PATH
8786 case $host_os in
8787 freebsd2*)
8788 shlibpath_overrides_runpath=yes
8790 freebsd3.[01]* | freebsdelf3.[01]*)
8791 shlibpath_overrides_runpath=yes
8792 hardcode_into_libs=yes
8794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8796 shlibpath_overrides_runpath=no
8797 hardcode_into_libs=yes
8799 freebsd*) # from 4.6 on
8800 shlibpath_overrides_runpath=yes
8801 hardcode_into_libs=yes
8803 esac
8806 gnu*)
8807 version_type=linux
8808 need_lib_prefix=no
8809 need_version=no
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 shlibpath_var=LD_LIBRARY_PATH
8813 hardcode_into_libs=yes
8816 hpux9* | hpux10* | hpux11*)
8817 # Give a soname corresponding to the major version so that dld.sl refuses to
8818 # link against other versions.
8819 version_type=sunos
8820 need_lib_prefix=no
8821 need_version=no
8822 case $host_cpu in
8823 ia64*)
8824 shrext_cmds='.so'
8825 hardcode_into_libs=yes
8826 dynamic_linker="$host_os dld.so"
8827 shlibpath_var=LD_LIBRARY_PATH
8828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 if test "X$HPUX_IA64_MODE" = X32; then
8832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8833 else
8834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8838 hppa*64*)
8839 shrext_cmds='.sl'
8840 hardcode_into_libs=yes
8841 dynamic_linker="$host_os dld.sl"
8842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8850 shrext_cmds='.sl'
8851 dynamic_linker="$host_os dld.sl"
8852 shlibpath_var=SHLIB_PATH
8853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8857 esac
8858 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8859 postinstall_cmds='chmod 555 $lib'
8862 interix3*)
8863 version_type=linux
8864 need_lib_prefix=no
8865 need_version=no
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=no
8871 hardcode_into_libs=yes
8874 irix5* | irix6* | nonstopux*)
8875 case $host_os in
8876 nonstopux*) version_type=nonstopux ;;
8878 if test "$lt_cv_prog_gnu_ld" = yes; then
8879 version_type=linux
8880 else
8881 version_type=irix
8882 fi ;;
8883 esac
8884 need_lib_prefix=no
8885 need_version=no
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8888 case $host_os in
8889 irix5* | nonstopux*)
8890 libsuff= shlibsuff=
8893 case $LD in # libtool.m4 will add one of these switches to LD
8894 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8895 libsuff= shlibsuff= libmagic=32-bit;;
8896 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8897 libsuff=32 shlibsuff=N32 libmagic=N32;;
8898 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8899 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8900 *) libsuff= shlibsuff= libmagic=never-match;;
8901 esac
8903 esac
8904 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8905 shlibpath_overrides_runpath=no
8906 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8907 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8908 hardcode_into_libs=yes
8911 # No shared lib support for Linux oldld, aout, or coff.
8912 linux*oldld* | linux*aout* | linux*coff*)
8913 dynamic_linker=no
8916 # This must be Linux ELF.
8917 linux*)
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=no
8926 # This implies no fast_install, which is unacceptable.
8927 # Some rework will be needed to allow for fast_install
8928 # before this can be enabled.
8929 hardcode_into_libs=yes
8931 # Append ld.so.conf contents to the search path
8932 if test -f /etc/ld.so.conf; then
8933 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8934 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8937 # We used to test for /lib/ld.so.1 and disable shared libraries on
8938 # powerpc, because MkLinux only supported shared libraries with the
8939 # GNU dynamic linker. Since this was broken with cross compilers,
8940 # most powerpc-linux boxes support dynamic linking these days and
8941 # people can always --disable-shared, the test was removed, and we
8942 # assume the GNU/Linux dynamic linker is in use.
8943 dynamic_linker='GNU/Linux ld.so'
8946 knetbsd*-gnu)
8947 version_type=linux
8948 need_lib_prefix=no
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=no
8954 hardcode_into_libs=yes
8955 dynamic_linker='GNU ld.so'
8958 netbsd*)
8959 version_type=sunos
8960 need_lib_prefix=no
8961 need_version=no
8962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8965 dynamic_linker='NetBSD (a.out) ld.so'
8966 else
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 dynamic_linker='NetBSD ld.elf_so'
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=yes
8973 hardcode_into_libs=yes
8976 newsos6)
8977 version_type=linux
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=yes
8983 nto-qnx*)
8984 version_type=linux
8985 need_lib_prefix=no
8986 need_version=no
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8993 openbsd*)
8994 version_type=sunos
8995 sys_lib_dlsearch_path_spec="/usr/lib"
8996 need_lib_prefix=no
8997 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8998 case $host_os in
8999 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9000 *) need_version=no ;;
9001 esac
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9006 case $host_os in
9007 openbsd2.[89] | openbsd2.[89].*)
9008 shlibpath_overrides_runpath=no
9011 shlibpath_overrides_runpath=yes
9013 esac
9014 else
9015 shlibpath_overrides_runpath=yes
9019 os2*)
9020 libname_spec='$name'
9021 shrext_cmds=".dll"
9022 need_lib_prefix=no
9023 library_names_spec='$libname${shared_ext} $libname.a'
9024 dynamic_linker='OS/2 ld.exe'
9025 shlibpath_var=LIBPATH
9028 osf3* | osf4* | osf5*)
9029 version_type=osf
9030 need_lib_prefix=no
9031 need_version=no
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9036 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9039 solaris*)
9040 version_type=linux
9041 need_lib_prefix=no
9042 need_version=no
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=yes
9047 hardcode_into_libs=yes
9048 # ldd complains unless libraries are executable
9049 postinstall_cmds='chmod +x $lib'
9052 sunos4*)
9053 version_type=sunos
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=yes
9058 if test "$with_gnu_ld" = yes; then
9059 need_lib_prefix=no
9061 need_version=yes
9064 sysv4 | sysv4.3*)
9065 version_type=linux
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 case $host_vendor in
9070 sni)
9071 shlibpath_overrides_runpath=no
9072 need_lib_prefix=no
9073 export_dynamic_flag_spec='${wl}-Blargedynsym'
9074 runpath_var=LD_RUN_PATH
9076 siemens)
9077 need_lib_prefix=no
9079 motorola)
9080 need_lib_prefix=no
9081 need_version=no
9082 shlibpath_overrides_runpath=no
9083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9085 esac
9088 sysv4*MP*)
9089 if test -d /usr/nec ;then
9090 version_type=linux
9091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9092 soname_spec='$libname${shared_ext}.$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9098 version_type=freebsd-elf
9099 need_lib_prefix=no
9100 need_version=no
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 hardcode_into_libs=yes
9105 if test "$with_gnu_ld" = yes; then
9106 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9107 shlibpath_overrides_runpath=no
9108 else
9109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9110 shlibpath_overrides_runpath=yes
9111 case $host_os in
9112 sco3.2v5*)
9113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9115 esac
9117 sys_lib_dlsearch_path_spec='/usr/lib'
9120 uts4*)
9121 version_type=linux
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9128 dynamic_linker=no
9130 esac
9131 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9132 echo "${ECHO_T}$dynamic_linker" >&6; }
9133 test "$dynamic_linker" = no && can_build_shared=no
9135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9136 if test "$GCC" = yes; then
9137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9141 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9142 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9143 if test "${libltdl_cv_shlibext+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9147 module=yes
9148 eval libltdl_cv_shlibext=$shrext_cmds
9151 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9152 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9153 if test -n "$libltdl_cv_shlibext"; then
9155 cat >>confdefs.h <<_ACEOF
9156 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9157 _ACEOF
9162 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9163 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9164 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167 libltdl_cv_shlibpath_var="$shlibpath_var"
9169 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9170 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9171 if test -n "$libltdl_cv_shlibpath_var"; then
9173 cat >>confdefs.h <<_ACEOF
9174 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9175 _ACEOF
9180 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9181 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9182 if test "${libltdl_cv_sys_search_path+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 else
9185 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9187 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9188 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9189 if test -n "$libltdl_cv_sys_search_path"; then
9190 sys_search_path=
9191 for dir in $libltdl_cv_sys_search_path; do
9192 if test -z "$sys_search_path"; then
9193 sys_search_path="$dir"
9194 else
9195 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9197 done
9199 cat >>confdefs.h <<_ACEOF
9200 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9201 _ACEOF
9205 { echo "$as_me:$LINENO: checking for objdir" >&5
9206 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9207 if test "${libltdl_cv_objdir+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 libltdl_cv_objdir="$objdir"
9211 if test -n "$objdir"; then
9213 else
9214 rm -f .libs 2>/dev/null
9215 mkdir .libs 2>/dev/null
9216 if test -d .libs; then
9217 libltdl_cv_objdir=.libs
9218 else
9219 # MS-DOS does not allow filenames that begin with a dot.
9220 libltdl_cv_objdir=_libs
9222 rmdir .libs 2>/dev/null
9226 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9227 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9229 cat >>confdefs.h <<_ACEOF
9230 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9231 _ACEOF
9238 # Check for command to grab the raw symbol name followed by C symbol from nm.
9239 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9240 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9241 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9245 # These are sane defaults that work on at least a few old systems.
9246 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9248 # Character class describing NM global symbol codes.
9249 symcode='[BCDEGRST]'
9251 # Regexp to match symbols that can be accessed directly from C.
9252 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9254 # Transform an extracted symbol line into a proper C declaration
9255 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9257 # Transform an extracted symbol line into symbol name and symbol address
9258 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9260 # Define system-specific variables.
9261 case $host_os in
9262 aix*)
9263 symcode='[BCDT]'
9265 cygwin* | mingw* | pw32*)
9266 symcode='[ABCDGISTW]'
9268 hpux*) # Its linker distinguishes data from code symbols
9269 if test "$host_cpu" = ia64; then
9270 symcode='[ABCDEGRST]'
9272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9273 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9275 linux*)
9276 if test "$host_cpu" = ia64; then
9277 symcode='[ABCDGIRSTW]'
9278 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9279 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9282 irix* | nonstopux*)
9283 symcode='[BCDEGRST]'
9285 osf*)
9286 symcode='[BCDEGQRST]'
9288 solaris*)
9289 symcode='[BDRT]'
9291 sco3.2v5*)
9292 symcode='[DT]'
9294 sysv4.2uw2*)
9295 symcode='[DT]'
9297 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9298 symcode='[ABDT]'
9300 sysv4)
9301 symcode='[DFNSTU]'
9303 esac
9305 # Handle CRLF in mingw tool chain
9306 opt_cr=
9307 case $build_os in
9308 mingw*)
9309 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9311 esac
9313 # If we're using GNU nm, then use its standard symbol codes.
9314 case `$NM -V 2>&1` in
9315 *GNU* | *'with BFD'*)
9316 symcode='[ABCDGIRSTW]' ;;
9317 esac
9319 # Try without a prefix undercore, then with it.
9320 for ac_symprfx in "" "_"; do
9322 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9323 symxfrm="\\1 $ac_symprfx\\2 \\2"
9325 # Write the raw and C identifiers.
9326 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9328 # Check to see that the pipe works correctly.
9329 pipe_works=no
9331 rm -f conftest*
9332 cat > conftest.$ac_ext <<EOF
9333 #ifdef __cplusplus
9334 extern "C" {
9335 #endif
9336 char nm_test_var;
9337 void nm_test_func(){}
9338 #ifdef __cplusplus
9340 #endif
9341 int main(){nm_test_var='a';nm_test_func();return(0);}
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; then
9349 # Now try to grab the symbols.
9350 nlist=conftest.nm
9351 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9352 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && test -s "$nlist"; then
9356 # Try sorting and uniquifying the output.
9357 if sort "$nlist" | uniq > "$nlist"T; then
9358 mv -f "$nlist"T "$nlist"
9359 else
9360 rm -f "$nlist"T
9363 # Make sure that we snagged all the symbols we need.
9364 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9365 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9366 cat <<EOF > conftest.$ac_ext
9367 #ifdef __cplusplus
9368 extern "C" {
9369 #endif
9372 # Now generate the symbol file.
9373 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9375 cat <<EOF >> conftest.$ac_ext
9376 #if defined (__STDC__) && __STDC__
9377 # define lt_ptr_t void *
9378 #else
9379 # define lt_ptr_t char *
9380 # define const
9381 #endif
9383 /* The mapping between symbol names and symbols. */
9384 const struct {
9385 const char *name;
9386 lt_ptr_t address;
9388 lt_preloaded_symbols[] =
9391 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9392 cat <<\EOF >> conftest.$ac_ext
9393 {0, (lt_ptr_t) 0}
9396 #ifdef __cplusplus
9398 #endif
9400 # Now try linking the two files.
9401 mv conftest.$ac_objext conftstm.$ac_objext
9402 lt_save_LIBS="$LIBS"
9403 lt_save_CFLAGS="$CFLAGS"
9404 LIBS="conftstm.$ac_objext"
9405 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9411 pipe_works=yes
9413 LIBS="$lt_save_LIBS"
9414 CFLAGS="$lt_save_CFLAGS"
9415 else
9416 echo "cannot find nm_test_func in $nlist" >&5
9418 else
9419 echo "cannot find nm_test_var in $nlist" >&5
9421 else
9422 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9424 else
9425 echo "$progname: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9428 rm -f conftest* conftst*
9430 # Do not use the global_symbol_pipe unless it works.
9431 if test "$pipe_works" = yes; then
9432 break
9433 else
9434 lt_cv_sys_global_symbol_pipe=
9436 done
9440 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9441 lt_cv_sys_global_symbol_to_cdecl=
9443 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9444 { echo "$as_me:$LINENO: result: failed" >&5
9445 echo "${ECHO_T}failed" >&6; }
9446 else
9447 { echo "$as_me:$LINENO: result: ok" >&5
9448 echo "${ECHO_T}ok" >&6; }
9452 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9453 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9454 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9458 libltdl_cv_preloaded_symbols=yes
9459 else
9460 libltdl_cv_preloaded_symbols=no
9464 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9465 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9466 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9468 cat >>confdefs.h <<\_ACEOF
9469 #define HAVE_PRELOADED_SYMBOLS 1
9470 _ACEOF
9474 LIBADD_DL=
9476 ac_ext=c
9477 ac_cpp='$CPP $CPPFLAGS'
9478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9483 { echo "$as_me:$LINENO: checking for shl_load" >&5
9484 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_shl_load+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488 cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h. */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496 #define shl_load innocuous_shl_load
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char shl_load (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9503 #ifdef __STDC__
9504 # include <limits.h>
9505 #else
9506 # include <assert.h>
9507 #endif
9509 #undef shl_load
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9514 #ifdef __cplusplus
9515 extern "C"
9516 #endif
9517 char shl_load ();
9518 /* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
9521 #if defined __stub_shl_load || defined __stub___shl_load
9522 choke me
9523 #endif
9526 main ()
9528 return shl_load ();
9530 return 0;
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9535 case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538 esac
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9548 { (case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551 esac
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_try") 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest$ac_exeext'
9558 { (case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9561 esac
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_try") 2>&5
9564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_cv_func_shl_load=yes
9568 else
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9572 ac_cv_func_shl_load=no
9575 rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9578 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9579 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9580 if test $ac_cv_func_shl_load = yes; then
9582 cat >>confdefs.h <<\_ACEOF
9583 #define HAVE_SHL_LOAD 1
9584 _ACEOF
9586 else
9587 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9588 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9589 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592 ac_check_lib_save_LIBS=$LIBS
9593 LIBS="-ldld $LIBS"
9594 cat >conftest.$ac_ext <<_ACEOF
9595 /* confdefs.h. */
9596 _ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9601 /* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
9604 #ifdef __cplusplus
9605 extern "C"
9606 #endif
9607 char shl_load ();
9609 main ()
9611 return shl_load ();
9613 return 0;
9615 _ACEOF
9616 rm -f conftest.$ac_objext conftest$ac_exeext
9617 if { (ac_try="$ac_link"
9618 case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621 esac
9622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_link") 2>conftest.er1
9624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9631 { (case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634 esac
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_try") 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest$ac_exeext'
9641 { (case "(($ac_try" in
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643 *) ac_try_echo=$ac_try;;
9644 esac
9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646 (eval "$ac_try") 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_lib_dld_shl_load=yes
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_lib_dld_shl_load=no
9658 rm -f core conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660 LIBS=$ac_check_lib_save_LIBS
9662 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9663 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9664 if test $ac_cv_lib_dld_shl_load = yes; then
9666 cat >>confdefs.h <<\_ACEOF
9667 #define HAVE_SHL_LOAD 1
9668 _ACEOF
9670 LIBADD_DL="$LIBADD_DL -ldld"
9671 else
9672 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9673 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9674 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-ldl $LIBS"
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h. */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9686 /* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
9689 #ifdef __cplusplus
9690 extern "C"
9691 #endif
9692 char dlopen ();
9694 main ()
9696 return dlopen ();
9698 return 0;
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (ac_try="$ac_link"
9703 case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706 esac
9707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 { (case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_try") 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729 esac
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_lib_dl_dlopen=yes
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9740 ac_cv_lib_dl_dlopen=no
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 LIBS=$ac_check_lib_save_LIBS
9747 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9748 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9749 if test $ac_cv_lib_dl_dlopen = yes; then
9751 cat >>confdefs.h <<\_ACEOF
9752 #define HAVE_LIBDL 1
9753 _ACEOF
9755 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9756 else
9757 cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h. */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 #if HAVE_DLFCN_H
9764 # include <dlfcn.h>
9765 #endif
9768 main ()
9770 dlopen(0, 0);
9772 return 0;
9774 _ACEOF
9775 rm -f conftest.$ac_objext conftest$ac_exeext
9776 if { (ac_try="$ac_link"
9777 case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780 esac
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>conftest.er1
9783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9790 { (case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_try") 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest$ac_exeext'
9800 { (case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803 esac
9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_try") 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_LIBDL 1
9812 _ACEOF
9813 libltdl_cv_func_dlopen="yes"
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9818 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9819 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9820 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823 ac_check_lib_save_LIBS=$LIBS
9824 LIBS="-lsvld $LIBS"
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9832 /* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
9835 #ifdef __cplusplus
9836 extern "C"
9837 #endif
9838 char dlopen ();
9840 main ()
9842 return dlopen ();
9844 return 0;
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (ac_try="$ac_link"
9849 case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852 esac
9853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854 (eval "$ac_link") 2>conftest.er1
9855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
9861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862 { (case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9865 esac
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_try") 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest$ac_exeext'
9872 { (case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9875 esac
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_try") 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_lib_svld_dlopen=yes
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 ac_cv_lib_svld_dlopen=no
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9893 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9895 if test $ac_cv_lib_svld_dlopen = yes; then
9897 cat >>confdefs.h <<\_ACEOF
9898 #define HAVE_LIBDL 1
9899 _ACEOF
9901 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9902 else
9903 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9904 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9905 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-ldld $LIBS"
9910 cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h. */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
9920 #ifdef __cplusplus
9921 extern "C"
9922 #endif
9923 char dld_link ();
9925 main ()
9927 return dld_link ();
9929 return 0;
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947 { (case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_try") 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
9957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960 esac
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_lib_dld_dld_link=yes
9967 else
9968 echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9971 ac_cv_lib_dld_dld_link=no
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_lib_save_LIBS
9978 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9979 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9980 if test $ac_cv_lib_dld_dld_link = yes; then
9982 cat >>confdefs.h <<\_ACEOF
9983 #define HAVE_DLD 1
9984 _ACEOF
9986 LIBADD_DL="$LIBADD_DL -ldld"
9987 else
9988 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9989 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9990 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993 cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h. */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10001 #define _dyld_func_lookup innocuous__dyld_func_lookup
10003 /* System header to define __stub macros and hopefully few prototypes,
10004 which can conflict with char _dyld_func_lookup (); below.
10005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10006 <limits.h> exists even on freestanding compilers. */
10008 #ifdef __STDC__
10009 # include <limits.h>
10010 #else
10011 # include <assert.h>
10012 #endif
10014 #undef _dyld_func_lookup
10016 /* Override any GCC internal prototype to avoid an error.
10017 Use char because int might match the return type of a GCC
10018 builtin and then its argument prototype would still apply. */
10019 #ifdef __cplusplus
10020 extern "C"
10021 #endif
10022 char _dyld_func_lookup ();
10023 /* The GNU C library defines this for functions which it implements
10024 to always fail with ENOSYS. Some functions are actually named
10025 something starting with __ and the normal name is an alias. */
10026 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10027 choke me
10028 #endif
10031 main ()
10033 return _dyld_func_lookup ();
10035 return 0;
10037 _ACEOF
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (ac_try="$ac_link"
10040 case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_link") 2>conftest.er1
10046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
10063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_func__dyld_func_lookup=yes
10073 else
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_cv_func__dyld_func_lookup=no
10080 rm -f core conftest.err conftest.$ac_objext \
10081 conftest$ac_exeext conftest.$ac_ext
10083 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10084 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10085 if test $ac_cv_func__dyld_func_lookup = yes; then
10087 cat >>confdefs.h <<\_ACEOF
10088 #define HAVE_DYLD 1
10089 _ACEOF
10102 rm -f core conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10114 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10115 then
10116 lt_save_LIBS="$LIBS"
10117 LIBS="$LIBS $LIBADD_DL"
10119 for ac_func in dlerror
10121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 else
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h. */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10135 #define $ac_func innocuous_$ac_func
10137 /* System header to define __stub macros and hopefully few prototypes,
10138 which can conflict with char $ac_func (); below.
10139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10140 <limits.h> exists even on freestanding compilers. */
10142 #ifdef __STDC__
10143 # include <limits.h>
10144 #else
10145 # include <assert.h>
10146 #endif
10148 #undef $ac_func
10150 /* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 char $ac_func ();
10157 /* The GNU C library defines this for functions which it implements
10158 to always fail with ENOSYS. Some functions are actually named
10159 something starting with __ and the normal name is an alias. */
10160 #if defined __stub_$ac_func || defined __stub___$ac_func
10161 choke me
10162 #endif
10165 main ()
10167 return $ac_func ();
10169 return 0;
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187 { (case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_try") 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; } &&
10196 { ac_try='test -s conftest$ac_exeext'
10197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 eval "$as_ac_var=yes"
10207 else
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10211 eval "$as_ac_var=no"
10214 rm -f core conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10217 ac_res=`eval echo '${'$as_ac_var'}'`
10218 { echo "$as_me:$LINENO: result: $ac_res" >&5
10219 echo "${ECHO_T}$ac_res" >&6; }
10220 if test `eval echo '${'$as_ac_var'}'` = yes; then
10221 cat >>confdefs.h <<_ACEOF
10222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10223 _ACEOF
10226 done
10228 LIBS="$lt_save_LIBS"
10230 ac_ext=c
10231 ac_cpp='$CPP $CPPFLAGS'
10232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10238 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10239 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10240 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243 ac_cv_sys_symbol_underscore=no
10244 cat > conftest.$ac_ext <<EOF
10245 void nm_test_func(){}
10246 int main(){nm_test_func;return 0;}
10248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10249 (eval $ac_compile) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; then
10253 # Now try to grab the symbols.
10254 ac_nlist=conftest.nm
10255 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10256 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && test -s "$ac_nlist"; then
10260 # See whether the symbols have a leading underscore.
10261 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10262 ac_cv_sys_symbol_underscore=yes
10263 else
10264 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10266 else
10267 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10270 else
10271 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10273 else
10274 echo "configure: failed program was:" >&5
10275 cat conftest.c >&5
10277 rm -rf conftest*
10280 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10281 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10284 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10285 if test x"$libltdl_cv_func_dlopen" = xyes ||
10286 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10287 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10288 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10289 if test "${libltdl_cv_need_uscore+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 else
10292 libltdl_cv_need_uscore=unknown
10293 save_LIBS="$LIBS"
10294 LIBS="$LIBS $LIBADD_DL"
10295 if test "$cross_compiling" = yes; then :
10296 libltdl_cv_need_uscore=cross
10297 else
10298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10299 lt_status=$lt_dlunknown
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10301 "configure"
10302 #include "confdefs.h"
10304 #if HAVE_DLFCN_H
10305 #include <dlfcn.h>
10306 #endif
10308 #include <stdio.h>
10310 #ifdef RTLD_GLOBAL
10311 # define LT_DLGLOBAL RTLD_GLOBAL
10312 #else
10313 # ifdef DL_GLOBAL
10314 # define LT_DLGLOBAL DL_GLOBAL
10315 # else
10316 # define LT_DLGLOBAL 0
10317 # endif
10318 #endif
10320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10321 find out it does not work in some platform. */
10322 #ifndef LT_DLLAZY_OR_NOW
10323 # ifdef RTLD_LAZY
10324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10325 # else
10326 # ifdef DL_LAZY
10327 # define LT_DLLAZY_OR_NOW DL_LAZY
10328 # else
10329 # ifdef RTLD_NOW
10330 # define LT_DLLAZY_OR_NOW RTLD_NOW
10331 # else
10332 # ifdef DL_NOW
10333 # define LT_DLLAZY_OR_NOW DL_NOW
10334 # else
10335 # define LT_DLLAZY_OR_NOW 0
10336 # endif
10337 # endif
10338 # endif
10339 # endif
10340 #endif
10342 #ifdef __cplusplus
10343 extern "C" void exit (int);
10344 #endif
10346 void fnord() { int i=42;}
10347 int main ()
10349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10350 int status = $lt_dlunknown;
10352 if (self)
10354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10356 /* dlclose (self); */
10358 else
10359 puts (dlerror ());
10361 exit (status);
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10369 (./conftest; exit; ) >&5 2>/dev/null
10370 lt_status=$?
10371 case x$lt_status in
10372 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10373 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10374 x$lt_dlunknown|x*) ;;
10375 esac
10376 else :
10377 # compilation failed
10381 rm -fr conftest*
10383 LIBS="$save_LIBS"
10386 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10387 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10391 if test x"$libltdl_cv_need_uscore" = xyes; then
10393 cat >>confdefs.h <<\_ACEOF
10394 #define NEED_USCORE 1
10395 _ACEOF
10400 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10401 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10402 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405 # PORTME does your system automatically load deplibs for dlopen?
10406 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10407 # For now, we just catch OSes we know something about -- in the
10408 # future, we'll try test this programmatically.
10409 libltdl_cv_sys_dlopen_deplibs=unknown
10410 case "$host_os" in
10411 aix3*|aix4.1.*|aix4.2.*)
10412 # Unknown whether this is true for these versions of AIX, but
10413 # we want this `case' here to explicitly catch those versions.
10414 libltdl_cv_sys_dlopen_deplibs=unknown
10416 aix[45]*)
10417 libltdl_cv_sys_dlopen_deplibs=yes
10419 darwin*)
10420 # Assuming the user has installed a libdl from somewhere, this is true
10421 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10422 libltdl_cv_sys_dlopen_deplibs=yes
10424 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10425 # GNU and its variants, using gnu ld.so (Glibc)
10426 libltdl_cv_sys_dlopen_deplibs=yes
10428 hpux10*|hpux11*)
10429 libltdl_cv_sys_dlopen_deplibs=yes
10431 interix*)
10432 libltdl_cv_sys_dlopen_deplibs=yes
10434 irix[12345]*|irix6.[01]*)
10435 # Catch all versions of IRIX before 6.2, and indicate that we don't
10436 # know how it worked for any of those versions.
10437 libltdl_cv_sys_dlopen_deplibs=unknown
10439 irix*)
10440 # The case above catches anything before 6.2, and it's known that
10441 # at 6.2 and later dlopen does load deplibs.
10442 libltdl_cv_sys_dlopen_deplibs=yes
10444 netbsd*)
10445 libltdl_cv_sys_dlopen_deplibs=yes
10447 openbsd*)
10448 libltdl_cv_sys_dlopen_deplibs=yes
10450 osf[1234]*)
10451 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10452 # it did *not* use an RPATH in a shared library to find objects the
10453 # library depends on, so we explictly say `no'.
10454 libltdl_cv_sys_dlopen_deplibs=no
10456 osf5.0|osf5.0a|osf5.1)
10457 # dlopen *does* load deplibs and with the right loader patch applied
10458 # it even uses RPATH in a shared library to search for shared objects
10459 # that the library depends on, but there's no easy way to know if that
10460 # patch is installed. Since this is the case, all we can really
10461 # say is unknown -- it depends on the patch being installed. If
10462 # it is, this changes to `yes'. Without it, it would be `no'.
10463 libltdl_cv_sys_dlopen_deplibs=unknown
10465 osf*)
10466 # the two cases above should catch all versions of osf <= 5.1. Read
10467 # the comments above for what we know about them.
10468 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10469 # is used to find them so we can finally say `yes'.
10470 libltdl_cv_sys_dlopen_deplibs=yes
10472 solaris*)
10473 libltdl_cv_sys_dlopen_deplibs=yes
10475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10476 libltdl_cv_sys_dlopen_deplibs=yes
10478 esac
10481 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10482 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10483 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10485 cat >>confdefs.h <<\_ACEOF
10486 #define LTDL_DLOPEN_DEPLIBS 1
10487 _ACEOF
10492 for ac_header in argz.h
10494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 ac_res=`eval echo '${'$as_ac_Header'}'`
10502 { echo "$as_me:$LINENO: result: $ac_res" >&5
10503 echo "${ECHO_T}$ac_res" >&6; }
10504 else
10505 # Is the header compilable?
10506 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 $ac_includes_default
10515 #include <$ac_header>
10516 _ACEOF
10517 rm -f conftest.$ac_objext
10518 if { (ac_try="$ac_compile"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_compile") 2>conftest.er1
10525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
10542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_header_compiler=yes
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ac_header_compiler=no
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10561 echo "${ECHO_T}$ac_header_compiler" >&6; }
10563 # Is the header present?
10564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h. */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <$ac_header>
10573 _ACEOF
10574 if { (ac_try="$ac_cpp conftest.$ac_ext"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } >/dev/null; then
10587 if test -s conftest.err; then
10588 ac_cpp_err=$ac_c_preproc_warn_flag
10589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10590 else
10591 ac_cpp_err=
10593 else
10594 ac_cpp_err=yes
10596 if test -z "$ac_cpp_err"; then
10597 ac_header_preproc=yes
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_header_preproc=no
10605 rm -f conftest.err conftest.$ac_ext
10606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607 echo "${ECHO_T}$ac_header_preproc" >&6; }
10609 # So? What about this header?
10610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611 yes:no: )
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10616 ac_header_preproc=yes
10618 no:yes:* )
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10631 ( cat <<\_ASBOX
10632 ## ----------------------------------- ##
10633 ## Report this to llvmbugs@cs.uiuc.edu ##
10634 ## ----------------------------------- ##
10635 _ASBOX
10636 ) | sed "s/^/$as_me: WARNING: /" >&2
10638 esac
10639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 eval "$as_ac_Header=\$ac_header_preproc"
10646 ac_res=`eval echo '${'$as_ac_Header'}'`
10647 { echo "$as_me:$LINENO: result: $ac_res" >&5
10648 echo "${ECHO_T}$ac_res" >&6; }
10651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10652 cat >>confdefs.h <<_ACEOF
10653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10654 _ACEOF
10658 done
10661 { echo "$as_me:$LINENO: checking for error_t" >&5
10662 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10663 if test "${ac_cv_type_error_t+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 else
10666 cat >conftest.$ac_ext <<_ACEOF
10667 /* confdefs.h. */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672 #if HAVE_ARGZ_H
10673 # include <argz.h>
10674 #endif
10676 typedef error_t ac__type_new_;
10678 main ()
10680 if ((ac__type_new_ *) 0)
10681 return 0;
10682 if (sizeof (ac__type_new_))
10683 return 0;
10685 return 0;
10687 _ACEOF
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_compile") 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest.$ac_objext'
10713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
10719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_cv_type_error_t=yes
10723 else
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_cv_type_error_t=no
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10733 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10734 if test $ac_cv_type_error_t = yes; then
10736 cat >>confdefs.h <<_ACEOF
10737 #define HAVE_ERROR_T 1
10738 _ACEOF
10741 else
10743 cat >>confdefs.h <<\_ACEOF
10744 #define error_t int
10745 _ACEOF
10755 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h. */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10771 #define $ac_func innocuous_$ac_func
10773 /* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char $ac_func (); below.
10775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 <limits.h> exists even on freestanding compilers. */
10778 #ifdef __STDC__
10779 # include <limits.h>
10780 #else
10781 # include <assert.h>
10782 #endif
10784 #undef $ac_func
10786 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
10789 #ifdef __cplusplus
10790 extern "C"
10791 #endif
10792 char $ac_func ();
10793 /* The GNU C library defines this for functions which it implements
10794 to always fail with ENOSYS. Some functions are actually named
10795 something starting with __ and the normal name is an alias. */
10796 #if defined __stub_$ac_func || defined __stub___$ac_func
10797 choke me
10798 #endif
10801 main ()
10803 return $ac_func ();
10805 return 0;
10807 _ACEOF
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (ac_try="$ac_link"
10810 case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_link") 2>conftest.er1
10816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
10822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10823 { (case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10826 esac
10827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828 (eval "$ac_try") 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try='test -s conftest$ac_exeext'
10833 { (case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836 esac
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_try") 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 eval "$as_ac_var=yes"
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 eval "$as_ac_var=no"
10850 rm -f core conftest.err conftest.$ac_objext \
10851 conftest$ac_exeext conftest.$ac_ext
10853 ac_res=`eval echo '${'$as_ac_var'}'`
10854 { echo "$as_me:$LINENO: result: $ac_res" >&5
10855 echo "${ECHO_T}$ac_res" >&6; }
10856 if test `eval echo '${'$as_ac_var'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10859 _ACEOF
10862 done
10891 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10892 stdio.h unistd.h
10894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 ac_res=`eval echo '${'$as_ac_Header'}'`
10902 { echo "$as_me:$LINENO: result: $ac_res" >&5
10903 echo "${ECHO_T}$ac_res" >&6; }
10904 else
10905 # Is the header compilable?
10906 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 $ac_includes_default
10915 #include <$ac_header>
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (ac_try="$ac_compile"
10919 case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922 esac
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_compile") 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10932 { (case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_try") 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; } &&
10941 { ac_try='test -s conftest.$ac_objext'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_header_compiler=yes
10952 else
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10956 ac_header_compiler=no
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10961 echo "${ECHO_T}$ac_header_compiler" >&6; }
10963 # Is the header present?
10964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10966 cat >conftest.$ac_ext <<_ACEOF
10967 /* confdefs.h. */
10968 _ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10972 #include <$ac_header>
10973 _ACEOF
10974 if { (ac_try="$ac_cpp conftest.$ac_ext"
10975 case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10978 esac
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } >/dev/null; then
10987 if test -s conftest.err; then
10988 ac_cpp_err=$ac_c_preproc_warn_flag
10989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10990 else
10991 ac_cpp_err=
10993 else
10994 ac_cpp_err=yes
10996 if test -z "$ac_cpp_err"; then
10997 ac_header_preproc=yes
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ac_header_preproc=no
11005 rm -f conftest.err conftest.$ac_ext
11006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11007 echo "${ECHO_T}$ac_header_preproc" >&6; }
11009 # So? What about this header?
11010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11011 yes:no: )
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11016 ac_header_preproc=yes
11018 no:yes:* )
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11031 ( cat <<\_ASBOX
11032 ## ----------------------------------- ##
11033 ## Report this to llvmbugs@cs.uiuc.edu ##
11034 ## ----------------------------------- ##
11035 _ASBOX
11036 ) | sed "s/^/$as_me: WARNING: /" >&2
11038 esac
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 else
11044 eval "$as_ac_Header=\$ac_header_preproc"
11046 ac_res=`eval echo '${'$as_ac_Header'}'`
11047 { echo "$as_me:$LINENO: result: $ac_res" >&5
11048 echo "${ECHO_T}$ac_res" >&6; }
11051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054 _ACEOF
11058 done
11064 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 ac_res=`eval echo '${'$as_ac_Header'}'`
11074 { echo "$as_me:$LINENO: result: $ac_res" >&5
11075 echo "${ECHO_T}$ac_res" >&6; }
11076 else
11077 # Is the header compilable?
11078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h. */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 $ac_includes_default
11087 #include <$ac_header>
11088 _ACEOF
11089 rm -f conftest.$ac_objext
11090 if { (ac_try="$ac_compile"
11091 case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094 esac
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_compile") 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107 esac
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
11110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest.$ac_objext'
11114 { (case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117 esac
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_try") 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 ac_header_compiler=yes
11124 else
11125 echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ac_header_compiler=no
11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11133 echo "${ECHO_T}$ac_header_compiler" >&6; }
11135 # Is the header present?
11136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11138 cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h. */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11144 #include <$ac_header>
11145 _ACEOF
11146 if { (ac_try="$ac_cpp conftest.$ac_ext"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } >/dev/null; then
11159 if test -s conftest.err; then
11160 ac_cpp_err=$ac_c_preproc_warn_flag
11161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11162 else
11163 ac_cpp_err=
11165 else
11166 ac_cpp_err=yes
11168 if test -z "$ac_cpp_err"; then
11169 ac_header_preproc=yes
11170 else
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 ac_header_preproc=no
11177 rm -f conftest.err conftest.$ac_ext
11178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11179 echo "${ECHO_T}$ac_header_preproc" >&6; }
11181 # So? What about this header?
11182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11183 yes:no: )
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11188 ac_header_preproc=yes
11190 no:yes:* )
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11203 ( cat <<\_ASBOX
11204 ## ----------------------------------- ##
11205 ## Report this to llvmbugs@cs.uiuc.edu ##
11206 ## ----------------------------------- ##
11207 _ASBOX
11208 ) | sed "s/^/$as_me: WARNING: /" >&2
11210 esac
11211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 else
11216 eval "$as_ac_Header=\$ac_header_preproc"
11218 ac_res=`eval echo '${'$as_ac_Header'}'`
11219 { echo "$as_me:$LINENO: result: $ac_res" >&5
11220 echo "${ECHO_T}$ac_res" >&6; }
11223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11224 cat >>confdefs.h <<_ACEOF
11225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11226 _ACEOF
11230 done
11234 for ac_header in string.h strings.h
11236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 ac_res=`eval echo '${'$as_ac_Header'}'`
11244 { echo "$as_me:$LINENO: result: $ac_res" >&5
11245 echo "${ECHO_T}$ac_res" >&6; }
11246 else
11247 # Is the header compilable?
11248 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 $ac_includes_default
11257 #include <$ac_header>
11258 _ACEOF
11259 rm -f conftest.$ac_objext
11260 if { (ac_try="$ac_compile"
11261 case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264 esac
11265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_compile") 2>conftest.er1
11267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11274 { (case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_try") 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; } &&
11283 { ac_try='test -s conftest.$ac_objext'
11284 { (case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287 esac
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_try") 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11293 ac_header_compiler=yes
11294 else
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_header_compiler=no
11301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11303 echo "${ECHO_T}$ac_header_compiler" >&6; }
11305 # Is the header present?
11306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 #include <$ac_header>
11315 _ACEOF
11316 if { (ac_try="$ac_cpp conftest.$ac_ext"
11317 case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320 esac
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } >/dev/null; then
11329 if test -s conftest.err; then
11330 ac_cpp_err=$ac_c_preproc_warn_flag
11331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11332 else
11333 ac_cpp_err=
11335 else
11336 ac_cpp_err=yes
11338 if test -z "$ac_cpp_err"; then
11339 ac_header_preproc=yes
11340 else
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_preproc=no
11347 rm -f conftest.err conftest.$ac_ext
11348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11349 echo "${ECHO_T}$ac_header_preproc" >&6; }
11351 # So? What about this header?
11352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11353 yes:no: )
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11358 ac_header_preproc=yes
11360 no:yes:* )
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11373 ( cat <<\_ASBOX
11374 ## ----------------------------------- ##
11375 ## Report this to llvmbugs@cs.uiuc.edu ##
11376 ## ----------------------------------- ##
11377 _ASBOX
11378 ) | sed "s/^/$as_me: WARNING: /" >&2
11380 esac
11381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386 eval "$as_ac_Header=\$ac_header_preproc"
11388 ac_res=`eval echo '${'$as_ac_Header'}'`
11389 { echo "$as_me:$LINENO: result: $ac_res" >&5
11390 echo "${ECHO_T}$ac_res" >&6; }
11393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 _ACEOF
11397 break
11400 done
11405 for ac_func in strchr index
11407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 cat >conftest.$ac_ext <<_ACEOF
11414 /* confdefs.h. */
11415 _ACEOF
11416 cat confdefs.h >>conftest.$ac_ext
11417 cat >>conftest.$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421 #define $ac_func innocuous_$ac_func
11423 /* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11428 #ifdef __STDC__
11429 # include <limits.h>
11430 #else
11431 # include <assert.h>
11432 #endif
11434 #undef $ac_func
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11439 #ifdef __cplusplus
11440 extern "C"
11441 #endif
11442 char $ac_func ();
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11447 choke me
11448 #endif
11451 main ()
11453 return $ac_func ();
11455 return 0;
11457 _ACEOF
11458 rm -f conftest.$ac_objext conftest$ac_exeext
11459 if { (ac_try="$ac_link"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463 esac
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473 { (case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476 esac
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_try") 2>&5
11479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try='test -s conftest$ac_exeext'
11483 { (case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_try") 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 eval "$as_ac_var=yes"
11493 else
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 eval "$as_ac_var=no"
11500 rm -f core conftest.err conftest.$ac_objext \
11501 conftest$ac_exeext conftest.$ac_ext
11503 ac_res=`eval echo '${'$as_ac_var'}'`
11504 { echo "$as_me:$LINENO: result: $ac_res" >&5
11505 echo "${ECHO_T}$ac_res" >&6; }
11506 if test `eval echo '${'$as_ac_var'}'` = yes; then
11507 cat >>confdefs.h <<_ACEOF
11508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11509 _ACEOF
11510 break
11512 done
11516 for ac_func in strrchr rindex
11518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524 cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h. */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h. */
11530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11532 #define $ac_func innocuous_$ac_func
11534 /* System header to define __stub macros and hopefully few prototypes,
11535 which can conflict with char $ac_func (); below.
11536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537 <limits.h> exists even on freestanding compilers. */
11539 #ifdef __STDC__
11540 # include <limits.h>
11541 #else
11542 # include <assert.h>
11543 #endif
11545 #undef $ac_func
11547 /* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 char $ac_func ();
11554 /* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
11557 #if defined __stub_$ac_func || defined __stub___$ac_func
11558 choke me
11559 #endif
11562 main ()
11564 return $ac_func ();
11566 return 0;
11568 _ACEOF
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (ac_try="$ac_link"
11571 case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11574 esac
11575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_link") 2>conftest.er1
11577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
11583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11584 { (case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587 esac
11588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_try") 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest$ac_exeext'
11594 { (case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_try") 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 eval "$as_ac_var=yes"
11604 else
11605 echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 eval "$as_ac_var=no"
11611 rm -f core conftest.err conftest.$ac_objext \
11612 conftest$ac_exeext conftest.$ac_ext
11614 ac_res=`eval echo '${'$as_ac_var'}'`
11615 { echo "$as_me:$LINENO: result: $ac_res" >&5
11616 echo "${ECHO_T}$ac_res" >&6; }
11617 if test `eval echo '${'$as_ac_var'}'` = yes; then
11618 cat >>confdefs.h <<_ACEOF
11619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11620 _ACEOF
11621 break
11623 done
11627 for ac_func in memcpy bcopy
11629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11643 #define $ac_func innocuous_$ac_func
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below.
11647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648 <limits.h> exists even on freestanding compilers. */
11650 #ifdef __STDC__
11651 # include <limits.h>
11652 #else
11653 # include <assert.h>
11654 #endif
11656 #undef $ac_func
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 char $ac_func ();
11665 /* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668 #if defined __stub_$ac_func || defined __stub___$ac_func
11669 choke me
11670 #endif
11673 main ()
11675 return $ac_func ();
11677 return 0;
11679 _ACEOF
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest$ac_exeext'
11705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 eval "$as_ac_var=yes"
11715 else
11716 echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 eval "$as_ac_var=no"
11722 rm -f core conftest.err conftest.$ac_objext \
11723 conftest$ac_exeext conftest.$ac_ext
11725 ac_res=`eval echo '${'$as_ac_var'}'`
11726 { echo "$as_me:$LINENO: result: $ac_res" >&5
11727 echo "${ECHO_T}$ac_res" >&6; }
11728 if test `eval echo '${'$as_ac_var'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11731 _ACEOF
11732 break
11734 done
11738 for ac_func in memmove strcmp
11740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define $ac_func innocuous_$ac_func
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11761 #ifdef __STDC__
11762 # include <limits.h>
11763 #else
11764 # include <assert.h>
11765 #endif
11767 #undef $ac_func
11769 /* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
11772 #ifdef __cplusplus
11773 extern "C"
11774 #endif
11775 char $ac_func ();
11776 /* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
11779 #if defined __stub_$ac_func || defined __stub___$ac_func
11780 choke me
11781 #endif
11784 main ()
11786 return $ac_func ();
11788 return 0;
11790 _ACEOF
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (ac_try="$ac_link"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
11816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "$as_ac_var=yes"
11826 else
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11830 eval "$as_ac_var=no"
11833 rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11836 ac_res=`eval echo '${'$as_ac_var'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 if test `eval echo '${'$as_ac_var'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842 _ACEOF
11845 done
11850 for ac_func in closedir opendir readdir
11852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 else
11858 cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h. */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h. */
11864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11866 #define $ac_func innocuous_$ac_func
11868 /* System header to define __stub macros and hopefully few prototypes,
11869 which can conflict with char $ac_func (); below.
11870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871 <limits.h> exists even on freestanding compilers. */
11873 #ifdef __STDC__
11874 # include <limits.h>
11875 #else
11876 # include <assert.h>
11877 #endif
11879 #undef $ac_func
11881 /* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
11884 #ifdef __cplusplus
11885 extern "C"
11886 #endif
11887 char $ac_func ();
11888 /* The GNU C library defines this for functions which it implements
11889 to always fail with ENOSYS. Some functions are actually named
11890 something starting with __ and the normal name is an alias. */
11891 #if defined __stub_$ac_func || defined __stub___$ac_func
11892 choke me
11893 #endif
11896 main ()
11898 return $ac_func ();
11900 return 0;
11902 _ACEOF
11903 rm -f conftest.$ac_objext conftest$ac_exeext
11904 if { (ac_try="$ac_link"
11905 case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908 esac
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_link") 2>conftest.er1
11911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921 esac
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest$ac_exeext'
11928 { (case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_try") 2>&5
11934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 eval "$as_ac_var=yes"
11938 else
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 eval "$as_ac_var=no"
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11948 ac_res=`eval echo '${'$as_ac_var'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11951 if test `eval echo '${'$as_ac_var'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954 _ACEOF
11957 done
11960 # Check whether --enable-shared was given.
11961 if test "${enable_shared+set}" = set; then
11962 enableval=$enable_shared; p=${PACKAGE-default}
11963 case $enableval in
11964 yes) enable_shared=yes ;;
11965 no) enable_shared=no ;;
11967 enable_shared=no
11968 # Look at the argument we got. We use all the common list separators.
11969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11970 for pkg in $enableval; do
11971 IFS="$lt_save_ifs"
11972 if test "X$pkg" = "X$p"; then
11973 enable_shared=yes
11975 done
11976 IFS="$lt_save_ifs"
11978 esac
11979 else
11980 enable_shared=yes
11984 # Check whether --enable-static was given.
11985 if test "${enable_static+set}" = set; then
11986 enableval=$enable_static; p=${PACKAGE-default}
11987 case $enableval in
11988 yes) enable_static=yes ;;
11989 no) enable_static=no ;;
11991 enable_static=no
11992 # Look at the argument we got. We use all the common list separators.
11993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11994 for pkg in $enableval; do
11995 IFS="$lt_save_ifs"
11996 if test "X$pkg" = "X$p"; then
11997 enable_static=yes
11999 done
12000 IFS="$lt_save_ifs"
12002 esac
12003 else
12004 enable_static=yes
12008 # Check whether --enable-fast-install was given.
12009 if test "${enable_fast_install+set}" = set; then
12010 enableval=$enable_fast_install; p=${PACKAGE-default}
12011 case $enableval in
12012 yes) enable_fast_install=yes ;;
12013 no) enable_fast_install=no ;;
12015 enable_fast_install=no
12016 # Look at the argument we got. We use all the common list separators.
12017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12018 for pkg in $enableval; do
12019 IFS="$lt_save_ifs"
12020 if test "X$pkg" = "X$p"; then
12021 enable_fast_install=yes
12023 done
12024 IFS="$lt_save_ifs"
12026 esac
12027 else
12028 enable_fast_install=yes
12032 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12033 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12034 if test "${lt_cv_path_SED+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 else
12037 # Loop through the user's path and test for sed and gsed.
12038 # Then use that list of sed's as ones to test for truncation.
12039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040 for as_dir in $PATH
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for lt_ac_prog in sed gsed; do
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12047 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12049 done
12050 done
12051 done
12052 lt_ac_max=0
12053 lt_ac_count=0
12054 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12055 # along with /bin/sed that truncates output.
12056 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12057 test ! -f $lt_ac_sed && continue
12058 cat /dev/null > conftest.in
12059 lt_ac_count=0
12060 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12061 # Check for GNU sed and select it if it is found.
12062 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12063 lt_cv_path_SED=$lt_ac_sed
12064 break
12066 while true; do
12067 cat conftest.in conftest.in >conftest.tmp
12068 mv conftest.tmp conftest.in
12069 cp conftest.in conftest.nl
12070 echo >>conftest.nl
12071 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12072 cmp -s conftest.out conftest.nl || break
12073 # 10000 chars as input seems more than enough
12074 test $lt_ac_count -gt 10 && break
12075 lt_ac_count=`expr $lt_ac_count + 1`
12076 if test $lt_ac_count -gt $lt_ac_max; then
12077 lt_ac_max=$lt_ac_count
12078 lt_cv_path_SED=$lt_ac_sed
12080 done
12081 done
12085 SED=$lt_cv_path_SED
12086 { echo "$as_me:$LINENO: result: $SED" >&5
12087 echo "${ECHO_T}$SED" >&6; }
12090 # Check whether --with-gnu-ld was given.
12091 if test "${with_gnu_ld+set}" = set; then
12092 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12093 else
12094 with_gnu_ld=no
12097 ac_prog=ld
12098 if test "$GCC" = yes; then
12099 # Check if gcc -print-prog-name=ld gives a path.
12100 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12101 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12102 case $host in
12103 *-*-mingw*)
12104 # gcc leaves a trailing carriage return which upsets mingw
12105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12108 esac
12109 case $ac_prog in
12110 # Accept absolute paths.
12111 [\\/]* | ?:[\\/]*)
12112 re_direlt='/[^/][^/]*/\.\./'
12113 # Canonicalize the pathname of ld
12114 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12116 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12117 done
12118 test -z "$LD" && LD="$ac_prog"
12121 # If it fails, then pretend we aren't using GCC.
12122 ac_prog=ld
12125 # If it is relative, then search for the first ld in PATH.
12126 with_gnu_ld=unknown
12128 esac
12129 elif test "$with_gnu_ld" = yes; then
12130 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12131 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12132 else
12133 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12134 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12136 if test "${lt_cv_path_LD+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139 if test -z "$LD"; then
12140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12141 for ac_dir in $PATH; do
12142 IFS="$lt_save_ifs"
12143 test -z "$ac_dir" && ac_dir=.
12144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12145 lt_cv_path_LD="$ac_dir/$ac_prog"
12146 # Check to see if the program is GNU ld. I'd rather use --version,
12147 # but apparently some variants of GNU ld only accept -v.
12148 # Break only if it was the GNU/non-GNU ld that we prefer.
12149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12150 *GNU* | *'with BFD'*)
12151 test "$with_gnu_ld" != no && break
12154 test "$with_gnu_ld" != yes && break
12156 esac
12158 done
12159 IFS="$lt_save_ifs"
12160 else
12161 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12165 LD="$lt_cv_path_LD"
12166 if test -n "$LD"; then
12167 { echo "$as_me:$LINENO: result: $LD" >&5
12168 echo "${ECHO_T}$LD" >&6; }
12169 else
12170 { echo "$as_me:$LINENO: result: no" >&5
12171 echo "${ECHO_T}no" >&6; }
12173 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12174 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12175 { (exit 1); exit 1; }; }
12176 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12177 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12178 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12182 case `$LD -v 2>&1 </dev/null` in
12183 *GNU* | *'with BFD'*)
12184 lt_cv_prog_gnu_ld=yes
12187 lt_cv_prog_gnu_ld=no
12189 esac
12191 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12192 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12193 with_gnu_ld=$lt_cv_prog_gnu_ld
12196 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12197 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12198 if test "${lt_cv_ld_reload_flag+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201 lt_cv_ld_reload_flag='-r'
12203 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12204 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12205 reload_flag=$lt_cv_ld_reload_flag
12206 case $reload_flag in
12207 "" | " "*) ;;
12208 *) reload_flag=" $reload_flag" ;;
12209 esac
12210 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12211 case $host_os in
12212 darwin*)
12213 if test "$GCC" = yes; then
12214 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12215 else
12216 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12219 esac
12221 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12222 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12223 if test "${lt_cv_deplibs_check_method+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 lt_cv_file_magic_cmd='$MAGIC_CMD'
12227 lt_cv_file_magic_test_file=
12228 lt_cv_deplibs_check_method='unknown'
12229 # Need to set the preceding variable on all platforms that support
12230 # interlibrary dependencies.
12231 # 'none' -- dependencies not supported.
12232 # `unknown' -- same as none, but documents that we really don't know.
12233 # 'pass_all' -- all dependencies passed with no checks.
12234 # 'test_compile' -- check by making test program.
12235 # 'file_magic [[regex]]' -- check by looking for files in library path
12236 # which responds to the $file_magic_cmd with a given extended regex.
12237 # If you have `file' or equivalent on your system and you're not sure
12238 # whether `pass_all' will *always* work, you probably want this one.
12240 case $host_os in
12241 aix4* | aix5*)
12242 lt_cv_deplibs_check_method=pass_all
12245 beos*)
12246 lt_cv_deplibs_check_method=pass_all
12249 bsdi[45]*)
12250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12251 lt_cv_file_magic_cmd='/usr/bin/file -L'
12252 lt_cv_file_magic_test_file=/shlib/libc.so
12255 cygwin*)
12256 # func_win32_libid is a shell function defined in ltmain.sh
12257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12258 lt_cv_file_magic_cmd='func_win32_libid'
12261 mingw* | pw32*)
12262 # Base MSYS/MinGW do not provide the 'file' command needed by
12263 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12264 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12265 lt_cv_file_magic_cmd='$OBJDUMP -f'
12268 darwin* | rhapsody*)
12269 lt_cv_deplibs_check_method=pass_all
12272 freebsd* | kfreebsd*-gnu | dragonfly*)
12273 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12274 case $host_cpu in
12275 i*86 )
12276 # Not sure whether the presence of OpenBSD here was a mistake.
12277 # Let's accept both of them until this is cleared up.
12278 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12279 lt_cv_file_magic_cmd=/usr/bin/file
12280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12282 esac
12283 else
12284 lt_cv_deplibs_check_method=pass_all
12288 gnu*)
12289 lt_cv_deplibs_check_method=pass_all
12292 hpux10.20* | hpux11*)
12293 lt_cv_file_magic_cmd=/usr/bin/file
12294 case $host_cpu in
12295 ia64*)
12296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12297 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12299 hppa*64*)
12300 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]'
12301 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12305 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12307 esac
12310 interix3*)
12311 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12315 irix5* | irix6* | nonstopux*)
12316 case $LD in
12317 *-32|*"-32 ") libmagic=32-bit;;
12318 *-n32|*"-n32 ") libmagic=N32;;
12319 *-64|*"-64 ") libmagic=64-bit;;
12320 *) libmagic=never-match;;
12321 esac
12322 lt_cv_deplibs_check_method=pass_all
12325 # This must be Linux ELF.
12326 linux*)
12327 lt_cv_deplibs_check_method=pass_all
12330 netbsd*)
12331 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12333 else
12334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12338 newos6*)
12339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12340 lt_cv_file_magic_cmd=/usr/bin/file
12341 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12344 nto-qnx*)
12345 lt_cv_deplibs_check_method=unknown
12348 openbsd*)
12349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12351 else
12352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12356 osf3* | osf4* | osf5*)
12357 lt_cv_deplibs_check_method=pass_all
12360 solaris*)
12361 lt_cv_deplibs_check_method=pass_all
12364 sysv4 | sysv4.3*)
12365 case $host_vendor in
12366 motorola)
12367 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]'
12368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12370 ncr)
12371 lt_cv_deplibs_check_method=pass_all
12373 sequent)
12374 lt_cv_file_magic_cmd='/bin/file'
12375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12377 sni)
12378 lt_cv_file_magic_cmd='/bin/file'
12379 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12380 lt_cv_file_magic_test_file=/lib/libc.so
12382 siemens)
12383 lt_cv_deplibs_check_method=pass_all
12386 lt_cv_deplibs_check_method=pass_all
12388 esac
12391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12392 lt_cv_deplibs_check_method=pass_all
12394 esac
12397 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12398 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12399 file_magic_cmd=$lt_cv_file_magic_cmd
12400 deplibs_check_method=$lt_cv_deplibs_check_method
12401 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12405 # If no C compiler was specified, use CC.
12406 LTCC=${LTCC-"$CC"}
12408 # If no C compiler flags were specified, use CFLAGS.
12409 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12411 # Allow CC to be a program name with arguments.
12412 compiler=$CC
12414 # Check whether --enable-libtool-lock was given.
12415 if test "${enable_libtool_lock+set}" = set; then
12416 enableval=$enable_libtool_lock;
12419 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12421 # Some flags need to be propagated to the compiler or linker for good
12422 # libtool support.
12423 case $host in
12424 ia64-*-hpux*)
12425 # Find out which ABI we are using.
12426 echo 'int i;' > conftest.$ac_ext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; then
12432 case `/usr/bin/file conftest.$ac_objext` in
12433 *ELF-32*)
12434 HPUX_IA64_MODE="32"
12436 *ELF-64*)
12437 HPUX_IA64_MODE="64"
12439 esac
12441 rm -rf conftest*
12443 *-*-irix6*)
12444 # Find out which ABI we are using.
12445 echo '#line 12445 "configure"' > conftest.$ac_ext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; then
12451 if test "$lt_cv_prog_gnu_ld" = yes; then
12452 case `/usr/bin/file conftest.$ac_objext` in
12453 *32-bit*)
12454 LD="${LD-ld} -melf32bsmip"
12456 *N32*)
12457 LD="${LD-ld} -melf32bmipn32"
12459 *64-bit*)
12460 LD="${LD-ld} -melf64bmip"
12462 esac
12463 else
12464 case `/usr/bin/file conftest.$ac_objext` in
12465 *32-bit*)
12466 LD="${LD-ld} -32"
12468 *N32*)
12469 LD="${LD-ld} -n32"
12471 *64-bit*)
12472 LD="${LD-ld} -64"
12474 esac
12477 rm -rf conftest*
12480 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12481 # Find out which ABI we are using.
12482 echo 'int i;' > conftest.$ac_ext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; then
12488 case `/usr/bin/file conftest.o` in
12489 *32-bit*)
12490 case $host in
12491 x86_64-*linux*)
12492 LD="${LD-ld} -m elf_i386"
12494 ppc64-*linux*|powerpc64-*linux*)
12495 LD="${LD-ld} -m elf32ppclinux"
12497 s390x-*linux*)
12498 LD="${LD-ld} -m elf_s390"
12500 sparc64-*linux*)
12501 LD="${LD-ld} -m elf32_sparc"
12503 esac
12505 *64-bit*)
12506 case $host in
12507 x86_64-*linux*)
12508 LD="${LD-ld} -m elf_x86_64"
12510 ppc*-*linux*|powerpc*-*linux*)
12511 LD="${LD-ld} -m elf64ppc"
12513 s390*-*linux*)
12514 LD="${LD-ld} -m elf64_s390"
12516 sparc*-*linux*)
12517 LD="${LD-ld} -m elf64_sparc"
12519 esac
12521 esac
12523 rm -rf conftest*
12526 *-*-sco3.2v5*)
12527 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12528 SAVE_CFLAGS="$CFLAGS"
12529 CFLAGS="$CFLAGS -belf"
12530 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12531 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12532 if test "${lt_cv_cc_needs_belf+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535 ac_ext=c
12536 ac_cpp='$CPP $CPPFLAGS'
12537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12541 cat >conftest.$ac_ext <<_ACEOF
12542 /* confdefs.h. */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12549 main ()
12553 return 0;
12555 _ACEOF
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (ac_try="$ac_link"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_link") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
12570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571 { (case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_try") 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
12581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584 esac
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 lt_cv_cc_needs_belf=yes
12591 else
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 lt_cv_cc_needs_belf=no
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 ac_ext=c
12601 ac_cpp='$CPP $CPPFLAGS'
12602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12607 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12608 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12609 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12610 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12611 CFLAGS="$SAVE_CFLAGS"
12614 sparc*-*solaris*)
12615 # Find out which ABI we are using.
12616 echo 'int i;' > conftest.$ac_ext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; then
12622 case `/usr/bin/file conftest.o` in
12623 *64-bit*)
12624 case $lt_cv_prog_gnu_ld in
12625 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12626 *) LD="${LD-ld} -64" ;;
12627 esac
12629 esac
12631 rm -rf conftest*
12635 esac
12637 need_locks="$enable_libtool_lock"
12642 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12643 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12644 (test "X$CXX" != "Xg++"))) ; then
12645 ac_ext=cpp
12646 ac_cpp='$CXXCPP $CPPFLAGS'
12647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12650 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12651 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12652 if test -z "$CXXCPP"; then
12653 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656 # Double quotes because CXXCPP needs to be expanded
12657 for CXXCPP in "$CXX -E" "/lib/cpp"
12659 ac_preproc_ok=false
12660 for ac_cxx_preproc_warn_flag in '' yes
12662 # Use a header file that comes with gcc, so configuring glibc
12663 # with a fresh cross-compiler works.
12664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12665 # <limits.h> exists even on freestanding compilers.
12666 # On the NeXT, cc -E runs the code through the compiler's parser,
12667 # not just through cpp. "Syntax error" is here to catch this case.
12668 cat >conftest.$ac_ext <<_ACEOF
12669 /* confdefs.h. */
12670 _ACEOF
12671 cat confdefs.h >>conftest.$ac_ext
12672 cat >>conftest.$ac_ext <<_ACEOF
12673 /* end confdefs.h. */
12674 #ifdef __STDC__
12675 # include <limits.h>
12676 #else
12677 # include <assert.h>
12678 #endif
12679 Syntax error
12680 _ACEOF
12681 if { (ac_try="$ac_cpp conftest.$ac_ext"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685 esac
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } >/dev/null; then
12694 if test -s conftest.err; then
12695 ac_cpp_err=$ac_cxx_preproc_warn_flag
12696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12697 else
12698 ac_cpp_err=
12700 else
12701 ac_cpp_err=yes
12703 if test -z "$ac_cpp_err"; then
12705 else
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12709 # Broken: fails on valid input.
12710 continue
12713 rm -f conftest.err conftest.$ac_ext
12715 # OK, works on sane cases. Now check whether nonexistent headers
12716 # can be detected and how.
12717 cat >conftest.$ac_ext <<_ACEOF
12718 /* confdefs.h. */
12719 _ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 #include <ac_nonexistent.h>
12724 _ACEOF
12725 if { (ac_try="$ac_cpp conftest.$ac_ext"
12726 case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12732 ac_status=$?
12733 grep -v '^ *+' conftest.er1 >conftest.err
12734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } >/dev/null; then
12738 if test -s conftest.err; then
12739 ac_cpp_err=$ac_cxx_preproc_warn_flag
12740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12741 else
12742 ac_cpp_err=
12744 else
12745 ac_cpp_err=yes
12747 if test -z "$ac_cpp_err"; then
12748 # Broken: success on invalid input.
12749 continue
12750 else
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 # Passes both tests.
12755 ac_preproc_ok=:
12756 break
12759 rm -f conftest.err conftest.$ac_ext
12761 done
12762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12763 rm -f conftest.err conftest.$ac_ext
12764 if $ac_preproc_ok; then
12765 break
12768 done
12769 ac_cv_prog_CXXCPP=$CXXCPP
12772 CXXCPP=$ac_cv_prog_CXXCPP
12773 else
12774 ac_cv_prog_CXXCPP=$CXXCPP
12776 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12777 echo "${ECHO_T}$CXXCPP" >&6; }
12778 ac_preproc_ok=false
12779 for ac_cxx_preproc_warn_flag in '' yes
12781 # Use a header file that comes with gcc, so configuring glibc
12782 # with a fresh cross-compiler works.
12783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784 # <limits.h> exists even on freestanding compilers.
12785 # On the NeXT, cc -E runs the code through the compiler's parser,
12786 # not just through cpp. "Syntax error" is here to catch this case.
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 #ifdef __STDC__
12794 # include <limits.h>
12795 #else
12796 # include <assert.h>
12797 #endif
12798 Syntax error
12799 _ACEOF
12800 if { (ac_try="$ac_cpp conftest.$ac_ext"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } >/dev/null; then
12813 if test -s conftest.err; then
12814 ac_cpp_err=$ac_cxx_preproc_warn_flag
12815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12816 else
12817 ac_cpp_err=
12819 else
12820 ac_cpp_err=yes
12822 if test -z "$ac_cpp_err"; then
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 # Broken: fails on valid input.
12829 continue
12832 rm -f conftest.err conftest.$ac_ext
12834 # OK, works on sane cases. Now check whether nonexistent headers
12835 # can be detected and how.
12836 cat >conftest.$ac_ext <<_ACEOF
12837 /* confdefs.h. */
12838 _ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 #include <ac_nonexistent.h>
12843 _ACEOF
12844 if { (ac_try="$ac_cpp conftest.$ac_ext"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848 esac
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } >/dev/null; then
12857 if test -s conftest.err; then
12858 ac_cpp_err=$ac_cxx_preproc_warn_flag
12859 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12860 else
12861 ac_cpp_err=
12863 else
12864 ac_cpp_err=yes
12866 if test -z "$ac_cpp_err"; then
12867 # Broken: success on invalid input.
12868 continue
12869 else
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12873 # Passes both tests.
12874 ac_preproc_ok=:
12875 break
12878 rm -f conftest.err conftest.$ac_ext
12880 done
12881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12882 rm -f conftest.err conftest.$ac_ext
12883 if $ac_preproc_ok; then
12885 else
12886 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12887 See \`config.log' for more details." >&5
12888 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12889 See \`config.log' for more details." >&2;}
12890 { (exit 1); exit 1; }; }
12893 ac_ext=cpp
12894 ac_cpp='$CXXCPP $CPPFLAGS'
12895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12902 ac_ext=f
12903 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12904 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12905 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12906 if test -n "$ac_tool_prefix"; then
12907 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
12909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12913 if test "${ac_cv_prog_F77+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916 if test -n "$F77"; then
12917 ac_cv_prog_F77="$F77" # Let the user override the test.
12918 else
12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $PATH
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12926 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 break 2
12930 done
12931 done
12932 IFS=$as_save_IFS
12936 F77=$ac_cv_prog_F77
12937 if test -n "$F77"; then
12938 { echo "$as_me:$LINENO: result: $F77" >&5
12939 echo "${ECHO_T}$F77" >&6; }
12940 else
12941 { echo "$as_me:$LINENO: result: no" >&5
12942 echo "${ECHO_T}no" >&6; }
12946 test -n "$F77" && break
12947 done
12949 if test -z "$F77"; then
12950 ac_ct_F77=$F77
12951 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
12953 # Extract the first word of "$ac_prog", so it can be a program name with args.
12954 set dummy $ac_prog; ac_word=$2
12955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12957 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960 if test -n "$ac_ct_F77"; then
12961 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12962 else
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12966 IFS=$as_save_IFS
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12970 ac_cv_prog_ac_ct_F77="$ac_prog"
12971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 break 2
12974 done
12975 done
12976 IFS=$as_save_IFS
12980 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12981 if test -n "$ac_ct_F77"; then
12982 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12983 echo "${ECHO_T}$ac_ct_F77" >&6; }
12984 else
12985 { echo "$as_me:$LINENO: result: no" >&5
12986 echo "${ECHO_T}no" >&6; }
12990 test -n "$ac_ct_F77" && break
12991 done
12993 if test "x$ac_ct_F77" = x; then
12994 F77=""
12995 else
12996 case $cross_compiling:$ac_tool_warned in
12997 yes:)
12998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12999 whose name does not start with the host triplet. If you think this
13000 configuration is useful to you, please write to autoconf@gnu.org." >&5
13001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13002 whose name does not start with the host triplet. If you think this
13003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13004 ac_tool_warned=yes ;;
13005 esac
13006 F77=$ac_ct_F77
13011 # Provide some information about the compiler.
13012 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13013 ac_compiler=`set X $ac_compile; echo $2`
13014 { (ac_try="$ac_compiler --version >&5"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_compiler --version >&5") 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }
13024 { (ac_try="$ac_compiler -v >&5"
13025 case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_compiler -v >&5") 2>&5
13031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }
13034 { (ac_try="$ac_compiler -V >&5"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_compiler -V >&5") 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }
13044 rm -f a.out
13046 # If we don't use `.F' as extension, the preprocessor is not run on the
13047 # input file. (Note that this only needs to work for GNU compilers.)
13048 ac_save_ext=$ac_ext
13049 ac_ext=F
13050 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13051 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13052 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055 cat >conftest.$ac_ext <<_ACEOF
13056 program main
13057 #ifndef __GNUC__
13058 choke me
13059 #endif
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (ac_try="$ac_compile"
13065 case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13068 esac
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_compile") 2>conftest.er1
13071 ac_status=$?
13072 grep -v '^ *+' conftest.er1 >conftest.err
13073 rm -f conftest.er1
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13078 { (case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081 esac
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_try") 2>&5
13084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest.$ac_objext'
13088 { (case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13091 esac
13092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_try") 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_compiler_gnu=yes
13098 else
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13102 ac_compiler_gnu=no
13105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13109 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13110 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13111 ac_ext=$ac_save_ext
13112 ac_test_FFLAGS=${FFLAGS+set}
13113 ac_save_FFLAGS=$FFLAGS
13114 FFLAGS=
13115 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13116 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13117 if test "${ac_cv_prog_f77_g+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 else
13120 FFLAGS=-g
13121 cat >conftest.$ac_ext <<_ACEOF
13122 program main
13125 _ACEOF
13126 rm -f conftest.$ac_objext
13127 if { (ac_try="$ac_compile"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131 esac
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_compile") 2>conftest.er1
13134 ac_status=$?
13135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
13140 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13141 { (case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_try") 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest.$ac_objext'
13151 { (case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13154 esac
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_try") 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_cv_prog_f77_g=yes
13161 else
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_cv_prog_f77_g=no
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13171 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13172 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13173 if test "$ac_test_FFLAGS" = set; then
13174 FFLAGS=$ac_save_FFLAGS
13175 elif test $ac_cv_prog_f77_g = yes; then
13176 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13177 FFLAGS="-g -O2"
13178 else
13179 FFLAGS="-g"
13181 else
13182 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13183 FFLAGS="-O2"
13184 else
13185 FFLAGS=
13189 G77=`test $ac_compiler_gnu = yes && echo yes`
13190 ac_ext=c
13191 ac_cpp='$CPP $CPPFLAGS'
13192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13198 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13200 # find the maximum length of command line arguments
13201 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13202 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13203 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 else
13207 teststring="ABCD"
13209 case $build_os in
13210 msdosdjgpp*)
13211 # On DJGPP, this test can blow up pretty badly due to problems in libc
13212 # (any single argument exceeding 2000 bytes causes a buffer overrun
13213 # during glob expansion). Even if it were fixed, the result of this
13214 # check would be larger than it should be.
13215 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13218 gnu*)
13219 # Under GNU Hurd, this test is not required because there is
13220 # no limit to the length of command line arguments.
13221 # Libtool will interpret -1 as no limit whatsoever
13222 lt_cv_sys_max_cmd_len=-1;
13225 cygwin* | mingw*)
13226 # On Win9x/ME, this test blows up -- it succeeds, but takes
13227 # about 5 minutes as the teststring grows exponentially.
13228 # Worse, since 9x/ME are not pre-emptively multitasking,
13229 # you end up with a "frozen" computer, even though with patience
13230 # the test eventually succeeds (with a max line length of 256k).
13231 # Instead, let's just punt: use the minimum linelength reported by
13232 # all of the supported platforms: 8192 (on NT/2K/XP).
13233 lt_cv_sys_max_cmd_len=8192;
13236 amigaos*)
13237 # On AmigaOS with pdksh, this test takes hours, literally.
13238 # So we just punt and use a minimum line length of 8192.
13239 lt_cv_sys_max_cmd_len=8192;
13242 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13243 # This has been around since 386BSD, at least. Likely further.
13244 if test -x /sbin/sysctl; then
13245 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13246 elif test -x /usr/sbin/sysctl; then
13247 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13248 else
13249 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13251 # And add a safety zone
13252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13256 interix*)
13257 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13258 lt_cv_sys_max_cmd_len=196608
13261 osf*)
13262 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13263 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13264 # nice to cause kernel panics so lets avoid the loop below.
13265 # First set a reasonable default.
13266 lt_cv_sys_max_cmd_len=16384
13268 if test -x /sbin/sysconfig; then
13269 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13270 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13271 esac
13274 sco3.2v5*)
13275 lt_cv_sys_max_cmd_len=102400
13277 sysv5* | sco5v6* | sysv4.2uw2*)
13278 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13279 if test -n "$kargmax"; then
13280 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13281 else
13282 lt_cv_sys_max_cmd_len=32768
13286 # If test is not a shell built-in, we'll probably end up computing a
13287 # maximum length that is only half of the actual maximum length, but
13288 # we can't tell.
13289 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13290 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13291 = "XX$teststring") >/dev/null 2>&1 &&
13292 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13293 lt_cv_sys_max_cmd_len=$new_result &&
13294 test $i != 17 # 1/2 MB should be enough
13296 i=`expr $i + 1`
13297 teststring=$teststring$teststring
13298 done
13299 teststring=
13300 # Add a significant safety factor because C++ compilers can tack on massive
13301 # amounts of additional arguments before passing them to the linker.
13302 # It appears as though 1/2 is a usable value.
13303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13305 esac
13309 if test -n $lt_cv_sys_max_cmd_len ; then
13310 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13311 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13312 else
13313 { echo "$as_me:$LINENO: result: none" >&5
13314 echo "${ECHO_T}none" >&6; }
13320 # Check for command to grab the raw symbol name followed by C symbol from nm.
13321 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13322 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13323 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 else
13327 # These are sane defaults that work on at least a few old systems.
13328 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13330 # Character class describing NM global symbol codes.
13331 symcode='[BCDEGRST]'
13333 # Regexp to match symbols that can be accessed directly from C.
13334 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13336 # Transform an extracted symbol line into a proper C declaration
13337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13339 # Transform an extracted symbol line into symbol name and symbol address
13340 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13342 # Define system-specific variables.
13343 case $host_os in
13344 aix*)
13345 symcode='[BCDT]'
13347 cygwin* | mingw* | pw32*)
13348 symcode='[ABCDGISTW]'
13350 hpux*) # Its linker distinguishes data from code symbols
13351 if test "$host_cpu" = ia64; then
13352 symcode='[ABCDEGRST]'
13354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13355 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13357 linux*)
13358 if test "$host_cpu" = ia64; then
13359 symcode='[ABCDGIRSTW]'
13360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13361 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13364 irix* | nonstopux*)
13365 symcode='[BCDEGRST]'
13367 osf*)
13368 symcode='[BCDEGQRST]'
13370 solaris*)
13371 symcode='[BDRT]'
13373 sco3.2v5*)
13374 symcode='[DT]'
13376 sysv4.2uw2*)
13377 symcode='[DT]'
13379 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13380 symcode='[ABDT]'
13382 sysv4)
13383 symcode='[DFNSTU]'
13385 esac
13387 # Handle CRLF in mingw tool chain
13388 opt_cr=
13389 case $build_os in
13390 mingw*)
13391 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13393 esac
13395 # If we're using GNU nm, then use its standard symbol codes.
13396 case `$NM -V 2>&1` in
13397 *GNU* | *'with BFD'*)
13398 symcode='[ABCDGIRSTW]' ;;
13399 esac
13401 # Try without a prefix undercore, then with it.
13402 for ac_symprfx in "" "_"; do
13404 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13405 symxfrm="\\1 $ac_symprfx\\2 \\2"
13407 # Write the raw and C identifiers.
13408 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13410 # Check to see that the pipe works correctly.
13411 pipe_works=no
13413 rm -f conftest*
13414 cat > conftest.$ac_ext <<EOF
13415 #ifdef __cplusplus
13416 extern "C" {
13417 #endif
13418 char nm_test_var;
13419 void nm_test_func(){}
13420 #ifdef __cplusplus
13422 #endif
13423 int main(){nm_test_var='a';nm_test_func();return(0);}
13426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13427 (eval $ac_compile) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; then
13431 # Now try to grab the symbols.
13432 nlist=conftest.nm
13433 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13434 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && test -s "$nlist"; then
13438 # Try sorting and uniquifying the output.
13439 if sort "$nlist" | uniq > "$nlist"T; then
13440 mv -f "$nlist"T "$nlist"
13441 else
13442 rm -f "$nlist"T
13445 # Make sure that we snagged all the symbols we need.
13446 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13447 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13448 cat <<EOF > conftest.$ac_ext
13449 #ifdef __cplusplus
13450 extern "C" {
13451 #endif
13454 # Now generate the symbol file.
13455 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13457 cat <<EOF >> conftest.$ac_ext
13458 #if defined (__STDC__) && __STDC__
13459 # define lt_ptr_t void *
13460 #else
13461 # define lt_ptr_t char *
13462 # define const
13463 #endif
13465 /* The mapping between symbol names and symbols. */
13466 const struct {
13467 const char *name;
13468 lt_ptr_t address;
13470 lt_preloaded_symbols[] =
13473 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13474 cat <<\EOF >> conftest.$ac_ext
13475 {0, (lt_ptr_t) 0}
13478 #ifdef __cplusplus
13480 #endif
13482 # Now try linking the two files.
13483 mv conftest.$ac_objext conftstm.$ac_objext
13484 lt_save_LIBS="$LIBS"
13485 lt_save_CFLAGS="$CFLAGS"
13486 LIBS="conftstm.$ac_objext"
13487 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13493 pipe_works=yes
13495 LIBS="$lt_save_LIBS"
13496 CFLAGS="$lt_save_CFLAGS"
13497 else
13498 echo "cannot find nm_test_func in $nlist" >&5
13500 else
13501 echo "cannot find nm_test_var in $nlist" >&5
13503 else
13504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13506 else
13507 echo "$progname: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13510 rm -f conftest* conftst*
13512 # Do not use the global_symbol_pipe unless it works.
13513 if test "$pipe_works" = yes; then
13514 break
13515 else
13516 lt_cv_sys_global_symbol_pipe=
13518 done
13522 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13523 lt_cv_sys_global_symbol_to_cdecl=
13525 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13526 { echo "$as_me:$LINENO: result: failed" >&5
13527 echo "${ECHO_T}failed" >&6; }
13528 else
13529 { echo "$as_me:$LINENO: result: ok" >&5
13530 echo "${ECHO_T}ok" >&6; }
13533 { echo "$as_me:$LINENO: checking for objdir" >&5
13534 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13535 if test "${lt_cv_objdir+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538 rm -f .libs 2>/dev/null
13539 mkdir .libs 2>/dev/null
13540 if test -d .libs; then
13541 lt_cv_objdir=.libs
13542 else
13543 # MS-DOS does not allow filenames that begin with a dot.
13544 lt_cv_objdir=_libs
13546 rmdir .libs 2>/dev/null
13548 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13549 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13550 objdir=$lt_cv_objdir
13556 case $host_os in
13557 aix3*)
13558 # AIX sometimes has problems with the GCC collect2 program. For some
13559 # reason, if we set the COLLECT_NAMES environment variable, the problems
13560 # vanish in a puff of smoke.
13561 if test "X${COLLECT_NAMES+set}" != Xset; then
13562 COLLECT_NAMES=
13563 export COLLECT_NAMES
13566 esac
13568 # Sed substitution that helps us do robust quoting. It backslashifies
13569 # metacharacters that are still active within double-quoted strings.
13570 Xsed='sed -e 1s/^X//'
13571 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13573 # Same as above, but do not quote variable references.
13574 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13576 # Sed substitution to delay expansion of an escaped shell variable in a
13577 # double_quote_subst'ed string.
13578 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13580 # Sed substitution to avoid accidental globbing in evaled expressions
13581 no_glob_subst='s/\*/\\\*/g'
13583 # Constants:
13584 rm="rm -f"
13586 # Global variables:
13587 default_ofile=mklib
13588 can_build_shared=yes
13590 # All known linkers require a `.a' archive for static linking (except MSVC,
13591 # which needs '.lib').
13592 libext=a
13593 ltmain="$ac_aux_dir/ltmain.sh"
13594 ofile="$default_ofile"
13595 with_gnu_ld="$lt_cv_prog_gnu_ld"
13597 if test -n "$ac_tool_prefix"; then
13598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13599 set dummy ${ac_tool_prefix}ar; ac_word=$2
13600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13602 if test "${ac_cv_prog_AR+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 else
13605 if test -n "$AR"; then
13606 ac_cv_prog_AR="$AR" # Let the user override the test.
13607 else
13608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH
13611 IFS=$as_save_IFS
13612 test -z "$as_dir" && as_dir=.
13613 for ac_exec_ext in '' $ac_executable_extensions; do
13614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13615 ac_cv_prog_AR="${ac_tool_prefix}ar"
13616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 break 2
13619 done
13620 done
13621 IFS=$as_save_IFS
13625 AR=$ac_cv_prog_AR
13626 if test -n "$AR"; then
13627 { echo "$as_me:$LINENO: result: $AR" >&5
13628 echo "${ECHO_T}$AR" >&6; }
13629 else
13630 { echo "$as_me:$LINENO: result: no" >&5
13631 echo "${ECHO_T}no" >&6; }
13636 if test -z "$ac_cv_prog_AR"; then
13637 ac_ct_AR=$AR
13638 # Extract the first word of "ar", so it can be a program name with args.
13639 set dummy ar; ac_word=$2
13640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13642 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645 if test -n "$ac_ct_AR"; then
13646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13647 else
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13655 ac_cv_prog_ac_ct_AR="ar"
13656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 break 2
13659 done
13660 done
13661 IFS=$as_save_IFS
13665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13666 if test -n "$ac_ct_AR"; then
13667 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13668 echo "${ECHO_T}$ac_ct_AR" >&6; }
13669 else
13670 { echo "$as_me:$LINENO: result: no" >&5
13671 echo "${ECHO_T}no" >&6; }
13674 if test "x$ac_ct_AR" = x; then
13675 AR="false"
13676 else
13677 case $cross_compiling:$ac_tool_warned in
13678 yes:)
13679 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13680 whose name does not start with the host triplet. If you think this
13681 configuration is useful to you, please write to autoconf@gnu.org." >&5
13682 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13683 whose name does not start with the host triplet. If you think this
13684 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13685 ac_tool_warned=yes ;;
13686 esac
13687 AR=$ac_ct_AR
13689 else
13690 AR="$ac_cv_prog_AR"
13693 if test -n "$ac_tool_prefix"; then
13694 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13695 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13698 if test "${ac_cv_prog_RANLIB+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701 if test -n "$RANLIB"; then
13702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13703 else
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13707 IFS=$as_save_IFS
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
13710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13711 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13713 break 2
13715 done
13716 done
13717 IFS=$as_save_IFS
13721 RANLIB=$ac_cv_prog_RANLIB
13722 if test -n "$RANLIB"; then
13723 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13724 echo "${ECHO_T}$RANLIB" >&6; }
13725 else
13726 { echo "$as_me:$LINENO: result: no" >&5
13727 echo "${ECHO_T}no" >&6; }
13732 if test -z "$ac_cv_prog_RANLIB"; then
13733 ac_ct_RANLIB=$RANLIB
13734 # Extract the first word of "ranlib", so it can be a program name with args.
13735 set dummy ranlib; ac_word=$2
13736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13738 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 else
13741 if test -n "$ac_ct_RANLIB"; then
13742 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13743 else
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13747 IFS=$as_save_IFS
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13751 ac_cv_prog_ac_ct_RANLIB="ranlib"
13752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13753 break 2
13755 done
13756 done
13757 IFS=$as_save_IFS
13761 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13762 if test -n "$ac_ct_RANLIB"; then
13763 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13764 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13765 else
13766 { echo "$as_me:$LINENO: result: no" >&5
13767 echo "${ECHO_T}no" >&6; }
13770 if test "x$ac_ct_RANLIB" = x; then
13771 RANLIB=":"
13772 else
13773 case $cross_compiling:$ac_tool_warned in
13774 yes:)
13775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13776 whose name does not start with the host triplet. If you think this
13777 configuration is useful to you, please write to autoconf@gnu.org." >&5
13778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13779 whose name does not start with the host triplet. If you think this
13780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13781 ac_tool_warned=yes ;;
13782 esac
13783 RANLIB=$ac_ct_RANLIB
13785 else
13786 RANLIB="$ac_cv_prog_RANLIB"
13789 if test -n "$ac_tool_prefix"; then
13790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13791 set dummy ${ac_tool_prefix}strip; ac_word=$2
13792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13794 if test "${ac_cv_prog_STRIP+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797 if test -n "$STRIP"; then
13798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13799 else
13800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
13805 for ac_exec_ext in '' $ac_executable_extensions; do
13806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13809 break 2
13811 done
13812 done
13813 IFS=$as_save_IFS
13817 STRIP=$ac_cv_prog_STRIP
13818 if test -n "$STRIP"; then
13819 { echo "$as_me:$LINENO: result: $STRIP" >&5
13820 echo "${ECHO_T}$STRIP" >&6; }
13821 else
13822 { echo "$as_me:$LINENO: result: no" >&5
13823 echo "${ECHO_T}no" >&6; }
13828 if test -z "$ac_cv_prog_STRIP"; then
13829 ac_ct_STRIP=$STRIP
13830 # Extract the first word of "strip", so it can be a program name with args.
13831 set dummy strip; ac_word=$2
13832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13834 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837 if test -n "$ac_ct_STRIP"; then
13838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13839 else
13840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841 for as_dir in $PATH
13843 IFS=$as_save_IFS
13844 test -z "$as_dir" && as_dir=.
13845 for ac_exec_ext in '' $ac_executable_extensions; do
13846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13847 ac_cv_prog_ac_ct_STRIP="strip"
13848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13849 break 2
13851 done
13852 done
13853 IFS=$as_save_IFS
13857 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13858 if test -n "$ac_ct_STRIP"; then
13859 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13860 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13861 else
13862 { echo "$as_me:$LINENO: result: no" >&5
13863 echo "${ECHO_T}no" >&6; }
13866 if test "x$ac_ct_STRIP" = x; then
13867 STRIP=":"
13868 else
13869 case $cross_compiling:$ac_tool_warned in
13870 yes:)
13871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13872 whose name does not start with the host triplet. If you think this
13873 configuration is useful to you, please write to autoconf@gnu.org." >&5
13874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13875 whose name does not start with the host triplet. If you think this
13876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13877 ac_tool_warned=yes ;;
13878 esac
13879 STRIP=$ac_ct_STRIP
13881 else
13882 STRIP="$ac_cv_prog_STRIP"
13886 old_CC="$CC"
13887 old_CFLAGS="$CFLAGS"
13889 # Set sane defaults for various variables
13890 test -z "$AR" && AR=ar
13891 test -z "$AR_FLAGS" && AR_FLAGS=cru
13892 test -z "$AS" && AS=as
13893 test -z "$CC" && CC=cc
13894 test -z "$LTCC" && LTCC=$CC
13895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13896 test -z "$DLLTOOL" && DLLTOOL=dlltool
13897 test -z "$LD" && LD=ld
13898 test -z "$LN_S" && LN_S="ln -s"
13899 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13900 test -z "$NM" && NM=nm
13901 test -z "$SED" && SED=sed
13902 test -z "$OBJDUMP" && OBJDUMP=objdump
13903 test -z "$RANLIB" && RANLIB=:
13904 test -z "$STRIP" && STRIP=:
13905 test -z "$ac_objext" && ac_objext=o
13907 # Determine commands to create old-style static archives.
13908 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13909 old_postinstall_cmds='chmod 644 $oldlib'
13910 old_postuninstall_cmds=
13912 if test -n "$RANLIB"; then
13913 case $host_os in
13914 openbsd*)
13915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13920 esac
13921 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13924 for cc_temp in $compiler""; do
13925 case $cc_temp in
13926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13928 \-*) ;;
13929 *) break;;
13930 esac
13931 done
13932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13935 # Only perform the check for file, if the check method requires it
13936 case $deplibs_check_method in
13937 file_magic*)
13938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13939 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13940 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13941 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944 case $MAGIC_CMD in
13945 [\\/*] | ?:[\\/]*)
13946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13949 lt_save_MAGIC_CMD="$MAGIC_CMD"
13950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13952 for ac_dir in $ac_dummy; do
13953 IFS="$lt_save_ifs"
13954 test -z "$ac_dir" && ac_dir=.
13955 if test -f $ac_dir/${ac_tool_prefix}file; then
13956 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13957 if test -n "$file_magic_test_file"; then
13958 case $deplibs_check_method in
13959 "file_magic "*)
13960 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13963 $EGREP "$file_magic_regex" > /dev/null; then
13965 else
13966 cat <<EOF 1>&2
13968 *** Warning: the command libtool uses to detect shared libraries,
13969 *** $file_magic_cmd, produces output that libtool cannot recognize.
13970 *** The result is that libtool may fail to recognize shared libraries
13971 *** as such. This will affect the creation of libtool libraries that
13972 *** depend on shared libraries, but programs linked with such libtool
13973 *** libraries will work regardless of this problem. Nevertheless, you
13974 *** may want to report the problem to your system manager and/or to
13975 *** bug-libtool@gnu.org
13978 fi ;;
13979 esac
13981 break
13983 done
13984 IFS="$lt_save_ifs"
13985 MAGIC_CMD="$lt_save_MAGIC_CMD"
13987 esac
13990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991 if test -n "$MAGIC_CMD"; then
13992 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13993 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13994 else
13995 { echo "$as_me:$LINENO: result: no" >&5
13996 echo "${ECHO_T}no" >&6; }
13999 if test -z "$lt_cv_path_MAGIC_CMD"; then
14000 if test -n "$ac_tool_prefix"; then
14001 { echo "$as_me:$LINENO: checking for file" >&5
14002 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14003 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006 case $MAGIC_CMD in
14007 [\\/*] | ?:[\\/]*)
14008 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14011 lt_save_MAGIC_CMD="$MAGIC_CMD"
14012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14013 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14014 for ac_dir in $ac_dummy; do
14015 IFS="$lt_save_ifs"
14016 test -z "$ac_dir" && ac_dir=.
14017 if test -f $ac_dir/file; then
14018 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14019 if test -n "$file_magic_test_file"; then
14020 case $deplibs_check_method in
14021 "file_magic "*)
14022 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14025 $EGREP "$file_magic_regex" > /dev/null; then
14027 else
14028 cat <<EOF 1>&2
14030 *** Warning: the command libtool uses to detect shared libraries,
14031 *** $file_magic_cmd, produces output that libtool cannot recognize.
14032 *** The result is that libtool may fail to recognize shared libraries
14033 *** as such. This will affect the creation of libtool libraries that
14034 *** depend on shared libraries, but programs linked with such libtool
14035 *** libraries will work regardless of this problem. Nevertheless, you
14036 *** may want to report the problem to your system manager and/or to
14037 *** bug-libtool@gnu.org
14040 fi ;;
14041 esac
14043 break
14045 done
14046 IFS="$lt_save_ifs"
14047 MAGIC_CMD="$lt_save_MAGIC_CMD"
14049 esac
14052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14053 if test -n "$MAGIC_CMD"; then
14054 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14055 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14056 else
14057 { echo "$as_me:$LINENO: result: no" >&5
14058 echo "${ECHO_T}no" >&6; }
14061 else
14062 MAGIC_CMD=:
14068 esac
14070 enable_dlopen=yes
14071 enable_win32_dll=no
14073 # Check whether --enable-libtool-lock was given.
14074 if test "${enable_libtool_lock+set}" = set; then
14075 enableval=$enable_libtool_lock;
14078 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14081 # Check whether --with-pic was given.
14082 if test "${with_pic+set}" = set; then
14083 withval=$with_pic; pic_mode="$withval"
14084 else
14085 pic_mode=default
14088 test -z "$pic_mode" && pic_mode=default
14090 # Use C for the default configuration in the libtool script
14091 tagname=
14092 lt_save_CC="$CC"
14093 ac_ext=c
14094 ac_cpp='$CPP $CPPFLAGS'
14095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100 # Source file extension for C test sources.
14101 ac_ext=c
14103 # Object file extension for compiled C test sources.
14104 objext=o
14105 objext=$objext
14107 # Code to be used in simple compile tests
14108 lt_simple_compile_test_code="int some_variable = 0;\n"
14110 # Code to be used in simple link tests
14111 lt_simple_link_test_code='int main(){return(0);}\n'
14114 # If no C compiler was specified, use CC.
14115 LTCC=${LTCC-"$CC"}
14117 # If no C compiler flags were specified, use CFLAGS.
14118 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14120 # Allow CC to be a program name with arguments.
14121 compiler=$CC
14124 # save warnings/boilerplate of simple test code
14125 ac_outfile=conftest.$ac_objext
14126 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14127 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14128 _lt_compiler_boilerplate=`cat conftest.err`
14129 $rm conftest*
14131 ac_outfile=conftest.$ac_objext
14132 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14133 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14134 _lt_linker_boilerplate=`cat conftest.err`
14135 $rm conftest*
14139 lt_prog_compiler_no_builtin_flag=
14141 if test "$GCC" = yes; then
14142 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14145 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14146 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14147 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150 lt_cv_prog_compiler_rtti_exceptions=no
14151 ac_outfile=conftest.$ac_objext
14152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14153 lt_compiler_flag="-fno-rtti -fno-exceptions"
14154 # Insert the option either (1) after the last *FLAGS variable, or
14155 # (2) before a word containing "conftest.", or (3) at the end.
14156 # Note that $ac_compile itself does not contain backslashes and begins
14157 # with a dollar sign (not a hyphen), so the echo should work correctly.
14158 # The option is referenced via a variable to avoid confusing sed.
14159 lt_compile=`echo "$ac_compile" | $SED \
14160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14162 -e 's:$: $lt_compiler_flag:'`
14163 (eval echo "\"\$as_me:14163: $lt_compile\"" >&5)
14164 (eval "$lt_compile" 2>conftest.err)
14165 ac_status=$?
14166 cat conftest.err >&5
14167 echo "$as_me:14167: \$? = $ac_status" >&5
14168 if (exit $ac_status) && test -s "$ac_outfile"; then
14169 # The compiler can only warn and ignore the option if not recognized
14170 # So say no if there are warnings other than the usual output.
14171 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14174 lt_cv_prog_compiler_rtti_exceptions=yes
14177 $rm conftest*
14180 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14181 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14183 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14184 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14185 else
14191 lt_prog_compiler_wl=
14192 lt_prog_compiler_pic=
14193 lt_prog_compiler_static=
14195 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14196 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14198 if test "$GCC" = yes; then
14199 lt_prog_compiler_wl='-Wl,'
14200 lt_prog_compiler_static='-static'
14202 case $host_os in
14203 aix*)
14204 # All AIX code is PIC.
14205 if test "$host_cpu" = ia64; then
14206 # AIX 5 now supports IA64 processor
14207 lt_prog_compiler_static='-Bstatic'
14211 amigaos*)
14212 # FIXME: we need at least 68020 code to build shared libraries, but
14213 # adding the `-m68020' flag to GCC prevents building anything better,
14214 # like `-m68040'.
14215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14218 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14219 # PIC is the default for these OSes.
14222 mingw* | pw32* | os2*)
14223 # This hack is so that the source file can tell whether it is being
14224 # built for inclusion in a dll (and should export symbols for example).
14225 lt_prog_compiler_pic='-DDLL_EXPORT'
14228 darwin* | rhapsody*)
14229 # PIC is the default on this platform
14230 # Common symbols not allowed in MH_DYLIB files
14231 lt_prog_compiler_pic='-fno-common'
14234 interix3*)
14235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14236 # Instead, we relocate shared libraries at runtime.
14239 msdosdjgpp*)
14240 # Just because we use GCC doesn't mean we suddenly get shared libraries
14241 # on systems that don't support them.
14242 lt_prog_compiler_can_build_shared=no
14243 enable_shared=no
14246 sysv4*MP*)
14247 if test -d /usr/nec; then
14248 lt_prog_compiler_pic=-Kconform_pic
14252 hpux*)
14253 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14254 # not for PA HP-UX.
14255 case $host_cpu in
14256 hppa*64*|ia64*)
14257 # +Z the default
14260 lt_prog_compiler_pic='-fPIC'
14262 esac
14266 lt_prog_compiler_pic='-fPIC'
14268 esac
14269 else
14270 # PORTME Check for flag to pass linker flags through the system compiler.
14271 case $host_os in
14272 aix*)
14273 lt_prog_compiler_wl='-Wl,'
14274 if test "$host_cpu" = ia64; then
14275 # AIX 5 now supports IA64 processor
14276 lt_prog_compiler_static='-Bstatic'
14277 else
14278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14281 darwin*)
14282 # PIC is the default on this platform
14283 # Common symbols not allowed in MH_DYLIB files
14284 case $cc_basename in
14285 xlc*)
14286 lt_prog_compiler_pic='-qnocommon'
14287 lt_prog_compiler_wl='-Wl,'
14289 esac
14292 mingw* | pw32* | os2*)
14293 # This hack is so that the source file can tell whether it is being
14294 # built for inclusion in a dll (and should export symbols for example).
14295 lt_prog_compiler_pic='-DDLL_EXPORT'
14298 hpux9* | hpux10* | hpux11*)
14299 lt_prog_compiler_wl='-Wl,'
14300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14301 # not for PA HP-UX.
14302 case $host_cpu in
14303 hppa*64*|ia64*)
14304 # +Z the default
14307 lt_prog_compiler_pic='+Z'
14309 esac
14310 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14311 lt_prog_compiler_static='${wl}-a ${wl}archive'
14314 irix5* | irix6* | nonstopux*)
14315 lt_prog_compiler_wl='-Wl,'
14316 # PIC (with -KPIC) is the default.
14317 lt_prog_compiler_static='-non_shared'
14320 newsos6)
14321 lt_prog_compiler_pic='-KPIC'
14322 lt_prog_compiler_static='-Bstatic'
14325 linux*)
14326 case $cc_basename in
14327 icc* | ecc*)
14328 lt_prog_compiler_wl='-Wl,'
14329 lt_prog_compiler_pic='-KPIC'
14330 lt_prog_compiler_static='-static'
14332 pgcc* | pgf77* | pgf90* | pgf95*)
14333 # Portland Group compilers (*not* the Pentium gcc compiler,
14334 # which looks to be a dead project)
14335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_pic='-fpic'
14337 lt_prog_compiler_static='-Bstatic'
14339 ccc*)
14340 lt_prog_compiler_wl='-Wl,'
14341 # All Alpha code is PIC.
14342 lt_prog_compiler_static='-non_shared'
14344 esac
14347 osf3* | osf4* | osf5*)
14348 lt_prog_compiler_wl='-Wl,'
14349 # All OSF/1 code is PIC.
14350 lt_prog_compiler_static='-non_shared'
14353 solaris*)
14354 lt_prog_compiler_pic='-KPIC'
14355 lt_prog_compiler_static='-Bstatic'
14356 case $cc_basename in
14357 f77* | f90* | f95*)
14358 lt_prog_compiler_wl='-Qoption ld ';;
14360 lt_prog_compiler_wl='-Wl,';;
14361 esac
14364 sunos4*)
14365 lt_prog_compiler_wl='-Qoption ld '
14366 lt_prog_compiler_pic='-PIC'
14367 lt_prog_compiler_static='-Bstatic'
14370 sysv4 | sysv4.2uw2* | sysv4.3*)
14371 lt_prog_compiler_wl='-Wl,'
14372 lt_prog_compiler_pic='-KPIC'
14373 lt_prog_compiler_static='-Bstatic'
14376 sysv4*MP*)
14377 if test -d /usr/nec ;then
14378 lt_prog_compiler_pic='-Kconform_pic'
14379 lt_prog_compiler_static='-Bstatic'
14383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14384 lt_prog_compiler_wl='-Wl,'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-Bstatic'
14389 unicos*)
14390 lt_prog_compiler_wl='-Wl,'
14391 lt_prog_compiler_can_build_shared=no
14394 uts4*)
14395 lt_prog_compiler_pic='-pic'
14396 lt_prog_compiler_static='-Bstatic'
14400 lt_prog_compiler_can_build_shared=no
14402 esac
14405 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14406 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14409 # Check to make sure the PIC flag actually works.
14411 if test -n "$lt_prog_compiler_pic"; then
14413 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14414 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14415 if test "${lt_prog_compiler_pic_works+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 else
14418 lt_prog_compiler_pic_works=no
14419 ac_outfile=conftest.$ac_objext
14420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14422 # Insert the option either (1) after the last *FLAGS variable, or
14423 # (2) before a word containing "conftest.", or (3) at the end.
14424 # Note that $ac_compile itself does not contain backslashes and begins
14425 # with a dollar sign (not a hyphen), so the echo should work correctly.
14426 # The option is referenced via a variable to avoid confusing sed.
14427 lt_compile=`echo "$ac_compile" | $SED \
14428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14430 -e 's:$: $lt_compiler_flag:'`
14431 (eval echo "\"\$as_me:14431: $lt_compile\"" >&5)
14432 (eval "$lt_compile" 2>conftest.err)
14433 ac_status=$?
14434 cat conftest.err >&5
14435 echo "$as_me:14435: \$? = $ac_status" >&5
14436 if (exit $ac_status) && test -s "$ac_outfile"; then
14437 # The compiler can only warn and ignore the option if not recognized
14438 # So say no if there are warnings other than the usual output.
14439 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14442 lt_prog_compiler_pic_works=yes
14445 $rm conftest*
14448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14449 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14451 if test x"$lt_prog_compiler_pic_works" = xyes; then
14452 case $lt_prog_compiler_pic in
14453 "" | " "*) ;;
14454 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14455 esac
14456 else
14457 lt_prog_compiler_pic=
14458 lt_prog_compiler_can_build_shared=no
14462 case $host_os in
14463 # For platforms which do not support PIC, -DPIC is meaningless:
14464 *djgpp*)
14465 lt_prog_compiler_pic=
14468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14470 esac
14473 # Check to make sure the static flag actually works.
14475 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14476 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14477 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14478 if test "${lt_prog_compiler_static_works+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 else
14481 lt_prog_compiler_static_works=no
14482 save_LDFLAGS="$LDFLAGS"
14483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14484 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14486 # The linker can only warn and ignore the option if not recognized
14487 # So say no if there are warnings
14488 if test -s conftest.err; then
14489 # Append any errors to the config.log.
14490 cat conftest.err 1>&5
14491 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14493 if diff conftest.exp conftest.er2 >/dev/null; then
14494 lt_prog_compiler_static_works=yes
14496 else
14497 lt_prog_compiler_static_works=yes
14500 $rm conftest*
14501 LDFLAGS="$save_LDFLAGS"
14504 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14505 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14507 if test x"$lt_prog_compiler_static_works" = xyes; then
14509 else
14510 lt_prog_compiler_static=
14514 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14515 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 else
14519 lt_cv_prog_compiler_c_o=no
14520 $rm -r conftest 2>/dev/null
14521 mkdir conftest
14522 cd conftest
14523 mkdir out
14524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14526 lt_compiler_flag="-o out/conftest2.$ac_objext"
14527 # Insert the option either (1) after the last *FLAGS variable, or
14528 # (2) before a word containing "conftest.", or (3) at the end.
14529 # Note that $ac_compile itself does not contain backslashes and begins
14530 # with a dollar sign (not a hyphen), so the echo should work correctly.
14531 lt_compile=`echo "$ac_compile" | $SED \
14532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14534 -e 's:$: $lt_compiler_flag:'`
14535 (eval echo "\"\$as_me:14535: $lt_compile\"" >&5)
14536 (eval "$lt_compile" 2>out/conftest.err)
14537 ac_status=$?
14538 cat out/conftest.err >&5
14539 echo "$as_me:14539: \$? = $ac_status" >&5
14540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14541 then
14542 # The compiler can only warn and ignore the option if not recognized
14543 # So say no if there are warnings
14544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14547 lt_cv_prog_compiler_c_o=yes
14550 chmod u+w . 2>&5
14551 $rm conftest*
14552 # SGI C++ compiler will create directory out/ii_files/ for
14553 # template instantiation
14554 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14555 $rm out/* && rmdir out
14556 cd ..
14557 rmdir conftest
14558 $rm conftest*
14561 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14562 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14565 hard_links="nottested"
14566 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14567 # do not overwrite the value of need_locks provided by the user
14568 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14569 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14570 hard_links=yes
14571 $rm conftest*
14572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14573 touch conftest.a
14574 ln conftest.a conftest.b 2>&5 || hard_links=no
14575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14576 { echo "$as_me:$LINENO: result: $hard_links" >&5
14577 echo "${ECHO_T}$hard_links" >&6; }
14578 if test "$hard_links" = no; then
14579 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14580 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14581 need_locks=warn
14583 else
14584 need_locks=no
14587 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14588 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14590 runpath_var=
14591 allow_undefined_flag=
14592 enable_shared_with_static_runtimes=no
14593 archive_cmds=
14594 archive_expsym_cmds=
14595 old_archive_From_new_cmds=
14596 old_archive_from_expsyms_cmds=
14597 export_dynamic_flag_spec=
14598 whole_archive_flag_spec=
14599 thread_safe_flag_spec=
14600 hardcode_libdir_flag_spec=
14601 hardcode_libdir_flag_spec_ld=
14602 hardcode_libdir_separator=
14603 hardcode_direct=no
14604 hardcode_minus_L=no
14605 hardcode_shlibpath_var=unsupported
14606 link_all_deplibs=unknown
14607 hardcode_automatic=no
14608 module_cmds=
14609 module_expsym_cmds=
14610 always_export_symbols=no
14611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14612 # include_expsyms should be a list of space-separated symbols to be *always*
14613 # included in the symbol list
14614 include_expsyms=
14615 # exclude_expsyms can be an extended regexp of symbols to exclude
14616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14617 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14618 # as well as any symbol that contains `d'.
14619 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14621 # platforms (ab)use it in PIC code, but their linkers get confused if
14622 # the symbol is explicitly referenced. Since portable code cannot
14623 # rely on this symbol name, it's probably fine to never include it in
14624 # preloaded symbol tables.
14625 extract_expsyms_cmds=
14626 # Just being paranoid about ensuring that cc_basename is set.
14627 for cc_temp in $compiler""; do
14628 case $cc_temp in
14629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14631 \-*) ;;
14632 *) break;;
14633 esac
14634 done
14635 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14637 case $host_os in
14638 cygwin* | mingw* | pw32*)
14639 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14640 # When not using gcc, we currently assume that we are using
14641 # Microsoft Visual C++.
14642 if test "$GCC" != yes; then
14643 with_gnu_ld=no
14646 interix*)
14647 # we just hope/assume this is gcc and not c89 (= MSVC++)
14648 with_gnu_ld=yes
14650 openbsd*)
14651 with_gnu_ld=no
14653 esac
14655 ld_shlibs=yes
14656 if test "$with_gnu_ld" = yes; then
14657 # If archive_cmds runs LD, not CC, wlarc should be empty
14658 wlarc='${wl}'
14660 # Set some defaults for GNU ld with shared library support. These
14661 # are reset later if shared libraries are not supported. Putting them
14662 # here allows them to be overridden if necessary.
14663 runpath_var=LD_RUN_PATH
14664 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14665 export_dynamic_flag_spec='${wl}--export-dynamic'
14666 # ancient GNU ld didn't support --whole-archive et. al.
14667 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14668 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14669 else
14670 whole_archive_flag_spec=
14672 supports_anon_versioning=no
14673 case `$LD -v 2>/dev/null` in
14674 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14675 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14676 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14677 *\ 2.11.*) ;; # other 2.11 versions
14678 *) supports_anon_versioning=yes ;;
14679 esac
14681 # See if GNU ld supports shared libraries.
14682 case $host_os in
14683 aix3* | aix4* | aix5*)
14684 # On AIX/PPC, the GNU linker is very broken
14685 if test "$host_cpu" != ia64; then
14686 ld_shlibs=no
14687 cat <<EOF 1>&2
14689 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14690 *** to be unable to reliably create shared libraries on AIX.
14691 *** Therefore, libtool is disabling shared libraries support. If you
14692 *** really care for shared libraries, you may want to modify your PATH
14693 *** so that a non-GNU linker is found, and then restart.
14699 amigaos*)
14700 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)'
14701 hardcode_libdir_flag_spec='-L$libdir'
14702 hardcode_minus_L=yes
14704 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14705 # that the semantics of dynamic libraries on AmigaOS, at least up
14706 # to version 4, is to share data among multiple programs linked
14707 # with the same dynamic library. Since this doesn't match the
14708 # behavior of shared libraries on other platforms, we can't use
14709 # them.
14710 ld_shlibs=no
14713 beos*)
14714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14715 allow_undefined_flag=unsupported
14716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14717 # support --undefined. This deserves some investigation. FIXME
14718 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14719 else
14720 ld_shlibs=no
14724 cygwin* | mingw* | pw32*)
14725 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14726 # as there is no search path for DLLs.
14727 hardcode_libdir_flag_spec='-L$libdir'
14728 allow_undefined_flag=unsupported
14729 always_export_symbols=no
14730 enable_shared_with_static_runtimes=yes
14731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14733 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14735 # If the export-symbols file already is a .def file (1st line
14736 # is EXPORTS), use it as is; otherwise, prepend...
14737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14738 cp $export_symbols $output_objdir/$soname.def;
14739 else
14740 echo EXPORTS > $output_objdir/$soname.def;
14741 cat $export_symbols >> $output_objdir/$soname.def;
14743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14744 else
14745 ld_shlibs=no
14749 interix3*)
14750 hardcode_direct=no
14751 hardcode_shlibpath_var=no
14752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14753 export_dynamic_flag_spec='${wl}-E'
14754 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14755 # Instead, shared libraries are loaded at an image base (0x10000000 by
14756 # default) and relocated if they conflict, which is a slow very memory
14757 # consuming and fragmenting process. To avoid this, we pick a random,
14758 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14759 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14761 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'
14764 linux*)
14765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14766 tmp_addflag=
14767 case $cc_basename,$host_cpu in
14768 pgcc*) # Portland Group C compiler
14769 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'
14770 tmp_addflag=' $pic_flag'
14772 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14773 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'
14774 tmp_addflag=' $pic_flag -Mnomain' ;;
14775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14776 tmp_addflag=' -i_dynamic' ;;
14777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14778 tmp_addflag=' -i_dynamic -nofor_main' ;;
14779 ifc* | ifort*) # Intel Fortran compiler
14780 tmp_addflag=' -nofor_main' ;;
14781 esac
14782 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784 if test $supports_anon_versioning = yes; then
14785 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14787 $echo "local: *; };" >> $output_objdir/$libname.ver~
14788 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14790 else
14791 ld_shlibs=no
14795 netbsd*)
14796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14797 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14798 wlarc=
14799 else
14800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14805 solaris*)
14806 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14807 ld_shlibs=no
14808 cat <<EOF 1>&2
14810 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14811 *** create shared libraries on Solaris systems. Therefore, libtool
14812 *** is disabling shared libraries support. We urge you to upgrade GNU
14813 *** binutils to release 2.9.1 or newer. Another option is to modify
14814 *** your PATH or compiler configuration so that the native linker is
14815 *** used, and then restart.
14818 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14821 else
14822 ld_shlibs=no
14826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14827 case `$LD -v 2>&1` in
14828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14829 ld_shlibs=no
14830 cat <<_LT_EOF 1>&2
14832 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14833 *** reliably create shared libraries on SCO systems. Therefore, libtool
14834 *** is disabling shared libraries support. We urge you to upgrade GNU
14835 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14836 *** your PATH or compiler configuration so that the native linker is
14837 *** used, and then restart.
14839 _LT_EOF
14842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14843 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14846 else
14847 ld_shlibs=no
14850 esac
14853 sunos4*)
14854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14855 wlarc=
14856 hardcode_direct=yes
14857 hardcode_shlibpath_var=no
14861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14864 else
14865 ld_shlibs=no
14868 esac
14870 if test "$ld_shlibs" = no; then
14871 runpath_var=
14872 hardcode_libdir_flag_spec=
14873 export_dynamic_flag_spec=
14874 whole_archive_flag_spec=
14876 else
14877 # PORTME fill in a description of your system's linker (not GNU ld)
14878 case $host_os in
14879 aix3*)
14880 allow_undefined_flag=unsupported
14881 always_export_symbols=yes
14882 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'
14883 # Note: this linker hardcodes the directories in LIBPATH if there
14884 # are no directories specified by -L.
14885 hardcode_minus_L=yes
14886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14887 # Neither direct hardcoding nor static linking is supported with a
14888 # broken collect2.
14889 hardcode_direct=unsupported
14893 aix4* | aix5*)
14894 if test "$host_cpu" = ia64; then
14895 # On IA64, the linker does run time linking by default, so we don't
14896 # have to do anything special.
14897 aix_use_runtimelinking=no
14898 exp_sym_flag='-Bexport'
14899 no_entry_flag=""
14900 else
14901 # If we're using GNU nm, then we don't want the "-C" option.
14902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14903 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14904 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'
14905 else
14906 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'
14908 aix_use_runtimelinking=no
14910 # Test if we are trying to use run time linking or normal
14911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14912 # need to do runtime linking.
14913 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14914 for ld_flag in $LDFLAGS; do
14915 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14916 aix_use_runtimelinking=yes
14917 break
14919 done
14921 esac
14923 exp_sym_flag='-bexport'
14924 no_entry_flag='-bnoentry'
14927 # When large executables or shared objects are built, AIX ld can
14928 # have problems creating the table of contents. If linking a library
14929 # or program results in "error TOC overflow" add -mminimal-toc to
14930 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14931 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14933 archive_cmds=''
14934 hardcode_direct=yes
14935 hardcode_libdir_separator=':'
14936 link_all_deplibs=yes
14938 if test "$GCC" = yes; then
14939 case $host_os in aix4.[012]|aix4.[012].*)
14940 # We only want to do this on AIX 4.2 and lower, the check
14941 # below for broken collect2 doesn't work under 4.3+
14942 collect2name=`${CC} -print-prog-name=collect2`
14943 if test -f "$collect2name" && \
14944 strings "$collect2name" | grep resolve_lib_name >/dev/null
14945 then
14946 # We have reworked collect2
14947 hardcode_direct=yes
14948 else
14949 # We have old collect2
14950 hardcode_direct=unsupported
14951 # It fails to find uninstalled libraries when the uninstalled
14952 # path is not listed in the libpath. Setting hardcode_minus_L
14953 # to unsupported forces relinking
14954 hardcode_minus_L=yes
14955 hardcode_libdir_flag_spec='-L$libdir'
14956 hardcode_libdir_separator=
14959 esac
14960 shared_flag='-shared'
14961 if test "$aix_use_runtimelinking" = yes; then
14962 shared_flag="$shared_flag "'${wl}-G'
14964 else
14965 # not using gcc
14966 if test "$host_cpu" = ia64; then
14967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14968 # chokes on -Wl,-G. The following line is correct:
14969 shared_flag='-G'
14970 else
14971 if test "$aix_use_runtimelinking" = yes; then
14972 shared_flag='${wl}-G'
14973 else
14974 shared_flag='${wl}-bM:SRE'
14979 # It seems that -bexpall does not export symbols beginning with
14980 # underscore (_), so it is better to generate a list of symbols to export.
14981 always_export_symbols=yes
14982 if test "$aix_use_runtimelinking" = yes; then
14983 # Warning - without using the other runtime loading flags (-brtl),
14984 # -berok will link without error, but may produce a broken library.
14985 allow_undefined_flag='-berok'
14986 # Determine the default libpath from the value encoded in an empty executable.
14987 cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h. */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h. */
14995 main ()
14999 return 0;
15001 _ACEOF
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (ac_try="$ac_link"
15004 case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15007 esac
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_link") 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
15016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15017 { (case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020 esac
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_try") 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest$ac_exeext'
15027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }; then
15037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15039 # Check for a 64-bit object if we didn't find anything.
15040 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15041 }'`; fi
15042 else
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15049 rm -f core conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15054 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15055 else
15056 if test "$host_cpu" = ia64; then
15057 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15058 allow_undefined_flag="-z nodefs"
15059 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"
15060 else
15061 # Determine the default libpath from the value encoded in an empty executable.
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h. */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15070 main ()
15074 return 0;
15076 _ACEOF
15077 rm -f conftest.$ac_objext conftest$ac_exeext
15078 if { (ac_try="$ac_link"
15079 case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15082 esac
15083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_link") 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest$ac_exeext'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105 esac
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15114 # Check for a 64-bit object if we didn't find anything.
15115 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15116 }'`; fi
15117 else
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15124 rm -f core conftest.err conftest.$ac_objext \
15125 conftest$ac_exeext conftest.$ac_ext
15126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15129 # Warning - without using the other run time loading flags,
15130 # -berok will link without error, but may produce a broken library.
15131 no_undefined_flag=' ${wl}-bernotok'
15132 allow_undefined_flag=' ${wl}-berok'
15133 # Exported symbols can be pulled into shared objects from archives
15134 whole_archive_flag_spec='$convenience'
15135 archive_cmds_need_lc=yes
15136 # This is similar to how AIX traditionally builds its shared libraries.
15137 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'
15142 amigaos*)
15143 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)'
15144 hardcode_libdir_flag_spec='-L$libdir'
15145 hardcode_minus_L=yes
15146 # see comment about different semantics on the GNU ld section
15147 ld_shlibs=no
15150 bsdi[45]*)
15151 export_dynamic_flag_spec=-rdynamic
15154 cygwin* | mingw* | pw32*)
15155 # When not using gcc, we currently assume that we are using
15156 # Microsoft Visual C++.
15157 # hardcode_libdir_flag_spec is actually meaningless, as there is
15158 # no search path for DLLs.
15159 hardcode_libdir_flag_spec=' '
15160 allow_undefined_flag=unsupported
15161 # Tell ltmain to make .lib files, not .a files.
15162 libext=lib
15163 # Tell ltmain to make .dll files, not .so files.
15164 shrext_cmds=".dll"
15165 # FIXME: Setting linknames here is a bad hack.
15166 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15167 # The linker will automatically build a .lib file if we build a DLL.
15168 old_archive_From_new_cmds='true'
15169 # FIXME: Should let the user specify the lib program.
15170 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15171 fix_srcfile_path='`cygpath -w "$srcfile"`'
15172 enable_shared_with_static_runtimes=yes
15175 darwin* | rhapsody*)
15176 case $host_os in
15177 rhapsody* | darwin1.[012])
15178 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15180 *) # Darwin 1.3 on
15181 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15182 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15183 else
15184 case ${MACOSX_DEPLOYMENT_TARGET} in
15185 10.[012])
15186 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15188 10.*)
15189 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15191 esac
15194 esac
15195 archive_cmds_need_lc=no
15196 hardcode_direct=no
15197 hardcode_automatic=yes
15198 hardcode_shlibpath_var=unsupported
15199 whole_archive_flag_spec=''
15200 link_all_deplibs=yes
15201 if test "$GCC" = yes ; then
15202 output_verbose_link_cmd='echo'
15203 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15204 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15206 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15207 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15208 else
15209 case $cc_basename in
15210 xlc*)
15211 output_verbose_link_cmd='echo'
15212 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15213 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15215 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15216 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15219 ld_shlibs=no
15221 esac
15225 dgux*)
15226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15227 hardcode_libdir_flag_spec='-L$libdir'
15228 hardcode_shlibpath_var=no
15231 freebsd1*)
15232 ld_shlibs=no
15235 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15236 # support. Future versions do this automatically, but an explicit c++rt0.o
15237 # does not break anything, and helps significantly (at the cost of a little
15238 # extra space).
15239 freebsd2.2*)
15240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15241 hardcode_libdir_flag_spec='-R$libdir'
15242 hardcode_direct=yes
15243 hardcode_shlibpath_var=no
15246 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15247 freebsd2*)
15248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15249 hardcode_direct=yes
15250 hardcode_minus_L=yes
15251 hardcode_shlibpath_var=no
15254 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15255 freebsd* | kfreebsd*-gnu | dragonfly*)
15256 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15257 hardcode_libdir_flag_spec='-R$libdir'
15258 hardcode_direct=yes
15259 hardcode_shlibpath_var=no
15262 hpux9*)
15263 if test "$GCC" = yes; then
15264 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'
15265 else
15266 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'
15268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15269 hardcode_libdir_separator=:
15270 hardcode_direct=yes
15272 # hardcode_minus_L: Not really in the search PATH,
15273 # but as the default location of the library.
15274 hardcode_minus_L=yes
15275 export_dynamic_flag_spec='${wl}-E'
15278 hpux10*)
15279 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15280 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15281 else
15282 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15284 if test "$with_gnu_ld" = no; then
15285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15286 hardcode_libdir_separator=:
15288 hardcode_direct=yes
15289 export_dynamic_flag_spec='${wl}-E'
15291 # hardcode_minus_L: Not really in the search PATH,
15292 # but as the default location of the library.
15293 hardcode_minus_L=yes
15297 hpux11*)
15298 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15299 case $host_cpu in
15300 hppa*64*)
15301 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15303 ia64*)
15304 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15307 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15309 esac
15310 else
15311 case $host_cpu in
15312 hppa*64*)
15313 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15315 ia64*)
15316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15319 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15321 esac
15323 if test "$with_gnu_ld" = no; then
15324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15325 hardcode_libdir_separator=:
15327 case $host_cpu in
15328 hppa*64*|ia64*)
15329 hardcode_libdir_flag_spec_ld='+b $libdir'
15330 hardcode_direct=no
15331 hardcode_shlibpath_var=no
15334 hardcode_direct=yes
15335 export_dynamic_flag_spec='${wl}-E'
15337 # hardcode_minus_L: Not really in the search PATH,
15338 # but as the default location of the library.
15339 hardcode_minus_L=yes
15341 esac
15345 irix5* | irix6* | nonstopux*)
15346 if test "$GCC" = yes; then
15347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15348 else
15349 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15350 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15353 hardcode_libdir_separator=:
15354 link_all_deplibs=yes
15357 netbsd*)
15358 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15360 else
15361 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15363 hardcode_libdir_flag_spec='-R$libdir'
15364 hardcode_direct=yes
15365 hardcode_shlibpath_var=no
15368 newsos6)
15369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15370 hardcode_direct=yes
15371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15372 hardcode_libdir_separator=:
15373 hardcode_shlibpath_var=no
15376 openbsd*)
15377 hardcode_direct=yes
15378 hardcode_shlibpath_var=no
15379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15380 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15381 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15383 export_dynamic_flag_spec='${wl}-E'
15384 else
15385 case $host_os in
15386 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15388 hardcode_libdir_flag_spec='-R$libdir'
15391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15394 esac
15398 os2*)
15399 hardcode_libdir_flag_spec='-L$libdir'
15400 hardcode_minus_L=yes
15401 allow_undefined_flag=unsupported
15402 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'
15403 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15406 osf3*)
15407 if test "$GCC" = yes; then
15408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15409 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15410 else
15411 allow_undefined_flag=' -expect_unresolved \*'
15412 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15415 hardcode_libdir_separator=:
15418 osf4* | osf5*) # as osf3* with the addition of -msym flag
15419 if test "$GCC" = yes; then
15420 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15421 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15423 else
15424 allow_undefined_flag=' -expect_unresolved \*'
15425 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15426 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15427 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15429 # Both c and cxx compiler support -rpath directly
15430 hardcode_libdir_flag_spec='-rpath $libdir'
15432 hardcode_libdir_separator=:
15435 solaris*)
15436 no_undefined_flag=' -z text'
15437 if test "$GCC" = yes; then
15438 wlarc='${wl}'
15439 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15440 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15441 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15442 else
15443 wlarc=''
15444 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15448 hardcode_libdir_flag_spec='-R$libdir'
15449 hardcode_shlibpath_var=no
15450 case $host_os in
15451 solaris2.[0-5] | solaris2.[0-5].*) ;;
15453 # The compiler driver will combine linker options so we
15454 # cannot just pass the convience library names through
15455 # without $wl, iff we do not link with $LD.
15456 # Luckily, gcc supports the same syntax we need for Sun Studio.
15457 # Supported since Solaris 2.6 (maybe 2.5.1?)
15458 case $wlarc in
15460 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15462 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15463 esac ;;
15464 esac
15465 link_all_deplibs=yes
15468 sunos4*)
15469 if test "x$host_vendor" = xsequent; then
15470 # Use $CC to link under sequent, because it throws in some extra .o
15471 # files that make .init and .fini sections work.
15472 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15473 else
15474 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_libdir_flag_spec='-L$libdir'
15477 hardcode_direct=yes
15478 hardcode_minus_L=yes
15479 hardcode_shlibpath_var=no
15482 sysv4)
15483 case $host_vendor in
15484 sni)
15485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486 hardcode_direct=yes # is this really true???
15488 siemens)
15489 ## LD is ld it makes a PLAMLIB
15490 ## CC just makes a GrossModule.
15491 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15492 reload_cmds='$CC -r -o $output$reload_objs'
15493 hardcode_direct=no
15495 motorola)
15496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15499 esac
15500 runpath_var='LD_RUN_PATH'
15501 hardcode_shlibpath_var=no
15504 sysv4.3*)
15505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_shlibpath_var=no
15507 export_dynamic_flag_spec='-Bexport'
15510 sysv4*MP*)
15511 if test -d /usr/nec; then
15512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_shlibpath_var=no
15514 runpath_var=LD_RUN_PATH
15515 hardcode_runpath_var=yes
15516 ld_shlibs=yes
15520 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15521 no_undefined_flag='${wl}-z,text'
15522 archive_cmds_need_lc=no
15523 hardcode_shlibpath_var=no
15524 runpath_var='LD_RUN_PATH'
15526 if test "$GCC" = yes; then
15527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 else
15530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15535 sysv5* | sco3.2v5* | sco5v6*)
15536 # Note: We can NOT use -z defs as we might desire, because we do not
15537 # link with -lc, and that would cause any symbols used from libc to
15538 # always be unresolved, which means just about no library would
15539 # ever link correctly. If we're not using GNU ld we use -z text
15540 # though, which does catch some bad symbols but isn't as heavy-handed
15541 # as -z defs.
15542 no_undefined_flag='${wl}-z,text'
15543 allow_undefined_flag='${wl}-z,nodefs'
15544 archive_cmds_need_lc=no
15545 hardcode_shlibpath_var=no
15546 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15547 hardcode_libdir_separator=':'
15548 link_all_deplibs=yes
15549 export_dynamic_flag_spec='${wl}-Bexport'
15550 runpath_var='LD_RUN_PATH'
15552 if test "$GCC" = yes; then
15553 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15554 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555 else
15556 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15561 uts4*)
15562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_libdir_flag_spec='-L$libdir'
15564 hardcode_shlibpath_var=no
15568 ld_shlibs=no
15570 esac
15573 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15574 echo "${ECHO_T}$ld_shlibs" >&6; }
15575 test "$ld_shlibs" = no && can_build_shared=no
15578 # Do we need to explicitly link libc?
15580 case "x$archive_cmds_need_lc" in
15581 x|xyes)
15582 # Assume -lc should be added
15583 archive_cmds_need_lc=yes
15585 if test "$enable_shared" = yes && test "$GCC" = yes; then
15586 case $archive_cmds in
15587 *'~'*)
15588 # FIXME: we may have to deal with multi-command sequences.
15590 '$CC '*)
15591 # Test whether the compiler implicitly links with -lc since on some
15592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15593 # to ld, don't add -lc before -lgcc.
15594 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15595 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15596 $rm conftest*
15597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15600 (eval $ac_compile) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } 2>conftest.err; then
15604 soname=conftest
15605 lib=conftest
15606 libobjs=conftest.$ac_objext
15607 deplibs=
15608 wl=$lt_prog_compiler_wl
15609 pic_flag=$lt_prog_compiler_pic
15610 compiler_flags=-v
15611 linker_flags=-v
15612 verstring=
15613 output_objdir=.
15614 libname=conftest
15615 lt_save_allow_undefined_flag=$allow_undefined_flag
15616 allow_undefined_flag=
15617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15618 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }
15622 then
15623 archive_cmds_need_lc=no
15624 else
15625 archive_cmds_need_lc=yes
15627 allow_undefined_flag=$lt_save_allow_undefined_flag
15628 else
15629 cat conftest.err 1>&5
15631 $rm conftest*
15632 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15633 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15635 esac
15638 esac
15640 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15641 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15642 library_names_spec=
15643 libname_spec='lib$name'
15644 soname_spec=
15645 shrext_cmds=".so"
15646 postinstall_cmds=
15647 postuninstall_cmds=
15648 finish_cmds=
15649 finish_eval=
15650 shlibpath_var=
15651 shlibpath_overrides_runpath=unknown
15652 version_type=none
15653 dynamic_linker="$host_os ld.so"
15654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15655 if test "$GCC" = yes; then
15656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15657 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15658 # if the path contains ";" then we assume it to be the separator
15659 # otherwise default to the standard path separator (i.e. ":") - it is
15660 # assumed that no part of a normal pathname contains ";" but that should
15661 # okay in the real world where ";" in dirpaths is itself problematic.
15662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15663 else
15664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15666 else
15667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15669 need_lib_prefix=unknown
15670 hardcode_into_libs=no
15672 # when you set need_version to no, make sure it does not cause -set_version
15673 # flags to be left without arguments
15674 need_version=unknown
15676 case $host_os in
15677 aix3*)
15678 version_type=linux
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15680 shlibpath_var=LIBPATH
15682 # AIX 3 has no versioning support, so we append a major version to the name.
15683 soname_spec='${libname}${release}${shared_ext}$major'
15686 aix4* | aix5*)
15687 version_type=linux
15688 need_lib_prefix=no
15689 need_version=no
15690 hardcode_into_libs=yes
15691 if test "$host_cpu" = ia64; then
15692 # AIX 5 supports IA64
15693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 else
15696 # With GCC up to 2.95.x, collect2 would create an import file
15697 # for dependence libraries. The import file would start with
15698 # the line `#! .'. This would cause the generated library to
15699 # depend on `.', always an invalid library. This was fixed in
15700 # development snapshots of GCC prior to 3.0.
15701 case $host_os in
15702 aix4 | aix4.[01] | aix4.[01].*)
15703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15704 echo ' yes '
15705 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15707 else
15708 can_build_shared=no
15711 esac
15712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15713 # soname into executable. Probably we can add versioning support to
15714 # collect2, so additional links can be useful in future.
15715 if test "$aix_use_runtimelinking" = yes; then
15716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15717 # instead of lib<name>.a to let people know that these are not
15718 # typical AIX shared libraries.
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 else
15721 # We preserve .a as extension for shared libraries through AIX4.2
15722 # and later when we are not doing run time linking.
15723 library_names_spec='${libname}${release}.a $libname.a'
15724 soname_spec='${libname}${release}${shared_ext}$major'
15726 shlibpath_var=LIBPATH
15730 amigaos*)
15731 library_names_spec='$libname.ixlibrary $libname.a'
15732 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15733 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'
15736 beos*)
15737 library_names_spec='${libname}${shared_ext}'
15738 dynamic_linker="$host_os ld.so"
15739 shlibpath_var=LIBRARY_PATH
15742 bsdi[45]*)
15743 version_type=linux
15744 need_version=no
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
15747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15748 shlibpath_var=LD_LIBRARY_PATH
15749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15751 # the default ld.so.conf also contains /usr/contrib/lib and
15752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15753 # libtool to hard-code these into programs
15756 cygwin* | mingw* | pw32*)
15757 version_type=windows
15758 shrext_cmds=".dll"
15759 need_version=no
15760 need_lib_prefix=no
15762 case $GCC,$host_os in
15763 yes,cygwin* | yes,mingw* | yes,pw32*)
15764 library_names_spec='$libname.dll.a'
15765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15766 postinstall_cmds='base_file=`basename \${file}`~
15767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15768 dldir=$destdir/`dirname \$dlpath`~
15769 test -d \$dldir || mkdir -p \$dldir~
15770 $install_prog $dir/$dlname \$dldir/$dlname~
15771 chmod a+x \$dldir/$dlname'
15772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15773 dlpath=$dir/\$dldll~
15774 $rm \$dlpath'
15775 shlibpath_overrides_runpath=yes
15777 case $host_os in
15778 cygwin*)
15779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15781 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15783 mingw*)
15784 # MinGW DLLs use traditional 'lib' prefix
15785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15787 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15788 # It is most probably a Windows format PATH printed by
15789 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15790 # path with ; separators, and with drive letters. We can handle the
15791 # drive letters (cygwin fileutils understands them), so leave them,
15792 # especially as we might pass files found there to a mingw objdump,
15793 # which wouldn't understand a cygwinified path. Ahh.
15794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15795 else
15796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15799 pw32*)
15800 # pw32 DLLs use 'pw' prefix rather than 'lib'
15801 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15803 esac
15807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15809 esac
15810 dynamic_linker='Win32 ld.exe'
15811 # FIXME: first we should search . and the directory the executable is in
15812 shlibpath_var=PATH
15815 darwin* | rhapsody*)
15816 dynamic_linker="$host_os dyld"
15817 version_type=darwin
15818 need_lib_prefix=no
15819 need_version=no
15820 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15821 soname_spec='${libname}${release}${major}$shared_ext'
15822 shlibpath_overrides_runpath=yes
15823 shlibpath_var=DYLD_LIBRARY_PATH
15824 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15825 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15826 if test "$GCC" = yes; then
15827 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15828 else
15829 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15834 dgux*)
15835 version_type=linux
15836 need_lib_prefix=no
15837 need_version=no
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 shlibpath_var=LD_LIBRARY_PATH
15843 freebsd1*)
15844 dynamic_linker=no
15847 kfreebsd*-gnu)
15848 version_type=linux
15849 need_lib_prefix=no
15850 need_version=no
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 shlibpath_overrides_runpath=no
15855 hardcode_into_libs=yes
15856 dynamic_linker='GNU ld.so'
15859 freebsd* | dragonfly*)
15860 # DragonFly does not have aout. When/if they implement a new
15861 # versioning mechanism, adjust this.
15862 if test -x /usr/bin/objformat; then
15863 objformat=`/usr/bin/objformat`
15864 else
15865 case $host_os in
15866 freebsd[123]*) objformat=aout ;;
15867 *) objformat=elf ;;
15868 esac
15870 version_type=freebsd-$objformat
15871 case $version_type in
15872 freebsd-elf*)
15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15874 need_version=no
15875 need_lib_prefix=no
15877 freebsd-*)
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15879 need_version=yes
15881 esac
15882 shlibpath_var=LD_LIBRARY_PATH
15883 case $host_os in
15884 freebsd2*)
15885 shlibpath_overrides_runpath=yes
15887 freebsd3.[01]* | freebsdelf3.[01]*)
15888 shlibpath_overrides_runpath=yes
15889 hardcode_into_libs=yes
15891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15893 shlibpath_overrides_runpath=no
15894 hardcode_into_libs=yes
15896 freebsd*) # from 4.6 on
15897 shlibpath_overrides_runpath=yes
15898 hardcode_into_libs=yes
15900 esac
15903 gnu*)
15904 version_type=linux
15905 need_lib_prefix=no
15906 need_version=no
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15908 soname_spec='${libname}${release}${shared_ext}$major'
15909 shlibpath_var=LD_LIBRARY_PATH
15910 hardcode_into_libs=yes
15913 hpux9* | hpux10* | hpux11*)
15914 # Give a soname corresponding to the major version so that dld.sl refuses to
15915 # link against other versions.
15916 version_type=sunos
15917 need_lib_prefix=no
15918 need_version=no
15919 case $host_cpu in
15920 ia64*)
15921 shrext_cmds='.so'
15922 hardcode_into_libs=yes
15923 dynamic_linker="$host_os dld.so"
15924 shlibpath_var=LD_LIBRARY_PATH
15925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 if test "X$HPUX_IA64_MODE" = X32; then
15929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15930 else
15931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15935 hppa*64*)
15936 shrext_cmds='.sl'
15937 hardcode_into_libs=yes
15938 dynamic_linker="$host_os dld.sl"
15939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15947 shrext_cmds='.sl'
15948 dynamic_linker="$host_os dld.sl"
15949 shlibpath_var=SHLIB_PATH
15950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952 soname_spec='${libname}${release}${shared_ext}$major'
15954 esac
15955 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15956 postinstall_cmds='chmod 555 $lib'
15959 interix3*)
15960 version_type=linux
15961 need_lib_prefix=no
15962 need_version=no
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15964 soname_spec='${libname}${release}${shared_ext}$major'
15965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=no
15968 hardcode_into_libs=yes
15971 irix5* | irix6* | nonstopux*)
15972 case $host_os in
15973 nonstopux*) version_type=nonstopux ;;
15975 if test "$lt_cv_prog_gnu_ld" = yes; then
15976 version_type=linux
15977 else
15978 version_type=irix
15979 fi ;;
15980 esac
15981 need_lib_prefix=no
15982 need_version=no
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15985 case $host_os in
15986 irix5* | nonstopux*)
15987 libsuff= shlibsuff=
15990 case $LD in # libtool.m4 will add one of these switches to LD
15991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15992 libsuff= shlibsuff= libmagic=32-bit;;
15993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15994 libsuff=32 shlibsuff=N32 libmagic=N32;;
15995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15997 *) libsuff= shlibsuff= libmagic=never-match;;
15998 esac
16000 esac
16001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16002 shlibpath_overrides_runpath=no
16003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16005 hardcode_into_libs=yes
16008 # No shared lib support for Linux oldld, aout, or coff.
16009 linux*oldld* | linux*aout* | linux*coff*)
16010 dynamic_linker=no
16013 # This must be Linux ELF.
16014 linux*)
16015 version_type=linux
16016 need_lib_prefix=no
16017 need_version=no
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
16020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 shlibpath_overrides_runpath=no
16023 # This implies no fast_install, which is unacceptable.
16024 # Some rework will be needed to allow for fast_install
16025 # before this can be enabled.
16026 hardcode_into_libs=yes
16028 # Append ld.so.conf contents to the search path
16029 if test -f /etc/ld.so.conf; then
16030 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16034 # We used to test for /lib/ld.so.1 and disable shared libraries on
16035 # powerpc, because MkLinux only supported shared libraries with the
16036 # GNU dynamic linker. Since this was broken with cross compilers,
16037 # most powerpc-linux boxes support dynamic linking these days and
16038 # people can always --disable-shared, the test was removed, and we
16039 # assume the GNU/Linux dynamic linker is in use.
16040 dynamic_linker='GNU/Linux ld.so'
16043 knetbsd*-gnu)
16044 version_type=linux
16045 need_lib_prefix=no
16046 need_version=no
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 shlibpath_overrides_runpath=no
16051 hardcode_into_libs=yes
16052 dynamic_linker='GNU ld.so'
16055 netbsd*)
16056 version_type=sunos
16057 need_lib_prefix=no
16058 need_version=no
16059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16062 dynamic_linker='NetBSD (a.out) ld.so'
16063 else
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 dynamic_linker='NetBSD ld.elf_so'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 shlibpath_overrides_runpath=yes
16070 hardcode_into_libs=yes
16073 newsos6)
16074 version_type=linux
16075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16080 nto-qnx*)
16081 version_type=linux
16082 need_lib_prefix=no
16083 need_version=no
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes
16090 openbsd*)
16091 version_type=sunos
16092 sys_lib_dlsearch_path_spec="/usr/lib"
16093 need_lib_prefix=no
16094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16095 case $host_os in
16096 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16097 *) need_version=no ;;
16098 esac
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16103 case $host_os in
16104 openbsd2.[89] | openbsd2.[89].*)
16105 shlibpath_overrides_runpath=no
16108 shlibpath_overrides_runpath=yes
16110 esac
16111 else
16112 shlibpath_overrides_runpath=yes
16116 os2*)
16117 libname_spec='$name'
16118 shrext_cmds=".dll"
16119 need_lib_prefix=no
16120 library_names_spec='$libname${shared_ext} $libname.a'
16121 dynamic_linker='OS/2 ld.exe'
16122 shlibpath_var=LIBPATH
16125 osf3* | osf4* | osf5*)
16126 version_type=osf
16127 need_lib_prefix=no
16128 need_version=no
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131 shlibpath_var=LD_LIBRARY_PATH
16132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16136 solaris*)
16137 version_type=linux
16138 need_lib_prefix=no
16139 need_version=no
16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
16142 shlibpath_var=LD_LIBRARY_PATH
16143 shlibpath_overrides_runpath=yes
16144 hardcode_into_libs=yes
16145 # ldd complains unless libraries are executable
16146 postinstall_cmds='chmod +x $lib'
16149 sunos4*)
16150 version_type=sunos
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 shlibpath_overrides_runpath=yes
16155 if test "$with_gnu_ld" = yes; then
16156 need_lib_prefix=no
16158 need_version=yes
16161 sysv4 | sysv4.3*)
16162 version_type=linux
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
16165 shlibpath_var=LD_LIBRARY_PATH
16166 case $host_vendor in
16167 sni)
16168 shlibpath_overrides_runpath=no
16169 need_lib_prefix=no
16170 export_dynamic_flag_spec='${wl}-Blargedynsym'
16171 runpath_var=LD_RUN_PATH
16173 siemens)
16174 need_lib_prefix=no
16176 motorola)
16177 need_lib_prefix=no
16178 need_version=no
16179 shlibpath_overrides_runpath=no
16180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16182 esac
16185 sysv4*MP*)
16186 if test -d /usr/nec ;then
16187 version_type=linux
16188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16189 soname_spec='$libname${shared_ext}.$major'
16190 shlibpath_var=LD_LIBRARY_PATH
16194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16195 version_type=freebsd-elf
16196 need_lib_prefix=no
16197 need_version=no
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 hardcode_into_libs=yes
16202 if test "$with_gnu_ld" = yes; then
16203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16204 shlibpath_overrides_runpath=no
16205 else
16206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16207 shlibpath_overrides_runpath=yes
16208 case $host_os in
16209 sco3.2v5*)
16210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16212 esac
16214 sys_lib_dlsearch_path_spec='/usr/lib'
16217 uts4*)
16218 version_type=linux
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 shlibpath_var=LD_LIBRARY_PATH
16225 dynamic_linker=no
16227 esac
16228 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16229 echo "${ECHO_T}$dynamic_linker" >&6; }
16230 test "$dynamic_linker" = no && can_build_shared=no
16232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16233 if test "$GCC" = yes; then
16234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16237 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16238 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16239 hardcode_action=
16240 if test -n "$hardcode_libdir_flag_spec" || \
16241 test -n "$runpath_var" || \
16242 test "X$hardcode_automatic" = "Xyes" ; then
16244 # We can hardcode non-existant directories.
16245 if test "$hardcode_direct" != no &&
16246 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16247 # have to relink, otherwise we might link with an installed library
16248 # when we should be linking with a yet-to-be-installed one
16249 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16250 test "$hardcode_minus_L" != no; then
16251 # Linking always hardcodes the temporary library directory.
16252 hardcode_action=relink
16253 else
16254 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16255 hardcode_action=immediate
16257 else
16258 # We cannot hardcode anything, or else we can only hardcode existing
16259 # directories.
16260 hardcode_action=unsupported
16262 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16263 echo "${ECHO_T}$hardcode_action" >&6; }
16265 if test "$hardcode_action" = relink; then
16266 # Fast installation is not supported
16267 enable_fast_install=no
16268 elif test "$shlibpath_overrides_runpath" = yes ||
16269 test "$enable_shared" = no; then
16270 # Fast installation is not necessary
16271 enable_fast_install=needless
16274 striplib=
16275 old_striplib=
16276 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16277 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16278 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16279 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16280 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16281 { echo "$as_me:$LINENO: result: yes" >&5
16282 echo "${ECHO_T}yes" >&6; }
16283 else
16284 # FIXME - insert some real tests, host_os isn't really good enough
16285 case $host_os in
16286 darwin*)
16287 if test -n "$STRIP" ; then
16288 striplib="$STRIP -x"
16289 { echo "$as_me:$LINENO: result: yes" >&5
16290 echo "${ECHO_T}yes" >&6; }
16291 else
16292 { echo "$as_me:$LINENO: result: no" >&5
16293 echo "${ECHO_T}no" >&6; }
16297 { echo "$as_me:$LINENO: result: no" >&5
16298 echo "${ECHO_T}no" >&6; }
16300 esac
16303 if test "x$enable_dlopen" != xyes; then
16304 enable_dlopen=unknown
16305 enable_dlopen_self=unknown
16306 enable_dlopen_self_static=unknown
16307 else
16308 lt_cv_dlopen=no
16309 lt_cv_dlopen_libs=
16311 case $host_os in
16312 beos*)
16313 lt_cv_dlopen="load_add_on"
16314 lt_cv_dlopen_libs=
16315 lt_cv_dlopen_self=yes
16318 mingw* | pw32*)
16319 lt_cv_dlopen="LoadLibrary"
16320 lt_cv_dlopen_libs=
16323 cygwin*)
16324 lt_cv_dlopen="dlopen"
16325 lt_cv_dlopen_libs=
16328 darwin*)
16329 # if libdl is installed we need to link against it
16330 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16331 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16332 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335 ac_check_lib_save_LIBS=$LIBS
16336 LIBS="-ldl $LIBS"
16337 cat >conftest.$ac_ext <<_ACEOF
16338 /* confdefs.h. */
16339 _ACEOF
16340 cat confdefs.h >>conftest.$ac_ext
16341 cat >>conftest.$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16344 /* Override any GCC internal prototype to avoid an error.
16345 Use char because int might match the return type of a GCC
16346 builtin and then its argument prototype would still apply. */
16347 #ifdef __cplusplus
16348 extern "C"
16349 #endif
16350 char dlopen ();
16352 main ()
16354 return dlopen ();
16356 return 0;
16358 _ACEOF
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (ac_try="$ac_link"
16361 case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364 esac
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_link") 2>conftest.er1
16367 ac_status=$?
16368 grep -v '^ *+' conftest.er1 >conftest.err
16369 rm -f conftest.er1
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
16373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16374 { (case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_try") 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try='test -s conftest$ac_exeext'
16384 { (case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387 esac
16388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_try") 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; }; then
16393 ac_cv_lib_dl_dlopen=yes
16394 else
16395 echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16398 ac_cv_lib_dl_dlopen=no
16401 rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403 LIBS=$ac_check_lib_save_LIBS
16405 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16406 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16407 if test $ac_cv_lib_dl_dlopen = yes; then
16408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16409 else
16411 lt_cv_dlopen="dyld"
16412 lt_cv_dlopen_libs=
16413 lt_cv_dlopen_self=yes
16420 { echo "$as_me:$LINENO: checking for shl_load" >&5
16421 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16422 if test "${ac_cv_func_shl_load+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425 cat >conftest.$ac_ext <<_ACEOF
16426 /* confdefs.h. */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16433 #define shl_load innocuous_shl_load
16435 /* System header to define __stub macros and hopefully few prototypes,
16436 which can conflict with char shl_load (); below.
16437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16438 <limits.h> exists even on freestanding compilers. */
16440 #ifdef __STDC__
16441 # include <limits.h>
16442 #else
16443 # include <assert.h>
16444 #endif
16446 #undef shl_load
16448 /* Override any GCC internal prototype to avoid an error.
16449 Use char because int might match the return type of a GCC
16450 builtin and then its argument prototype would still apply. */
16451 #ifdef __cplusplus
16452 extern "C"
16453 #endif
16454 char shl_load ();
16455 /* The GNU C library defines this for functions which it implements
16456 to always fail with ENOSYS. Some functions are actually named
16457 something starting with __ and the normal name is an alias. */
16458 #if defined __stub_shl_load || defined __stub___shl_load
16459 choke me
16460 #endif
16463 main ()
16465 return shl_load ();
16467 return 0;
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_link") 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16485 { (case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16488 esac
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_try") 2>&5
16491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
16494 { ac_try='test -s conftest$ac_exeext'
16495 { (case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16498 esac
16499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_try") 2>&5
16501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_func_shl_load=yes
16505 else
16506 echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 ac_cv_func_shl_load=no
16512 rm -f core conftest.err conftest.$ac_objext \
16513 conftest$ac_exeext conftest.$ac_ext
16515 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16516 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16517 if test $ac_cv_func_shl_load = yes; then
16518 lt_cv_dlopen="shl_load"
16519 else
16520 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16521 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16522 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525 ac_check_lib_save_LIBS=$LIBS
16526 LIBS="-ldld $LIBS"
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h. */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16534 /* Override any GCC internal prototype to avoid an error.
16535 Use char because int might match the return type of a GCC
16536 builtin and then its argument prototype would still apply. */
16537 #ifdef __cplusplus
16538 extern "C"
16539 #endif
16540 char shl_load ();
16542 main ()
16544 return shl_load ();
16546 return 0;
16548 _ACEOF
16549 rm -f conftest.$ac_objext conftest$ac_exeext
16550 if { (ac_try="$ac_link"
16551 case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554 esac
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_link") 2>conftest.er1
16557 ac_status=$?
16558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16564 { (case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16567 esac
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_try") 2>&5
16570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; } &&
16573 { ac_try='test -s conftest$ac_exeext'
16574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_cv_lib_dld_shl_load=yes
16584 else
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ac_cv_lib_dld_shl_load=no
16591 rm -f core conftest.err conftest.$ac_objext \
16592 conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_check_lib_save_LIBS
16595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16596 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16597 if test $ac_cv_lib_dld_shl_load = yes; then
16598 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16599 else
16600 { echo "$as_me:$LINENO: checking for dlopen" >&5
16601 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16602 if test "${ac_cv_func_dlopen+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605 cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h. */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16613 #define dlopen innocuous_dlopen
16615 /* System header to define __stub macros and hopefully few prototypes,
16616 which can conflict with char dlopen (); below.
16617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16618 <limits.h> exists even on freestanding compilers. */
16620 #ifdef __STDC__
16621 # include <limits.h>
16622 #else
16623 # include <assert.h>
16624 #endif
16626 #undef dlopen
16628 /* Override any GCC internal prototype to avoid an error.
16629 Use char because int might match the return type of a GCC
16630 builtin and then its argument prototype would still apply. */
16631 #ifdef __cplusplus
16632 extern "C"
16633 #endif
16634 char dlopen ();
16635 /* The GNU C library defines this for functions which it implements
16636 to always fail with ENOSYS. Some functions are actually named
16637 something starting with __ and the normal name is an alias. */
16638 #if defined __stub_dlopen || defined __stub___dlopen
16639 choke me
16640 #endif
16643 main ()
16645 return dlopen ();
16647 return 0;
16649 _ACEOF
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (ac_try="$ac_link"
16652 case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_link") 2>conftest.er1
16658 ac_status=$?
16659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
16671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest$ac_exeext'
16675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678 esac
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
16681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ac_cv_func_dlopen=yes
16685 else
16686 echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 ac_cv_func_dlopen=no
16692 rm -f core conftest.err conftest.$ac_objext \
16693 conftest$ac_exeext conftest.$ac_ext
16695 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16696 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16697 if test $ac_cv_func_dlopen = yes; then
16698 lt_cv_dlopen="dlopen"
16699 else
16700 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16701 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16702 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705 ac_check_lib_save_LIBS=$LIBS
16706 LIBS="-ldl $LIBS"
16707 cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h. */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16714 /* Override any GCC internal prototype to avoid an error.
16715 Use char because int might match the return type of a GCC
16716 builtin and then its argument prototype would still apply. */
16717 #ifdef __cplusplus
16718 extern "C"
16719 #endif
16720 char dlopen ();
16722 main ()
16724 return dlopen ();
16726 return 0;
16728 _ACEOF
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (ac_try="$ac_link"
16731 case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_link") 2>conftest.er1
16737 ac_status=$?
16738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
16743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_try") 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest$ac_exeext'
16754 { (case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_try") 2>&5
16760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 ac_cv_lib_dl_dlopen=yes
16764 else
16765 echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 ac_cv_lib_dl_dlopen=no
16771 rm -f core conftest.err conftest.$ac_objext \
16772 conftest$ac_exeext conftest.$ac_ext
16773 LIBS=$ac_check_lib_save_LIBS
16775 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16777 if test $ac_cv_lib_dl_dlopen = yes; then
16778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16779 else
16780 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16781 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16782 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785 ac_check_lib_save_LIBS=$LIBS
16786 LIBS="-lsvld $LIBS"
16787 cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h. */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char dlopen ();
16802 main ()
16804 return dlopen ();
16806 return 0;
16808 _ACEOF
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest$ac_exeext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_cv_lib_svld_dlopen=yes
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_cv_lib_svld_dlopen=no
16851 rm -f core conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16855 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16856 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16857 if test $ac_cv_lib_svld_dlopen = yes; then
16858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16859 else
16860 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 else
16865 ac_check_lib_save_LIBS=$LIBS
16866 LIBS="-ldld $LIBS"
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h. */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16874 /* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
16877 #ifdef __cplusplus
16878 extern "C"
16879 #endif
16880 char dld_link ();
16882 main ()
16884 return dld_link ();
16886 return 0;
16888 _ACEOF
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (ac_try="$ac_link"
16891 case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_link") 2>conftest.er1
16897 ac_status=$?
16898 grep -v '^ *+' conftest.er1 >conftest.err
16899 rm -f conftest.er1
16900 cat conftest.err >&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
16903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest$ac_exeext'
16914 { (case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16917 esac
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_try") 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_lib_dld_dld_link=yes
16924 else
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16928 ac_cv_lib_dld_dld_link=no
16931 rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16933 LIBS=$ac_check_lib_save_LIBS
16935 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16936 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16937 if test $ac_cv_lib_dld_dld_link = yes; then
16938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16957 esac
16959 if test "x$lt_cv_dlopen" != xno; then
16960 enable_dlopen=yes
16961 else
16962 enable_dlopen=no
16965 case $lt_cv_dlopen in
16966 dlopen)
16967 save_CPPFLAGS="$CPPFLAGS"
16968 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16970 save_LDFLAGS="$LDFLAGS"
16971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16973 save_LIBS="$LIBS"
16974 LIBS="$lt_cv_dlopen_libs $LIBS"
16976 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16977 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16978 if test "${lt_cv_dlopen_self+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981 if test "$cross_compiling" = yes; then :
16982 lt_cv_dlopen_self=cross
16983 else
16984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16985 lt_status=$lt_dlunknown
16986 cat > conftest.$ac_ext <<EOF
16987 #line 16987 "configure"
16988 #include "confdefs.h"
16990 #if HAVE_DLFCN_H
16991 #include <dlfcn.h>
16992 #endif
16994 #include <stdio.h>
16996 #ifdef RTLD_GLOBAL
16997 # define LT_DLGLOBAL RTLD_GLOBAL
16998 #else
16999 # ifdef DL_GLOBAL
17000 # define LT_DLGLOBAL DL_GLOBAL
17001 # else
17002 # define LT_DLGLOBAL 0
17003 # endif
17004 #endif
17006 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17007 find out it does not work in some platform. */
17008 #ifndef LT_DLLAZY_OR_NOW
17009 # ifdef RTLD_LAZY
17010 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17011 # else
17012 # ifdef DL_LAZY
17013 # define LT_DLLAZY_OR_NOW DL_LAZY
17014 # else
17015 # ifdef RTLD_NOW
17016 # define LT_DLLAZY_OR_NOW RTLD_NOW
17017 # else
17018 # ifdef DL_NOW
17019 # define LT_DLLAZY_OR_NOW DL_NOW
17020 # else
17021 # define LT_DLLAZY_OR_NOW 0
17022 # endif
17023 # endif
17024 # endif
17025 # endif
17026 #endif
17028 #ifdef __cplusplus
17029 extern "C" void exit (int);
17030 #endif
17032 void fnord() { int i=42;}
17033 int main ()
17035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17036 int status = $lt_dlunknown;
17038 if (self)
17040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17042 /* dlclose (self); */
17044 else
17045 puts (dlerror ());
17047 exit (status);
17050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17051 (eval $ac_link) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17055 (./conftest; exit; ) >&5 2>/dev/null
17056 lt_status=$?
17057 case x$lt_status in
17058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17061 esac
17062 else :
17063 # compilation failed
17064 lt_cv_dlopen_self=no
17067 rm -fr conftest*
17071 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17072 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17074 if test "x$lt_cv_dlopen_self" = xyes; then
17075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17076 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17077 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17078 if test "${lt_cv_dlopen_self_static+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 else
17081 if test "$cross_compiling" = yes; then :
17082 lt_cv_dlopen_self_static=cross
17083 else
17084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17085 lt_status=$lt_dlunknown
17086 cat > conftest.$ac_ext <<EOF
17087 #line 17087 "configure"
17088 #include "confdefs.h"
17090 #if HAVE_DLFCN_H
17091 #include <dlfcn.h>
17092 #endif
17094 #include <stdio.h>
17096 #ifdef RTLD_GLOBAL
17097 # define LT_DLGLOBAL RTLD_GLOBAL
17098 #else
17099 # ifdef DL_GLOBAL
17100 # define LT_DLGLOBAL DL_GLOBAL
17101 # else
17102 # define LT_DLGLOBAL 0
17103 # endif
17104 #endif
17106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17107 find out it does not work in some platform. */
17108 #ifndef LT_DLLAZY_OR_NOW
17109 # ifdef RTLD_LAZY
17110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17111 # else
17112 # ifdef DL_LAZY
17113 # define LT_DLLAZY_OR_NOW DL_LAZY
17114 # else
17115 # ifdef RTLD_NOW
17116 # define LT_DLLAZY_OR_NOW RTLD_NOW
17117 # else
17118 # ifdef DL_NOW
17119 # define LT_DLLAZY_OR_NOW DL_NOW
17120 # else
17121 # define LT_DLLAZY_OR_NOW 0
17122 # endif
17123 # endif
17124 # endif
17125 # endif
17126 #endif
17128 #ifdef __cplusplus
17129 extern "C" void exit (int);
17130 #endif
17132 void fnord() { int i=42;}
17133 int main ()
17135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17136 int status = $lt_dlunknown;
17138 if (self)
17140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17141 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17142 /* dlclose (self); */
17144 else
17145 puts (dlerror ());
17147 exit (status);
17150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151 (eval $ac_link) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17155 (./conftest; exit; ) >&5 2>/dev/null
17156 lt_status=$?
17157 case x$lt_status in
17158 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17159 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17160 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17161 esac
17162 else :
17163 # compilation failed
17164 lt_cv_dlopen_self_static=no
17167 rm -fr conftest*
17171 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17172 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17175 CPPFLAGS="$save_CPPFLAGS"
17176 LDFLAGS="$save_LDFLAGS"
17177 LIBS="$save_LIBS"
17179 esac
17181 case $lt_cv_dlopen_self in
17182 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17183 *) enable_dlopen_self=unknown ;;
17184 esac
17186 case $lt_cv_dlopen_self_static in
17187 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17188 *) enable_dlopen_self_static=unknown ;;
17189 esac
17193 # Report which library types will actually be built
17194 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17195 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17196 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17197 echo "${ECHO_T}$can_build_shared" >&6; }
17199 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17200 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17201 test "$can_build_shared" = "no" && enable_shared=no
17203 # On AIX, shared libraries and static libraries use the same namespace, and
17204 # are all built from PIC.
17205 case $host_os in
17206 aix3*)
17207 test "$enable_shared" = yes && enable_static=no
17208 if test -n "$RANLIB"; then
17209 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17210 postinstall_cmds='$RANLIB $lib'
17214 aix4* | aix5*)
17215 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17216 test "$enable_shared" = yes && enable_static=no
17219 esac
17220 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17221 echo "${ECHO_T}$enable_shared" >&6; }
17223 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17224 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17225 # Make sure either enable_shared or enable_static is yes.
17226 test "$enable_shared" = yes || enable_static=yes
17227 { echo "$as_me:$LINENO: result: $enable_static" >&5
17228 echo "${ECHO_T}$enable_static" >&6; }
17230 # The else clause should only fire when bootstrapping the
17231 # libtool distribution, otherwise you forgot to ship ltmain.sh
17232 # with your package, and you will get complaints that there are
17233 # no rules to generate ltmain.sh.
17234 if test -f "$ltmain"; then
17235 # See if we are running on zsh, and set the options which allow our commands through
17236 # without removal of \ escapes.
17237 if test -n "${ZSH_VERSION+set}" ; then
17238 setopt NO_GLOB_SUBST
17240 # Now quote all the things that may contain metacharacters while being
17241 # careful not to overquote the AC_SUBSTed values. We take copies of the
17242 # variables and quote the copies for generation of the libtool script.
17243 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17244 SED SHELL STRIP \
17245 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17246 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17247 deplibs_check_method reload_flag reload_cmds need_locks \
17248 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17249 lt_cv_sys_global_symbol_to_c_name_address \
17250 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17251 old_postinstall_cmds old_postuninstall_cmds \
17252 compiler \
17253 CC \
17254 LD \
17255 lt_prog_compiler_wl \
17256 lt_prog_compiler_pic \
17257 lt_prog_compiler_static \
17258 lt_prog_compiler_no_builtin_flag \
17259 export_dynamic_flag_spec \
17260 thread_safe_flag_spec \
17261 whole_archive_flag_spec \
17262 enable_shared_with_static_runtimes \
17263 old_archive_cmds \
17264 old_archive_from_new_cmds \
17265 predep_objects \
17266 postdep_objects \
17267 predeps \
17268 postdeps \
17269 compiler_lib_search_path \
17270 archive_cmds \
17271 archive_expsym_cmds \
17272 postinstall_cmds \
17273 postuninstall_cmds \
17274 old_archive_from_expsyms_cmds \
17275 allow_undefined_flag \
17276 no_undefined_flag \
17277 export_symbols_cmds \
17278 hardcode_libdir_flag_spec \
17279 hardcode_libdir_flag_spec_ld \
17280 hardcode_libdir_separator \
17281 hardcode_automatic \
17282 module_cmds \
17283 module_expsym_cmds \
17284 lt_cv_prog_compiler_c_o \
17285 exclude_expsyms \
17286 include_expsyms; do
17288 case $var in
17289 old_archive_cmds | \
17290 old_archive_from_new_cmds | \
17291 archive_cmds | \
17292 archive_expsym_cmds | \
17293 module_cmds | \
17294 module_expsym_cmds | \
17295 old_archive_from_expsyms_cmds | \
17296 export_symbols_cmds | \
17297 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17298 postinstall_cmds | postuninstall_cmds | \
17299 old_postinstall_cmds | old_postuninstall_cmds | \
17300 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17301 # Double-quote double-evaled strings.
17302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17307 esac
17308 done
17310 case $lt_echo in
17311 *'\$0 --fallback-echo"')
17312 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17314 esac
17316 cfgfile="${ofile}T"
17317 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17318 $rm -f "$cfgfile"
17319 { echo "$as_me:$LINENO: creating $ofile" >&5
17320 echo "$as_me: creating $ofile" >&6;}
17322 cat <<__EOF__ >> "$cfgfile"
17323 #! $SHELL
17325 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17326 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17327 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17329 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17330 # Free Software Foundation, Inc.
17332 # This file is part of GNU Libtool:
17333 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17335 # This program is free software; you can redistribute it and/or modify
17336 # it under the terms of the GNU General Public License as published by
17337 # the Free Software Foundation; either version 2 of the License, or
17338 # (at your option) any later version.
17340 # This program is distributed in the hope that it will be useful, but
17341 # WITHOUT ANY WARRANTY; without even the implied warranty of
17342 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17343 # General Public License for more details.
17345 # You should have received a copy of the GNU General Public License
17346 # along with this program; if not, write to the Free Software
17347 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17349 # As a special exception to the GNU General Public License, if you
17350 # distribute this file as part of a program that contains a
17351 # configuration script generated by Autoconf, you may include it under
17352 # the same distribution terms that you use for the rest of that program.
17354 # A sed program that does not truncate output.
17355 SED=$lt_SED
17357 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17358 Xsed="$SED -e 1s/^X//"
17360 # The HP-UX ksh and POSIX shell print the target directory to stdout
17361 # if CDPATH is set.
17362 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17364 # The names of the tagged configurations supported by this script.
17365 available_tags=
17367 # ### BEGIN LIBTOOL CONFIG
17369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17371 # Shell to use when invoking shell scripts.
17372 SHELL=$lt_SHELL
17374 # Whether or not to build shared libraries.
17375 build_libtool_libs=$enable_shared
17377 # Whether or not to build static libraries.
17378 build_old_libs=$enable_static
17380 # Whether or not to add -lc for building shared libraries.
17381 build_libtool_need_lc=$archive_cmds_need_lc
17383 # Whether or not to disallow shared libs when runtime libs are static
17384 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17386 # Whether or not to optimize for fast installation.
17387 fast_install=$enable_fast_install
17389 # The host system.
17390 host_alias=$host_alias
17391 host=$host
17392 host_os=$host_os
17394 # The build system.
17395 build_alias=$build_alias
17396 build=$build
17397 build_os=$build_os
17399 # An echo program that does not interpret backslashes.
17400 echo=$lt_echo
17402 # The archiver.
17403 AR=$lt_AR
17404 AR_FLAGS=$lt_AR_FLAGS
17406 # A C compiler.
17407 LTCC=$lt_LTCC
17409 # LTCC compiler flags.
17410 LTCFLAGS=$lt_LTCFLAGS
17412 # A language-specific compiler.
17413 CC=$lt_compiler
17415 # Is the compiler the GNU C compiler?
17416 with_gcc=$GCC
17418 # An ERE matcher.
17419 EGREP=$lt_EGREP
17421 # The linker used to build libraries.
17422 LD=$lt_LD
17424 # Whether we need hard or soft links.
17425 LN_S=$lt_LN_S
17427 # A BSD-compatible nm program.
17428 NM=$lt_NM
17430 # A symbol stripping program
17431 STRIP=$lt_STRIP
17433 # Used to examine libraries when file_magic_cmd begins "file"
17434 MAGIC_CMD=$MAGIC_CMD
17436 # Used on cygwin: DLL creation program.
17437 DLLTOOL="$DLLTOOL"
17439 # Used on cygwin: object dumper.
17440 OBJDUMP="$OBJDUMP"
17442 # Used on cygwin: assembler.
17443 AS="$AS"
17445 # The name of the directory that contains temporary libtool files.
17446 objdir=$objdir
17448 # How to create reloadable object files.
17449 reload_flag=$lt_reload_flag
17450 reload_cmds=$lt_reload_cmds
17452 # How to pass a linker flag through the compiler.
17453 wl=$lt_lt_prog_compiler_wl
17455 # Object file suffix (normally "o").
17456 objext="$ac_objext"
17458 # Old archive suffix (normally "a").
17459 libext="$libext"
17461 # Shared library suffix (normally ".so").
17462 shrext_cmds='$shrext_cmds'
17464 # Executable file suffix (normally "").
17465 exeext="$exeext"
17467 # Additional compiler flags for building library objects.
17468 pic_flag=$lt_lt_prog_compiler_pic
17469 pic_mode=$pic_mode
17471 # What is the maximum length of a command?
17472 max_cmd_len=$lt_cv_sys_max_cmd_len
17474 # Does compiler simultaneously support -c and -o options?
17475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17477 # Must we lock files when doing compilation?
17478 need_locks=$lt_need_locks
17480 # Do we need the lib prefix for modules?
17481 need_lib_prefix=$need_lib_prefix
17483 # Do we need a version for libraries?
17484 need_version=$need_version
17486 # Whether dlopen is supported.
17487 dlopen_support=$enable_dlopen
17489 # Whether dlopen of programs is supported.
17490 dlopen_self=$enable_dlopen_self
17492 # Whether dlopen of statically linked programs is supported.
17493 dlopen_self_static=$enable_dlopen_self_static
17495 # Compiler flag to prevent dynamic linking.
17496 link_static_flag=$lt_lt_prog_compiler_static
17498 # Compiler flag to turn off builtin functions.
17499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17501 # Compiler flag to allow reflexive dlopens.
17502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17504 # Compiler flag to generate shared objects directly from archives.
17505 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17507 # Compiler flag to generate thread-safe objects.
17508 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17510 # Library versioning type.
17511 version_type=$version_type
17513 # Format of library name prefix.
17514 libname_spec=$lt_libname_spec
17516 # List of archive names. First name is the real one, the rest are links.
17517 # The last name is the one that the linker finds with -lNAME.
17518 library_names_spec=$lt_library_names_spec
17520 # The coded name of the library, if different from the real name.
17521 soname_spec=$lt_soname_spec
17523 # Commands used to build and install an old-style archive.
17524 RANLIB=$lt_RANLIB
17525 old_archive_cmds=$lt_old_archive_cmds
17526 old_postinstall_cmds=$lt_old_postinstall_cmds
17527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17529 # Create an old-style archive from a shared archive.
17530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17532 # Create a temporary old-style archive to link instead of a shared archive.
17533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17535 # Commands used to build and install a shared archive.
17536 archive_cmds=$lt_archive_cmds
17537 archive_expsym_cmds=$lt_archive_expsym_cmds
17538 postinstall_cmds=$lt_postinstall_cmds
17539 postuninstall_cmds=$lt_postuninstall_cmds
17541 # Commands used to build a loadable module (assumed same as above if empty)
17542 module_cmds=$lt_module_cmds
17543 module_expsym_cmds=$lt_module_expsym_cmds
17545 # Commands to strip libraries.
17546 old_striplib=$lt_old_striplib
17547 striplib=$lt_striplib
17549 # Dependencies to place before the objects being linked to create a
17550 # shared library.
17551 predep_objects=$lt_predep_objects
17553 # Dependencies to place after the objects being linked to create a
17554 # shared library.
17555 postdep_objects=$lt_postdep_objects
17557 # Dependencies to place before the objects being linked to create a
17558 # shared library.
17559 predeps=$lt_predeps
17561 # Dependencies to place after the objects being linked to create a
17562 # shared library.
17563 postdeps=$lt_postdeps
17565 # The library search path used internally by the compiler when linking
17566 # a shared library.
17567 compiler_lib_search_path=$lt_compiler_lib_search_path
17569 # Method to check whether dependent libraries are shared objects.
17570 deplibs_check_method=$lt_deplibs_check_method
17572 # Command to use when deplibs_check_method == file_magic.
17573 file_magic_cmd=$lt_file_magic_cmd
17575 # Flag that allows shared libraries with undefined symbols to be built.
17576 allow_undefined_flag=$lt_allow_undefined_flag
17578 # Flag that forces no undefined symbols.
17579 no_undefined_flag=$lt_no_undefined_flag
17581 # Commands used to finish a libtool library installation in a directory.
17582 finish_cmds=$lt_finish_cmds
17584 # Same as above, but a single script fragment to be evaled but not shown.
17585 finish_eval=$lt_finish_eval
17587 # Take the output of nm and produce a listing of raw symbols and C names.
17588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17590 # Transform the output of nm in a proper C declaration
17591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17593 # Transform the output of nm in a C name address pair
17594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17596 # This is the shared library runtime path variable.
17597 runpath_var=$runpath_var
17599 # This is the shared library path variable.
17600 shlibpath_var=$shlibpath_var
17602 # Is shlibpath searched before the hard-coded library search path?
17603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17605 # How to hardcode a shared library path into an executable.
17606 hardcode_action=$hardcode_action
17608 # Whether we should hardcode library paths into libraries.
17609 hardcode_into_libs=$hardcode_into_libs
17611 # Flag to hardcode \$libdir into a binary during linking.
17612 # This must work even if \$libdir does not exist.
17613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17615 # If ld is used when linking, flag to hardcode \$libdir into
17616 # a binary during linking. This must work even if \$libdir does
17617 # not exist.
17618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17620 # Whether we need a single -rpath flag with a separated argument.
17621 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17624 # resulting binary.
17625 hardcode_direct=$hardcode_direct
17627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17628 # resulting binary.
17629 hardcode_minus_L=$hardcode_minus_L
17631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17632 # the resulting binary.
17633 hardcode_shlibpath_var=$hardcode_shlibpath_var
17635 # Set to yes if building a shared library automatically hardcodes DIR into the library
17636 # and all subsequent libraries and executables linked against it.
17637 hardcode_automatic=$hardcode_automatic
17639 # Variables whose values should be saved in libtool wrapper scripts and
17640 # restored at relink time.
17641 variables_saved_for_relink="$variables_saved_for_relink"
17643 # Whether libtool must link a program against all its dependency libraries.
17644 link_all_deplibs=$link_all_deplibs
17646 # Compile-time system search path for libraries
17647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17649 # Run-time system search path for libraries
17650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17652 # Fix the shell variable \$srcfile for the compiler.
17653 fix_srcfile_path="$fix_srcfile_path"
17655 # Set to yes if exported symbols are required.
17656 always_export_symbols=$always_export_symbols
17658 # The commands to list exported symbols.
17659 export_symbols_cmds=$lt_export_symbols_cmds
17661 # The commands to extract the exported symbol list from a shared archive.
17662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17664 # Symbols that should not be listed in the preloaded symbols.
17665 exclude_expsyms=$lt_exclude_expsyms
17667 # Symbols that must always be exported.
17668 include_expsyms=$lt_include_expsyms
17670 # ### END LIBTOOL CONFIG
17672 __EOF__
17675 case $host_os in
17676 aix3*)
17677 cat <<\EOF >> "$cfgfile"
17679 # AIX sometimes has problems with the GCC collect2 program. For some
17680 # reason, if we set the COLLECT_NAMES environment variable, the problems
17681 # vanish in a puff of smoke.
17682 if test "X${COLLECT_NAMES+set}" != Xset; then
17683 COLLECT_NAMES=
17684 export COLLECT_NAMES
17688 esac
17690 # We use sed instead of cat because bash on DJGPP gets confused if
17691 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17692 # text mode, it properly converts lines to CR/LF. This bash problem
17693 # is reportedly fixed, but why not run on old versions too?
17694 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17696 mv -f "$cfgfile" "$ofile" || \
17697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17698 chmod +x "$ofile"
17700 else
17701 # If there is no Makefile yet, we rely on a make rule to execute
17702 # `config.status --recheck' to rerun these tests and create the
17703 # libtool script then.
17704 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17705 if test -f "$ltmain_in"; then
17706 test -f Makefile && make "$ltmain"
17711 ac_ext=c
17712 ac_cpp='$CPP $CPPFLAGS'
17713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717 CC="$lt_save_CC"
17720 # Check whether --with-tags was given.
17721 if test "${with_tags+set}" = set; then
17722 withval=$with_tags; tagnames="$withval"
17726 if test -f "$ltmain" && test -n "$tagnames"; then
17727 if test ! -f "${ofile}"; then
17728 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17729 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17732 if test -z "$LTCC"; then
17733 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17734 if test -z "$LTCC"; then
17735 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17736 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17737 else
17738 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17739 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17742 if test -z "$LTCFLAGS"; then
17743 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17746 # Extract list of available tagged configurations in $ofile.
17747 # Note that this assumes the entire list is on one line.
17748 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17751 for tagname in $tagnames; do
17752 IFS="$lt_save_ifs"
17753 # Check whether tagname contains only valid characters
17754 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17755 "") ;;
17756 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17757 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17758 { (exit 1); exit 1; }; }
17760 esac
17762 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17763 then
17764 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17765 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17766 { (exit 1); exit 1; }; }
17769 # Update the list of available tags.
17770 if test -n "$tagname"; then
17771 echo appending configuration tag \"$tagname\" to $ofile
17773 case $tagname in
17774 CXX)
17775 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17776 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17777 (test "X$CXX" != "Xg++"))) ; then
17778 ac_ext=cpp
17779 ac_cpp='$CXXCPP $CPPFLAGS'
17780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17787 archive_cmds_need_lc_CXX=no
17788 allow_undefined_flag_CXX=
17789 always_export_symbols_CXX=no
17790 archive_expsym_cmds_CXX=
17791 export_dynamic_flag_spec_CXX=
17792 hardcode_direct_CXX=no
17793 hardcode_libdir_flag_spec_CXX=
17794 hardcode_libdir_flag_spec_ld_CXX=
17795 hardcode_libdir_separator_CXX=
17796 hardcode_minus_L_CXX=no
17797 hardcode_shlibpath_var_CXX=unsupported
17798 hardcode_automatic_CXX=no
17799 module_cmds_CXX=
17800 module_expsym_cmds_CXX=
17801 link_all_deplibs_CXX=unknown
17802 old_archive_cmds_CXX=$old_archive_cmds
17803 no_undefined_flag_CXX=
17804 whole_archive_flag_spec_CXX=
17805 enable_shared_with_static_runtimes_CXX=no
17807 # Dependencies to place before and after the object being linked:
17808 predep_objects_CXX=
17809 postdep_objects_CXX=
17810 predeps_CXX=
17811 postdeps_CXX=
17812 compiler_lib_search_path_CXX=
17814 # Source file extension for C++ test sources.
17815 ac_ext=cpp
17817 # Object file extension for compiled C++ test sources.
17818 objext=o
17819 objext_CXX=$objext
17821 # Code to be used in simple compile tests
17822 lt_simple_compile_test_code="int some_variable = 0;\n"
17824 # Code to be used in simple link tests
17825 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17827 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17829 # If no C compiler was specified, use CC.
17830 LTCC=${LTCC-"$CC"}
17832 # If no C compiler flags were specified, use CFLAGS.
17833 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17835 # Allow CC to be a program name with arguments.
17836 compiler=$CC
17839 # save warnings/boilerplate of simple test code
17840 ac_outfile=conftest.$ac_objext
17841 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17842 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17843 _lt_compiler_boilerplate=`cat conftest.err`
17844 $rm conftest*
17846 ac_outfile=conftest.$ac_objext
17847 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17848 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17849 _lt_linker_boilerplate=`cat conftest.err`
17850 $rm conftest*
17853 # Allow CC to be a program name with arguments.
17854 lt_save_CC=$CC
17855 lt_save_LD=$LD
17856 lt_save_GCC=$GCC
17857 GCC=$GXX
17858 lt_save_with_gnu_ld=$with_gnu_ld
17859 lt_save_path_LD=$lt_cv_path_LD
17860 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17861 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17862 else
17863 $as_unset lt_cv_prog_gnu_ld
17865 if test -n "${lt_cv_path_LDCXX+set}"; then
17866 lt_cv_path_LD=$lt_cv_path_LDCXX
17867 else
17868 $as_unset lt_cv_path_LD
17870 test -z "${LDCXX+set}" || LD=$LDCXX
17871 CC=${CXX-"c++"}
17872 compiler=$CC
17873 compiler_CXX=$CC
17874 for cc_temp in $compiler""; do
17875 case $cc_temp in
17876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17878 \-*) ;;
17879 *) break;;
17880 esac
17881 done
17882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17885 # We don't want -fno-exception wen compiling C++ code, so set the
17886 # no_builtin_flag separately
17887 if test "$GXX" = yes; then
17888 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17889 else
17890 lt_prog_compiler_no_builtin_flag_CXX=
17893 if test "$GXX" = yes; then
17894 # Set up default GNU C++ configuration
17897 # Check whether --with-gnu-ld was given.
17898 if test "${with_gnu_ld+set}" = set; then
17899 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17900 else
17901 with_gnu_ld=no
17904 ac_prog=ld
17905 if test "$GCC" = yes; then
17906 # Check if gcc -print-prog-name=ld gives a path.
17907 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17908 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17909 case $host in
17910 *-*-mingw*)
17911 # gcc leaves a trailing carriage return which upsets mingw
17912 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17914 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17915 esac
17916 case $ac_prog in
17917 # Accept absolute paths.
17918 [\\/]* | ?:[\\/]*)
17919 re_direlt='/[^/][^/]*/\.\./'
17920 # Canonicalize the pathname of ld
17921 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17922 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17923 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17924 done
17925 test -z "$LD" && LD="$ac_prog"
17928 # If it fails, then pretend we aren't using GCC.
17929 ac_prog=ld
17932 # If it is relative, then search for the first ld in PATH.
17933 with_gnu_ld=unknown
17935 esac
17936 elif test "$with_gnu_ld" = yes; then
17937 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17938 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17939 else
17940 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17941 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17943 if test "${lt_cv_path_LD+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946 if test -z "$LD"; then
17947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17948 for ac_dir in $PATH; do
17949 IFS="$lt_save_ifs"
17950 test -z "$ac_dir" && ac_dir=.
17951 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17952 lt_cv_path_LD="$ac_dir/$ac_prog"
17953 # Check to see if the program is GNU ld. I'd rather use --version,
17954 # but apparently some variants of GNU ld only accept -v.
17955 # Break only if it was the GNU/non-GNU ld that we prefer.
17956 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17957 *GNU* | *'with BFD'*)
17958 test "$with_gnu_ld" != no && break
17961 test "$with_gnu_ld" != yes && break
17963 esac
17965 done
17966 IFS="$lt_save_ifs"
17967 else
17968 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17972 LD="$lt_cv_path_LD"
17973 if test -n "$LD"; then
17974 { echo "$as_me:$LINENO: result: $LD" >&5
17975 echo "${ECHO_T}$LD" >&6; }
17976 else
17977 { echo "$as_me:$LINENO: result: no" >&5
17978 echo "${ECHO_T}no" >&6; }
17980 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17981 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17982 { (exit 1); exit 1; }; }
17983 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17984 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17985 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17989 case `$LD -v 2>&1 </dev/null` in
17990 *GNU* | *'with BFD'*)
17991 lt_cv_prog_gnu_ld=yes
17994 lt_cv_prog_gnu_ld=no
17996 esac
17998 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17999 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18000 with_gnu_ld=$lt_cv_prog_gnu_ld
18004 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18005 # archiving commands below assume that GNU ld is being used.
18006 if test "$with_gnu_ld" = yes; then
18007 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18008 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'
18010 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18011 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18013 # If archive_cmds runs LD, not CC, wlarc should be empty
18014 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18015 # investigate it a little bit more. (MM)
18016 wlarc='${wl}'
18018 # ancient GNU ld didn't support --whole-archive et. al.
18019 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18020 grep 'no-whole-archive' > /dev/null; then
18021 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18022 else
18023 whole_archive_flag_spec_CXX=
18025 else
18026 with_gnu_ld=no
18027 wlarc=
18029 # A generic and very simple default shared library creation
18030 # command for GNU C++ for the case where it uses the native
18031 # linker, instead of GNU ld. If possible, this setting should
18032 # overridden to take advantage of the native linker features on
18033 # the platform it is being used on.
18034 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18037 # Commands to make compiler produce verbose output that lists
18038 # what "hidden" libraries, object files and flags are used when
18039 # linking a shared library.
18040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18042 else
18043 GXX=no
18044 with_gnu_ld=no
18045 wlarc=
18048 # PORTME: fill in a description of your system's C++ link characteristics
18049 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18050 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18051 ld_shlibs_CXX=yes
18052 case $host_os in
18053 aix3*)
18054 # FIXME: insert proper C++ library support
18055 ld_shlibs_CXX=no
18057 aix4* | aix5*)
18058 if test "$host_cpu" = ia64; then
18059 # On IA64, the linker does run time linking by default, so we don't
18060 # have to do anything special.
18061 aix_use_runtimelinking=no
18062 exp_sym_flag='-Bexport'
18063 no_entry_flag=""
18064 else
18065 aix_use_runtimelinking=no
18067 # Test if we are trying to use run time linking or normal
18068 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18069 # need to do runtime linking.
18070 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18071 for ld_flag in $LDFLAGS; do
18072 case $ld_flag in
18073 *-brtl*)
18074 aix_use_runtimelinking=yes
18075 break
18077 esac
18078 done
18080 esac
18082 exp_sym_flag='-bexport'
18083 no_entry_flag='-bnoentry'
18086 # When large executables or shared objects are built, AIX ld can
18087 # have problems creating the table of contents. If linking a library
18088 # or program results in "error TOC overflow" add -mminimal-toc to
18089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18092 archive_cmds_CXX=''
18093 hardcode_direct_CXX=yes
18094 hardcode_libdir_separator_CXX=':'
18095 link_all_deplibs_CXX=yes
18097 if test "$GXX" = yes; then
18098 case $host_os in aix4.[012]|aix4.[012].*)
18099 # We only want to do this on AIX 4.2 and lower, the check
18100 # below for broken collect2 doesn't work under 4.3+
18101 collect2name=`${CC} -print-prog-name=collect2`
18102 if test -f "$collect2name" && \
18103 strings "$collect2name" | grep resolve_lib_name >/dev/null
18104 then
18105 # We have reworked collect2
18106 hardcode_direct_CXX=yes
18107 else
18108 # We have old collect2
18109 hardcode_direct_CXX=unsupported
18110 # It fails to find uninstalled libraries when the uninstalled
18111 # path is not listed in the libpath. Setting hardcode_minus_L
18112 # to unsupported forces relinking
18113 hardcode_minus_L_CXX=yes
18114 hardcode_libdir_flag_spec_CXX='-L$libdir'
18115 hardcode_libdir_separator_CXX=
18118 esac
18119 shared_flag='-shared'
18120 if test "$aix_use_runtimelinking" = yes; then
18121 shared_flag="$shared_flag "'${wl}-G'
18123 else
18124 # not using gcc
18125 if test "$host_cpu" = ia64; then
18126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18127 # chokes on -Wl,-G. The following line is correct:
18128 shared_flag='-G'
18129 else
18130 if test "$aix_use_runtimelinking" = yes; then
18131 shared_flag='${wl}-G'
18132 else
18133 shared_flag='${wl}-bM:SRE'
18138 # It seems that -bexpall does not export symbols beginning with
18139 # underscore (_), so it is better to generate a list of symbols to export.
18140 always_export_symbols_CXX=yes
18141 if test "$aix_use_runtimelinking" = yes; then
18142 # Warning - without using the other runtime loading flags (-brtl),
18143 # -berok will link without error, but may produce a broken library.
18144 allow_undefined_flag_CXX='-berok'
18145 # Determine the default libpath from the value encoded in an empty executable.
18146 cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h. */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18154 main ()
18158 return 0;
18160 _ACEOF
18161 rm -f conftest.$ac_objext conftest$ac_exeext
18162 if { (ac_try="$ac_link"
18163 case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18166 esac
18167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 (eval "$ac_link") 2>conftest.er1
18169 ac_status=$?
18170 grep -v '^ *+' conftest.er1 >conftest.err
18171 rm -f conftest.er1
18172 cat conftest.err >&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
18175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179 esac
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } &&
18185 { ac_try='test -s conftest$ac_exeext'
18186 { (case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_try") 2>&5
18192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18196 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18198 # Check for a 64-bit object if we didn't find anything.
18199 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18200 }'`; fi
18201 else
18202 echo "$as_me: failed program was:" >&5
18203 sed 's/^/| /' conftest.$ac_ext >&5
18208 rm -f core conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext conftest.$ac_ext
18210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18212 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18214 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18215 else
18216 if test "$host_cpu" = ia64; then
18217 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18218 allow_undefined_flag_CXX="-z nodefs"
18219 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"
18220 else
18221 # Determine the default libpath from the value encoded in an empty executable.
18222 cat >conftest.$ac_ext <<_ACEOF
18223 /* confdefs.h. */
18224 _ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h. */
18230 main ()
18234 return 0;
18236 _ACEOF
18237 rm -f conftest.$ac_objext conftest$ac_exeext
18238 if { (ac_try="$ac_link"
18239 case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18242 esac
18243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_link") 2>conftest.er1
18245 ac_status=$?
18246 grep -v '^ *+' conftest.er1 >conftest.err
18247 rm -f conftest.er1
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
18251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18252 { (case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_try") 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest$ac_exeext'
18262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265 esac
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18274 # Check for a 64-bit object if we didn't find anything.
18275 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18276 }'`; fi
18277 else
18278 echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18284 rm -f core conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18288 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18289 # Warning - without using the other run time loading flags,
18290 # -berok will link without error, but may produce a broken library.
18291 no_undefined_flag_CXX=' ${wl}-bernotok'
18292 allow_undefined_flag_CXX=' ${wl}-berok'
18293 # Exported symbols can be pulled into shared objects from archives
18294 whole_archive_flag_spec_CXX='$convenience'
18295 archive_cmds_need_lc_CXX=yes
18296 # This is similar to how AIX traditionally builds its shared libraries.
18297 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'
18302 beos*)
18303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18304 allow_undefined_flag_CXX=unsupported
18305 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18306 # support --undefined. This deserves some investigation. FIXME
18307 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18308 else
18309 ld_shlibs_CXX=no
18313 chorus*)
18314 case $cc_basename in
18316 # FIXME: insert proper C++ library support
18317 ld_shlibs_CXX=no
18319 esac
18322 cygwin* | mingw* | pw32*)
18323 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18324 # as there is no search path for DLLs.
18325 hardcode_libdir_flag_spec_CXX='-L$libdir'
18326 allow_undefined_flag_CXX=unsupported
18327 always_export_symbols_CXX=no
18328 enable_shared_with_static_runtimes_CXX=yes
18330 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18331 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'
18332 # If the export-symbols file already is a .def file (1st line
18333 # is EXPORTS), use it as is; otherwise, prepend...
18334 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18335 cp $export_symbols $output_objdir/$soname.def;
18336 else
18337 echo EXPORTS > $output_objdir/$soname.def;
18338 cat $export_symbols >> $output_objdir/$soname.def;
18340 $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'
18341 else
18342 ld_shlibs_CXX=no
18345 darwin* | rhapsody*)
18346 case $host_os in
18347 rhapsody* | darwin1.[012])
18348 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18350 *) # Darwin 1.3 on
18351 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18352 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18353 else
18354 case ${MACOSX_DEPLOYMENT_TARGET} in
18355 10.[012])
18356 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18358 10.*)
18359 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18361 esac
18364 esac
18365 archive_cmds_need_lc_CXX=no
18366 hardcode_direct_CXX=no
18367 hardcode_automatic_CXX=yes
18368 hardcode_shlibpath_var_CXX=unsupported
18369 whole_archive_flag_spec_CXX=''
18370 link_all_deplibs_CXX=yes
18372 if test "$GXX" = yes ; then
18373 lt_int_apple_cc_single_mod=no
18374 output_verbose_link_cmd='echo'
18375 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18376 lt_int_apple_cc_single_mod=yes
18378 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18379 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18380 else
18381 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'
18383 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18385 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18386 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18387 else
18388 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18390 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18391 else
18392 case $cc_basename in
18393 xlc*)
18394 output_verbose_link_cmd='echo'
18395 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18396 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18398 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18399 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18402 ld_shlibs_CXX=no
18404 esac
18408 dgux*)
18409 case $cc_basename in
18410 ec++*)
18411 # FIXME: insert proper C++ library support
18412 ld_shlibs_CXX=no
18414 ghcx*)
18415 # Green Hills C++ Compiler
18416 # FIXME: insert proper C++ library support
18417 ld_shlibs_CXX=no
18420 # FIXME: insert proper C++ library support
18421 ld_shlibs_CXX=no
18423 esac
18425 freebsd[12]*)
18426 # C++ shared libraries reported to be fairly broken before switch to ELF
18427 ld_shlibs_CXX=no
18429 freebsd-elf*)
18430 archive_cmds_need_lc_CXX=no
18432 freebsd* | kfreebsd*-gnu | dragonfly*)
18433 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18434 # conventions
18435 ld_shlibs_CXX=yes
18437 gnu*)
18439 hpux9*)
18440 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18441 hardcode_libdir_separator_CXX=:
18442 export_dynamic_flag_spec_CXX='${wl}-E'
18443 hardcode_direct_CXX=yes
18444 hardcode_minus_L_CXX=yes # Not in the search PATH,
18445 # but as the default
18446 # location of the library.
18448 case $cc_basename in
18449 CC*)
18450 # FIXME: insert proper C++ library support
18451 ld_shlibs_CXX=no
18453 aCC*)
18454 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'
18455 # Commands to make compiler produce verbose output that lists
18456 # what "hidden" libraries, object files and flags are used when
18457 # linking a shared library.
18459 # There doesn't appear to be a way to prevent this compiler from
18460 # explicitly linking system object files so we need to strip them
18461 # from the output so that they don't get included in the library
18462 # dependencies.
18463 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 $list'
18466 if test "$GXX" = yes; then
18467 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'
18468 else
18469 # FIXME: insert proper C++ library support
18470 ld_shlibs_CXX=no
18473 esac
18475 hpux10*|hpux11*)
18476 if test $with_gnu_ld = no; then
18477 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18478 hardcode_libdir_separator_CXX=:
18480 case $host_cpu in
18481 hppa*64*|ia64*)
18482 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18485 export_dynamic_flag_spec_CXX='${wl}-E'
18487 esac
18489 case $host_cpu in
18490 hppa*64*|ia64*)
18491 hardcode_direct_CXX=no
18492 hardcode_shlibpath_var_CXX=no
18495 hardcode_direct_CXX=yes
18496 hardcode_minus_L_CXX=yes # Not in the search PATH,
18497 # but as the default
18498 # location of the library.
18500 esac
18502 case $cc_basename in
18503 CC*)
18504 # FIXME: insert proper C++ library support
18505 ld_shlibs_CXX=no
18507 aCC*)
18508 case $host_cpu in
18509 hppa*64*)
18510 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18512 ia64*)
18513 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18516 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18518 esac
18519 # Commands to make compiler produce verbose output that lists
18520 # what "hidden" libraries, object files and flags are used when
18521 # linking a shared library.
18523 # There doesn't appear to be a way to prevent this compiler from
18524 # explicitly linking system object files so we need to strip them
18525 # from the output so that they don't get included in the library
18526 # dependencies.
18527 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 $list'
18530 if test "$GXX" = yes; then
18531 if test $with_gnu_ld = no; then
18532 case $host_cpu in
18533 hppa*64*)
18534 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18536 ia64*)
18537 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18540 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'
18542 esac
18544 else
18545 # FIXME: insert proper C++ library support
18546 ld_shlibs_CXX=no
18549 esac
18551 interix3*)
18552 hardcode_direct_CXX=no
18553 hardcode_shlibpath_var_CXX=no
18554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18555 export_dynamic_flag_spec_CXX='${wl}-E'
18556 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18557 # Instead, shared libraries are loaded at an image base (0x10000000 by
18558 # default) and relocated if they conflict, which is a slow very memory
18559 # consuming and fragmenting process. To avoid this, we pick a random,
18560 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18561 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18562 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'
18563 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'
18565 irix5* | irix6*)
18566 case $cc_basename in
18567 CC*)
18568 # SGI C++
18569 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18571 # Archives containing C++ object files must be created using
18572 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18573 # necessary to make sure instantiated templates are included
18574 # in the archive.
18575 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18578 if test "$GXX" = yes; then
18579 if test "$with_gnu_ld" = no; then
18580 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18581 else
18582 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
18585 link_all_deplibs_CXX=yes
18587 esac
18588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18589 hardcode_libdir_separator_CXX=:
18591 linux*)
18592 case $cc_basename in
18593 KCC*)
18594 # Kuck and Associates, Inc. (KAI) C++ Compiler
18596 # KCC will only create a shared library if the output file
18597 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18598 # to its proper name (with version) after linking.
18599 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'
18600 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'
18601 # Commands to make compiler produce verbose output that lists
18602 # what "hidden" libraries, object files and flags are used when
18603 # linking a shared library.
18605 # There doesn't appear to be a way to prevent this compiler from
18606 # explicitly linking system object files so we need to strip them
18607 # from the output so that they don't get included in the library
18608 # dependencies.
18609 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 $list'
18611 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18614 # Archives containing C++ object files must be created using
18615 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18616 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18618 icpc*)
18619 # Intel C++
18620 with_gnu_ld=yes
18621 # version 8.0 and above of icpc choke on multiply defined symbols
18622 # if we add $predep_objects and $postdep_objects, however 7.1 and
18623 # earlier do not add the objects themselves.
18624 case `$CC -V 2>&1` in
18625 *"Version 7."*)
18626 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18627 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'
18629 *) # Version 8.0 or newer
18630 tmp_idyn=
18631 case $host_cpu in
18632 ia64*) tmp_idyn=' -i_dynamic';;
18633 esac
18634 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18635 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'
18637 esac
18638 archive_cmds_need_lc_CXX=no
18639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18641 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18643 pgCC*)
18644 # Portland Group C++ compiler
18645 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18646 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'
18648 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18650 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'
18652 cxx*)
18653 # Compaq C++
18654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 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'
18657 runpath_var=LD_RUN_PATH
18658 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18659 hardcode_libdir_separator_CXX=:
18661 # Commands to make compiler produce verbose output that lists
18662 # what "hidden" libraries, object files and flags are used when
18663 # linking a shared library.
18665 # There doesn't appear to be a way to prevent this compiler from
18666 # explicitly linking system object files so we need to strip them
18667 # from the output so that they don't get included in the library
18668 # dependencies.
18669 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
18671 esac
18673 lynxos*)
18674 # FIXME: insert proper C++ library support
18675 ld_shlibs_CXX=no
18677 m88k*)
18678 # FIXME: insert proper C++ library support
18679 ld_shlibs_CXX=no
18681 mvs*)
18682 case $cc_basename in
18683 cxx*)
18684 # FIXME: insert proper C++ library support
18685 ld_shlibs_CXX=no
18688 # FIXME: insert proper C++ library support
18689 ld_shlibs_CXX=no
18691 esac
18693 netbsd*)
18694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18695 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18696 wlarc=
18697 hardcode_libdir_flag_spec_CXX='-R$libdir'
18698 hardcode_direct_CXX=yes
18699 hardcode_shlibpath_var_CXX=no
18701 # Workaround some broken pre-1.5 toolchains
18702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18704 openbsd2*)
18705 # C++ shared libraries are fairly broken
18706 ld_shlibs_CXX=no
18708 openbsd*)
18709 hardcode_direct_CXX=yes
18710 hardcode_shlibpath_var_CXX=no
18711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18712 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18714 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18715 export_dynamic_flag_spec_CXX='${wl}-E'
18716 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18718 output_verbose_link_cmd='echo'
18720 osf3*)
18721 case $cc_basename in
18722 KCC*)
18723 # Kuck and Associates, Inc. (KAI) C++ Compiler
18725 # KCC will only create a shared library if the output file
18726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18727 # to its proper name (with version) after linking.
18728 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'
18730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18731 hardcode_libdir_separator_CXX=:
18733 # Archives containing C++ object files must be created using
18734 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18735 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18738 RCC*)
18739 # Rational C++ 2.4.1
18740 # FIXME: insert proper C++ library support
18741 ld_shlibs_CXX=no
18743 cxx*)
18744 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18745 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18748 hardcode_libdir_separator_CXX=:
18750 # Commands to make compiler produce verbose output that lists
18751 # what "hidden" libraries, object files and flags are used when
18752 # linking a shared library.
18754 # There doesn't appear to be a way to prevent this compiler from
18755 # explicitly linking system object files so we need to strip them
18756 # from the output so that they don't get included in the library
18757 # dependencies.
18758 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
18761 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18762 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18763 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18766 hardcode_libdir_separator_CXX=:
18768 # Commands to make compiler produce verbose output that lists
18769 # what "hidden" libraries, object files and flags are used when
18770 # linking a shared library.
18771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18773 else
18774 # FIXME: insert proper C++ library support
18775 ld_shlibs_CXX=no
18778 esac
18780 osf4* | osf5*)
18781 case $cc_basename in
18782 KCC*)
18783 # Kuck and Associates, Inc. (KAI) C++ Compiler
18785 # KCC will only create a shared library if the output file
18786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18787 # to its proper name (with version) after linking.
18788 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'
18790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18791 hardcode_libdir_separator_CXX=:
18793 # Archives containing C++ object files must be created using
18794 # the KAI C++ compiler.
18795 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18797 RCC*)
18798 # Rational C++ 2.4.1
18799 # FIXME: insert proper C++ library support
18800 ld_shlibs_CXX=no
18802 cxx*)
18803 allow_undefined_flag_CXX=' -expect_unresolved \*'
18804 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18805 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18806 echo "-hidden">> $lib.exp~
18807 $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
18808 $rm $lib.exp'
18810 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18811 hardcode_libdir_separator_CXX=:
18813 # Commands to make compiler produce verbose output that lists
18814 # what "hidden" libraries, object files and flags are used when
18815 # linking a shared library.
18817 # There doesn't appear to be a way to prevent this compiler from
18818 # explicitly linking system object files so we need to strip them
18819 # from the output so that they don't get included in the library
18820 # dependencies.
18821 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
18824 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18825 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18826 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18829 hardcode_libdir_separator_CXX=:
18831 # Commands to make compiler produce verbose output that lists
18832 # what "hidden" libraries, object files and flags are used when
18833 # linking a shared library.
18834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18836 else
18837 # FIXME: insert proper C++ library support
18838 ld_shlibs_CXX=no
18841 esac
18843 psos*)
18844 # FIXME: insert proper C++ library support
18845 ld_shlibs_CXX=no
18847 sunos4*)
18848 case $cc_basename in
18849 CC*)
18850 # Sun C++ 4.x
18851 # FIXME: insert proper C++ library support
18852 ld_shlibs_CXX=no
18854 lcc*)
18855 # Lucid
18856 # FIXME: insert proper C++ library support
18857 ld_shlibs_CXX=no
18860 # FIXME: insert proper C++ library support
18861 ld_shlibs_CXX=no
18863 esac
18865 solaris*)
18866 case $cc_basename in
18867 CC*)
18868 # Sun C++ 4.2, 5.x and Centerline C++
18869 archive_cmds_need_lc_CXX=yes
18870 no_undefined_flag_CXX=' -zdefs'
18871 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18872 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18873 $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'
18875 hardcode_libdir_flag_spec_CXX='-R$libdir'
18876 hardcode_shlibpath_var_CXX=no
18877 case $host_os in
18878 solaris2.[0-5] | solaris2.[0-5].*) ;;
18880 # The C++ compiler is used as linker so we must use $wl
18881 # flag to pass the commands to the underlying system
18882 # linker. We must also pass each convience library through
18883 # to the system linker between allextract/defaultextract.
18884 # The C++ compiler will combine linker options so we
18885 # cannot just pass the convience library names through
18886 # without $wl.
18887 # Supported since Solaris 2.6 (maybe 2.5.1?)
18888 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
18890 esac
18891 link_all_deplibs_CXX=yes
18893 output_verbose_link_cmd='echo'
18895 # Archives containing C++ object files must be created using
18896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18897 # necessary to make sure instantiated templates are included
18898 # in the archive.
18899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18901 gcx*)
18902 # Green Hills C++ Compiler
18903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18905 # The C++ compiler must be used to create the archive.
18906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18909 # GNU C++ compiler with Solaris linker
18910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18911 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18912 if $CC --version | grep -v '^2\.7' > /dev/null; then
18913 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18915 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18917 # Commands to make compiler produce verbose output that lists
18918 # what "hidden" libraries, object files and flags are used when
18919 # linking a shared library.
18920 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18921 else
18922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18923 # platform.
18924 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18925 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18926 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18928 # Commands to make compiler produce verbose output that lists
18929 # what "hidden" libraries, object files and flags are used when
18930 # linking a shared library.
18931 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18934 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18937 esac
18939 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18940 no_undefined_flag_CXX='${wl}-z,text'
18941 archive_cmds_need_lc_CXX=no
18942 hardcode_shlibpath_var_CXX=no
18943 runpath_var='LD_RUN_PATH'
18945 case $cc_basename in
18946 CC*)
18947 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18948 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18951 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18952 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18954 esac
18956 sysv5* | sco3.2v5* | sco5v6*)
18957 # Note: We can NOT use -z defs as we might desire, because we do not
18958 # link with -lc, and that would cause any symbols used from libc to
18959 # always be unresolved, which means just about no library would
18960 # ever link correctly. If we're not using GNU ld we use -z text
18961 # though, which does catch some bad symbols but isn't as heavy-handed
18962 # as -z defs.
18963 # For security reasons, it is highly recommended that you always
18964 # use absolute paths for naming shared libraries, and exclude the
18965 # DT_RUNPATH tag from executables and libraries. But doing so
18966 # requires that you compile everything twice, which is a pain.
18967 # So that behaviour is only enabled if SCOABSPATH is set to a
18968 # non-empty value in the environment. Most likely only useful for
18969 # creating official distributions of packages.
18970 # This is a hack until libtool officially supports absolute path
18971 # names for shared libraries.
18972 no_undefined_flag_CXX='${wl}-z,text'
18973 allow_undefined_flag_CXX='${wl}-z,nodefs'
18974 archive_cmds_need_lc_CXX=no
18975 hardcode_shlibpath_var_CXX=no
18976 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18977 hardcode_libdir_separator_CXX=':'
18978 link_all_deplibs_CXX=yes
18979 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18980 runpath_var='LD_RUN_PATH'
18982 case $cc_basename in
18983 CC*)
18984 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18985 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18988 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18991 esac
18993 tandem*)
18994 case $cc_basename in
18995 NCC*)
18996 # NonStop-UX NCC 3.20
18997 # FIXME: insert proper C++ library support
18998 ld_shlibs_CXX=no
19001 # FIXME: insert proper C++ library support
19002 ld_shlibs_CXX=no
19004 esac
19006 vxworks*)
19007 # FIXME: insert proper C++ library support
19008 ld_shlibs_CXX=no
19011 # FIXME: insert proper C++ library support
19012 ld_shlibs_CXX=no
19014 esac
19015 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19016 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19017 test "$ld_shlibs_CXX" = no && can_build_shared=no
19019 GCC_CXX="$GXX"
19020 LD_CXX="$LD"
19023 cat > conftest.$ac_ext <<EOF
19024 class Foo
19026 public:
19027 Foo (void) { a = 0; }
19028 private:
19029 int a;
19033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034 (eval $ac_compile) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; then
19038 # Parse the compiler output and extract the necessary
19039 # objects, libraries and library flags.
19041 # Sentinel used to keep track of whether or not we are before
19042 # the conftest object file.
19043 pre_test_object_deps_done=no
19045 # The `*' in the case matches for architectures that use `case' in
19046 # $output_verbose_cmd can trigger glob expansion during the loop
19047 # eval without this substitution.
19048 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19050 for p in `eval $output_verbose_link_cmd`; do
19051 case $p in
19053 -L* | -R* | -l*)
19054 # Some compilers place space between "-{L,R}" and the path.
19055 # Remove the space.
19056 if test $p = "-L" \
19057 || test $p = "-R"; then
19058 prev=$p
19059 continue
19060 else
19061 prev=
19064 if test "$pre_test_object_deps_done" = no; then
19065 case $p in
19066 -L* | -R*)
19067 # Internal compiler library paths should come after those
19068 # provided the user. The postdeps already come after the
19069 # user supplied libs so there is no need to process them.
19070 if test -z "$compiler_lib_search_path_CXX"; then
19071 compiler_lib_search_path_CXX="${prev}${p}"
19072 else
19073 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19076 # The "-l" case would never come before the object being
19077 # linked, so don't bother handling this case.
19078 esac
19079 else
19080 if test -z "$postdeps_CXX"; then
19081 postdeps_CXX="${prev}${p}"
19082 else
19083 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19088 *.$objext)
19089 # This assumes that the test object file only shows up
19090 # once in the compiler output.
19091 if test "$p" = "conftest.$objext"; then
19092 pre_test_object_deps_done=yes
19093 continue
19096 if test "$pre_test_object_deps_done" = no; then
19097 if test -z "$predep_objects_CXX"; then
19098 predep_objects_CXX="$p"
19099 else
19100 predep_objects_CXX="$predep_objects_CXX $p"
19102 else
19103 if test -z "$postdep_objects_CXX"; then
19104 postdep_objects_CXX="$p"
19105 else
19106 postdep_objects_CXX="$postdep_objects_CXX $p"
19111 *) ;; # Ignore the rest.
19113 esac
19114 done
19116 # Clean up.
19117 rm -f a.out a.exe
19118 else
19119 echo "libtool.m4: error: problem compiling CXX test program"
19122 $rm -f confest.$objext
19124 # PORTME: override above test on systems where it is broken
19125 case $host_os in
19126 interix3*)
19127 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19128 # hack all around it, let's just trust "g++" to DTRT.
19129 predep_objects_CXX=
19130 postdep_objects_CXX=
19131 postdeps_CXX=
19134 solaris*)
19135 case $cc_basename in
19136 CC*)
19137 # Adding this requires a known-good setup of shared libraries for
19138 # Sun compiler versions before 5.6, else PIC objects from an old
19139 # archive will be linked into the output, leading to subtle bugs.
19140 postdeps_CXX='-lCstd -lCrun'
19142 esac
19144 esac
19147 case " $postdeps_CXX " in
19148 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19149 esac
19151 lt_prog_compiler_wl_CXX=
19152 lt_prog_compiler_pic_CXX=
19153 lt_prog_compiler_static_CXX=
19155 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19156 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19158 # C++ specific cases for pic, static, wl, etc.
19159 if test "$GXX" = yes; then
19160 lt_prog_compiler_wl_CXX='-Wl,'
19161 lt_prog_compiler_static_CXX='-static'
19163 case $host_os in
19164 aix*)
19165 # All AIX code is PIC.
19166 if test "$host_cpu" = ia64; then
19167 # AIX 5 now supports IA64 processor
19168 lt_prog_compiler_static_CXX='-Bstatic'
19171 amigaos*)
19172 # FIXME: we need at least 68020 code to build shared libraries, but
19173 # adding the `-m68020' flag to GCC prevents building anything better,
19174 # like `-m68040'.
19175 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19177 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19178 # PIC is the default for these OSes.
19180 mingw* | os2* | pw32*)
19181 # This hack is so that the source file can tell whether it is being
19182 # built for inclusion in a dll (and should export symbols for example).
19183 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19185 darwin* | rhapsody*)
19186 # PIC is the default on this platform
19187 # Common symbols not allowed in MH_DYLIB files
19188 lt_prog_compiler_pic_CXX='-fno-common'
19190 *djgpp*)
19191 # DJGPP does not support shared libraries at all
19192 lt_prog_compiler_pic_CXX=
19194 interix3*)
19195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19196 # Instead, we relocate shared libraries at runtime.
19198 sysv4*MP*)
19199 if test -d /usr/nec; then
19200 lt_prog_compiler_pic_CXX=-Kconform_pic
19203 hpux*)
19204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19205 # not for PA HP-UX.
19206 case $host_cpu in
19207 hppa*64*|ia64*)
19210 lt_prog_compiler_pic_CXX='-fPIC'
19212 esac
19215 lt_prog_compiler_pic_CXX='-fPIC'
19217 esac
19218 else
19219 case $host_os in
19220 aix4* | aix5*)
19221 # All AIX code is PIC.
19222 if test "$host_cpu" = ia64; then
19223 # AIX 5 now supports IA64 processor
19224 lt_prog_compiler_static_CXX='-Bstatic'
19225 else
19226 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19229 chorus*)
19230 case $cc_basename in
19231 cxch68*)
19232 # Green Hills C++ Compiler
19233 # _LT_AC_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"
19235 esac
19237 darwin*)
19238 # PIC is the default on this platform
19239 # Common symbols not allowed in MH_DYLIB files
19240 case $cc_basename in
19241 xlc*)
19242 lt_prog_compiler_pic_CXX='-qnocommon'
19243 lt_prog_compiler_wl_CXX='-Wl,'
19245 esac
19247 dgux*)
19248 case $cc_basename in
19249 ec++*)
19250 lt_prog_compiler_pic_CXX='-KPIC'
19252 ghcx*)
19253 # Green Hills C++ Compiler
19254 lt_prog_compiler_pic_CXX='-pic'
19258 esac
19260 freebsd* | kfreebsd*-gnu | dragonfly*)
19261 # FreeBSD uses GNU C++
19263 hpux9* | hpux10* | hpux11*)
19264 case $cc_basename in
19265 CC*)
19266 lt_prog_compiler_wl_CXX='-Wl,'
19267 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19268 if test "$host_cpu" != ia64; then
19269 lt_prog_compiler_pic_CXX='+Z'
19272 aCC*)
19273 lt_prog_compiler_wl_CXX='-Wl,'
19274 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19275 case $host_cpu in
19276 hppa*64*|ia64*)
19277 # +Z the default
19280 lt_prog_compiler_pic_CXX='+Z'
19282 esac
19286 esac
19288 interix*)
19289 # This is c89, which is MS Visual C++ (no shared libs)
19290 # Anyone wants to do a port?
19292 irix5* | irix6* | nonstopux*)
19293 case $cc_basename in
19294 CC*)
19295 lt_prog_compiler_wl_CXX='-Wl,'
19296 lt_prog_compiler_static_CXX='-non_shared'
19297 # CC pic flag -KPIC is the default.
19301 esac
19303 linux*)
19304 case $cc_basename in
19305 KCC*)
19306 # KAI C++ Compiler
19307 lt_prog_compiler_wl_CXX='--backend -Wl,'
19308 lt_prog_compiler_pic_CXX='-fPIC'
19310 icpc* | ecpc*)
19311 # Intel C++
19312 lt_prog_compiler_wl_CXX='-Wl,'
19313 lt_prog_compiler_pic_CXX='-KPIC'
19314 lt_prog_compiler_static_CXX='-static'
19316 pgCC*)
19317 # Portland Group C++ compiler.
19318 lt_prog_compiler_wl_CXX='-Wl,'
19319 lt_prog_compiler_pic_CXX='-fpic'
19320 lt_prog_compiler_static_CXX='-Bstatic'
19322 cxx*)
19323 # Compaq C++
19324 # Make sure the PIC flag is empty. It appears that all Alpha
19325 # Linux and Compaq Tru64 Unix objects are PIC.
19326 lt_prog_compiler_pic_CXX=
19327 lt_prog_compiler_static_CXX='-non_shared'
19331 esac
19333 lynxos*)
19335 m88k*)
19337 mvs*)
19338 case $cc_basename in
19339 cxx*)
19340 lt_prog_compiler_pic_CXX='-W c,exportall'
19344 esac
19346 netbsd*)
19348 osf3* | osf4* | osf5*)
19349 case $cc_basename in
19350 KCC*)
19351 lt_prog_compiler_wl_CXX='--backend -Wl,'
19353 RCC*)
19354 # Rational C++ 2.4.1
19355 lt_prog_compiler_pic_CXX='-pic'
19357 cxx*)
19358 # Digital/Compaq C++
19359 lt_prog_compiler_wl_CXX='-Wl,'
19360 # Make sure the PIC flag is empty. It appears that all Alpha
19361 # Linux and Compaq Tru64 Unix objects are PIC.
19362 lt_prog_compiler_pic_CXX=
19363 lt_prog_compiler_static_CXX='-non_shared'
19367 esac
19369 psos*)
19371 solaris*)
19372 case $cc_basename in
19373 CC*)
19374 # Sun C++ 4.2, 5.x and Centerline C++
19375 lt_prog_compiler_pic_CXX='-KPIC'
19376 lt_prog_compiler_static_CXX='-Bstatic'
19377 lt_prog_compiler_wl_CXX='-Qoption ld '
19379 gcx*)
19380 # Green Hills C++ Compiler
19381 lt_prog_compiler_pic_CXX='-PIC'
19385 esac
19387 sunos4*)
19388 case $cc_basename in
19389 CC*)
19390 # Sun C++ 4.x
19391 lt_prog_compiler_pic_CXX='-pic'
19392 lt_prog_compiler_static_CXX='-Bstatic'
19394 lcc*)
19395 # Lucid
19396 lt_prog_compiler_pic_CXX='-pic'
19400 esac
19402 tandem*)
19403 case $cc_basename in
19404 NCC*)
19405 # NonStop-UX NCC 3.20
19406 lt_prog_compiler_pic_CXX='-KPIC'
19410 esac
19412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19413 case $cc_basename in
19414 CC*)
19415 lt_prog_compiler_wl_CXX='-Wl,'
19416 lt_prog_compiler_pic_CXX='-KPIC'
19417 lt_prog_compiler_static_CXX='-Bstatic'
19419 esac
19421 vxworks*)
19424 lt_prog_compiler_can_build_shared_CXX=no
19426 esac
19429 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19430 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19433 # Check to make sure the PIC flag actually works.
19435 if test -n "$lt_prog_compiler_pic_CXX"; then
19437 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19438 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19439 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 else
19442 lt_prog_compiler_pic_works_CXX=no
19443 ac_outfile=conftest.$ac_objext
19444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19445 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19446 # Insert the option either (1) after the last *FLAGS variable, or
19447 # (2) before a word containing "conftest.", or (3) at the end.
19448 # Note that $ac_compile itself does not contain backslashes and begins
19449 # with a dollar sign (not a hyphen), so the echo should work correctly.
19450 # The option is referenced via a variable to avoid confusing sed.
19451 lt_compile=`echo "$ac_compile" | $SED \
19452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19454 -e 's:$: $lt_compiler_flag:'`
19455 (eval echo "\"\$as_me:19455: $lt_compile\"" >&5)
19456 (eval "$lt_compile" 2>conftest.err)
19457 ac_status=$?
19458 cat conftest.err >&5
19459 echo "$as_me:19459: \$? = $ac_status" >&5
19460 if (exit $ac_status) && test -s "$ac_outfile"; then
19461 # The compiler can only warn and ignore the option if not recognized
19462 # So say no if there are warnings other than the usual output.
19463 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19466 lt_prog_compiler_pic_works_CXX=yes
19469 $rm conftest*
19472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19473 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19475 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19476 case $lt_prog_compiler_pic_CXX in
19477 "" | " "*) ;;
19478 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19479 esac
19480 else
19481 lt_prog_compiler_pic_CXX=
19482 lt_prog_compiler_can_build_shared_CXX=no
19486 case $host_os in
19487 # For platforms which do not support PIC, -DPIC is meaningless:
19488 *djgpp*)
19489 lt_prog_compiler_pic_CXX=
19492 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19494 esac
19497 # Check to make sure the static flag actually works.
19499 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19500 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19501 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19502 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505 lt_prog_compiler_static_works_CXX=no
19506 save_LDFLAGS="$LDFLAGS"
19507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19508 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19510 # The linker can only warn and ignore the option if not recognized
19511 # So say no if there are warnings
19512 if test -s conftest.err; then
19513 # Append any errors to the config.log.
19514 cat conftest.err 1>&5
19515 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19517 if diff conftest.exp conftest.er2 >/dev/null; then
19518 lt_prog_compiler_static_works_CXX=yes
19520 else
19521 lt_prog_compiler_static_works_CXX=yes
19524 $rm conftest*
19525 LDFLAGS="$save_LDFLAGS"
19528 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19529 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19531 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19533 else
19534 lt_prog_compiler_static_CXX=
19538 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19540 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543 lt_cv_prog_compiler_c_o_CXX=no
19544 $rm -r conftest 2>/dev/null
19545 mkdir conftest
19546 cd conftest
19547 mkdir out
19548 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19550 lt_compiler_flag="-o out/conftest2.$ac_objext"
19551 # Insert the option either (1) after the last *FLAGS variable, or
19552 # (2) before a word containing "conftest.", or (3) at the end.
19553 # Note that $ac_compile itself does not contain backslashes and begins
19554 # with a dollar sign (not a hyphen), so the echo should work correctly.
19555 lt_compile=`echo "$ac_compile" | $SED \
19556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19558 -e 's:$: $lt_compiler_flag:'`
19559 (eval echo "\"\$as_me:19559: $lt_compile\"" >&5)
19560 (eval "$lt_compile" 2>out/conftest.err)
19561 ac_status=$?
19562 cat out/conftest.err >&5
19563 echo "$as_me:19563: \$? = $ac_status" >&5
19564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19565 then
19566 # The compiler can only warn and ignore the option if not recognized
19567 # So say no if there are warnings
19568 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19571 lt_cv_prog_compiler_c_o_CXX=yes
19574 chmod u+w . 2>&5
19575 $rm conftest*
19576 # SGI C++ compiler will create directory out/ii_files/ for
19577 # template instantiation
19578 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19579 $rm out/* && rmdir out
19580 cd ..
19581 rmdir conftest
19582 $rm conftest*
19585 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19589 hard_links="nottested"
19590 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19591 # do not overwrite the value of need_locks provided by the user
19592 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19594 hard_links=yes
19595 $rm conftest*
19596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19597 touch conftest.a
19598 ln conftest.a conftest.b 2>&5 || hard_links=no
19599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19600 { echo "$as_me:$LINENO: result: $hard_links" >&5
19601 echo "${ECHO_T}$hard_links" >&6; }
19602 if test "$hard_links" = no; then
19603 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19605 need_locks=warn
19607 else
19608 need_locks=no
19611 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19614 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19615 case $host_os in
19616 aix4* | aix5*)
19617 # If we're using GNU nm, then we don't want the "-C" option.
19618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19619 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19620 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'
19621 else
19622 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'
19625 pw32*)
19626 export_symbols_cmds_CXX="$ltdll_cmds"
19628 cygwin* | mingw*)
19629 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'
19632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19634 esac
19636 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19637 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19638 test "$ld_shlibs_CXX" = no && can_build_shared=no
19641 # Do we need to explicitly link libc?
19643 case "x$archive_cmds_need_lc_CXX" in
19644 x|xyes)
19645 # Assume -lc should be added
19646 archive_cmds_need_lc_CXX=yes
19648 if test "$enable_shared" = yes && test "$GCC" = yes; then
19649 case $archive_cmds_CXX in
19650 *'~'*)
19651 # FIXME: we may have to deal with multi-command sequences.
19653 '$CC '*)
19654 # Test whether the compiler implicitly links with -lc since on some
19655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19656 # to ld, don't add -lc before -lgcc.
19657 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19658 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19659 $rm conftest*
19660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } 2>conftest.err; then
19667 soname=conftest
19668 lib=conftest
19669 libobjs=conftest.$ac_objext
19670 deplibs=
19671 wl=$lt_prog_compiler_wl_CXX
19672 pic_flag=$lt_prog_compiler_pic_CXX
19673 compiler_flags=-v
19674 linker_flags=-v
19675 verstring=
19676 output_objdir=.
19677 libname=conftest
19678 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19679 allow_undefined_flag_CXX=
19680 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19681 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }
19685 then
19686 archive_cmds_need_lc_CXX=no
19687 else
19688 archive_cmds_need_lc_CXX=yes
19690 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19691 else
19692 cat conftest.err 1>&5
19694 $rm conftest*
19695 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19696 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19698 esac
19701 esac
19703 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19705 library_names_spec=
19706 libname_spec='lib$name'
19707 soname_spec=
19708 shrext_cmds=".so"
19709 postinstall_cmds=
19710 postuninstall_cmds=
19711 finish_cmds=
19712 finish_eval=
19713 shlibpath_var=
19714 shlibpath_overrides_runpath=unknown
19715 version_type=none
19716 dynamic_linker="$host_os ld.so"
19717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19718 if test "$GCC" = yes; then
19719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19720 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19721 # if the path contains ";" then we assume it to be the separator
19722 # otherwise default to the standard path separator (i.e. ":") - it is
19723 # assumed that no part of a normal pathname contains ";" but that should
19724 # okay in the real world where ";" in dirpaths is itself problematic.
19725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19726 else
19727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19729 else
19730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19732 need_lib_prefix=unknown
19733 hardcode_into_libs=no
19735 # when you set need_version to no, make sure it does not cause -set_version
19736 # flags to be left without arguments
19737 need_version=unknown
19739 case $host_os in
19740 aix3*)
19741 version_type=linux
19742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19743 shlibpath_var=LIBPATH
19745 # AIX 3 has no versioning support, so we append a major version to the name.
19746 soname_spec='${libname}${release}${shared_ext}$major'
19749 aix4* | aix5*)
19750 version_type=linux
19751 need_lib_prefix=no
19752 need_version=no
19753 hardcode_into_libs=yes
19754 if test "$host_cpu" = ia64; then
19755 # AIX 5 supports IA64
19756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19757 shlibpath_var=LD_LIBRARY_PATH
19758 else
19759 # With GCC up to 2.95.x, collect2 would create an import file
19760 # for dependence libraries. The import file would start with
19761 # the line `#! .'. This would cause the generated library to
19762 # depend on `.', always an invalid library. This was fixed in
19763 # development snapshots of GCC prior to 3.0.
19764 case $host_os in
19765 aix4 | aix4.[01] | aix4.[01].*)
19766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19767 echo ' yes '
19768 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19770 else
19771 can_build_shared=no
19774 esac
19775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19776 # soname into executable. Probably we can add versioning support to
19777 # collect2, so additional links can be useful in future.
19778 if test "$aix_use_runtimelinking" = yes; then
19779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19780 # instead of lib<name>.a to let people know that these are not
19781 # typical AIX shared libraries.
19782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19783 else
19784 # We preserve .a as extension for shared libraries through AIX4.2
19785 # and later when we are not doing run time linking.
19786 library_names_spec='${libname}${release}.a $libname.a'
19787 soname_spec='${libname}${release}${shared_ext}$major'
19789 shlibpath_var=LIBPATH
19793 amigaos*)
19794 library_names_spec='$libname.ixlibrary $libname.a'
19795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19796 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'
19799 beos*)
19800 library_names_spec='${libname}${shared_ext}'
19801 dynamic_linker="$host_os ld.so"
19802 shlibpath_var=LIBRARY_PATH
19805 bsdi[45]*)
19806 version_type=linux
19807 need_version=no
19808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19809 soname_spec='${libname}${release}${shared_ext}$major'
19810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19811 shlibpath_var=LD_LIBRARY_PATH
19812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19814 # the default ld.so.conf also contains /usr/contrib/lib and
19815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19816 # libtool to hard-code these into programs
19819 cygwin* | mingw* | pw32*)
19820 version_type=windows
19821 shrext_cmds=".dll"
19822 need_version=no
19823 need_lib_prefix=no
19825 case $GCC,$host_os in
19826 yes,cygwin* | yes,mingw* | yes,pw32*)
19827 library_names_spec='$libname.dll.a'
19828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19829 postinstall_cmds='base_file=`basename \${file}`~
19830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19831 dldir=$destdir/`dirname \$dlpath`~
19832 test -d \$dldir || mkdir -p \$dldir~
19833 $install_prog $dir/$dlname \$dldir/$dlname~
19834 chmod a+x \$dldir/$dlname'
19835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19836 dlpath=$dir/\$dldll~
19837 $rm \$dlpath'
19838 shlibpath_overrides_runpath=yes
19840 case $host_os in
19841 cygwin*)
19842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19846 mingw*)
19847 # MinGW DLLs use traditional 'lib' prefix
19848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19851 # It is most probably a Windows format PATH printed by
19852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19853 # path with ; separators, and with drive letters. We can handle the
19854 # drive letters (cygwin fileutils understands them), so leave them,
19855 # especially as we might pass files found there to a mingw objdump,
19856 # which wouldn't understand a cygwinified path. Ahh.
19857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19858 else
19859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19862 pw32*)
19863 # pw32 DLLs use 'pw' prefix rather than 'lib'
19864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19866 esac
19870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19872 esac
19873 dynamic_linker='Win32 ld.exe'
19874 # FIXME: first we should search . and the directory the executable is in
19875 shlibpath_var=PATH
19878 darwin* | rhapsody*)
19879 dynamic_linker="$host_os dyld"
19880 version_type=darwin
19881 need_lib_prefix=no
19882 need_version=no
19883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19884 soname_spec='${libname}${release}${major}$shared_ext'
19885 shlibpath_overrides_runpath=yes
19886 shlibpath_var=DYLD_LIBRARY_PATH
19887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19888 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19889 if test "$GCC" = yes; then
19890 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19891 else
19892 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19897 dgux*)
19898 version_type=linux
19899 need_lib_prefix=no
19900 need_version=no
19901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19902 soname_spec='${libname}${release}${shared_ext}$major'
19903 shlibpath_var=LD_LIBRARY_PATH
19906 freebsd1*)
19907 dynamic_linker=no
19910 kfreebsd*-gnu)
19911 version_type=linux
19912 need_lib_prefix=no
19913 need_version=no
19914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19915 soname_spec='${libname}${release}${shared_ext}$major'
19916 shlibpath_var=LD_LIBRARY_PATH
19917 shlibpath_overrides_runpath=no
19918 hardcode_into_libs=yes
19919 dynamic_linker='GNU ld.so'
19922 freebsd* | dragonfly*)
19923 # DragonFly does not have aout. When/if they implement a new
19924 # versioning mechanism, adjust this.
19925 if test -x /usr/bin/objformat; then
19926 objformat=`/usr/bin/objformat`
19927 else
19928 case $host_os in
19929 freebsd[123]*) objformat=aout ;;
19930 *) objformat=elf ;;
19931 esac
19933 version_type=freebsd-$objformat
19934 case $version_type in
19935 freebsd-elf*)
19936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19937 need_version=no
19938 need_lib_prefix=no
19940 freebsd-*)
19941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19942 need_version=yes
19944 esac
19945 shlibpath_var=LD_LIBRARY_PATH
19946 case $host_os in
19947 freebsd2*)
19948 shlibpath_overrides_runpath=yes
19950 freebsd3.[01]* | freebsdelf3.[01]*)
19951 shlibpath_overrides_runpath=yes
19952 hardcode_into_libs=yes
19954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19956 shlibpath_overrides_runpath=no
19957 hardcode_into_libs=yes
19959 freebsd*) # from 4.6 on
19960 shlibpath_overrides_runpath=yes
19961 hardcode_into_libs=yes
19963 esac
19966 gnu*)
19967 version_type=linux
19968 need_lib_prefix=no
19969 need_version=no
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19971 soname_spec='${libname}${release}${shared_ext}$major'
19972 shlibpath_var=LD_LIBRARY_PATH
19973 hardcode_into_libs=yes
19976 hpux9* | hpux10* | hpux11*)
19977 # Give a soname corresponding to the major version so that dld.sl refuses to
19978 # link against other versions.
19979 version_type=sunos
19980 need_lib_prefix=no
19981 need_version=no
19982 case $host_cpu in
19983 ia64*)
19984 shrext_cmds='.so'
19985 hardcode_into_libs=yes
19986 dynamic_linker="$host_os dld.so"
19987 shlibpath_var=LD_LIBRARY_PATH
19988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990 soname_spec='${libname}${release}${shared_ext}$major'
19991 if test "X$HPUX_IA64_MODE" = X32; then
19992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19993 else
19994 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19998 hppa*64*)
19999 shrext_cmds='.sl'
20000 hardcode_into_libs=yes
20001 dynamic_linker="$host_os dld.sl"
20002 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20005 soname_spec='${libname}${release}${shared_ext}$major'
20006 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20010 shrext_cmds='.sl'
20011 dynamic_linker="$host_os dld.sl"
20012 shlibpath_var=SHLIB_PATH
20013 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20015 soname_spec='${libname}${release}${shared_ext}$major'
20017 esac
20018 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20019 postinstall_cmds='chmod 555 $lib'
20022 interix3*)
20023 version_type=linux
20024 need_lib_prefix=no
20025 need_version=no
20026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20027 soname_spec='${libname}${release}${shared_ext}$major'
20028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20029 shlibpath_var=LD_LIBRARY_PATH
20030 shlibpath_overrides_runpath=no
20031 hardcode_into_libs=yes
20034 irix5* | irix6* | nonstopux*)
20035 case $host_os in
20036 nonstopux*) version_type=nonstopux ;;
20038 if test "$lt_cv_prog_gnu_ld" = yes; then
20039 version_type=linux
20040 else
20041 version_type=irix
20042 fi ;;
20043 esac
20044 need_lib_prefix=no
20045 need_version=no
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20048 case $host_os in
20049 irix5* | nonstopux*)
20050 libsuff= shlibsuff=
20053 case $LD in # libtool.m4 will add one of these switches to LD
20054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20055 libsuff= shlibsuff= libmagic=32-bit;;
20056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20057 libsuff=32 shlibsuff=N32 libmagic=N32;;
20058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20060 *) libsuff= shlibsuff= libmagic=never-match;;
20061 esac
20063 esac
20064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20065 shlibpath_overrides_runpath=no
20066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20068 hardcode_into_libs=yes
20071 # No shared lib support for Linux oldld, aout, or coff.
20072 linux*oldld* | linux*aout* | linux*coff*)
20073 dynamic_linker=no
20076 # This must be Linux ELF.
20077 linux*)
20078 version_type=linux
20079 need_lib_prefix=no
20080 need_version=no
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20082 soname_spec='${libname}${release}${shared_ext}$major'
20083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20084 shlibpath_var=LD_LIBRARY_PATH
20085 shlibpath_overrides_runpath=no
20086 # This implies no fast_install, which is unacceptable.
20087 # Some rework will be needed to allow for fast_install
20088 # before this can be enabled.
20089 hardcode_into_libs=yes
20091 # Append ld.so.conf contents to the search path
20092 if test -f /etc/ld.so.conf; then
20093 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20094 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20097 # We used to test for /lib/ld.so.1 and disable shared libraries on
20098 # powerpc, because MkLinux only supported shared libraries with the
20099 # GNU dynamic linker. Since this was broken with cross compilers,
20100 # most powerpc-linux boxes support dynamic linking these days and
20101 # people can always --disable-shared, the test was removed, and we
20102 # assume the GNU/Linux dynamic linker is in use.
20103 dynamic_linker='GNU/Linux ld.so'
20106 knetbsd*-gnu)
20107 version_type=linux
20108 need_lib_prefix=no
20109 need_version=no
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20111 soname_spec='${libname}${release}${shared_ext}$major'
20112 shlibpath_var=LD_LIBRARY_PATH
20113 shlibpath_overrides_runpath=no
20114 hardcode_into_libs=yes
20115 dynamic_linker='GNU ld.so'
20118 netbsd*)
20119 version_type=sunos
20120 need_lib_prefix=no
20121 need_version=no
20122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20125 dynamic_linker='NetBSD (a.out) ld.so'
20126 else
20127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20128 soname_spec='${libname}${release}${shared_ext}$major'
20129 dynamic_linker='NetBSD ld.elf_so'
20131 shlibpath_var=LD_LIBRARY_PATH
20132 shlibpath_overrides_runpath=yes
20133 hardcode_into_libs=yes
20136 newsos6)
20137 version_type=linux
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139 shlibpath_var=LD_LIBRARY_PATH
20140 shlibpath_overrides_runpath=yes
20143 nto-qnx*)
20144 version_type=linux
20145 need_lib_prefix=no
20146 need_version=no
20147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20148 soname_spec='${libname}${release}${shared_ext}$major'
20149 shlibpath_var=LD_LIBRARY_PATH
20150 shlibpath_overrides_runpath=yes
20153 openbsd*)
20154 version_type=sunos
20155 sys_lib_dlsearch_path_spec="/usr/lib"
20156 need_lib_prefix=no
20157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20158 case $host_os in
20159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20160 *) need_version=no ;;
20161 esac
20162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20164 shlibpath_var=LD_LIBRARY_PATH
20165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20166 case $host_os in
20167 openbsd2.[89] | openbsd2.[89].*)
20168 shlibpath_overrides_runpath=no
20171 shlibpath_overrides_runpath=yes
20173 esac
20174 else
20175 shlibpath_overrides_runpath=yes
20179 os2*)
20180 libname_spec='$name'
20181 shrext_cmds=".dll"
20182 need_lib_prefix=no
20183 library_names_spec='$libname${shared_ext} $libname.a'
20184 dynamic_linker='OS/2 ld.exe'
20185 shlibpath_var=LIBPATH
20188 osf3* | osf4* | osf5*)
20189 version_type=osf
20190 need_lib_prefix=no
20191 need_version=no
20192 soname_spec='${libname}${release}${shared_ext}$major'
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20194 shlibpath_var=LD_LIBRARY_PATH
20195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20199 solaris*)
20200 version_type=linux
20201 need_lib_prefix=no
20202 need_version=no
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20205 shlibpath_var=LD_LIBRARY_PATH
20206 shlibpath_overrides_runpath=yes
20207 hardcode_into_libs=yes
20208 # ldd complains unless libraries are executable
20209 postinstall_cmds='chmod +x $lib'
20212 sunos4*)
20213 version_type=sunos
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20216 shlibpath_var=LD_LIBRARY_PATH
20217 shlibpath_overrides_runpath=yes
20218 if test "$with_gnu_ld" = yes; then
20219 need_lib_prefix=no
20221 need_version=yes
20224 sysv4 | sysv4.3*)
20225 version_type=linux
20226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20227 soname_spec='${libname}${release}${shared_ext}$major'
20228 shlibpath_var=LD_LIBRARY_PATH
20229 case $host_vendor in
20230 sni)
20231 shlibpath_overrides_runpath=no
20232 need_lib_prefix=no
20233 export_dynamic_flag_spec='${wl}-Blargedynsym'
20234 runpath_var=LD_RUN_PATH
20236 siemens)
20237 need_lib_prefix=no
20239 motorola)
20240 need_lib_prefix=no
20241 need_version=no
20242 shlibpath_overrides_runpath=no
20243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20245 esac
20248 sysv4*MP*)
20249 if test -d /usr/nec ;then
20250 version_type=linux
20251 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20252 soname_spec='$libname${shared_ext}.$major'
20253 shlibpath_var=LD_LIBRARY_PATH
20257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20258 version_type=freebsd-elf
20259 need_lib_prefix=no
20260 need_version=no
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 shlibpath_var=LD_LIBRARY_PATH
20264 hardcode_into_libs=yes
20265 if test "$with_gnu_ld" = yes; then
20266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20267 shlibpath_overrides_runpath=no
20268 else
20269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20270 shlibpath_overrides_runpath=yes
20271 case $host_os in
20272 sco3.2v5*)
20273 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20275 esac
20277 sys_lib_dlsearch_path_spec='/usr/lib'
20280 uts4*)
20281 version_type=linux
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283 soname_spec='${libname}${release}${shared_ext}$major'
20284 shlibpath_var=LD_LIBRARY_PATH
20288 dynamic_linker=no
20290 esac
20291 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20292 echo "${ECHO_T}$dynamic_linker" >&6; }
20293 test "$dynamic_linker" = no && can_build_shared=no
20295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20296 if test "$GCC" = yes; then
20297 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20300 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20301 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20302 hardcode_action_CXX=
20303 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20304 test -n "$runpath_var_CXX" || \
20305 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20307 # We can hardcode non-existant directories.
20308 if test "$hardcode_direct_CXX" != no &&
20309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20310 # have to relink, otherwise we might link with an installed library
20311 # when we should be linking with a yet-to-be-installed one
20312 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20313 test "$hardcode_minus_L_CXX" != no; then
20314 # Linking always hardcodes the temporary library directory.
20315 hardcode_action_CXX=relink
20316 else
20317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20318 hardcode_action_CXX=immediate
20320 else
20321 # We cannot hardcode anything, or else we can only hardcode existing
20322 # directories.
20323 hardcode_action_CXX=unsupported
20325 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20326 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20328 if test "$hardcode_action_CXX" = relink; then
20329 # Fast installation is not supported
20330 enable_fast_install=no
20331 elif test "$shlibpath_overrides_runpath" = yes ||
20332 test "$enable_shared" = no; then
20333 # Fast installation is not necessary
20334 enable_fast_install=needless
20338 # The else clause should only fire when bootstrapping the
20339 # libtool distribution, otherwise you forgot to ship ltmain.sh
20340 # with your package, and you will get complaints that there are
20341 # no rules to generate ltmain.sh.
20342 if test -f "$ltmain"; then
20343 # See if we are running on zsh, and set the options which allow our commands through
20344 # without removal of \ escapes.
20345 if test -n "${ZSH_VERSION+set}" ; then
20346 setopt NO_GLOB_SUBST
20348 # Now quote all the things that may contain metacharacters while being
20349 # careful not to overquote the AC_SUBSTed values. We take copies of the
20350 # variables and quote the copies for generation of the libtool script.
20351 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20352 SED SHELL STRIP \
20353 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20354 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20355 deplibs_check_method reload_flag reload_cmds need_locks \
20356 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20357 lt_cv_sys_global_symbol_to_c_name_address \
20358 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20359 old_postinstall_cmds old_postuninstall_cmds \
20360 compiler_CXX \
20361 CC_CXX \
20362 LD_CXX \
20363 lt_prog_compiler_wl_CXX \
20364 lt_prog_compiler_pic_CXX \
20365 lt_prog_compiler_static_CXX \
20366 lt_prog_compiler_no_builtin_flag_CXX \
20367 export_dynamic_flag_spec_CXX \
20368 thread_safe_flag_spec_CXX \
20369 whole_archive_flag_spec_CXX \
20370 enable_shared_with_static_runtimes_CXX \
20371 old_archive_cmds_CXX \
20372 old_archive_from_new_cmds_CXX \
20373 predep_objects_CXX \
20374 postdep_objects_CXX \
20375 predeps_CXX \
20376 postdeps_CXX \
20377 compiler_lib_search_path_CXX \
20378 archive_cmds_CXX \
20379 archive_expsym_cmds_CXX \
20380 postinstall_cmds_CXX \
20381 postuninstall_cmds_CXX \
20382 old_archive_from_expsyms_cmds_CXX \
20383 allow_undefined_flag_CXX \
20384 no_undefined_flag_CXX \
20385 export_symbols_cmds_CXX \
20386 hardcode_libdir_flag_spec_CXX \
20387 hardcode_libdir_flag_spec_ld_CXX \
20388 hardcode_libdir_separator_CXX \
20389 hardcode_automatic_CXX \
20390 module_cmds_CXX \
20391 module_expsym_cmds_CXX \
20392 lt_cv_prog_compiler_c_o_CXX \
20393 exclude_expsyms_CXX \
20394 include_expsyms_CXX; do
20396 case $var in
20397 old_archive_cmds_CXX | \
20398 old_archive_from_new_cmds_CXX | \
20399 archive_cmds_CXX | \
20400 archive_expsym_cmds_CXX | \
20401 module_cmds_CXX | \
20402 module_expsym_cmds_CXX | \
20403 old_archive_from_expsyms_cmds_CXX | \
20404 export_symbols_cmds_CXX | \
20405 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20406 postinstall_cmds | postuninstall_cmds | \
20407 old_postinstall_cmds | old_postuninstall_cmds | \
20408 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20409 # Double-quote double-evaled strings.
20410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20413 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20415 esac
20416 done
20418 case $lt_echo in
20419 *'\$0 --fallback-echo"')
20420 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20422 esac
20424 cfgfile="$ofile"
20426 cat <<__EOF__ >> "$cfgfile"
20427 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20429 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20431 # Shell to use when invoking shell scripts.
20432 SHELL=$lt_SHELL
20434 # Whether or not to build shared libraries.
20435 build_libtool_libs=$enable_shared
20437 # Whether or not to build static libraries.
20438 build_old_libs=$enable_static
20440 # Whether or not to add -lc for building shared libraries.
20441 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20443 # Whether or not to disallow shared libs when runtime libs are static
20444 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20446 # Whether or not to optimize for fast installation.
20447 fast_install=$enable_fast_install
20449 # The host system.
20450 host_alias=$host_alias
20451 host=$host
20452 host_os=$host_os
20454 # The build system.
20455 build_alias=$build_alias
20456 build=$build
20457 build_os=$build_os
20459 # An echo program that does not interpret backslashes.
20460 echo=$lt_echo
20462 # The archiver.
20463 AR=$lt_AR
20464 AR_FLAGS=$lt_AR_FLAGS
20466 # A C compiler.
20467 LTCC=$lt_LTCC
20469 # LTCC compiler flags.
20470 LTCFLAGS=$lt_LTCFLAGS
20472 # A language-specific compiler.
20473 CC=$lt_compiler_CXX
20475 # Is the compiler the GNU C compiler?
20476 with_gcc=$GCC_CXX
20478 # An ERE matcher.
20479 EGREP=$lt_EGREP
20481 # The linker used to build libraries.
20482 LD=$lt_LD_CXX
20484 # Whether we need hard or soft links.
20485 LN_S=$lt_LN_S
20487 # A BSD-compatible nm program.
20488 NM=$lt_NM
20490 # A symbol stripping program
20491 STRIP=$lt_STRIP
20493 # Used to examine libraries when file_magic_cmd begins "file"
20494 MAGIC_CMD=$MAGIC_CMD
20496 # Used on cygwin: DLL creation program.
20497 DLLTOOL="$DLLTOOL"
20499 # Used on cygwin: object dumper.
20500 OBJDUMP="$OBJDUMP"
20502 # Used on cygwin: assembler.
20503 AS="$AS"
20505 # The name of the directory that contains temporary libtool files.
20506 objdir=$objdir
20508 # How to create reloadable object files.
20509 reload_flag=$lt_reload_flag
20510 reload_cmds=$lt_reload_cmds
20512 # How to pass a linker flag through the compiler.
20513 wl=$lt_lt_prog_compiler_wl_CXX
20515 # Object file suffix (normally "o").
20516 objext="$ac_objext"
20518 # Old archive suffix (normally "a").
20519 libext="$libext"
20521 # Shared library suffix (normally ".so").
20522 shrext_cmds='$shrext_cmds'
20524 # Executable file suffix (normally "").
20525 exeext="$exeext"
20527 # Additional compiler flags for building library objects.
20528 pic_flag=$lt_lt_prog_compiler_pic_CXX
20529 pic_mode=$pic_mode
20531 # What is the maximum length of a command?
20532 max_cmd_len=$lt_cv_sys_max_cmd_len
20534 # Does compiler simultaneously support -c and -o options?
20535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20537 # Must we lock files when doing compilation?
20538 need_locks=$lt_need_locks
20540 # Do we need the lib prefix for modules?
20541 need_lib_prefix=$need_lib_prefix
20543 # Do we need a version for libraries?
20544 need_version=$need_version
20546 # Whether dlopen is supported.
20547 dlopen_support=$enable_dlopen
20549 # Whether dlopen of programs is supported.
20550 dlopen_self=$enable_dlopen_self
20552 # Whether dlopen of statically linked programs is supported.
20553 dlopen_self_static=$enable_dlopen_self_static
20555 # Compiler flag to prevent dynamic linking.
20556 link_static_flag=$lt_lt_prog_compiler_static_CXX
20558 # Compiler flag to turn off builtin functions.
20559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20561 # Compiler flag to allow reflexive dlopens.
20562 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20564 # Compiler flag to generate shared objects directly from archives.
20565 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20567 # Compiler flag to generate thread-safe objects.
20568 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20570 # Library versioning type.
20571 version_type=$version_type
20573 # Format of library name prefix.
20574 libname_spec=$lt_libname_spec
20576 # List of archive names. First name is the real one, the rest are links.
20577 # The last name is the one that the linker finds with -lNAME.
20578 library_names_spec=$lt_library_names_spec
20580 # The coded name of the library, if different from the real name.
20581 soname_spec=$lt_soname_spec
20583 # Commands used to build and install an old-style archive.
20584 RANLIB=$lt_RANLIB
20585 old_archive_cmds=$lt_old_archive_cmds_CXX
20586 old_postinstall_cmds=$lt_old_postinstall_cmds
20587 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20589 # Create an old-style archive from a shared archive.
20590 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20592 # Create a temporary old-style archive to link instead of a shared archive.
20593 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20595 # Commands used to build and install a shared archive.
20596 archive_cmds=$lt_archive_cmds_CXX
20597 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20598 postinstall_cmds=$lt_postinstall_cmds
20599 postuninstall_cmds=$lt_postuninstall_cmds
20601 # Commands used to build a loadable module (assumed same as above if empty)
20602 module_cmds=$lt_module_cmds_CXX
20603 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20605 # Commands to strip libraries.
20606 old_striplib=$lt_old_striplib
20607 striplib=$lt_striplib
20609 # Dependencies to place before the objects being linked to create a
20610 # shared library.
20611 predep_objects=$lt_predep_objects_CXX
20613 # Dependencies to place after the objects being linked to create a
20614 # shared library.
20615 postdep_objects=$lt_postdep_objects_CXX
20617 # Dependencies to place before the objects being linked to create a
20618 # shared library.
20619 predeps=$lt_predeps_CXX
20621 # Dependencies to place after the objects being linked to create a
20622 # shared library.
20623 postdeps=$lt_postdeps_CXX
20625 # The library search path used internally by the compiler when linking
20626 # a shared library.
20627 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20629 # Method to check whether dependent libraries are shared objects.
20630 deplibs_check_method=$lt_deplibs_check_method
20632 # Command to use when deplibs_check_method == file_magic.
20633 file_magic_cmd=$lt_file_magic_cmd
20635 # Flag that allows shared libraries with undefined symbols to be built.
20636 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20638 # Flag that forces no undefined symbols.
20639 no_undefined_flag=$lt_no_undefined_flag_CXX
20641 # Commands used to finish a libtool library installation in a directory.
20642 finish_cmds=$lt_finish_cmds
20644 # Same as above, but a single script fragment to be evaled but not shown.
20645 finish_eval=$lt_finish_eval
20647 # Take the output of nm and produce a listing of raw symbols and C names.
20648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20650 # Transform the output of nm in a proper C declaration
20651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20653 # Transform the output of nm in a C name address pair
20654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20656 # This is the shared library runtime path variable.
20657 runpath_var=$runpath_var
20659 # This is the shared library path variable.
20660 shlibpath_var=$shlibpath_var
20662 # Is shlibpath searched before the hard-coded library search path?
20663 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20665 # How to hardcode a shared library path into an executable.
20666 hardcode_action=$hardcode_action_CXX
20668 # Whether we should hardcode library paths into libraries.
20669 hardcode_into_libs=$hardcode_into_libs
20671 # Flag to hardcode \$libdir into a binary during linking.
20672 # This must work even if \$libdir does not exist.
20673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20675 # If ld is used when linking, flag to hardcode \$libdir into
20676 # a binary during linking. This must work even if \$libdir does
20677 # not exist.
20678 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20680 # Whether we need a single -rpath flag with a separated argument.
20681 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20683 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20684 # resulting binary.
20685 hardcode_direct=$hardcode_direct_CXX
20687 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20688 # resulting binary.
20689 hardcode_minus_L=$hardcode_minus_L_CXX
20691 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20692 # the resulting binary.
20693 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20695 # Set to yes if building a shared library automatically hardcodes DIR into the library
20696 # and all subsequent libraries and executables linked against it.
20697 hardcode_automatic=$hardcode_automatic_CXX
20699 # Variables whose values should be saved in libtool wrapper scripts and
20700 # restored at relink time.
20701 variables_saved_for_relink="$variables_saved_for_relink"
20703 # Whether libtool must link a program against all its dependency libraries.
20704 link_all_deplibs=$link_all_deplibs_CXX
20706 # Compile-time system search path for libraries
20707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20709 # Run-time system search path for libraries
20710 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20712 # Fix the shell variable \$srcfile for the compiler.
20713 fix_srcfile_path="$fix_srcfile_path_CXX"
20715 # Set to yes if exported symbols are required.
20716 always_export_symbols=$always_export_symbols_CXX
20718 # The commands to list exported symbols.
20719 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20721 # The commands to extract the exported symbol list from a shared archive.
20722 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20724 # Symbols that should not be listed in the preloaded symbols.
20725 exclude_expsyms=$lt_exclude_expsyms_CXX
20727 # Symbols that must always be exported.
20728 include_expsyms=$lt_include_expsyms_CXX
20730 # ### END LIBTOOL TAG CONFIG: $tagname
20732 __EOF__
20735 else
20736 # If there is no Makefile yet, we rely on a make rule to execute
20737 # `config.status --recheck' to rerun these tests and create the
20738 # libtool script then.
20739 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20740 if test -f "$ltmain_in"; then
20741 test -f Makefile && make "$ltmain"
20746 ac_ext=c
20747 ac_cpp='$CPP $CPPFLAGS'
20748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20752 CC=$lt_save_CC
20753 LDCXX=$LD
20754 LD=$lt_save_LD
20755 GCC=$lt_save_GCC
20756 with_gnu_ldcxx=$with_gnu_ld
20757 with_gnu_ld=$lt_save_with_gnu_ld
20758 lt_cv_path_LDCXX=$lt_cv_path_LD
20759 lt_cv_path_LD=$lt_save_path_LD
20760 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20761 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20763 else
20764 tagname=""
20768 F77)
20769 if test -n "$F77" && test "X$F77" != "Xno"; then
20771 ac_ext=f
20772 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20773 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20774 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20777 archive_cmds_need_lc_F77=no
20778 allow_undefined_flag_F77=
20779 always_export_symbols_F77=no
20780 archive_expsym_cmds_F77=
20781 export_dynamic_flag_spec_F77=
20782 hardcode_direct_F77=no
20783 hardcode_libdir_flag_spec_F77=
20784 hardcode_libdir_flag_spec_ld_F77=
20785 hardcode_libdir_separator_F77=
20786 hardcode_minus_L_F77=no
20787 hardcode_automatic_F77=no
20788 module_cmds_F77=
20789 module_expsym_cmds_F77=
20790 link_all_deplibs_F77=unknown
20791 old_archive_cmds_F77=$old_archive_cmds
20792 no_undefined_flag_F77=
20793 whole_archive_flag_spec_F77=
20794 enable_shared_with_static_runtimes_F77=no
20796 # Source file extension for f77 test sources.
20797 ac_ext=f
20799 # Object file extension for compiled f77 test sources.
20800 objext=o
20801 objext_F77=$objext
20803 # Code to be used in simple compile tests
20804 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20806 # Code to be used in simple link tests
20807 lt_simple_link_test_code=" program t\n end\n"
20809 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20811 # If no C compiler was specified, use CC.
20812 LTCC=${LTCC-"$CC"}
20814 # If no C compiler flags were specified, use CFLAGS.
20815 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20817 # Allow CC to be a program name with arguments.
20818 compiler=$CC
20821 # save warnings/boilerplate of simple test code
20822 ac_outfile=conftest.$ac_objext
20823 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20825 _lt_compiler_boilerplate=`cat conftest.err`
20826 $rm conftest*
20828 ac_outfile=conftest.$ac_objext
20829 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20831 _lt_linker_boilerplate=`cat conftest.err`
20832 $rm conftest*
20835 # Allow CC to be a program name with arguments.
20836 lt_save_CC="$CC"
20837 CC=${F77-"f77"}
20838 compiler=$CC
20839 compiler_F77=$CC
20840 for cc_temp in $compiler""; do
20841 case $cc_temp in
20842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20844 \-*) ;;
20845 *) break;;
20846 esac
20847 done
20848 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20851 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20852 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20853 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20854 echo "${ECHO_T}$can_build_shared" >&6; }
20856 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20857 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20858 test "$can_build_shared" = "no" && enable_shared=no
20860 # On AIX, shared libraries and static libraries use the same namespace, and
20861 # are all built from PIC.
20862 case $host_os in
20863 aix3*)
20864 test "$enable_shared" = yes && enable_static=no
20865 if test -n "$RANLIB"; then
20866 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20867 postinstall_cmds='$RANLIB $lib'
20870 aix4* | aix5*)
20871 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20872 test "$enable_shared" = yes && enable_static=no
20875 esac
20876 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20877 echo "${ECHO_T}$enable_shared" >&6; }
20879 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20880 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20881 # Make sure either enable_shared or enable_static is yes.
20882 test "$enable_shared" = yes || enable_static=yes
20883 { echo "$as_me:$LINENO: result: $enable_static" >&5
20884 echo "${ECHO_T}$enable_static" >&6; }
20886 GCC_F77="$G77"
20887 LD_F77="$LD"
20889 lt_prog_compiler_wl_F77=
20890 lt_prog_compiler_pic_F77=
20891 lt_prog_compiler_static_F77=
20893 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20896 if test "$GCC" = yes; then
20897 lt_prog_compiler_wl_F77='-Wl,'
20898 lt_prog_compiler_static_F77='-static'
20900 case $host_os in
20901 aix*)
20902 # All AIX code is PIC.
20903 if test "$host_cpu" = ia64; then
20904 # AIX 5 now supports IA64 processor
20905 lt_prog_compiler_static_F77='-Bstatic'
20909 amigaos*)
20910 # FIXME: we need at least 68020 code to build shared libraries, but
20911 # adding the `-m68020' flag to GCC prevents building anything better,
20912 # like `-m68040'.
20913 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20916 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20917 # PIC is the default for these OSes.
20920 mingw* | pw32* | os2*)
20921 # This hack is so that the source file can tell whether it is being
20922 # built for inclusion in a dll (and should export symbols for example).
20923 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20926 darwin* | rhapsody*)
20927 # PIC is the default on this platform
20928 # Common symbols not allowed in MH_DYLIB files
20929 lt_prog_compiler_pic_F77='-fno-common'
20932 interix3*)
20933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20934 # Instead, we relocate shared libraries at runtime.
20937 msdosdjgpp*)
20938 # Just because we use GCC doesn't mean we suddenly get shared libraries
20939 # on systems that don't support them.
20940 lt_prog_compiler_can_build_shared_F77=no
20941 enable_shared=no
20944 sysv4*MP*)
20945 if test -d /usr/nec; then
20946 lt_prog_compiler_pic_F77=-Kconform_pic
20950 hpux*)
20951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20952 # not for PA HP-UX.
20953 case $host_cpu in
20954 hppa*64*|ia64*)
20955 # +Z the default
20958 lt_prog_compiler_pic_F77='-fPIC'
20960 esac
20964 lt_prog_compiler_pic_F77='-fPIC'
20966 esac
20967 else
20968 # PORTME Check for flag to pass linker flags through the system compiler.
20969 case $host_os in
20970 aix*)
20971 lt_prog_compiler_wl_F77='-Wl,'
20972 if test "$host_cpu" = ia64; then
20973 # AIX 5 now supports IA64 processor
20974 lt_prog_compiler_static_F77='-Bstatic'
20975 else
20976 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20979 darwin*)
20980 # PIC is the default on this platform
20981 # Common symbols not allowed in MH_DYLIB files
20982 case $cc_basename in
20983 xlc*)
20984 lt_prog_compiler_pic_F77='-qnocommon'
20985 lt_prog_compiler_wl_F77='-Wl,'
20987 esac
20990 mingw* | pw32* | os2*)
20991 # This hack is so that the source file can tell whether it is being
20992 # built for inclusion in a dll (and should export symbols for example).
20993 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20996 hpux9* | hpux10* | hpux11*)
20997 lt_prog_compiler_wl_F77='-Wl,'
20998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20999 # not for PA HP-UX.
21000 case $host_cpu in
21001 hppa*64*|ia64*)
21002 # +Z the default
21005 lt_prog_compiler_pic_F77='+Z'
21007 esac
21008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21009 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21012 irix5* | irix6* | nonstopux*)
21013 lt_prog_compiler_wl_F77='-Wl,'
21014 # PIC (with -KPIC) is the default.
21015 lt_prog_compiler_static_F77='-non_shared'
21018 newsos6)
21019 lt_prog_compiler_pic_F77='-KPIC'
21020 lt_prog_compiler_static_F77='-Bstatic'
21023 linux*)
21024 case $cc_basename in
21025 icc* | ecc*)
21026 lt_prog_compiler_wl_F77='-Wl,'
21027 lt_prog_compiler_pic_F77='-KPIC'
21028 lt_prog_compiler_static_F77='-static'
21030 pgcc* | pgf77* | pgf90* | pgf95*)
21031 # Portland Group compilers (*not* the Pentium gcc compiler,
21032 # which looks to be a dead project)
21033 lt_prog_compiler_wl_F77='-Wl,'
21034 lt_prog_compiler_pic_F77='-fpic'
21035 lt_prog_compiler_static_F77='-Bstatic'
21037 ccc*)
21038 lt_prog_compiler_wl_F77='-Wl,'
21039 # All Alpha code is PIC.
21040 lt_prog_compiler_static_F77='-non_shared'
21042 esac
21045 osf3* | osf4* | osf5*)
21046 lt_prog_compiler_wl_F77='-Wl,'
21047 # All OSF/1 code is PIC.
21048 lt_prog_compiler_static_F77='-non_shared'
21051 solaris*)
21052 lt_prog_compiler_pic_F77='-KPIC'
21053 lt_prog_compiler_static_F77='-Bstatic'
21054 case $cc_basename in
21055 f77* | f90* | f95*)
21056 lt_prog_compiler_wl_F77='-Qoption ld ';;
21058 lt_prog_compiler_wl_F77='-Wl,';;
21059 esac
21062 sunos4*)
21063 lt_prog_compiler_wl_F77='-Qoption ld '
21064 lt_prog_compiler_pic_F77='-PIC'
21065 lt_prog_compiler_static_F77='-Bstatic'
21068 sysv4 | sysv4.2uw2* | sysv4.3*)
21069 lt_prog_compiler_wl_F77='-Wl,'
21070 lt_prog_compiler_pic_F77='-KPIC'
21071 lt_prog_compiler_static_F77='-Bstatic'
21074 sysv4*MP*)
21075 if test -d /usr/nec ;then
21076 lt_prog_compiler_pic_F77='-Kconform_pic'
21077 lt_prog_compiler_static_F77='-Bstatic'
21081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21082 lt_prog_compiler_wl_F77='-Wl,'
21083 lt_prog_compiler_pic_F77='-KPIC'
21084 lt_prog_compiler_static_F77='-Bstatic'
21087 unicos*)
21088 lt_prog_compiler_wl_F77='-Wl,'
21089 lt_prog_compiler_can_build_shared_F77=no
21092 uts4*)
21093 lt_prog_compiler_pic_F77='-pic'
21094 lt_prog_compiler_static_F77='-Bstatic'
21098 lt_prog_compiler_can_build_shared_F77=no
21100 esac
21103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21104 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21107 # Check to make sure the PIC flag actually works.
21109 if test -n "$lt_prog_compiler_pic_F77"; then
21111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21113 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115 else
21116 lt_prog_compiler_pic_works_F77=no
21117 ac_outfile=conftest.$ac_objext
21118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21119 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21120 # Insert the option either (1) after the last *FLAGS variable, or
21121 # (2) before a word containing "conftest.", or (3) at the end.
21122 # Note that $ac_compile itself does not contain backslashes and begins
21123 # with a dollar sign (not a hyphen), so the echo should work correctly.
21124 # The option is referenced via a variable to avoid confusing sed.
21125 lt_compile=`echo "$ac_compile" | $SED \
21126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21128 -e 's:$: $lt_compiler_flag:'`
21129 (eval echo "\"\$as_me:21129: $lt_compile\"" >&5)
21130 (eval "$lt_compile" 2>conftest.err)
21131 ac_status=$?
21132 cat conftest.err >&5
21133 echo "$as_me:21133: \$? = $ac_status" >&5
21134 if (exit $ac_status) && test -s "$ac_outfile"; then
21135 # The compiler can only warn and ignore the option if not recognized
21136 # So say no if there are warnings other than the usual output.
21137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21140 lt_prog_compiler_pic_works_F77=yes
21143 $rm conftest*
21146 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21147 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21149 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21150 case $lt_prog_compiler_pic_F77 in
21151 "" | " "*) ;;
21152 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21153 esac
21154 else
21155 lt_prog_compiler_pic_F77=
21156 lt_prog_compiler_can_build_shared_F77=no
21160 case $host_os in
21161 # For platforms which do not support PIC, -DPIC is meaningless:
21162 *djgpp*)
21163 lt_prog_compiler_pic_F77=
21166 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21168 esac
21171 # Check to make sure the static flag actually works.
21173 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21174 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21176 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179 lt_prog_compiler_static_works_F77=no
21180 save_LDFLAGS="$LDFLAGS"
21181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21184 # The linker can only warn and ignore the option if not recognized
21185 # So say no if there are warnings
21186 if test -s conftest.err; then
21187 # Append any errors to the config.log.
21188 cat conftest.err 1>&5
21189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21191 if diff conftest.exp conftest.er2 >/dev/null; then
21192 lt_prog_compiler_static_works_F77=yes
21194 else
21195 lt_prog_compiler_static_works_F77=yes
21198 $rm conftest*
21199 LDFLAGS="$save_LDFLAGS"
21202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21203 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21205 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21207 else
21208 lt_prog_compiler_static_F77=
21212 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21214 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 else
21217 lt_cv_prog_compiler_c_o_F77=no
21218 $rm -r conftest 2>/dev/null
21219 mkdir conftest
21220 cd conftest
21221 mkdir out
21222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21224 lt_compiler_flag="-o out/conftest2.$ac_objext"
21225 # Insert the option either (1) after the last *FLAGS variable, or
21226 # (2) before a word containing "conftest.", or (3) at the end.
21227 # Note that $ac_compile itself does not contain backslashes and begins
21228 # with a dollar sign (not a hyphen), so the echo should work correctly.
21229 lt_compile=`echo "$ac_compile" | $SED \
21230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21232 -e 's:$: $lt_compiler_flag:'`
21233 (eval echo "\"\$as_me:21233: $lt_compile\"" >&5)
21234 (eval "$lt_compile" 2>out/conftest.err)
21235 ac_status=$?
21236 cat out/conftest.err >&5
21237 echo "$as_me:21237: \$? = $ac_status" >&5
21238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21239 then
21240 # The compiler can only warn and ignore the option if not recognized
21241 # So say no if there are warnings
21242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21245 lt_cv_prog_compiler_c_o_F77=yes
21248 chmod u+w . 2>&5
21249 $rm conftest*
21250 # SGI C++ compiler will create directory out/ii_files/ for
21251 # template instantiation
21252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21253 $rm out/* && rmdir out
21254 cd ..
21255 rmdir conftest
21256 $rm conftest*
21259 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21263 hard_links="nottested"
21264 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21265 # do not overwrite the value of need_locks provided by the user
21266 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21268 hard_links=yes
21269 $rm conftest*
21270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21271 touch conftest.a
21272 ln conftest.a conftest.b 2>&5 || hard_links=no
21273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21274 { echo "$as_me:$LINENO: result: $hard_links" >&5
21275 echo "${ECHO_T}$hard_links" >&6; }
21276 if test "$hard_links" = no; then
21277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21279 need_locks=warn
21281 else
21282 need_locks=no
21285 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21288 runpath_var=
21289 allow_undefined_flag_F77=
21290 enable_shared_with_static_runtimes_F77=no
21291 archive_cmds_F77=
21292 archive_expsym_cmds_F77=
21293 old_archive_From_new_cmds_F77=
21294 old_archive_from_expsyms_cmds_F77=
21295 export_dynamic_flag_spec_F77=
21296 whole_archive_flag_spec_F77=
21297 thread_safe_flag_spec_F77=
21298 hardcode_libdir_flag_spec_F77=
21299 hardcode_libdir_flag_spec_ld_F77=
21300 hardcode_libdir_separator_F77=
21301 hardcode_direct_F77=no
21302 hardcode_minus_L_F77=no
21303 hardcode_shlibpath_var_F77=unsupported
21304 link_all_deplibs_F77=unknown
21305 hardcode_automatic_F77=no
21306 module_cmds_F77=
21307 module_expsym_cmds_F77=
21308 always_export_symbols_F77=no
21309 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21310 # include_expsyms should be a list of space-separated symbols to be *always*
21311 # included in the symbol list
21312 include_expsyms_F77=
21313 # exclude_expsyms can be an extended regexp of symbols to exclude
21314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21316 # as well as any symbol that contains `d'.
21317 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21319 # platforms (ab)use it in PIC code, but their linkers get confused if
21320 # the symbol is explicitly referenced. Since portable code cannot
21321 # rely on this symbol name, it's probably fine to never include it in
21322 # preloaded symbol tables.
21323 extract_expsyms_cmds=
21324 # Just being paranoid about ensuring that cc_basename is set.
21325 for cc_temp in $compiler""; do
21326 case $cc_temp in
21327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21329 \-*) ;;
21330 *) break;;
21331 esac
21332 done
21333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21335 case $host_os in
21336 cygwin* | mingw* | pw32*)
21337 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21338 # When not using gcc, we currently assume that we are using
21339 # Microsoft Visual C++.
21340 if test "$GCC" != yes; then
21341 with_gnu_ld=no
21344 interix*)
21345 # we just hope/assume this is gcc and not c89 (= MSVC++)
21346 with_gnu_ld=yes
21348 openbsd*)
21349 with_gnu_ld=no
21351 esac
21353 ld_shlibs_F77=yes
21354 if test "$with_gnu_ld" = yes; then
21355 # If archive_cmds runs LD, not CC, wlarc should be empty
21356 wlarc='${wl}'
21358 # Set some defaults for GNU ld with shared library support. These
21359 # are reset later if shared libraries are not supported. Putting them
21360 # here allows them to be overridden if necessary.
21361 runpath_var=LD_RUN_PATH
21362 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21363 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21364 # ancient GNU ld didn't support --whole-archive et. al.
21365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21366 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21367 else
21368 whole_archive_flag_spec_F77=
21370 supports_anon_versioning=no
21371 case `$LD -v 2>/dev/null` in
21372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21375 *\ 2.11.*) ;; # other 2.11 versions
21376 *) supports_anon_versioning=yes ;;
21377 esac
21379 # See if GNU ld supports shared libraries.
21380 case $host_os in
21381 aix3* | aix4* | aix5*)
21382 # On AIX/PPC, the GNU linker is very broken
21383 if test "$host_cpu" != ia64; then
21384 ld_shlibs_F77=no
21385 cat <<EOF 1>&2
21387 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21388 *** to be unable to reliably create shared libraries on AIX.
21389 *** Therefore, libtool is disabling shared libraries support. If you
21390 *** really care for shared libraries, you may want to modify your PATH
21391 *** so that a non-GNU linker is found, and then restart.
21397 amigaos*)
21398 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)'
21399 hardcode_libdir_flag_spec_F77='-L$libdir'
21400 hardcode_minus_L_F77=yes
21402 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21403 # that the semantics of dynamic libraries on AmigaOS, at least up
21404 # to version 4, is to share data among multiple programs linked
21405 # with the same dynamic library. Since this doesn't match the
21406 # behavior of shared libraries on other platforms, we can't use
21407 # them.
21408 ld_shlibs_F77=no
21411 beos*)
21412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21413 allow_undefined_flag_F77=unsupported
21414 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21415 # support --undefined. This deserves some investigation. FIXME
21416 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21417 else
21418 ld_shlibs_F77=no
21422 cygwin* | mingw* | pw32*)
21423 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21424 # as there is no search path for DLLs.
21425 hardcode_libdir_flag_spec_F77='-L$libdir'
21426 allow_undefined_flag_F77=unsupported
21427 always_export_symbols_F77=no
21428 enable_shared_with_static_runtimes_F77=yes
21429 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21431 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21432 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21433 # If the export-symbols file already is a .def file (1st line
21434 # is EXPORTS), use it as is; otherwise, prepend...
21435 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21436 cp $export_symbols $output_objdir/$soname.def;
21437 else
21438 echo EXPORTS > $output_objdir/$soname.def;
21439 cat $export_symbols >> $output_objdir/$soname.def;
21441 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21442 else
21443 ld_shlibs_F77=no
21447 interix3*)
21448 hardcode_direct_F77=no
21449 hardcode_shlibpath_var_F77=no
21450 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21451 export_dynamic_flag_spec_F77='${wl}-E'
21452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21453 # Instead, shared libraries are loaded at an image base (0x10000000 by
21454 # default) and relocated if they conflict, which is a slow very memory
21455 # consuming and fragmenting process. To avoid this, we pick a random,
21456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21458 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'
21459 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'
21462 linux*)
21463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21464 tmp_addflag=
21465 case $cc_basename,$host_cpu in
21466 pgcc*) # Portland Group C compiler
21467 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'
21468 tmp_addflag=' $pic_flag'
21470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21471 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'
21472 tmp_addflag=' $pic_flag -Mnomain' ;;
21473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21474 tmp_addflag=' -i_dynamic' ;;
21475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21476 tmp_addflag=' -i_dynamic -nofor_main' ;;
21477 ifc* | ifort*) # Intel Fortran compiler
21478 tmp_addflag=' -nofor_main' ;;
21479 esac
21480 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482 if test $supports_anon_versioning = yes; then
21483 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21485 $echo "local: *; };" >> $output_objdir/$libname.ver~
21486 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21488 else
21489 ld_shlibs_F77=no
21493 netbsd*)
21494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21495 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21496 wlarc=
21497 else
21498 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21499 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21503 solaris*)
21504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21505 ld_shlibs_F77=no
21506 cat <<EOF 1>&2
21508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21509 *** create shared libraries on Solaris systems. Therefore, libtool
21510 *** is disabling shared libraries support. We urge you to upgrade GNU
21511 *** binutils to release 2.9.1 or newer. Another option is to modify
21512 *** your PATH or compiler configuration so that the native linker is
21513 *** used, and then restart.
21516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21517 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21518 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21519 else
21520 ld_shlibs_F77=no
21524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21525 case `$LD -v 2>&1` in
21526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21527 ld_shlibs_F77=no
21528 cat <<_LT_EOF 1>&2
21530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21531 *** reliably create shared libraries on SCO systems. Therefore, libtool
21532 *** is disabling shared libraries support. We urge you to upgrade GNU
21533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21534 *** your PATH or compiler configuration so that the native linker is
21535 *** used, and then restart.
21537 _LT_EOF
21540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21541 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21542 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21543 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21544 else
21545 ld_shlibs_F77=no
21548 esac
21551 sunos4*)
21552 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21553 wlarc=
21554 hardcode_direct_F77=yes
21555 hardcode_shlibpath_var_F77=no
21559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21560 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21561 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21562 else
21563 ld_shlibs_F77=no
21566 esac
21568 if test "$ld_shlibs_F77" = no; then
21569 runpath_var=
21570 hardcode_libdir_flag_spec_F77=
21571 export_dynamic_flag_spec_F77=
21572 whole_archive_flag_spec_F77=
21574 else
21575 # PORTME fill in a description of your system's linker (not GNU ld)
21576 case $host_os in
21577 aix3*)
21578 allow_undefined_flag_F77=unsupported
21579 always_export_symbols_F77=yes
21580 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'
21581 # Note: this linker hardcodes the directories in LIBPATH if there
21582 # are no directories specified by -L.
21583 hardcode_minus_L_F77=yes
21584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21585 # Neither direct hardcoding nor static linking is supported with a
21586 # broken collect2.
21587 hardcode_direct_F77=unsupported
21591 aix4* | aix5*)
21592 if test "$host_cpu" = ia64; then
21593 # On IA64, the linker does run time linking by default, so we don't
21594 # have to do anything special.
21595 aix_use_runtimelinking=no
21596 exp_sym_flag='-Bexport'
21597 no_entry_flag=""
21598 else
21599 # If we're using GNU nm, then we don't want the "-C" option.
21600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21602 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'
21603 else
21604 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'
21606 aix_use_runtimelinking=no
21608 # Test if we are trying to use run time linking or normal
21609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21610 # need to do runtime linking.
21611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21612 for ld_flag in $LDFLAGS; do
21613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21614 aix_use_runtimelinking=yes
21615 break
21617 done
21619 esac
21621 exp_sym_flag='-bexport'
21622 no_entry_flag='-bnoentry'
21625 # When large executables or shared objects are built, AIX ld can
21626 # have problems creating the table of contents. If linking a library
21627 # or program results in "error TOC overflow" add -mminimal-toc to
21628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21631 archive_cmds_F77=''
21632 hardcode_direct_F77=yes
21633 hardcode_libdir_separator_F77=':'
21634 link_all_deplibs_F77=yes
21636 if test "$GCC" = yes; then
21637 case $host_os in aix4.[012]|aix4.[012].*)
21638 # We only want to do this on AIX 4.2 and lower, the check
21639 # below for broken collect2 doesn't work under 4.3+
21640 collect2name=`${CC} -print-prog-name=collect2`
21641 if test -f "$collect2name" && \
21642 strings "$collect2name" | grep resolve_lib_name >/dev/null
21643 then
21644 # We have reworked collect2
21645 hardcode_direct_F77=yes
21646 else
21647 # We have old collect2
21648 hardcode_direct_F77=unsupported
21649 # It fails to find uninstalled libraries when the uninstalled
21650 # path is not listed in the libpath. Setting hardcode_minus_L
21651 # to unsupported forces relinking
21652 hardcode_minus_L_F77=yes
21653 hardcode_libdir_flag_spec_F77='-L$libdir'
21654 hardcode_libdir_separator_F77=
21657 esac
21658 shared_flag='-shared'
21659 if test "$aix_use_runtimelinking" = yes; then
21660 shared_flag="$shared_flag "'${wl}-G'
21662 else
21663 # not using gcc
21664 if test "$host_cpu" = ia64; then
21665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21666 # chokes on -Wl,-G. The following line is correct:
21667 shared_flag='-G'
21668 else
21669 if test "$aix_use_runtimelinking" = yes; then
21670 shared_flag='${wl}-G'
21671 else
21672 shared_flag='${wl}-bM:SRE'
21677 # It seems that -bexpall does not export symbols beginning with
21678 # underscore (_), so it is better to generate a list of symbols to export.
21679 always_export_symbols_F77=yes
21680 if test "$aix_use_runtimelinking" = yes; then
21681 # Warning - without using the other runtime loading flags (-brtl),
21682 # -berok will link without error, but may produce a broken library.
21683 allow_undefined_flag_F77='-berok'
21684 # Determine the default libpath from the value encoded in an empty executable.
21685 cat >conftest.$ac_ext <<_ACEOF
21686 program main
21689 _ACEOF
21690 rm -f conftest.$ac_objext conftest$ac_exeext
21691 if { (ac_try="$ac_link"
21692 case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21695 esac
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_link") 2>conftest.er1
21698 ac_status=$?
21699 grep -v '^ *+' conftest.er1 >conftest.err
21700 rm -f conftest.er1
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } &&
21704 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21705 { (case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_try") 2>&5
21711 ac_status=$?
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; } &&
21714 { ac_try='test -s conftest$ac_exeext'
21715 { (case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_try") 2>&5
21721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21725 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21727 # Check for a 64-bit object if we didn't find anything.
21728 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21729 }'`; fi
21730 else
21731 echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21737 rm -f core conftest.err conftest.$ac_objext \
21738 conftest$ac_exeext conftest.$ac_ext
21739 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21741 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21742 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21743 else
21744 if test "$host_cpu" = ia64; then
21745 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21746 allow_undefined_flag_F77="-z nodefs"
21747 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"
21748 else
21749 # Determine the default libpath from the value encoded in an empty executable.
21750 cat >conftest.$ac_ext <<_ACEOF
21751 program main
21754 _ACEOF
21755 rm -f conftest.$ac_objext conftest$ac_exeext
21756 if { (ac_try="$ac_link"
21757 case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21760 esac
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_link") 2>conftest.er1
21763 ac_status=$?
21764 grep -v '^ *+' conftest.er1 >conftest.err
21765 rm -f conftest.er1
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
21769 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21770 { (case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_try") 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; } &&
21779 { ac_try='test -s conftest$ac_exeext'
21780 { (case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783 esac
21784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_try") 2>&5
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; }; then
21790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21792 # Check for a 64-bit object if we didn't find anything.
21793 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21794 }'`; fi
21795 else
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21802 rm -f core conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21806 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21807 # Warning - without using the other run time loading flags,
21808 # -berok will link without error, but may produce a broken library.
21809 no_undefined_flag_F77=' ${wl}-bernotok'
21810 allow_undefined_flag_F77=' ${wl}-berok'
21811 # Exported symbols can be pulled into shared objects from archives
21812 whole_archive_flag_spec_F77='$convenience'
21813 archive_cmds_need_lc_F77=yes
21814 # This is similar to how AIX traditionally builds its shared libraries.
21815 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'
21820 amigaos*)
21821 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)'
21822 hardcode_libdir_flag_spec_F77='-L$libdir'
21823 hardcode_minus_L_F77=yes
21824 # see comment about different semantics on the GNU ld section
21825 ld_shlibs_F77=no
21828 bsdi[45]*)
21829 export_dynamic_flag_spec_F77=-rdynamic
21832 cygwin* | mingw* | pw32*)
21833 # When not using gcc, we currently assume that we are using
21834 # Microsoft Visual C++.
21835 # hardcode_libdir_flag_spec is actually meaningless, as there is
21836 # no search path for DLLs.
21837 hardcode_libdir_flag_spec_F77=' '
21838 allow_undefined_flag_F77=unsupported
21839 # Tell ltmain to make .lib files, not .a files.
21840 libext=lib
21841 # Tell ltmain to make .dll files, not .so files.
21842 shrext_cmds=".dll"
21843 # FIXME: Setting linknames here is a bad hack.
21844 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21845 # The linker will automatically build a .lib file if we build a DLL.
21846 old_archive_From_new_cmds_F77='true'
21847 # FIXME: Should let the user specify the lib program.
21848 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21849 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21850 enable_shared_with_static_runtimes_F77=yes
21853 darwin* | rhapsody*)
21854 case $host_os in
21855 rhapsody* | darwin1.[012])
21856 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21858 *) # Darwin 1.3 on
21859 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21860 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21861 else
21862 case ${MACOSX_DEPLOYMENT_TARGET} in
21863 10.[012])
21864 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21866 10.*)
21867 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21869 esac
21872 esac
21873 archive_cmds_need_lc_F77=no
21874 hardcode_direct_F77=no
21875 hardcode_automatic_F77=yes
21876 hardcode_shlibpath_var_F77=unsupported
21877 whole_archive_flag_spec_F77=''
21878 link_all_deplibs_F77=yes
21879 if test "$GCC" = yes ; then
21880 output_verbose_link_cmd='echo'
21881 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21882 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21884 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21885 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21886 else
21887 case $cc_basename in
21888 xlc*)
21889 output_verbose_link_cmd='echo'
21890 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21891 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21893 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21894 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21897 ld_shlibs_F77=no
21899 esac
21903 dgux*)
21904 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21905 hardcode_libdir_flag_spec_F77='-L$libdir'
21906 hardcode_shlibpath_var_F77=no
21909 freebsd1*)
21910 ld_shlibs_F77=no
21913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21914 # support. Future versions do this automatically, but an explicit c++rt0.o
21915 # does not break anything, and helps significantly (at the cost of a little
21916 # extra space).
21917 freebsd2.2*)
21918 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21919 hardcode_libdir_flag_spec_F77='-R$libdir'
21920 hardcode_direct_F77=yes
21921 hardcode_shlibpath_var_F77=no
21924 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21925 freebsd2*)
21926 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21927 hardcode_direct_F77=yes
21928 hardcode_minus_L_F77=yes
21929 hardcode_shlibpath_var_F77=no
21932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21933 freebsd* | kfreebsd*-gnu | dragonfly*)
21934 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21935 hardcode_libdir_flag_spec_F77='-R$libdir'
21936 hardcode_direct_F77=yes
21937 hardcode_shlibpath_var_F77=no
21940 hpux9*)
21941 if test "$GCC" = yes; then
21942 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'
21943 else
21944 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'
21946 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21947 hardcode_libdir_separator_F77=:
21948 hardcode_direct_F77=yes
21950 # hardcode_minus_L: Not really in the search PATH,
21951 # but as the default location of the library.
21952 hardcode_minus_L_F77=yes
21953 export_dynamic_flag_spec_F77='${wl}-E'
21956 hpux10*)
21957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21958 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21959 else
21960 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21962 if test "$with_gnu_ld" = no; then
21963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21964 hardcode_libdir_separator_F77=:
21966 hardcode_direct_F77=yes
21967 export_dynamic_flag_spec_F77='${wl}-E'
21969 # hardcode_minus_L: Not really in the search PATH,
21970 # but as the default location of the library.
21971 hardcode_minus_L_F77=yes
21975 hpux11*)
21976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21977 case $host_cpu in
21978 hppa*64*)
21979 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21981 ia64*)
21982 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21985 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21987 esac
21988 else
21989 case $host_cpu in
21990 hppa*64*)
21991 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21993 ia64*)
21994 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21997 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21999 esac
22001 if test "$with_gnu_ld" = no; then
22002 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22003 hardcode_libdir_separator_F77=:
22005 case $host_cpu in
22006 hppa*64*|ia64*)
22007 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22008 hardcode_direct_F77=no
22009 hardcode_shlibpath_var_F77=no
22012 hardcode_direct_F77=yes
22013 export_dynamic_flag_spec_F77='${wl}-E'
22015 # hardcode_minus_L: Not really in the search PATH,
22016 # but as the default location of the library.
22017 hardcode_minus_L_F77=yes
22019 esac
22023 irix5* | irix6* | nonstopux*)
22024 if test "$GCC" = yes; then
22025 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22026 else
22027 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22028 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22031 hardcode_libdir_separator_F77=:
22032 link_all_deplibs_F77=yes
22035 netbsd*)
22036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22037 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22038 else
22039 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22041 hardcode_libdir_flag_spec_F77='-R$libdir'
22042 hardcode_direct_F77=yes
22043 hardcode_shlibpath_var_F77=no
22046 newsos6)
22047 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22048 hardcode_direct_F77=yes
22049 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22050 hardcode_libdir_separator_F77=:
22051 hardcode_shlibpath_var_F77=no
22054 openbsd*)
22055 hardcode_direct_F77=yes
22056 hardcode_shlibpath_var_F77=no
22057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22058 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22059 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22060 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22061 export_dynamic_flag_spec_F77='${wl}-E'
22062 else
22063 case $host_os in
22064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22066 hardcode_libdir_flag_spec_F77='-R$libdir'
22069 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22070 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22072 esac
22076 os2*)
22077 hardcode_libdir_flag_spec_F77='-L$libdir'
22078 hardcode_minus_L_F77=yes
22079 allow_undefined_flag_F77=unsupported
22080 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'
22081 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22084 osf3*)
22085 if test "$GCC" = yes; then
22086 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22087 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22088 else
22089 allow_undefined_flag_F77=' -expect_unresolved \*'
22090 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22092 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22093 hardcode_libdir_separator_F77=:
22096 osf4* | osf5*) # as osf3* with the addition of -msym flag
22097 if test "$GCC" = yes; then
22098 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22099 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22100 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22101 else
22102 allow_undefined_flag_F77=' -expect_unresolved \*'
22103 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22104 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22105 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22107 # Both c and cxx compiler support -rpath directly
22108 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22110 hardcode_libdir_separator_F77=:
22113 solaris*)
22114 no_undefined_flag_F77=' -z text'
22115 if test "$GCC" = yes; then
22116 wlarc='${wl}'
22117 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22118 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22119 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22120 else
22121 wlarc=''
22122 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22123 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22124 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22126 hardcode_libdir_flag_spec_F77='-R$libdir'
22127 hardcode_shlibpath_var_F77=no
22128 case $host_os in
22129 solaris2.[0-5] | solaris2.[0-5].*) ;;
22131 # The compiler driver will combine linker options so we
22132 # cannot just pass the convience library names through
22133 # without $wl, iff we do not link with $LD.
22134 # Luckily, gcc supports the same syntax we need for Sun Studio.
22135 # Supported since Solaris 2.6 (maybe 2.5.1?)
22136 case $wlarc in
22138 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22140 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22141 esac ;;
22142 esac
22143 link_all_deplibs_F77=yes
22146 sunos4*)
22147 if test "x$host_vendor" = xsequent; then
22148 # Use $CC to link under sequent, because it throws in some extra .o
22149 # files that make .init and .fini sections work.
22150 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22151 else
22152 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22154 hardcode_libdir_flag_spec_F77='-L$libdir'
22155 hardcode_direct_F77=yes
22156 hardcode_minus_L_F77=yes
22157 hardcode_shlibpath_var_F77=no
22160 sysv4)
22161 case $host_vendor in
22162 sni)
22163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22164 hardcode_direct_F77=yes # is this really true???
22166 siemens)
22167 ## LD is ld it makes a PLAMLIB
22168 ## CC just makes a GrossModule.
22169 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22170 reload_cmds_F77='$CC -r -o $output$reload_objs'
22171 hardcode_direct_F77=no
22173 motorola)
22174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22177 esac
22178 runpath_var='LD_RUN_PATH'
22179 hardcode_shlibpath_var_F77=no
22182 sysv4.3*)
22183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22184 hardcode_shlibpath_var_F77=no
22185 export_dynamic_flag_spec_F77='-Bexport'
22188 sysv4*MP*)
22189 if test -d /usr/nec; then
22190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 hardcode_shlibpath_var_F77=no
22192 runpath_var=LD_RUN_PATH
22193 hardcode_runpath_var=yes
22194 ld_shlibs_F77=yes
22198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22199 no_undefined_flag_F77='${wl}-z,text'
22200 archive_cmds_need_lc_F77=no
22201 hardcode_shlibpath_var_F77=no
22202 runpath_var='LD_RUN_PATH'
22204 if test "$GCC" = yes; then
22205 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22206 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22207 else
22208 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22209 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22213 sysv5* | sco3.2v5* | sco5v6*)
22214 # Note: We can NOT use -z defs as we might desire, because we do not
22215 # link with -lc, and that would cause any symbols used from libc to
22216 # always be unresolved, which means just about no library would
22217 # ever link correctly. If we're not using GNU ld we use -z text
22218 # though, which does catch some bad symbols but isn't as heavy-handed
22219 # as -z defs.
22220 no_undefined_flag_F77='${wl}-z,text'
22221 allow_undefined_flag_F77='${wl}-z,nodefs'
22222 archive_cmds_need_lc_F77=no
22223 hardcode_shlibpath_var_F77=no
22224 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22225 hardcode_libdir_separator_F77=':'
22226 link_all_deplibs_F77=yes
22227 export_dynamic_flag_spec_F77='${wl}-Bexport'
22228 runpath_var='LD_RUN_PATH'
22230 if test "$GCC" = yes; then
22231 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22232 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22233 else
22234 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22235 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22239 uts4*)
22240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22241 hardcode_libdir_flag_spec_F77='-L$libdir'
22242 hardcode_shlibpath_var_F77=no
22246 ld_shlibs_F77=no
22248 esac
22251 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22252 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22253 test "$ld_shlibs_F77" = no && can_build_shared=no
22256 # Do we need to explicitly link libc?
22258 case "x$archive_cmds_need_lc_F77" in
22259 x|xyes)
22260 # Assume -lc should be added
22261 archive_cmds_need_lc_F77=yes
22263 if test "$enable_shared" = yes && test "$GCC" = yes; then
22264 case $archive_cmds_F77 in
22265 *'~'*)
22266 # FIXME: we may have to deal with multi-command sequences.
22268 '$CC '*)
22269 # Test whether the compiler implicitly links with -lc since on some
22270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22271 # to ld, don't add -lc before -lgcc.
22272 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22273 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22274 $rm conftest*
22275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22278 (eval $ac_compile) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } 2>conftest.err; then
22282 soname=conftest
22283 lib=conftest
22284 libobjs=conftest.$ac_objext
22285 deplibs=
22286 wl=$lt_prog_compiler_wl_F77
22287 pic_flag=$lt_prog_compiler_pic_F77
22288 compiler_flags=-v
22289 linker_flags=-v
22290 verstring=
22291 output_objdir=.
22292 libname=conftest
22293 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22294 allow_undefined_flag_F77=
22295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22296 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }
22300 then
22301 archive_cmds_need_lc_F77=no
22302 else
22303 archive_cmds_need_lc_F77=yes
22305 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22306 else
22307 cat conftest.err 1>&5
22309 $rm conftest*
22310 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22311 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22313 esac
22316 esac
22318 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22319 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22320 library_names_spec=
22321 libname_spec='lib$name'
22322 soname_spec=
22323 shrext_cmds=".so"
22324 postinstall_cmds=
22325 postuninstall_cmds=
22326 finish_cmds=
22327 finish_eval=
22328 shlibpath_var=
22329 shlibpath_overrides_runpath=unknown
22330 version_type=none
22331 dynamic_linker="$host_os ld.so"
22332 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22333 if test "$GCC" = yes; then
22334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22336 # if the path contains ";" then we assume it to be the separator
22337 # otherwise default to the standard path separator (i.e. ":") - it is
22338 # assumed that no part of a normal pathname contains ";" but that should
22339 # okay in the real world where ";" in dirpaths is itself problematic.
22340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22341 else
22342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22344 else
22345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22347 need_lib_prefix=unknown
22348 hardcode_into_libs=no
22350 # when you set need_version to no, make sure it does not cause -set_version
22351 # flags to be left without arguments
22352 need_version=unknown
22354 case $host_os in
22355 aix3*)
22356 version_type=linux
22357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22358 shlibpath_var=LIBPATH
22360 # AIX 3 has no versioning support, so we append a major version to the name.
22361 soname_spec='${libname}${release}${shared_ext}$major'
22364 aix4* | aix5*)
22365 version_type=linux
22366 need_lib_prefix=no
22367 need_version=no
22368 hardcode_into_libs=yes
22369 if test "$host_cpu" = ia64; then
22370 # AIX 5 supports IA64
22371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22372 shlibpath_var=LD_LIBRARY_PATH
22373 else
22374 # With GCC up to 2.95.x, collect2 would create an import file
22375 # for dependence libraries. The import file would start with
22376 # the line `#! .'. This would cause the generated library to
22377 # depend on `.', always an invalid library. This was fixed in
22378 # development snapshots of GCC prior to 3.0.
22379 case $host_os in
22380 aix4 | aix4.[01] | aix4.[01].*)
22381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22382 echo ' yes '
22383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22385 else
22386 can_build_shared=no
22389 esac
22390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22391 # soname into executable. Probably we can add versioning support to
22392 # collect2, so additional links can be useful in future.
22393 if test "$aix_use_runtimelinking" = yes; then
22394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22395 # instead of lib<name>.a to let people know that these are not
22396 # typical AIX shared libraries.
22397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22398 else
22399 # We preserve .a as extension for shared libraries through AIX4.2
22400 # and later when we are not doing run time linking.
22401 library_names_spec='${libname}${release}.a $libname.a'
22402 soname_spec='${libname}${release}${shared_ext}$major'
22404 shlibpath_var=LIBPATH
22408 amigaos*)
22409 library_names_spec='$libname.ixlibrary $libname.a'
22410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22411 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'
22414 beos*)
22415 library_names_spec='${libname}${shared_ext}'
22416 dynamic_linker="$host_os ld.so"
22417 shlibpath_var=LIBRARY_PATH
22420 bsdi[45]*)
22421 version_type=linux
22422 need_version=no
22423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22424 soname_spec='${libname}${release}${shared_ext}$major'
22425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22426 shlibpath_var=LD_LIBRARY_PATH
22427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22429 # the default ld.so.conf also contains /usr/contrib/lib and
22430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22431 # libtool to hard-code these into programs
22434 cygwin* | mingw* | pw32*)
22435 version_type=windows
22436 shrext_cmds=".dll"
22437 need_version=no
22438 need_lib_prefix=no
22440 case $GCC,$host_os in
22441 yes,cygwin* | yes,mingw* | yes,pw32*)
22442 library_names_spec='$libname.dll.a'
22443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22444 postinstall_cmds='base_file=`basename \${file}`~
22445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22446 dldir=$destdir/`dirname \$dlpath`~
22447 test -d \$dldir || mkdir -p \$dldir~
22448 $install_prog $dir/$dlname \$dldir/$dlname~
22449 chmod a+x \$dldir/$dlname'
22450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22451 dlpath=$dir/\$dldll~
22452 $rm \$dlpath'
22453 shlibpath_overrides_runpath=yes
22455 case $host_os in
22456 cygwin*)
22457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22461 mingw*)
22462 # MinGW DLLs use traditional 'lib' prefix
22463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22466 # It is most probably a Windows format PATH printed by
22467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22468 # path with ; separators, and with drive letters. We can handle the
22469 # drive letters (cygwin fileutils understands them), so leave them,
22470 # especially as we might pass files found there to a mingw objdump,
22471 # which wouldn't understand a cygwinified path. Ahh.
22472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22473 else
22474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22477 pw32*)
22478 # pw32 DLLs use 'pw' prefix rather than 'lib'
22479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22481 esac
22485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22487 esac
22488 dynamic_linker='Win32 ld.exe'
22489 # FIXME: first we should search . and the directory the executable is in
22490 shlibpath_var=PATH
22493 darwin* | rhapsody*)
22494 dynamic_linker="$host_os dyld"
22495 version_type=darwin
22496 need_lib_prefix=no
22497 need_version=no
22498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22499 soname_spec='${libname}${release}${major}$shared_ext'
22500 shlibpath_overrides_runpath=yes
22501 shlibpath_var=DYLD_LIBRARY_PATH
22502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22504 if test "$GCC" = yes; then
22505 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22506 else
22507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22512 dgux*)
22513 version_type=linux
22514 need_lib_prefix=no
22515 need_version=no
22516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22517 soname_spec='${libname}${release}${shared_ext}$major'
22518 shlibpath_var=LD_LIBRARY_PATH
22521 freebsd1*)
22522 dynamic_linker=no
22525 kfreebsd*-gnu)
22526 version_type=linux
22527 need_lib_prefix=no
22528 need_version=no
22529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22530 soname_spec='${libname}${release}${shared_ext}$major'
22531 shlibpath_var=LD_LIBRARY_PATH
22532 shlibpath_overrides_runpath=no
22533 hardcode_into_libs=yes
22534 dynamic_linker='GNU ld.so'
22537 freebsd* | dragonfly*)
22538 # DragonFly does not have aout. When/if they implement a new
22539 # versioning mechanism, adjust this.
22540 if test -x /usr/bin/objformat; then
22541 objformat=`/usr/bin/objformat`
22542 else
22543 case $host_os in
22544 freebsd[123]*) objformat=aout ;;
22545 *) objformat=elf ;;
22546 esac
22548 version_type=freebsd-$objformat
22549 case $version_type in
22550 freebsd-elf*)
22551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22552 need_version=no
22553 need_lib_prefix=no
22555 freebsd-*)
22556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22557 need_version=yes
22559 esac
22560 shlibpath_var=LD_LIBRARY_PATH
22561 case $host_os in
22562 freebsd2*)
22563 shlibpath_overrides_runpath=yes
22565 freebsd3.[01]* | freebsdelf3.[01]*)
22566 shlibpath_overrides_runpath=yes
22567 hardcode_into_libs=yes
22569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22571 shlibpath_overrides_runpath=no
22572 hardcode_into_libs=yes
22574 freebsd*) # from 4.6 on
22575 shlibpath_overrides_runpath=yes
22576 hardcode_into_libs=yes
22578 esac
22581 gnu*)
22582 version_type=linux
22583 need_lib_prefix=no
22584 need_version=no
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22586 soname_spec='${libname}${release}${shared_ext}$major'
22587 shlibpath_var=LD_LIBRARY_PATH
22588 hardcode_into_libs=yes
22591 hpux9* | hpux10* | hpux11*)
22592 # Give a soname corresponding to the major version so that dld.sl refuses to
22593 # link against other versions.
22594 version_type=sunos
22595 need_lib_prefix=no
22596 need_version=no
22597 case $host_cpu in
22598 ia64*)
22599 shrext_cmds='.so'
22600 hardcode_into_libs=yes
22601 dynamic_linker="$host_os dld.so"
22602 shlibpath_var=LD_LIBRARY_PATH
22603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22605 soname_spec='${libname}${release}${shared_ext}$major'
22606 if test "X$HPUX_IA64_MODE" = X32; then
22607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22608 else
22609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22613 hppa*64*)
22614 shrext_cmds='.sl'
22615 hardcode_into_libs=yes
22616 dynamic_linker="$host_os dld.sl"
22617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22620 soname_spec='${libname}${release}${shared_ext}$major'
22621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22625 shrext_cmds='.sl'
22626 dynamic_linker="$host_os dld.sl"
22627 shlibpath_var=SHLIB_PATH
22628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22632 esac
22633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22634 postinstall_cmds='chmod 555 $lib'
22637 interix3*)
22638 version_type=linux
22639 need_lib_prefix=no
22640 need_version=no
22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22642 soname_spec='${libname}${release}${shared_ext}$major'
22643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22644 shlibpath_var=LD_LIBRARY_PATH
22645 shlibpath_overrides_runpath=no
22646 hardcode_into_libs=yes
22649 irix5* | irix6* | nonstopux*)
22650 case $host_os in
22651 nonstopux*) version_type=nonstopux ;;
22653 if test "$lt_cv_prog_gnu_ld" = yes; then
22654 version_type=linux
22655 else
22656 version_type=irix
22657 fi ;;
22658 esac
22659 need_lib_prefix=no
22660 need_version=no
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22663 case $host_os in
22664 irix5* | nonstopux*)
22665 libsuff= shlibsuff=
22668 case $LD in # libtool.m4 will add one of these switches to LD
22669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22670 libsuff= shlibsuff= libmagic=32-bit;;
22671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22672 libsuff=32 shlibsuff=N32 libmagic=N32;;
22673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22675 *) libsuff= shlibsuff= libmagic=never-match;;
22676 esac
22678 esac
22679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22680 shlibpath_overrides_runpath=no
22681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22683 hardcode_into_libs=yes
22686 # No shared lib support for Linux oldld, aout, or coff.
22687 linux*oldld* | linux*aout* | linux*coff*)
22688 dynamic_linker=no
22691 # This must be Linux ELF.
22692 linux*)
22693 version_type=linux
22694 need_lib_prefix=no
22695 need_version=no
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697 soname_spec='${libname}${release}${shared_ext}$major'
22698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22699 shlibpath_var=LD_LIBRARY_PATH
22700 shlibpath_overrides_runpath=no
22701 # This implies no fast_install, which is unacceptable.
22702 # Some rework will be needed to allow for fast_install
22703 # before this can be enabled.
22704 hardcode_into_libs=yes
22706 # Append ld.so.conf contents to the search path
22707 if test -f /etc/ld.so.conf; then
22708 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22712 # We used to test for /lib/ld.so.1 and disable shared libraries on
22713 # powerpc, because MkLinux only supported shared libraries with the
22714 # GNU dynamic linker. Since this was broken with cross compilers,
22715 # most powerpc-linux boxes support dynamic linking these days and
22716 # people can always --disable-shared, the test was removed, and we
22717 # assume the GNU/Linux dynamic linker is in use.
22718 dynamic_linker='GNU/Linux ld.so'
22721 knetbsd*-gnu)
22722 version_type=linux
22723 need_lib_prefix=no
22724 need_version=no
22725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22726 soname_spec='${libname}${release}${shared_ext}$major'
22727 shlibpath_var=LD_LIBRARY_PATH
22728 shlibpath_overrides_runpath=no
22729 hardcode_into_libs=yes
22730 dynamic_linker='GNU ld.so'
22733 netbsd*)
22734 version_type=sunos
22735 need_lib_prefix=no
22736 need_version=no
22737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22740 dynamic_linker='NetBSD (a.out) ld.so'
22741 else
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22743 soname_spec='${libname}${release}${shared_ext}$major'
22744 dynamic_linker='NetBSD ld.elf_so'
22746 shlibpath_var=LD_LIBRARY_PATH
22747 shlibpath_overrides_runpath=yes
22748 hardcode_into_libs=yes
22751 newsos6)
22752 version_type=linux
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754 shlibpath_var=LD_LIBRARY_PATH
22755 shlibpath_overrides_runpath=yes
22758 nto-qnx*)
22759 version_type=linux
22760 need_lib_prefix=no
22761 need_version=no
22762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22763 soname_spec='${libname}${release}${shared_ext}$major'
22764 shlibpath_var=LD_LIBRARY_PATH
22765 shlibpath_overrides_runpath=yes
22768 openbsd*)
22769 version_type=sunos
22770 sys_lib_dlsearch_path_spec="/usr/lib"
22771 need_lib_prefix=no
22772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22773 case $host_os in
22774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22775 *) need_version=no ;;
22776 esac
22777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22779 shlibpath_var=LD_LIBRARY_PATH
22780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22781 case $host_os in
22782 openbsd2.[89] | openbsd2.[89].*)
22783 shlibpath_overrides_runpath=no
22786 shlibpath_overrides_runpath=yes
22788 esac
22789 else
22790 shlibpath_overrides_runpath=yes
22794 os2*)
22795 libname_spec='$name'
22796 shrext_cmds=".dll"
22797 need_lib_prefix=no
22798 library_names_spec='$libname${shared_ext} $libname.a'
22799 dynamic_linker='OS/2 ld.exe'
22800 shlibpath_var=LIBPATH
22803 osf3* | osf4* | osf5*)
22804 version_type=osf
22805 need_lib_prefix=no
22806 need_version=no
22807 soname_spec='${libname}${release}${shared_ext}$major'
22808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22809 shlibpath_var=LD_LIBRARY_PATH
22810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22814 solaris*)
22815 version_type=linux
22816 need_lib_prefix=no
22817 need_version=no
22818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22819 soname_spec='${libname}${release}${shared_ext}$major'
22820 shlibpath_var=LD_LIBRARY_PATH
22821 shlibpath_overrides_runpath=yes
22822 hardcode_into_libs=yes
22823 # ldd complains unless libraries are executable
22824 postinstall_cmds='chmod +x $lib'
22827 sunos4*)
22828 version_type=sunos
22829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22831 shlibpath_var=LD_LIBRARY_PATH
22832 shlibpath_overrides_runpath=yes
22833 if test "$with_gnu_ld" = yes; then
22834 need_lib_prefix=no
22836 need_version=yes
22839 sysv4 | sysv4.3*)
22840 version_type=linux
22841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22842 soname_spec='${libname}${release}${shared_ext}$major'
22843 shlibpath_var=LD_LIBRARY_PATH
22844 case $host_vendor in
22845 sni)
22846 shlibpath_overrides_runpath=no
22847 need_lib_prefix=no
22848 export_dynamic_flag_spec='${wl}-Blargedynsym'
22849 runpath_var=LD_RUN_PATH
22851 siemens)
22852 need_lib_prefix=no
22854 motorola)
22855 need_lib_prefix=no
22856 need_version=no
22857 shlibpath_overrides_runpath=no
22858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22860 esac
22863 sysv4*MP*)
22864 if test -d /usr/nec ;then
22865 version_type=linux
22866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22867 soname_spec='$libname${shared_ext}.$major'
22868 shlibpath_var=LD_LIBRARY_PATH
22872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22873 version_type=freebsd-elf
22874 need_lib_prefix=no
22875 need_version=no
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 shlibpath_var=LD_LIBRARY_PATH
22879 hardcode_into_libs=yes
22880 if test "$with_gnu_ld" = yes; then
22881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22882 shlibpath_overrides_runpath=no
22883 else
22884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22885 shlibpath_overrides_runpath=yes
22886 case $host_os in
22887 sco3.2v5*)
22888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22890 esac
22892 sys_lib_dlsearch_path_spec='/usr/lib'
22895 uts4*)
22896 version_type=linux
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898 soname_spec='${libname}${release}${shared_ext}$major'
22899 shlibpath_var=LD_LIBRARY_PATH
22903 dynamic_linker=no
22905 esac
22906 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22907 echo "${ECHO_T}$dynamic_linker" >&6; }
22908 test "$dynamic_linker" = no && can_build_shared=no
22910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22911 if test "$GCC" = yes; then
22912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22915 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22917 hardcode_action_F77=
22918 if test -n "$hardcode_libdir_flag_spec_F77" || \
22919 test -n "$runpath_var_F77" || \
22920 test "X$hardcode_automatic_F77" = "Xyes" ; then
22922 # We can hardcode non-existant directories.
22923 if test "$hardcode_direct_F77" != no &&
22924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22925 # have to relink, otherwise we might link with an installed library
22926 # when we should be linking with a yet-to-be-installed one
22927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22928 test "$hardcode_minus_L_F77" != no; then
22929 # Linking always hardcodes the temporary library directory.
22930 hardcode_action_F77=relink
22931 else
22932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22933 hardcode_action_F77=immediate
22935 else
22936 # We cannot hardcode anything, or else we can only hardcode existing
22937 # directories.
22938 hardcode_action_F77=unsupported
22940 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22941 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22943 if test "$hardcode_action_F77" = relink; then
22944 # Fast installation is not supported
22945 enable_fast_install=no
22946 elif test "$shlibpath_overrides_runpath" = yes ||
22947 test "$enable_shared" = no; then
22948 # Fast installation is not necessary
22949 enable_fast_install=needless
22953 # The else clause should only fire when bootstrapping the
22954 # libtool distribution, otherwise you forgot to ship ltmain.sh
22955 # with your package, and you will get complaints that there are
22956 # no rules to generate ltmain.sh.
22957 if test -f "$ltmain"; then
22958 # See if we are running on zsh, and set the options which allow our commands through
22959 # without removal of \ escapes.
22960 if test -n "${ZSH_VERSION+set}" ; then
22961 setopt NO_GLOB_SUBST
22963 # Now quote all the things that may contain metacharacters while being
22964 # careful not to overquote the AC_SUBSTed values. We take copies of the
22965 # variables and quote the copies for generation of the libtool script.
22966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22967 SED SHELL STRIP \
22968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22970 deplibs_check_method reload_flag reload_cmds need_locks \
22971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22972 lt_cv_sys_global_symbol_to_c_name_address \
22973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22974 old_postinstall_cmds old_postuninstall_cmds \
22975 compiler_F77 \
22976 CC_F77 \
22977 LD_F77 \
22978 lt_prog_compiler_wl_F77 \
22979 lt_prog_compiler_pic_F77 \
22980 lt_prog_compiler_static_F77 \
22981 lt_prog_compiler_no_builtin_flag_F77 \
22982 export_dynamic_flag_spec_F77 \
22983 thread_safe_flag_spec_F77 \
22984 whole_archive_flag_spec_F77 \
22985 enable_shared_with_static_runtimes_F77 \
22986 old_archive_cmds_F77 \
22987 old_archive_from_new_cmds_F77 \
22988 predep_objects_F77 \
22989 postdep_objects_F77 \
22990 predeps_F77 \
22991 postdeps_F77 \
22992 compiler_lib_search_path_F77 \
22993 archive_cmds_F77 \
22994 archive_expsym_cmds_F77 \
22995 postinstall_cmds_F77 \
22996 postuninstall_cmds_F77 \
22997 old_archive_from_expsyms_cmds_F77 \
22998 allow_undefined_flag_F77 \
22999 no_undefined_flag_F77 \
23000 export_symbols_cmds_F77 \
23001 hardcode_libdir_flag_spec_F77 \
23002 hardcode_libdir_flag_spec_ld_F77 \
23003 hardcode_libdir_separator_F77 \
23004 hardcode_automatic_F77 \
23005 module_cmds_F77 \
23006 module_expsym_cmds_F77 \
23007 lt_cv_prog_compiler_c_o_F77 \
23008 exclude_expsyms_F77 \
23009 include_expsyms_F77; do
23011 case $var in
23012 old_archive_cmds_F77 | \
23013 old_archive_from_new_cmds_F77 | \
23014 archive_cmds_F77 | \
23015 archive_expsym_cmds_F77 | \
23016 module_cmds_F77 | \
23017 module_expsym_cmds_F77 | \
23018 old_archive_from_expsyms_cmds_F77 | \
23019 export_symbols_cmds_F77 | \
23020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23021 postinstall_cmds | postuninstall_cmds | \
23022 old_postinstall_cmds | old_postuninstall_cmds | \
23023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23024 # Double-quote double-evaled strings.
23025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23030 esac
23031 done
23033 case $lt_echo in
23034 *'\$0 --fallback-echo"')
23035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23037 esac
23039 cfgfile="$ofile"
23041 cat <<__EOF__ >> "$cfgfile"
23042 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23046 # Shell to use when invoking shell scripts.
23047 SHELL=$lt_SHELL
23049 # Whether or not to build shared libraries.
23050 build_libtool_libs=$enable_shared
23052 # Whether or not to build static libraries.
23053 build_old_libs=$enable_static
23055 # Whether or not to add -lc for building shared libraries.
23056 build_libtool_need_lc=$archive_cmds_need_lc_F77
23058 # Whether or not to disallow shared libs when runtime libs are static
23059 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23061 # Whether or not to optimize for fast installation.
23062 fast_install=$enable_fast_install
23064 # The host system.
23065 host_alias=$host_alias
23066 host=$host
23067 host_os=$host_os
23069 # The build system.
23070 build_alias=$build_alias
23071 build=$build
23072 build_os=$build_os
23074 # An echo program that does not interpret backslashes.
23075 echo=$lt_echo
23077 # The archiver.
23078 AR=$lt_AR
23079 AR_FLAGS=$lt_AR_FLAGS
23081 # A C compiler.
23082 LTCC=$lt_LTCC
23084 # LTCC compiler flags.
23085 LTCFLAGS=$lt_LTCFLAGS
23087 # A language-specific compiler.
23088 CC=$lt_compiler_F77
23090 # Is the compiler the GNU C compiler?
23091 with_gcc=$GCC_F77
23093 # An ERE matcher.
23094 EGREP=$lt_EGREP
23096 # The linker used to build libraries.
23097 LD=$lt_LD_F77
23099 # Whether we need hard or soft links.
23100 LN_S=$lt_LN_S
23102 # A BSD-compatible nm program.
23103 NM=$lt_NM
23105 # A symbol stripping program
23106 STRIP=$lt_STRIP
23108 # Used to examine libraries when file_magic_cmd begins "file"
23109 MAGIC_CMD=$MAGIC_CMD
23111 # Used on cygwin: DLL creation program.
23112 DLLTOOL="$DLLTOOL"
23114 # Used on cygwin: object dumper.
23115 OBJDUMP="$OBJDUMP"
23117 # Used on cygwin: assembler.
23118 AS="$AS"
23120 # The name of the directory that contains temporary libtool files.
23121 objdir=$objdir
23123 # How to create reloadable object files.
23124 reload_flag=$lt_reload_flag
23125 reload_cmds=$lt_reload_cmds
23127 # How to pass a linker flag through the compiler.
23128 wl=$lt_lt_prog_compiler_wl_F77
23130 # Object file suffix (normally "o").
23131 objext="$ac_objext"
23133 # Old archive suffix (normally "a").
23134 libext="$libext"
23136 # Shared library suffix (normally ".so").
23137 shrext_cmds='$shrext_cmds'
23139 # Executable file suffix (normally "").
23140 exeext="$exeext"
23142 # Additional compiler flags for building library objects.
23143 pic_flag=$lt_lt_prog_compiler_pic_F77
23144 pic_mode=$pic_mode
23146 # What is the maximum length of a command?
23147 max_cmd_len=$lt_cv_sys_max_cmd_len
23149 # Does compiler simultaneously support -c and -o options?
23150 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23152 # Must we lock files when doing compilation?
23153 need_locks=$lt_need_locks
23155 # Do we need the lib prefix for modules?
23156 need_lib_prefix=$need_lib_prefix
23158 # Do we need a version for libraries?
23159 need_version=$need_version
23161 # Whether dlopen is supported.
23162 dlopen_support=$enable_dlopen
23164 # Whether dlopen of programs is supported.
23165 dlopen_self=$enable_dlopen_self
23167 # Whether dlopen of statically linked programs is supported.
23168 dlopen_self_static=$enable_dlopen_self_static
23170 # Compiler flag to prevent dynamic linking.
23171 link_static_flag=$lt_lt_prog_compiler_static_F77
23173 # Compiler flag to turn off builtin functions.
23174 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23176 # Compiler flag to allow reflexive dlopens.
23177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23179 # Compiler flag to generate shared objects directly from archives.
23180 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23182 # Compiler flag to generate thread-safe objects.
23183 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23185 # Library versioning type.
23186 version_type=$version_type
23188 # Format of library name prefix.
23189 libname_spec=$lt_libname_spec
23191 # List of archive names. First name is the real one, the rest are links.
23192 # The last name is the one that the linker finds with -lNAME.
23193 library_names_spec=$lt_library_names_spec
23195 # The coded name of the library, if different from the real name.
23196 soname_spec=$lt_soname_spec
23198 # Commands used to build and install an old-style archive.
23199 RANLIB=$lt_RANLIB
23200 old_archive_cmds=$lt_old_archive_cmds_F77
23201 old_postinstall_cmds=$lt_old_postinstall_cmds
23202 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23204 # Create an old-style archive from a shared archive.
23205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23207 # Create a temporary old-style archive to link instead of a shared archive.
23208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23210 # Commands used to build and install a shared archive.
23211 archive_cmds=$lt_archive_cmds_F77
23212 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23213 postinstall_cmds=$lt_postinstall_cmds
23214 postuninstall_cmds=$lt_postuninstall_cmds
23216 # Commands used to build a loadable module (assumed same as above if empty)
23217 module_cmds=$lt_module_cmds_F77
23218 module_expsym_cmds=$lt_module_expsym_cmds_F77
23220 # Commands to strip libraries.
23221 old_striplib=$lt_old_striplib
23222 striplib=$lt_striplib
23224 # Dependencies to place before the objects being linked to create a
23225 # shared library.
23226 predep_objects=$lt_predep_objects_F77
23228 # Dependencies to place after the objects being linked to create a
23229 # shared library.
23230 postdep_objects=$lt_postdep_objects_F77
23232 # Dependencies to place before the objects being linked to create a
23233 # shared library.
23234 predeps=$lt_predeps_F77
23236 # Dependencies to place after the objects being linked to create a
23237 # shared library.
23238 postdeps=$lt_postdeps_F77
23240 # The library search path used internally by the compiler when linking
23241 # a shared library.
23242 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23244 # Method to check whether dependent libraries are shared objects.
23245 deplibs_check_method=$lt_deplibs_check_method
23247 # Command to use when deplibs_check_method == file_magic.
23248 file_magic_cmd=$lt_file_magic_cmd
23250 # Flag that allows shared libraries with undefined symbols to be built.
23251 allow_undefined_flag=$lt_allow_undefined_flag_F77
23253 # Flag that forces no undefined symbols.
23254 no_undefined_flag=$lt_no_undefined_flag_F77
23256 # Commands used to finish a libtool library installation in a directory.
23257 finish_cmds=$lt_finish_cmds
23259 # Same as above, but a single script fragment to be evaled but not shown.
23260 finish_eval=$lt_finish_eval
23262 # Take the output of nm and produce a listing of raw symbols and C names.
23263 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23265 # Transform the output of nm in a proper C declaration
23266 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23268 # Transform the output of nm in a C name address pair
23269 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23271 # This is the shared library runtime path variable.
23272 runpath_var=$runpath_var
23274 # This is the shared library path variable.
23275 shlibpath_var=$shlibpath_var
23277 # Is shlibpath searched before the hard-coded library search path?
23278 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23280 # How to hardcode a shared library path into an executable.
23281 hardcode_action=$hardcode_action_F77
23283 # Whether we should hardcode library paths into libraries.
23284 hardcode_into_libs=$hardcode_into_libs
23286 # Flag to hardcode \$libdir into a binary during linking.
23287 # This must work even if \$libdir does not exist.
23288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23290 # If ld is used when linking, flag to hardcode \$libdir into
23291 # a binary during linking. This must work even if \$libdir does
23292 # not exist.
23293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23295 # Whether we need a single -rpath flag with a separated argument.
23296 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23298 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23299 # resulting binary.
23300 hardcode_direct=$hardcode_direct_F77
23302 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23303 # resulting binary.
23304 hardcode_minus_L=$hardcode_minus_L_F77
23306 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23307 # the resulting binary.
23308 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23310 # Set to yes if building a shared library automatically hardcodes DIR into the library
23311 # and all subsequent libraries and executables linked against it.
23312 hardcode_automatic=$hardcode_automatic_F77
23314 # Variables whose values should be saved in libtool wrapper scripts and
23315 # restored at relink time.
23316 variables_saved_for_relink="$variables_saved_for_relink"
23318 # Whether libtool must link a program against all its dependency libraries.
23319 link_all_deplibs=$link_all_deplibs_F77
23321 # Compile-time system search path for libraries
23322 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23324 # Run-time system search path for libraries
23325 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23327 # Fix the shell variable \$srcfile for the compiler.
23328 fix_srcfile_path="$fix_srcfile_path_F77"
23330 # Set to yes if exported symbols are required.
23331 always_export_symbols=$always_export_symbols_F77
23333 # The commands to list exported symbols.
23334 export_symbols_cmds=$lt_export_symbols_cmds_F77
23336 # The commands to extract the exported symbol list from a shared archive.
23337 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23339 # Symbols that should not be listed in the preloaded symbols.
23340 exclude_expsyms=$lt_exclude_expsyms_F77
23342 # Symbols that must always be exported.
23343 include_expsyms=$lt_include_expsyms_F77
23345 # ### END LIBTOOL TAG CONFIG: $tagname
23347 __EOF__
23350 else
23351 # If there is no Makefile yet, we rely on a make rule to execute
23352 # `config.status --recheck' to rerun these tests and create the
23353 # libtool script then.
23354 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23355 if test -f "$ltmain_in"; then
23356 test -f Makefile && make "$ltmain"
23361 ac_ext=c
23362 ac_cpp='$CPP $CPPFLAGS'
23363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23367 CC="$lt_save_CC"
23369 else
23370 tagname=""
23374 GCJ)
23375 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23376 ac_ext=c
23377 ac_cpp='$CPP $CPPFLAGS'
23378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23383 # Source file extension for Java test sources.
23384 ac_ext=java
23386 # Object file extension for compiled Java test sources.
23387 objext=o
23388 objext_GCJ=$objext
23390 # Code to be used in simple compile tests
23391 lt_simple_compile_test_code="class foo {}\n"
23393 # Code to be used in simple link tests
23394 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23396 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23398 # If no C compiler was specified, use CC.
23399 LTCC=${LTCC-"$CC"}
23401 # If no C compiler flags were specified, use CFLAGS.
23402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23404 # Allow CC to be a program name with arguments.
23405 compiler=$CC
23408 # save warnings/boilerplate of simple test code
23409 ac_outfile=conftest.$ac_objext
23410 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23411 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23412 _lt_compiler_boilerplate=`cat conftest.err`
23413 $rm conftest*
23415 ac_outfile=conftest.$ac_objext
23416 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23417 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23418 _lt_linker_boilerplate=`cat conftest.err`
23419 $rm conftest*
23422 # Allow CC to be a program name with arguments.
23423 lt_save_CC="$CC"
23424 CC=${GCJ-"gcj"}
23425 compiler=$CC
23426 compiler_GCJ=$CC
23427 for cc_temp in $compiler""; do
23428 case $cc_temp in
23429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23431 \-*) ;;
23432 *) break;;
23433 esac
23434 done
23435 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23438 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23439 archive_cmds_need_lc_GCJ=no
23441 old_archive_cmds_GCJ=$old_archive_cmds
23444 lt_prog_compiler_no_builtin_flag_GCJ=
23446 if test "$GCC" = yes; then
23447 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23450 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23451 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23452 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23453 echo $ECHO_N "(cached) $ECHO_C" >&6
23454 else
23455 lt_cv_prog_compiler_rtti_exceptions=no
23456 ac_outfile=conftest.$ac_objext
23457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23458 lt_compiler_flag="-fno-rtti -fno-exceptions"
23459 # Insert the option either (1) after the last *FLAGS variable, or
23460 # (2) before a word containing "conftest.", or (3) at the end.
23461 # Note that $ac_compile itself does not contain backslashes and begins
23462 # with a dollar sign (not a hyphen), so the echo should work correctly.
23463 # The option is referenced via a variable to avoid confusing sed.
23464 lt_compile=`echo "$ac_compile" | $SED \
23465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23467 -e 's:$: $lt_compiler_flag:'`
23468 (eval echo "\"\$as_me:23468: $lt_compile\"" >&5)
23469 (eval "$lt_compile" 2>conftest.err)
23470 ac_status=$?
23471 cat conftest.err >&5
23472 echo "$as_me:23472: \$? = $ac_status" >&5
23473 if (exit $ac_status) && test -s "$ac_outfile"; then
23474 # The compiler can only warn and ignore the option if not recognized
23475 # So say no if there are warnings other than the usual output.
23476 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23479 lt_cv_prog_compiler_rtti_exceptions=yes
23482 $rm conftest*
23485 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23486 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23488 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23489 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23490 else
23496 lt_prog_compiler_wl_GCJ=
23497 lt_prog_compiler_pic_GCJ=
23498 lt_prog_compiler_static_GCJ=
23500 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23501 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23503 if test "$GCC" = yes; then
23504 lt_prog_compiler_wl_GCJ='-Wl,'
23505 lt_prog_compiler_static_GCJ='-static'
23507 case $host_os in
23508 aix*)
23509 # All AIX code is PIC.
23510 if test "$host_cpu" = ia64; then
23511 # AIX 5 now supports IA64 processor
23512 lt_prog_compiler_static_GCJ='-Bstatic'
23516 amigaos*)
23517 # FIXME: we need at least 68020 code to build shared libraries, but
23518 # adding the `-m68020' flag to GCC prevents building anything better,
23519 # like `-m68040'.
23520 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23523 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23524 # PIC is the default for these OSes.
23527 mingw* | pw32* | os2*)
23528 # This hack is so that the source file can tell whether it is being
23529 # built for inclusion in a dll (and should export symbols for example).
23530 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23533 darwin* | rhapsody*)
23534 # PIC is the default on this platform
23535 # Common symbols not allowed in MH_DYLIB files
23536 lt_prog_compiler_pic_GCJ='-fno-common'
23539 interix3*)
23540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23541 # Instead, we relocate shared libraries at runtime.
23544 msdosdjgpp*)
23545 # Just because we use GCC doesn't mean we suddenly get shared libraries
23546 # on systems that don't support them.
23547 lt_prog_compiler_can_build_shared_GCJ=no
23548 enable_shared=no
23551 sysv4*MP*)
23552 if test -d /usr/nec; then
23553 lt_prog_compiler_pic_GCJ=-Kconform_pic
23557 hpux*)
23558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23559 # not for PA HP-UX.
23560 case $host_cpu in
23561 hppa*64*|ia64*)
23562 # +Z the default
23565 lt_prog_compiler_pic_GCJ='-fPIC'
23567 esac
23571 lt_prog_compiler_pic_GCJ='-fPIC'
23573 esac
23574 else
23575 # PORTME Check for flag to pass linker flags through the system compiler.
23576 case $host_os in
23577 aix*)
23578 lt_prog_compiler_wl_GCJ='-Wl,'
23579 if test "$host_cpu" = ia64; then
23580 # AIX 5 now supports IA64 processor
23581 lt_prog_compiler_static_GCJ='-Bstatic'
23582 else
23583 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23586 darwin*)
23587 # PIC is the default on this platform
23588 # Common symbols not allowed in MH_DYLIB files
23589 case $cc_basename in
23590 xlc*)
23591 lt_prog_compiler_pic_GCJ='-qnocommon'
23592 lt_prog_compiler_wl_GCJ='-Wl,'
23594 esac
23597 mingw* | pw32* | os2*)
23598 # This hack is so that the source file can tell whether it is being
23599 # built for inclusion in a dll (and should export symbols for example).
23600 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23603 hpux9* | hpux10* | hpux11*)
23604 lt_prog_compiler_wl_GCJ='-Wl,'
23605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23606 # not for PA HP-UX.
23607 case $host_cpu in
23608 hppa*64*|ia64*)
23609 # +Z the default
23612 lt_prog_compiler_pic_GCJ='+Z'
23614 esac
23615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23616 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23619 irix5* | irix6* | nonstopux*)
23620 lt_prog_compiler_wl_GCJ='-Wl,'
23621 # PIC (with -KPIC) is the default.
23622 lt_prog_compiler_static_GCJ='-non_shared'
23625 newsos6)
23626 lt_prog_compiler_pic_GCJ='-KPIC'
23627 lt_prog_compiler_static_GCJ='-Bstatic'
23630 linux*)
23631 case $cc_basename in
23632 icc* | ecc*)
23633 lt_prog_compiler_wl_GCJ='-Wl,'
23634 lt_prog_compiler_pic_GCJ='-KPIC'
23635 lt_prog_compiler_static_GCJ='-static'
23637 pgcc* | pgf77* | pgf90* | pgf95*)
23638 # Portland Group compilers (*not* the Pentium gcc compiler,
23639 # which looks to be a dead project)
23640 lt_prog_compiler_wl_GCJ='-Wl,'
23641 lt_prog_compiler_pic_GCJ='-fpic'
23642 lt_prog_compiler_static_GCJ='-Bstatic'
23644 ccc*)
23645 lt_prog_compiler_wl_GCJ='-Wl,'
23646 # All Alpha code is PIC.
23647 lt_prog_compiler_static_GCJ='-non_shared'
23649 esac
23652 osf3* | osf4* | osf5*)
23653 lt_prog_compiler_wl_GCJ='-Wl,'
23654 # All OSF/1 code is PIC.
23655 lt_prog_compiler_static_GCJ='-non_shared'
23658 solaris*)
23659 lt_prog_compiler_pic_GCJ='-KPIC'
23660 lt_prog_compiler_static_GCJ='-Bstatic'
23661 case $cc_basename in
23662 f77* | f90* | f95*)
23663 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23665 lt_prog_compiler_wl_GCJ='-Wl,';;
23666 esac
23669 sunos4*)
23670 lt_prog_compiler_wl_GCJ='-Qoption ld '
23671 lt_prog_compiler_pic_GCJ='-PIC'
23672 lt_prog_compiler_static_GCJ='-Bstatic'
23675 sysv4 | sysv4.2uw2* | sysv4.3*)
23676 lt_prog_compiler_wl_GCJ='-Wl,'
23677 lt_prog_compiler_pic_GCJ='-KPIC'
23678 lt_prog_compiler_static_GCJ='-Bstatic'
23681 sysv4*MP*)
23682 if test -d /usr/nec ;then
23683 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23684 lt_prog_compiler_static_GCJ='-Bstatic'
23688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23689 lt_prog_compiler_wl_GCJ='-Wl,'
23690 lt_prog_compiler_pic_GCJ='-KPIC'
23691 lt_prog_compiler_static_GCJ='-Bstatic'
23694 unicos*)
23695 lt_prog_compiler_wl_GCJ='-Wl,'
23696 lt_prog_compiler_can_build_shared_GCJ=no
23699 uts4*)
23700 lt_prog_compiler_pic_GCJ='-pic'
23701 lt_prog_compiler_static_GCJ='-Bstatic'
23705 lt_prog_compiler_can_build_shared_GCJ=no
23707 esac
23710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23711 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23714 # Check to make sure the PIC flag actually works.
23716 if test -n "$lt_prog_compiler_pic_GCJ"; then
23718 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23719 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23720 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723 lt_prog_compiler_pic_works_GCJ=no
23724 ac_outfile=conftest.$ac_objext
23725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23726 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23727 # Insert the option either (1) after the last *FLAGS variable, or
23728 # (2) before a word containing "conftest.", or (3) at the end.
23729 # Note that $ac_compile itself does not contain backslashes and begins
23730 # with a dollar sign (not a hyphen), so the echo should work correctly.
23731 # The option is referenced via a variable to avoid confusing sed.
23732 lt_compile=`echo "$ac_compile" | $SED \
23733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23735 -e 's:$: $lt_compiler_flag:'`
23736 (eval echo "\"\$as_me:23736: $lt_compile\"" >&5)
23737 (eval "$lt_compile" 2>conftest.err)
23738 ac_status=$?
23739 cat conftest.err >&5
23740 echo "$as_me:23740: \$? = $ac_status" >&5
23741 if (exit $ac_status) && test -s "$ac_outfile"; then
23742 # The compiler can only warn and ignore the option if not recognized
23743 # So say no if there are warnings other than the usual output.
23744 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23747 lt_prog_compiler_pic_works_GCJ=yes
23750 $rm conftest*
23753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23754 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23756 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23757 case $lt_prog_compiler_pic_GCJ in
23758 "" | " "*) ;;
23759 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23760 esac
23761 else
23762 lt_prog_compiler_pic_GCJ=
23763 lt_prog_compiler_can_build_shared_GCJ=no
23767 case $host_os in
23768 # For platforms which do not support PIC, -DPIC is meaningless:
23769 *djgpp*)
23770 lt_prog_compiler_pic_GCJ=
23773 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23775 esac
23778 # Check to make sure the static flag actually works.
23780 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23781 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23782 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23783 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23785 else
23786 lt_prog_compiler_static_works_GCJ=no
23787 save_LDFLAGS="$LDFLAGS"
23788 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23789 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23791 # The linker can only warn and ignore the option if not recognized
23792 # So say no if there are warnings
23793 if test -s conftest.err; then
23794 # Append any errors to the config.log.
23795 cat conftest.err 1>&5
23796 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23798 if diff conftest.exp conftest.er2 >/dev/null; then
23799 lt_prog_compiler_static_works_GCJ=yes
23801 else
23802 lt_prog_compiler_static_works_GCJ=yes
23805 $rm conftest*
23806 LDFLAGS="$save_LDFLAGS"
23809 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23810 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23812 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23814 else
23815 lt_prog_compiler_static_GCJ=
23819 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23821 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23822 echo $ECHO_N "(cached) $ECHO_C" >&6
23823 else
23824 lt_cv_prog_compiler_c_o_GCJ=no
23825 $rm -r conftest 2>/dev/null
23826 mkdir conftest
23827 cd conftest
23828 mkdir out
23829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23831 lt_compiler_flag="-o out/conftest2.$ac_objext"
23832 # Insert the option either (1) after the last *FLAGS variable, or
23833 # (2) before a word containing "conftest.", or (3) at the end.
23834 # Note that $ac_compile itself does not contain backslashes and begins
23835 # with a dollar sign (not a hyphen), so the echo should work correctly.
23836 lt_compile=`echo "$ac_compile" | $SED \
23837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23839 -e 's:$: $lt_compiler_flag:'`
23840 (eval echo "\"\$as_me:23840: $lt_compile\"" >&5)
23841 (eval "$lt_compile" 2>out/conftest.err)
23842 ac_status=$?
23843 cat out/conftest.err >&5
23844 echo "$as_me:23844: \$? = $ac_status" >&5
23845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23846 then
23847 # The compiler can only warn and ignore the option if not recognized
23848 # So say no if there are warnings
23849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23852 lt_cv_prog_compiler_c_o_GCJ=yes
23855 chmod u+w . 2>&5
23856 $rm conftest*
23857 # SGI C++ compiler will create directory out/ii_files/ for
23858 # template instantiation
23859 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23860 $rm out/* && rmdir out
23861 cd ..
23862 rmdir conftest
23863 $rm conftest*
23866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23870 hard_links="nottested"
23871 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23872 # do not overwrite the value of need_locks provided by the user
23873 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23875 hard_links=yes
23876 $rm conftest*
23877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23878 touch conftest.a
23879 ln conftest.a conftest.b 2>&5 || hard_links=no
23880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23881 { echo "$as_me:$LINENO: result: $hard_links" >&5
23882 echo "${ECHO_T}$hard_links" >&6; }
23883 if test "$hard_links" = no; then
23884 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23886 need_locks=warn
23888 else
23889 need_locks=no
23892 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23895 runpath_var=
23896 allow_undefined_flag_GCJ=
23897 enable_shared_with_static_runtimes_GCJ=no
23898 archive_cmds_GCJ=
23899 archive_expsym_cmds_GCJ=
23900 old_archive_From_new_cmds_GCJ=
23901 old_archive_from_expsyms_cmds_GCJ=
23902 export_dynamic_flag_spec_GCJ=
23903 whole_archive_flag_spec_GCJ=
23904 thread_safe_flag_spec_GCJ=
23905 hardcode_libdir_flag_spec_GCJ=
23906 hardcode_libdir_flag_spec_ld_GCJ=
23907 hardcode_libdir_separator_GCJ=
23908 hardcode_direct_GCJ=no
23909 hardcode_minus_L_GCJ=no
23910 hardcode_shlibpath_var_GCJ=unsupported
23911 link_all_deplibs_GCJ=unknown
23912 hardcode_automatic_GCJ=no
23913 module_cmds_GCJ=
23914 module_expsym_cmds_GCJ=
23915 always_export_symbols_GCJ=no
23916 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23917 # include_expsyms should be a list of space-separated symbols to be *always*
23918 # included in the symbol list
23919 include_expsyms_GCJ=
23920 # exclude_expsyms can be an extended regexp of symbols to exclude
23921 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23922 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23923 # as well as any symbol that contains `d'.
23924 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23925 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23926 # platforms (ab)use it in PIC code, but their linkers get confused if
23927 # the symbol is explicitly referenced. Since portable code cannot
23928 # rely on this symbol name, it's probably fine to never include it in
23929 # preloaded symbol tables.
23930 extract_expsyms_cmds=
23931 # Just being paranoid about ensuring that cc_basename is set.
23932 for cc_temp in $compiler""; do
23933 case $cc_temp in
23934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23936 \-*) ;;
23937 *) break;;
23938 esac
23939 done
23940 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23942 case $host_os in
23943 cygwin* | mingw* | pw32*)
23944 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23945 # When not using gcc, we currently assume that we are using
23946 # Microsoft Visual C++.
23947 if test "$GCC" != yes; then
23948 with_gnu_ld=no
23951 interix*)
23952 # we just hope/assume this is gcc and not c89 (= MSVC++)
23953 with_gnu_ld=yes
23955 openbsd*)
23956 with_gnu_ld=no
23958 esac
23960 ld_shlibs_GCJ=yes
23961 if test "$with_gnu_ld" = yes; then
23962 # If archive_cmds runs LD, not CC, wlarc should be empty
23963 wlarc='${wl}'
23965 # Set some defaults for GNU ld with shared library support. These
23966 # are reset later if shared libraries are not supported. Putting them
23967 # here allows them to be overridden if necessary.
23968 runpath_var=LD_RUN_PATH
23969 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23970 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23971 # ancient GNU ld didn't support --whole-archive et. al.
23972 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23973 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23974 else
23975 whole_archive_flag_spec_GCJ=
23977 supports_anon_versioning=no
23978 case `$LD -v 2>/dev/null` in
23979 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23982 *\ 2.11.*) ;; # other 2.11 versions
23983 *) supports_anon_versioning=yes ;;
23984 esac
23986 # See if GNU ld supports shared libraries.
23987 case $host_os in
23988 aix3* | aix4* | aix5*)
23989 # On AIX/PPC, the GNU linker is very broken
23990 if test "$host_cpu" != ia64; then
23991 ld_shlibs_GCJ=no
23992 cat <<EOF 1>&2
23994 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23995 *** to be unable to reliably create shared libraries on AIX.
23996 *** Therefore, libtool is disabling shared libraries support. If you
23997 *** really care for shared libraries, you may want to modify your PATH
23998 *** so that a non-GNU linker is found, and then restart.
24004 amigaos*)
24005 archive_cmds_GCJ='$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)'
24006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24007 hardcode_minus_L_GCJ=yes
24009 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24010 # that the semantics of dynamic libraries on AmigaOS, at least up
24011 # to version 4, is to share data among multiple programs linked
24012 # with the same dynamic library. Since this doesn't match the
24013 # behavior of shared libraries on other platforms, we can't use
24014 # them.
24015 ld_shlibs_GCJ=no
24018 beos*)
24019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24020 allow_undefined_flag_GCJ=unsupported
24021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24022 # support --undefined. This deserves some investigation. FIXME
24023 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24024 else
24025 ld_shlibs_GCJ=no
24029 cygwin* | mingw* | pw32*)
24030 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24031 # as there is no search path for DLLs.
24032 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24033 allow_undefined_flag_GCJ=unsupported
24034 always_export_symbols_GCJ=no
24035 enable_shared_with_static_runtimes_GCJ=yes
24036 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24038 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24039 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24040 # If the export-symbols file already is a .def file (1st line
24041 # is EXPORTS), use it as is; otherwise, prepend...
24042 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24043 cp $export_symbols $output_objdir/$soname.def;
24044 else
24045 echo EXPORTS > $output_objdir/$soname.def;
24046 cat $export_symbols >> $output_objdir/$soname.def;
24048 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24049 else
24050 ld_shlibs_GCJ=no
24054 interix3*)
24055 hardcode_direct_GCJ=no
24056 hardcode_shlibpath_var_GCJ=no
24057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24058 export_dynamic_flag_spec_GCJ='${wl}-E'
24059 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24060 # Instead, shared libraries are loaded at an image base (0x10000000 by
24061 # default) and relocated if they conflict, which is a slow very memory
24062 # consuming and fragmenting process. To avoid this, we pick a random,
24063 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24064 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24065 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24066 archive_expsym_cmds_GCJ='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'
24069 linux*)
24070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24071 tmp_addflag=
24072 case $cc_basename,$host_cpu in
24073 pgcc*) # Portland Group C compiler
24074 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24075 tmp_addflag=' $pic_flag'
24077 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24078 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24079 tmp_addflag=' $pic_flag -Mnomain' ;;
24080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24081 tmp_addflag=' -i_dynamic' ;;
24082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24083 tmp_addflag=' -i_dynamic -nofor_main' ;;
24084 ifc* | ifort*) # Intel Fortran compiler
24085 tmp_addflag=' -nofor_main' ;;
24086 esac
24087 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24089 if test $supports_anon_versioning = yes; then
24090 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24092 $echo "local: *; };" >> $output_objdir/$libname.ver~
24093 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24095 else
24096 ld_shlibs_GCJ=no
24100 netbsd*)
24101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24102 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24103 wlarc=
24104 else
24105 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24106 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24110 solaris*)
24111 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24112 ld_shlibs_GCJ=no
24113 cat <<EOF 1>&2
24115 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24116 *** create shared libraries on Solaris systems. Therefore, libtool
24117 *** is disabling shared libraries support. We urge you to upgrade GNU
24118 *** binutils to release 2.9.1 or newer. Another option is to modify
24119 *** your PATH or compiler configuration so that the native linker is
24120 *** used, and then restart.
24123 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24124 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24125 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24126 else
24127 ld_shlibs_GCJ=no
24131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24132 case `$LD -v 2>&1` in
24133 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24134 ld_shlibs_GCJ=no
24135 cat <<_LT_EOF 1>&2
24137 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24138 *** reliably create shared libraries on SCO systems. Therefore, libtool
24139 *** is disabling shared libraries support. We urge you to upgrade GNU
24140 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24141 *** your PATH or compiler configuration so that the native linker is
24142 *** used, and then restart.
24144 _LT_EOF
24147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24148 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24149 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24150 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24151 else
24152 ld_shlibs_GCJ=no
24155 esac
24158 sunos4*)
24159 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24160 wlarc=
24161 hardcode_direct_GCJ=yes
24162 hardcode_shlibpath_var_GCJ=no
24166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24167 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24168 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24169 else
24170 ld_shlibs_GCJ=no
24173 esac
24175 if test "$ld_shlibs_GCJ" = no; then
24176 runpath_var=
24177 hardcode_libdir_flag_spec_GCJ=
24178 export_dynamic_flag_spec_GCJ=
24179 whole_archive_flag_spec_GCJ=
24181 else
24182 # PORTME fill in a description of your system's linker (not GNU ld)
24183 case $host_os in
24184 aix3*)
24185 allow_undefined_flag_GCJ=unsupported
24186 always_export_symbols_GCJ=yes
24187 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24188 # Note: this linker hardcodes the directories in LIBPATH if there
24189 # are no directories specified by -L.
24190 hardcode_minus_L_GCJ=yes
24191 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24192 # Neither direct hardcoding nor static linking is supported with a
24193 # broken collect2.
24194 hardcode_direct_GCJ=unsupported
24198 aix4* | aix5*)
24199 if test "$host_cpu" = ia64; then
24200 # On IA64, the linker does run time linking by default, so we don't
24201 # have to do anything special.
24202 aix_use_runtimelinking=no
24203 exp_sym_flag='-Bexport'
24204 no_entry_flag=""
24205 else
24206 # If we're using GNU nm, then we don't want the "-C" option.
24207 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24208 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24209 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24210 else
24211 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24213 aix_use_runtimelinking=no
24215 # Test if we are trying to use run time linking or normal
24216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24217 # need to do runtime linking.
24218 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24219 for ld_flag in $LDFLAGS; do
24220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24221 aix_use_runtimelinking=yes
24222 break
24224 done
24226 esac
24228 exp_sym_flag='-bexport'
24229 no_entry_flag='-bnoentry'
24232 # When large executables or shared objects are built, AIX ld can
24233 # have problems creating the table of contents. If linking a library
24234 # or program results in "error TOC overflow" add -mminimal-toc to
24235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24238 archive_cmds_GCJ=''
24239 hardcode_direct_GCJ=yes
24240 hardcode_libdir_separator_GCJ=':'
24241 link_all_deplibs_GCJ=yes
24243 if test "$GCC" = yes; then
24244 case $host_os in aix4.[012]|aix4.[012].*)
24245 # We only want to do this on AIX 4.2 and lower, the check
24246 # below for broken collect2 doesn't work under 4.3+
24247 collect2name=`${CC} -print-prog-name=collect2`
24248 if test -f "$collect2name" && \
24249 strings "$collect2name" | grep resolve_lib_name >/dev/null
24250 then
24251 # We have reworked collect2
24252 hardcode_direct_GCJ=yes
24253 else
24254 # We have old collect2
24255 hardcode_direct_GCJ=unsupported
24256 # It fails to find uninstalled libraries when the uninstalled
24257 # path is not listed in the libpath. Setting hardcode_minus_L
24258 # to unsupported forces relinking
24259 hardcode_minus_L_GCJ=yes
24260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24261 hardcode_libdir_separator_GCJ=
24264 esac
24265 shared_flag='-shared'
24266 if test "$aix_use_runtimelinking" = yes; then
24267 shared_flag="$shared_flag "'${wl}-G'
24269 else
24270 # not using gcc
24271 if test "$host_cpu" = ia64; then
24272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24273 # chokes on -Wl,-G. The following line is correct:
24274 shared_flag='-G'
24275 else
24276 if test "$aix_use_runtimelinking" = yes; then
24277 shared_flag='${wl}-G'
24278 else
24279 shared_flag='${wl}-bM:SRE'
24284 # It seems that -bexpall does not export symbols beginning with
24285 # underscore (_), so it is better to generate a list of symbols to export.
24286 always_export_symbols_GCJ=yes
24287 if test "$aix_use_runtimelinking" = yes; then
24288 # Warning - without using the other runtime loading flags (-brtl),
24289 # -berok will link without error, but may produce a broken library.
24290 allow_undefined_flag_GCJ='-berok'
24291 # Determine the default libpath from the value encoded in an empty executable.
24292 cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h. */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h. */
24300 main ()
24304 return 0;
24306 _ACEOF
24307 rm -f conftest.$ac_objext conftest$ac_exeext
24308 if { (ac_try="$ac_link"
24309 case "(($ac_try" in
24310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311 *) ac_try_echo=$ac_try;;
24312 esac
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314 (eval "$ac_link") 2>conftest.er1
24315 ac_status=$?
24316 grep -v '^ *+' conftest.er1 >conftest.err
24317 rm -f conftest.er1
24318 cat conftest.err >&5
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); } &&
24321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24322 { (case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_try") 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest$ac_exeext'
24332 { (case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_try") 2>&5
24338 ac_status=$?
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24344 # Check for a 64-bit object if we didn't find anything.
24345 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24346 }'`; fi
24347 else
24348 echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24354 rm -f core conftest.err conftest.$ac_objext \
24355 conftest$ac_exeext conftest.$ac_ext
24356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24358 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24359 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24360 else
24361 if test "$host_cpu" = ia64; then
24362 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24363 allow_undefined_flag_GCJ="-z nodefs"
24364 archive_expsym_cmds_GCJ="\$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"
24365 else
24366 # Determine the default libpath from the value encoded in an empty executable.
24367 cat >conftest.$ac_ext <<_ACEOF
24368 /* confdefs.h. */
24369 _ACEOF
24370 cat confdefs.h >>conftest.$ac_ext
24371 cat >>conftest.$ac_ext <<_ACEOF
24372 /* end confdefs.h. */
24375 main ()
24379 return 0;
24381 _ACEOF
24382 rm -f conftest.$ac_objext conftest$ac_exeext
24383 if { (ac_try="$ac_link"
24384 case "(($ac_try" in
24385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386 *) ac_try_echo=$ac_try;;
24387 esac
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389 (eval "$ac_link") 2>conftest.er1
24390 ac_status=$?
24391 grep -v '^ *+' conftest.er1 >conftest.err
24392 rm -f conftest.er1
24393 cat conftest.err >&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } &&
24396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24397 { (case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24400 esac
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_try") 2>&5
24403 ac_status=$?
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); }; } &&
24406 { ac_try='test -s conftest$ac_exeext'
24407 { (case "(($ac_try" in
24408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24409 *) ac_try_echo=$ac_try;;
24410 esac
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412 (eval "$ac_try") 2>&5
24413 ac_status=$?
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; }; then
24417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24419 # Check for a 64-bit object if we didn't find anything.
24420 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24421 }'`; fi
24422 else
24423 echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24429 rm -f core conftest.err conftest.$ac_objext \
24430 conftest$ac_exeext conftest.$ac_ext
24431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24433 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24434 # Warning - without using the other run time loading flags,
24435 # -berok will link without error, but may produce a broken library.
24436 no_undefined_flag_GCJ=' ${wl}-bernotok'
24437 allow_undefined_flag_GCJ=' ${wl}-berok'
24438 # Exported symbols can be pulled into shared objects from archives
24439 whole_archive_flag_spec_GCJ='$convenience'
24440 archive_cmds_need_lc_GCJ=yes
24441 # This is similar to how AIX traditionally builds its shared libraries.
24442 archive_expsym_cmds_GCJ="\$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'
24447 amigaos*)
24448 archive_cmds_GCJ='$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)'
24449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24450 hardcode_minus_L_GCJ=yes
24451 # see comment about different semantics on the GNU ld section
24452 ld_shlibs_GCJ=no
24455 bsdi[45]*)
24456 export_dynamic_flag_spec_GCJ=-rdynamic
24459 cygwin* | mingw* | pw32*)
24460 # When not using gcc, we currently assume that we are using
24461 # Microsoft Visual C++.
24462 # hardcode_libdir_flag_spec is actually meaningless, as there is
24463 # no search path for DLLs.
24464 hardcode_libdir_flag_spec_GCJ=' '
24465 allow_undefined_flag_GCJ=unsupported
24466 # Tell ltmain to make .lib files, not .a files.
24467 libext=lib
24468 # Tell ltmain to make .dll files, not .so files.
24469 shrext_cmds=".dll"
24470 # FIXME: Setting linknames here is a bad hack.
24471 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24472 # The linker will automatically build a .lib file if we build a DLL.
24473 old_archive_From_new_cmds_GCJ='true'
24474 # FIXME: Should let the user specify the lib program.
24475 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24476 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24477 enable_shared_with_static_runtimes_GCJ=yes
24480 darwin* | rhapsody*)
24481 case $host_os in
24482 rhapsody* | darwin1.[012])
24483 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24485 *) # Darwin 1.3 on
24486 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24487 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24488 else
24489 case ${MACOSX_DEPLOYMENT_TARGET} in
24490 10.[012])
24491 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24493 10.*)
24494 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24496 esac
24499 esac
24500 archive_cmds_need_lc_GCJ=no
24501 hardcode_direct_GCJ=no
24502 hardcode_automatic_GCJ=yes
24503 hardcode_shlibpath_var_GCJ=unsupported
24504 whole_archive_flag_spec_GCJ=''
24505 link_all_deplibs_GCJ=yes
24506 if test "$GCC" = yes ; then
24507 output_verbose_link_cmd='echo'
24508 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24509 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24511 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24512 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24513 else
24514 case $cc_basename in
24515 xlc*)
24516 output_verbose_link_cmd='echo'
24517 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24518 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24520 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24521 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24524 ld_shlibs_GCJ=no
24526 esac
24530 dgux*)
24531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24533 hardcode_shlibpath_var_GCJ=no
24536 freebsd1*)
24537 ld_shlibs_GCJ=no
24540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24541 # support. Future versions do this automatically, but an explicit c++rt0.o
24542 # does not break anything, and helps significantly (at the cost of a little
24543 # extra space).
24544 freebsd2.2*)
24545 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24546 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24547 hardcode_direct_GCJ=yes
24548 hardcode_shlibpath_var_GCJ=no
24551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24552 freebsd2*)
24553 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24554 hardcode_direct_GCJ=yes
24555 hardcode_minus_L_GCJ=yes
24556 hardcode_shlibpath_var_GCJ=no
24559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24560 freebsd* | kfreebsd*-gnu | dragonfly*)
24561 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24562 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24563 hardcode_direct_GCJ=yes
24564 hardcode_shlibpath_var_GCJ=no
24567 hpux9*)
24568 if test "$GCC" = yes; then
24569 archive_cmds_GCJ='$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'
24570 else
24571 archive_cmds_GCJ='$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'
24573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24574 hardcode_libdir_separator_GCJ=:
24575 hardcode_direct_GCJ=yes
24577 # hardcode_minus_L: Not really in the search PATH,
24578 # but as the default location of the library.
24579 hardcode_minus_L_GCJ=yes
24580 export_dynamic_flag_spec_GCJ='${wl}-E'
24583 hpux10*)
24584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24585 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24586 else
24587 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24589 if test "$with_gnu_ld" = no; then
24590 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24591 hardcode_libdir_separator_GCJ=:
24593 hardcode_direct_GCJ=yes
24594 export_dynamic_flag_spec_GCJ='${wl}-E'
24596 # hardcode_minus_L: Not really in the search PATH,
24597 # but as the default location of the library.
24598 hardcode_minus_L_GCJ=yes
24602 hpux11*)
24603 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24604 case $host_cpu in
24605 hppa*64*)
24606 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24608 ia64*)
24609 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24612 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24614 esac
24615 else
24616 case $host_cpu in
24617 hppa*64*)
24618 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24620 ia64*)
24621 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24624 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24626 esac
24628 if test "$with_gnu_ld" = no; then
24629 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24630 hardcode_libdir_separator_GCJ=:
24632 case $host_cpu in
24633 hppa*64*|ia64*)
24634 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24635 hardcode_direct_GCJ=no
24636 hardcode_shlibpath_var_GCJ=no
24639 hardcode_direct_GCJ=yes
24640 export_dynamic_flag_spec_GCJ='${wl}-E'
24642 # hardcode_minus_L: Not really in the search PATH,
24643 # but as the default location of the library.
24644 hardcode_minus_L_GCJ=yes
24646 esac
24650 irix5* | irix6* | nonstopux*)
24651 if test "$GCC" = yes; then
24652 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24653 else
24654 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24655 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24658 hardcode_libdir_separator_GCJ=:
24659 link_all_deplibs_GCJ=yes
24662 netbsd*)
24663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24664 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24665 else
24666 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24668 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24669 hardcode_direct_GCJ=yes
24670 hardcode_shlibpath_var_GCJ=no
24673 newsos6)
24674 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24675 hardcode_direct_GCJ=yes
24676 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24677 hardcode_libdir_separator_GCJ=:
24678 hardcode_shlibpath_var_GCJ=no
24681 openbsd*)
24682 hardcode_direct_GCJ=yes
24683 hardcode_shlibpath_var_GCJ=no
24684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24685 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24686 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24687 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24688 export_dynamic_flag_spec_GCJ='${wl}-E'
24689 else
24690 case $host_os in
24691 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24692 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24693 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24696 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24697 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24699 esac
24703 os2*)
24704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24705 hardcode_minus_L_GCJ=yes
24706 allow_undefined_flag_GCJ=unsupported
24707 archive_cmds_GCJ='$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'
24708 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24711 osf3*)
24712 if test "$GCC" = yes; then
24713 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24714 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24715 else
24716 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24717 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24719 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24720 hardcode_libdir_separator_GCJ=:
24723 osf4* | osf5*) # as osf3* with the addition of -msym flag
24724 if test "$GCC" = yes; then
24725 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24726 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
24727 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24728 else
24729 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24730 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24731 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
24732 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
24734 # Both c and cxx compiler support -rpath directly
24735 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24737 hardcode_libdir_separator_GCJ=:
24740 solaris*)
24741 no_undefined_flag_GCJ=' -z text'
24742 if test "$GCC" = yes; then
24743 wlarc='${wl}'
24744 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24745 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24746 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24747 else
24748 wlarc=''
24749 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24750 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24754 hardcode_shlibpath_var_GCJ=no
24755 case $host_os in
24756 solaris2.[0-5] | solaris2.[0-5].*) ;;
24758 # The compiler driver will combine linker options so we
24759 # cannot just pass the convience library names through
24760 # without $wl, iff we do not link with $LD.
24761 # Luckily, gcc supports the same syntax we need for Sun Studio.
24762 # Supported since Solaris 2.6 (maybe 2.5.1?)
24763 case $wlarc in
24765 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24767 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
24768 esac ;;
24769 esac
24770 link_all_deplibs_GCJ=yes
24773 sunos4*)
24774 if test "x$host_vendor" = xsequent; then
24775 # Use $CC to link under sequent, because it throws in some extra .o
24776 # files that make .init and .fini sections work.
24777 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24778 else
24779 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24782 hardcode_direct_GCJ=yes
24783 hardcode_minus_L_GCJ=yes
24784 hardcode_shlibpath_var_GCJ=no
24787 sysv4)
24788 case $host_vendor in
24789 sni)
24790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24791 hardcode_direct_GCJ=yes # is this really true???
24793 siemens)
24794 ## LD is ld it makes a PLAMLIB
24795 ## CC just makes a GrossModule.
24796 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24797 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24798 hardcode_direct_GCJ=no
24800 motorola)
24801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24802 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24804 esac
24805 runpath_var='LD_RUN_PATH'
24806 hardcode_shlibpath_var_GCJ=no
24809 sysv4.3*)
24810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24811 hardcode_shlibpath_var_GCJ=no
24812 export_dynamic_flag_spec_GCJ='-Bexport'
24815 sysv4*MP*)
24816 if test -d /usr/nec; then
24817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818 hardcode_shlibpath_var_GCJ=no
24819 runpath_var=LD_RUN_PATH
24820 hardcode_runpath_var=yes
24821 ld_shlibs_GCJ=yes
24825 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24826 no_undefined_flag_GCJ='${wl}-z,text'
24827 archive_cmds_need_lc_GCJ=no
24828 hardcode_shlibpath_var_GCJ=no
24829 runpath_var='LD_RUN_PATH'
24831 if test "$GCC" = yes; then
24832 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24833 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24834 else
24835 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24836 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24840 sysv5* | sco3.2v5* | sco5v6*)
24841 # Note: We can NOT use -z defs as we might desire, because we do not
24842 # link with -lc, and that would cause any symbols used from libc to
24843 # always be unresolved, which means just about no library would
24844 # ever link correctly. If we're not using GNU ld we use -z text
24845 # though, which does catch some bad symbols but isn't as heavy-handed
24846 # as -z defs.
24847 no_undefined_flag_GCJ='${wl}-z,text'
24848 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24849 archive_cmds_need_lc_GCJ=no
24850 hardcode_shlibpath_var_GCJ=no
24851 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24852 hardcode_libdir_separator_GCJ=':'
24853 link_all_deplibs_GCJ=yes
24854 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24855 runpath_var='LD_RUN_PATH'
24857 if test "$GCC" = yes; then
24858 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24859 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24860 else
24861 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24862 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24866 uts4*)
24867 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24868 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24869 hardcode_shlibpath_var_GCJ=no
24873 ld_shlibs_GCJ=no
24875 esac
24878 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24879 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24880 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24883 # Do we need to explicitly link libc?
24885 case "x$archive_cmds_need_lc_GCJ" in
24886 x|xyes)
24887 # Assume -lc should be added
24888 archive_cmds_need_lc_GCJ=yes
24890 if test "$enable_shared" = yes && test "$GCC" = yes; then
24891 case $archive_cmds_GCJ in
24892 *'~'*)
24893 # FIXME: we may have to deal with multi-command sequences.
24895 '$CC '*)
24896 # Test whether the compiler implicitly links with -lc since on some
24897 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24898 # to ld, don't add -lc before -lgcc.
24899 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24900 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24901 $rm conftest*
24902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24905 (eval $ac_compile) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } 2>conftest.err; then
24909 soname=conftest
24910 lib=conftest
24911 libobjs=conftest.$ac_objext
24912 deplibs=
24913 wl=$lt_prog_compiler_wl_GCJ
24914 pic_flag=$lt_prog_compiler_pic_GCJ
24915 compiler_flags=-v
24916 linker_flags=-v
24917 verstring=
24918 output_objdir=.
24919 libname=conftest
24920 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24921 allow_undefined_flag_GCJ=
24922 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24923 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24924 ac_status=$?
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }
24927 then
24928 archive_cmds_need_lc_GCJ=no
24929 else
24930 archive_cmds_need_lc_GCJ=yes
24932 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24933 else
24934 cat conftest.err 1>&5
24936 $rm conftest*
24937 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24938 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24940 esac
24943 esac
24945 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24946 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24947 library_names_spec=
24948 libname_spec='lib$name'
24949 soname_spec=
24950 shrext_cmds=".so"
24951 postinstall_cmds=
24952 postuninstall_cmds=
24953 finish_cmds=
24954 finish_eval=
24955 shlibpath_var=
24956 shlibpath_overrides_runpath=unknown
24957 version_type=none
24958 dynamic_linker="$host_os ld.so"
24959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24960 if test "$GCC" = yes; then
24961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24962 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24963 # if the path contains ";" then we assume it to be the separator
24964 # otherwise default to the standard path separator (i.e. ":") - it is
24965 # assumed that no part of a normal pathname contains ";" but that should
24966 # okay in the real world where ";" in dirpaths is itself problematic.
24967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24968 else
24969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24971 else
24972 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24974 need_lib_prefix=unknown
24975 hardcode_into_libs=no
24977 # when you set need_version to no, make sure it does not cause -set_version
24978 # flags to be left without arguments
24979 need_version=unknown
24981 case $host_os in
24982 aix3*)
24983 version_type=linux
24984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24985 shlibpath_var=LIBPATH
24987 # AIX 3 has no versioning support, so we append a major version to the name.
24988 soname_spec='${libname}${release}${shared_ext}$major'
24991 aix4* | aix5*)
24992 version_type=linux
24993 need_lib_prefix=no
24994 need_version=no
24995 hardcode_into_libs=yes
24996 if test "$host_cpu" = ia64; then
24997 # AIX 5 supports IA64
24998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24999 shlibpath_var=LD_LIBRARY_PATH
25000 else
25001 # With GCC up to 2.95.x, collect2 would create an import file
25002 # for dependence libraries. The import file would start with
25003 # the line `#! .'. This would cause the generated library to
25004 # depend on `.', always an invalid library. This was fixed in
25005 # development snapshots of GCC prior to 3.0.
25006 case $host_os in
25007 aix4 | aix4.[01] | aix4.[01].*)
25008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25009 echo ' yes '
25010 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25012 else
25013 can_build_shared=no
25016 esac
25017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25018 # soname into executable. Probably we can add versioning support to
25019 # collect2, so additional links can be useful in future.
25020 if test "$aix_use_runtimelinking" = yes; then
25021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25022 # instead of lib<name>.a to let people know that these are not
25023 # typical AIX shared libraries.
25024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25025 else
25026 # We preserve .a as extension for shared libraries through AIX4.2
25027 # and later when we are not doing run time linking.
25028 library_names_spec='${libname}${release}.a $libname.a'
25029 soname_spec='${libname}${release}${shared_ext}$major'
25031 shlibpath_var=LIBPATH
25035 amigaos*)
25036 library_names_spec='$libname.ixlibrary $libname.a'
25037 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25038 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'
25041 beos*)
25042 library_names_spec='${libname}${shared_ext}'
25043 dynamic_linker="$host_os ld.so"
25044 shlibpath_var=LIBRARY_PATH
25047 bsdi[45]*)
25048 version_type=linux
25049 need_version=no
25050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25051 soname_spec='${libname}${release}${shared_ext}$major'
25052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25053 shlibpath_var=LD_LIBRARY_PATH
25054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25056 # the default ld.so.conf also contains /usr/contrib/lib and
25057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25058 # libtool to hard-code these into programs
25061 cygwin* | mingw* | pw32*)
25062 version_type=windows
25063 shrext_cmds=".dll"
25064 need_version=no
25065 need_lib_prefix=no
25067 case $GCC,$host_os in
25068 yes,cygwin* | yes,mingw* | yes,pw32*)
25069 library_names_spec='$libname.dll.a'
25070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25071 postinstall_cmds='base_file=`basename \${file}`~
25072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25073 dldir=$destdir/`dirname \$dlpath`~
25074 test -d \$dldir || mkdir -p \$dldir~
25075 $install_prog $dir/$dlname \$dldir/$dlname~
25076 chmod a+x \$dldir/$dlname'
25077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25078 dlpath=$dir/\$dldll~
25079 $rm \$dlpath'
25080 shlibpath_overrides_runpath=yes
25082 case $host_os in
25083 cygwin*)
25084 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25086 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25088 mingw*)
25089 # MinGW DLLs use traditional 'lib' prefix
25090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25092 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25093 # It is most probably a Windows format PATH printed by
25094 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25095 # path with ; separators, and with drive letters. We can handle the
25096 # drive letters (cygwin fileutils understands them), so leave them,
25097 # especially as we might pass files found there to a mingw objdump,
25098 # which wouldn't understand a cygwinified path. Ahh.
25099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25100 else
25101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25104 pw32*)
25105 # pw32 DLLs use 'pw' prefix rather than 'lib'
25106 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25108 esac
25112 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25114 esac
25115 dynamic_linker='Win32 ld.exe'
25116 # FIXME: first we should search . and the directory the executable is in
25117 shlibpath_var=PATH
25120 darwin* | rhapsody*)
25121 dynamic_linker="$host_os dyld"
25122 version_type=darwin
25123 need_lib_prefix=no
25124 need_version=no
25125 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25126 soname_spec='${libname}${release}${major}$shared_ext'
25127 shlibpath_overrides_runpath=yes
25128 shlibpath_var=DYLD_LIBRARY_PATH
25129 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25130 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25131 if test "$GCC" = yes; then
25132 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25133 else
25134 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25139 dgux*)
25140 version_type=linux
25141 need_lib_prefix=no
25142 need_version=no
25143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25144 soname_spec='${libname}${release}${shared_ext}$major'
25145 shlibpath_var=LD_LIBRARY_PATH
25148 freebsd1*)
25149 dynamic_linker=no
25152 kfreebsd*-gnu)
25153 version_type=linux
25154 need_lib_prefix=no
25155 need_version=no
25156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25157 soname_spec='${libname}${release}${shared_ext}$major'
25158 shlibpath_var=LD_LIBRARY_PATH
25159 shlibpath_overrides_runpath=no
25160 hardcode_into_libs=yes
25161 dynamic_linker='GNU ld.so'
25164 freebsd* | dragonfly*)
25165 # DragonFly does not have aout. When/if they implement a new
25166 # versioning mechanism, adjust this.
25167 if test -x /usr/bin/objformat; then
25168 objformat=`/usr/bin/objformat`
25169 else
25170 case $host_os in
25171 freebsd[123]*) objformat=aout ;;
25172 *) objformat=elf ;;
25173 esac
25175 version_type=freebsd-$objformat
25176 case $version_type in
25177 freebsd-elf*)
25178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25179 need_version=no
25180 need_lib_prefix=no
25182 freebsd-*)
25183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25184 need_version=yes
25186 esac
25187 shlibpath_var=LD_LIBRARY_PATH
25188 case $host_os in
25189 freebsd2*)
25190 shlibpath_overrides_runpath=yes
25192 freebsd3.[01]* | freebsdelf3.[01]*)
25193 shlibpath_overrides_runpath=yes
25194 hardcode_into_libs=yes
25196 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25197 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25198 shlibpath_overrides_runpath=no
25199 hardcode_into_libs=yes
25201 freebsd*) # from 4.6 on
25202 shlibpath_overrides_runpath=yes
25203 hardcode_into_libs=yes
25205 esac
25208 gnu*)
25209 version_type=linux
25210 need_lib_prefix=no
25211 need_version=no
25212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25213 soname_spec='${libname}${release}${shared_ext}$major'
25214 shlibpath_var=LD_LIBRARY_PATH
25215 hardcode_into_libs=yes
25218 hpux9* | hpux10* | hpux11*)
25219 # Give a soname corresponding to the major version so that dld.sl refuses to
25220 # link against other versions.
25221 version_type=sunos
25222 need_lib_prefix=no
25223 need_version=no
25224 case $host_cpu in
25225 ia64*)
25226 shrext_cmds='.so'
25227 hardcode_into_libs=yes
25228 dynamic_linker="$host_os dld.so"
25229 shlibpath_var=LD_LIBRARY_PATH
25230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25232 soname_spec='${libname}${release}${shared_ext}$major'
25233 if test "X$HPUX_IA64_MODE" = X32; then
25234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25235 else
25236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25240 hppa*64*)
25241 shrext_cmds='.sl'
25242 hardcode_into_libs=yes
25243 dynamic_linker="$host_os dld.sl"
25244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25247 soname_spec='${libname}${release}${shared_ext}$major'
25248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25252 shrext_cmds='.sl'
25253 dynamic_linker="$host_os dld.sl"
25254 shlibpath_var=SHLIB_PATH
25255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25257 soname_spec='${libname}${release}${shared_ext}$major'
25259 esac
25260 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25261 postinstall_cmds='chmod 555 $lib'
25264 interix3*)
25265 version_type=linux
25266 need_lib_prefix=no
25267 need_version=no
25268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25269 soname_spec='${libname}${release}${shared_ext}$major'
25270 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25271 shlibpath_var=LD_LIBRARY_PATH
25272 shlibpath_overrides_runpath=no
25273 hardcode_into_libs=yes
25276 irix5* | irix6* | nonstopux*)
25277 case $host_os in
25278 nonstopux*) version_type=nonstopux ;;
25280 if test "$lt_cv_prog_gnu_ld" = yes; then
25281 version_type=linux
25282 else
25283 version_type=irix
25284 fi ;;
25285 esac
25286 need_lib_prefix=no
25287 need_version=no
25288 soname_spec='${libname}${release}${shared_ext}$major'
25289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25290 case $host_os in
25291 irix5* | nonstopux*)
25292 libsuff= shlibsuff=
25295 case $LD in # libtool.m4 will add one of these switches to LD
25296 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25297 libsuff= shlibsuff= libmagic=32-bit;;
25298 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25299 libsuff=32 shlibsuff=N32 libmagic=N32;;
25300 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25301 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25302 *) libsuff= shlibsuff= libmagic=never-match;;
25303 esac
25305 esac
25306 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25307 shlibpath_overrides_runpath=no
25308 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25309 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25310 hardcode_into_libs=yes
25313 # No shared lib support for Linux oldld, aout, or coff.
25314 linux*oldld* | linux*aout* | linux*coff*)
25315 dynamic_linker=no
25318 # This must be Linux ELF.
25319 linux*)
25320 version_type=linux
25321 need_lib_prefix=no
25322 need_version=no
25323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25324 soname_spec='${libname}${release}${shared_ext}$major'
25325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25326 shlibpath_var=LD_LIBRARY_PATH
25327 shlibpath_overrides_runpath=no
25328 # This implies no fast_install, which is unacceptable.
25329 # Some rework will be needed to allow for fast_install
25330 # before this can be enabled.
25331 hardcode_into_libs=yes
25333 # Append ld.so.conf contents to the search path
25334 if test -f /etc/ld.so.conf; then
25335 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25336 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25339 # We used to test for /lib/ld.so.1 and disable shared libraries on
25340 # powerpc, because MkLinux only supported shared libraries with the
25341 # GNU dynamic linker. Since this was broken with cross compilers,
25342 # most powerpc-linux boxes support dynamic linking these days and
25343 # people can always --disable-shared, the test was removed, and we
25344 # assume the GNU/Linux dynamic linker is in use.
25345 dynamic_linker='GNU/Linux ld.so'
25348 knetbsd*-gnu)
25349 version_type=linux
25350 need_lib_prefix=no
25351 need_version=no
25352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25353 soname_spec='${libname}${release}${shared_ext}$major'
25354 shlibpath_var=LD_LIBRARY_PATH
25355 shlibpath_overrides_runpath=no
25356 hardcode_into_libs=yes
25357 dynamic_linker='GNU ld.so'
25360 netbsd*)
25361 version_type=sunos
25362 need_lib_prefix=no
25363 need_version=no
25364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25367 dynamic_linker='NetBSD (a.out) ld.so'
25368 else
25369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25370 soname_spec='${libname}${release}${shared_ext}$major'
25371 dynamic_linker='NetBSD ld.elf_so'
25373 shlibpath_var=LD_LIBRARY_PATH
25374 shlibpath_overrides_runpath=yes
25375 hardcode_into_libs=yes
25378 newsos6)
25379 version_type=linux
25380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25381 shlibpath_var=LD_LIBRARY_PATH
25382 shlibpath_overrides_runpath=yes
25385 nto-qnx*)
25386 version_type=linux
25387 need_lib_prefix=no
25388 need_version=no
25389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25390 soname_spec='${libname}${release}${shared_ext}$major'
25391 shlibpath_var=LD_LIBRARY_PATH
25392 shlibpath_overrides_runpath=yes
25395 openbsd*)
25396 version_type=sunos
25397 sys_lib_dlsearch_path_spec="/usr/lib"
25398 need_lib_prefix=no
25399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25400 case $host_os in
25401 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25402 *) need_version=no ;;
25403 esac
25404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25406 shlibpath_var=LD_LIBRARY_PATH
25407 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25408 case $host_os in
25409 openbsd2.[89] | openbsd2.[89].*)
25410 shlibpath_overrides_runpath=no
25413 shlibpath_overrides_runpath=yes
25415 esac
25416 else
25417 shlibpath_overrides_runpath=yes
25421 os2*)
25422 libname_spec='$name'
25423 shrext_cmds=".dll"
25424 need_lib_prefix=no
25425 library_names_spec='$libname${shared_ext} $libname.a'
25426 dynamic_linker='OS/2 ld.exe'
25427 shlibpath_var=LIBPATH
25430 osf3* | osf4* | osf5*)
25431 version_type=osf
25432 need_lib_prefix=no
25433 need_version=no
25434 soname_spec='${libname}${release}${shared_ext}$major'
25435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25436 shlibpath_var=LD_LIBRARY_PATH
25437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25441 solaris*)
25442 version_type=linux
25443 need_lib_prefix=no
25444 need_version=no
25445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25446 soname_spec='${libname}${release}${shared_ext}$major'
25447 shlibpath_var=LD_LIBRARY_PATH
25448 shlibpath_overrides_runpath=yes
25449 hardcode_into_libs=yes
25450 # ldd complains unless libraries are executable
25451 postinstall_cmds='chmod +x $lib'
25454 sunos4*)
25455 version_type=sunos
25456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25457 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25458 shlibpath_var=LD_LIBRARY_PATH
25459 shlibpath_overrides_runpath=yes
25460 if test "$with_gnu_ld" = yes; then
25461 need_lib_prefix=no
25463 need_version=yes
25466 sysv4 | sysv4.3*)
25467 version_type=linux
25468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25469 soname_spec='${libname}${release}${shared_ext}$major'
25470 shlibpath_var=LD_LIBRARY_PATH
25471 case $host_vendor in
25472 sni)
25473 shlibpath_overrides_runpath=no
25474 need_lib_prefix=no
25475 export_dynamic_flag_spec='${wl}-Blargedynsym'
25476 runpath_var=LD_RUN_PATH
25478 siemens)
25479 need_lib_prefix=no
25481 motorola)
25482 need_lib_prefix=no
25483 need_version=no
25484 shlibpath_overrides_runpath=no
25485 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25487 esac
25490 sysv4*MP*)
25491 if test -d /usr/nec ;then
25492 version_type=linux
25493 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25494 soname_spec='$libname${shared_ext}.$major'
25495 shlibpath_var=LD_LIBRARY_PATH
25499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25500 version_type=freebsd-elf
25501 need_lib_prefix=no
25502 need_version=no
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25504 soname_spec='${libname}${release}${shared_ext}$major'
25505 shlibpath_var=LD_LIBRARY_PATH
25506 hardcode_into_libs=yes
25507 if test "$with_gnu_ld" = yes; then
25508 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25509 shlibpath_overrides_runpath=no
25510 else
25511 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25512 shlibpath_overrides_runpath=yes
25513 case $host_os in
25514 sco3.2v5*)
25515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25517 esac
25519 sys_lib_dlsearch_path_spec='/usr/lib'
25522 uts4*)
25523 version_type=linux
25524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25525 soname_spec='${libname}${release}${shared_ext}$major'
25526 shlibpath_var=LD_LIBRARY_PATH
25530 dynamic_linker=no
25532 esac
25533 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25534 echo "${ECHO_T}$dynamic_linker" >&6; }
25535 test "$dynamic_linker" = no && can_build_shared=no
25537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25538 if test "$GCC" = yes; then
25539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25542 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25543 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25544 hardcode_action_GCJ=
25545 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25546 test -n "$runpath_var_GCJ" || \
25547 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25549 # We can hardcode non-existant directories.
25550 if test "$hardcode_direct_GCJ" != no &&
25551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25552 # have to relink, otherwise we might link with an installed library
25553 # when we should be linking with a yet-to-be-installed one
25554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25555 test "$hardcode_minus_L_GCJ" != no; then
25556 # Linking always hardcodes the temporary library directory.
25557 hardcode_action_GCJ=relink
25558 else
25559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25560 hardcode_action_GCJ=immediate
25562 else
25563 # We cannot hardcode anything, or else we can only hardcode existing
25564 # directories.
25565 hardcode_action_GCJ=unsupported
25567 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25568 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25570 if test "$hardcode_action_GCJ" = relink; then
25571 # Fast installation is not supported
25572 enable_fast_install=no
25573 elif test "$shlibpath_overrides_runpath" = yes ||
25574 test "$enable_shared" = no; then
25575 # Fast installation is not necessary
25576 enable_fast_install=needless
25580 # The else clause should only fire when bootstrapping the
25581 # libtool distribution, otherwise you forgot to ship ltmain.sh
25582 # with your package, and you will get complaints that there are
25583 # no rules to generate ltmain.sh.
25584 if test -f "$ltmain"; then
25585 # See if we are running on zsh, and set the options which allow our commands through
25586 # without removal of \ escapes.
25587 if test -n "${ZSH_VERSION+set}" ; then
25588 setopt NO_GLOB_SUBST
25590 # Now quote all the things that may contain metacharacters while being
25591 # careful not to overquote the AC_SUBSTed values. We take copies of the
25592 # variables and quote the copies for generation of the libtool script.
25593 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25594 SED SHELL STRIP \
25595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25597 deplibs_check_method reload_flag reload_cmds need_locks \
25598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25599 lt_cv_sys_global_symbol_to_c_name_address \
25600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25601 old_postinstall_cmds old_postuninstall_cmds \
25602 compiler_GCJ \
25603 CC_GCJ \
25604 LD_GCJ \
25605 lt_prog_compiler_wl_GCJ \
25606 lt_prog_compiler_pic_GCJ \
25607 lt_prog_compiler_static_GCJ \
25608 lt_prog_compiler_no_builtin_flag_GCJ \
25609 export_dynamic_flag_spec_GCJ \
25610 thread_safe_flag_spec_GCJ \
25611 whole_archive_flag_spec_GCJ \
25612 enable_shared_with_static_runtimes_GCJ \
25613 old_archive_cmds_GCJ \
25614 old_archive_from_new_cmds_GCJ \
25615 predep_objects_GCJ \
25616 postdep_objects_GCJ \
25617 predeps_GCJ \
25618 postdeps_GCJ \
25619 compiler_lib_search_path_GCJ \
25620 archive_cmds_GCJ \
25621 archive_expsym_cmds_GCJ \
25622 postinstall_cmds_GCJ \
25623 postuninstall_cmds_GCJ \
25624 old_archive_from_expsyms_cmds_GCJ \
25625 allow_undefined_flag_GCJ \
25626 no_undefined_flag_GCJ \
25627 export_symbols_cmds_GCJ \
25628 hardcode_libdir_flag_spec_GCJ \
25629 hardcode_libdir_flag_spec_ld_GCJ \
25630 hardcode_libdir_separator_GCJ \
25631 hardcode_automatic_GCJ \
25632 module_cmds_GCJ \
25633 module_expsym_cmds_GCJ \
25634 lt_cv_prog_compiler_c_o_GCJ \
25635 exclude_expsyms_GCJ \
25636 include_expsyms_GCJ; do
25638 case $var in
25639 old_archive_cmds_GCJ | \
25640 old_archive_from_new_cmds_GCJ | \
25641 archive_cmds_GCJ | \
25642 archive_expsym_cmds_GCJ | \
25643 module_cmds_GCJ | \
25644 module_expsym_cmds_GCJ | \
25645 old_archive_from_expsyms_cmds_GCJ | \
25646 export_symbols_cmds_GCJ | \
25647 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25648 postinstall_cmds | postuninstall_cmds | \
25649 old_postinstall_cmds | old_postuninstall_cmds | \
25650 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25651 # Double-quote double-evaled strings.
25652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25657 esac
25658 done
25660 case $lt_echo in
25661 *'\$0 --fallback-echo"')
25662 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25664 esac
25666 cfgfile="$ofile"
25668 cat <<__EOF__ >> "$cfgfile"
25669 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25673 # Shell to use when invoking shell scripts.
25674 SHELL=$lt_SHELL
25676 # Whether or not to build shared libraries.
25677 build_libtool_libs=$enable_shared
25679 # Whether or not to build static libraries.
25680 build_old_libs=$enable_static
25682 # Whether or not to add -lc for building shared libraries.
25683 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25685 # Whether or not to disallow shared libs when runtime libs are static
25686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25688 # Whether or not to optimize for fast installation.
25689 fast_install=$enable_fast_install
25691 # The host system.
25692 host_alias=$host_alias
25693 host=$host
25694 host_os=$host_os
25696 # The build system.
25697 build_alias=$build_alias
25698 build=$build
25699 build_os=$build_os
25701 # An echo program that does not interpret backslashes.
25702 echo=$lt_echo
25704 # The archiver.
25705 AR=$lt_AR
25706 AR_FLAGS=$lt_AR_FLAGS
25708 # A C compiler.
25709 LTCC=$lt_LTCC
25711 # LTCC compiler flags.
25712 LTCFLAGS=$lt_LTCFLAGS
25714 # A language-specific compiler.
25715 CC=$lt_compiler_GCJ
25717 # Is the compiler the GNU C compiler?
25718 with_gcc=$GCC_GCJ
25720 # An ERE matcher.
25721 EGREP=$lt_EGREP
25723 # The linker used to build libraries.
25724 LD=$lt_LD_GCJ
25726 # Whether we need hard or soft links.
25727 LN_S=$lt_LN_S
25729 # A BSD-compatible nm program.
25730 NM=$lt_NM
25732 # A symbol stripping program
25733 STRIP=$lt_STRIP
25735 # Used to examine libraries when file_magic_cmd begins "file"
25736 MAGIC_CMD=$MAGIC_CMD
25738 # Used on cygwin: DLL creation program.
25739 DLLTOOL="$DLLTOOL"
25741 # Used on cygwin: object dumper.
25742 OBJDUMP="$OBJDUMP"
25744 # Used on cygwin: assembler.
25745 AS="$AS"
25747 # The name of the directory that contains temporary libtool files.
25748 objdir=$objdir
25750 # How to create reloadable object files.
25751 reload_flag=$lt_reload_flag
25752 reload_cmds=$lt_reload_cmds
25754 # How to pass a linker flag through the compiler.
25755 wl=$lt_lt_prog_compiler_wl_GCJ
25757 # Object file suffix (normally "o").
25758 objext="$ac_objext"
25760 # Old archive suffix (normally "a").
25761 libext="$libext"
25763 # Shared library suffix (normally ".so").
25764 shrext_cmds='$shrext_cmds'
25766 # Executable file suffix (normally "").
25767 exeext="$exeext"
25769 # Additional compiler flags for building library objects.
25770 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25771 pic_mode=$pic_mode
25773 # What is the maximum length of a command?
25774 max_cmd_len=$lt_cv_sys_max_cmd_len
25776 # Does compiler simultaneously support -c and -o options?
25777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25779 # Must we lock files when doing compilation?
25780 need_locks=$lt_need_locks
25782 # Do we need the lib prefix for modules?
25783 need_lib_prefix=$need_lib_prefix
25785 # Do we need a version for libraries?
25786 need_version=$need_version
25788 # Whether dlopen is supported.
25789 dlopen_support=$enable_dlopen
25791 # Whether dlopen of programs is supported.
25792 dlopen_self=$enable_dlopen_self
25794 # Whether dlopen of statically linked programs is supported.
25795 dlopen_self_static=$enable_dlopen_self_static
25797 # Compiler flag to prevent dynamic linking.
25798 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25800 # Compiler flag to turn off builtin functions.
25801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25803 # Compiler flag to allow reflexive dlopens.
25804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25806 # Compiler flag to generate shared objects directly from archives.
25807 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25809 # Compiler flag to generate thread-safe objects.
25810 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25812 # Library versioning type.
25813 version_type=$version_type
25815 # Format of library name prefix.
25816 libname_spec=$lt_libname_spec
25818 # List of archive names. First name is the real one, the rest are links.
25819 # The last name is the one that the linker finds with -lNAME.
25820 library_names_spec=$lt_library_names_spec
25822 # The coded name of the library, if different from the real name.
25823 soname_spec=$lt_soname_spec
25825 # Commands used to build and install an old-style archive.
25826 RANLIB=$lt_RANLIB
25827 old_archive_cmds=$lt_old_archive_cmds_GCJ
25828 old_postinstall_cmds=$lt_old_postinstall_cmds
25829 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25831 # Create an old-style archive from a shared archive.
25832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25834 # Create a temporary old-style archive to link instead of a shared archive.
25835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25837 # Commands used to build and install a shared archive.
25838 archive_cmds=$lt_archive_cmds_GCJ
25839 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25840 postinstall_cmds=$lt_postinstall_cmds
25841 postuninstall_cmds=$lt_postuninstall_cmds
25843 # Commands used to build a loadable module (assumed same as above if empty)
25844 module_cmds=$lt_module_cmds_GCJ
25845 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25847 # Commands to strip libraries.
25848 old_striplib=$lt_old_striplib
25849 striplib=$lt_striplib
25851 # Dependencies to place before the objects being linked to create a
25852 # shared library.
25853 predep_objects=$lt_predep_objects_GCJ
25855 # Dependencies to place after the objects being linked to create a
25856 # shared library.
25857 postdep_objects=$lt_postdep_objects_GCJ
25859 # Dependencies to place before the objects being linked to create a
25860 # shared library.
25861 predeps=$lt_predeps_GCJ
25863 # Dependencies to place after the objects being linked to create a
25864 # shared library.
25865 postdeps=$lt_postdeps_GCJ
25867 # The library search path used internally by the compiler when linking
25868 # a shared library.
25869 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25871 # Method to check whether dependent libraries are shared objects.
25872 deplibs_check_method=$lt_deplibs_check_method
25874 # Command to use when deplibs_check_method == file_magic.
25875 file_magic_cmd=$lt_file_magic_cmd
25877 # Flag that allows shared libraries with undefined symbols to be built.
25878 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25880 # Flag that forces no undefined symbols.
25881 no_undefined_flag=$lt_no_undefined_flag_GCJ
25883 # Commands used to finish a libtool library installation in a directory.
25884 finish_cmds=$lt_finish_cmds
25886 # Same as above, but a single script fragment to be evaled but not shown.
25887 finish_eval=$lt_finish_eval
25889 # Take the output of nm and produce a listing of raw symbols and C names.
25890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25892 # Transform the output of nm in a proper C declaration
25893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25895 # Transform the output of nm in a C name address pair
25896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25898 # This is the shared library runtime path variable.
25899 runpath_var=$runpath_var
25901 # This is the shared library path variable.
25902 shlibpath_var=$shlibpath_var
25904 # Is shlibpath searched before the hard-coded library search path?
25905 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25907 # How to hardcode a shared library path into an executable.
25908 hardcode_action=$hardcode_action_GCJ
25910 # Whether we should hardcode library paths into libraries.
25911 hardcode_into_libs=$hardcode_into_libs
25913 # Flag to hardcode \$libdir into a binary during linking.
25914 # This must work even if \$libdir does not exist.
25915 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25917 # If ld is used when linking, flag to hardcode \$libdir into
25918 # a binary during linking. This must work even if \$libdir does
25919 # not exist.
25920 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25922 # Whether we need a single -rpath flag with a separated argument.
25923 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25925 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25926 # resulting binary.
25927 hardcode_direct=$hardcode_direct_GCJ
25929 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25930 # resulting binary.
25931 hardcode_minus_L=$hardcode_minus_L_GCJ
25933 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25934 # the resulting binary.
25935 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25937 # Set to yes if building a shared library automatically hardcodes DIR into the library
25938 # and all subsequent libraries and executables linked against it.
25939 hardcode_automatic=$hardcode_automatic_GCJ
25941 # Variables whose values should be saved in libtool wrapper scripts and
25942 # restored at relink time.
25943 variables_saved_for_relink="$variables_saved_for_relink"
25945 # Whether libtool must link a program against all its dependency libraries.
25946 link_all_deplibs=$link_all_deplibs_GCJ
25948 # Compile-time system search path for libraries
25949 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25951 # Run-time system search path for libraries
25952 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25954 # Fix the shell variable \$srcfile for the compiler.
25955 fix_srcfile_path="$fix_srcfile_path_GCJ"
25957 # Set to yes if exported symbols are required.
25958 always_export_symbols=$always_export_symbols_GCJ
25960 # The commands to list exported symbols.
25961 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25963 # The commands to extract the exported symbol list from a shared archive.
25964 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25966 # Symbols that should not be listed in the preloaded symbols.
25967 exclude_expsyms=$lt_exclude_expsyms_GCJ
25969 # Symbols that must always be exported.
25970 include_expsyms=$lt_include_expsyms_GCJ
25972 # ### END LIBTOOL TAG CONFIG: $tagname
25974 __EOF__
25977 else
25978 # If there is no Makefile yet, we rely on a make rule to execute
25979 # `config.status --recheck' to rerun these tests and create the
25980 # libtool script then.
25981 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25982 if test -f "$ltmain_in"; then
25983 test -f Makefile && make "$ltmain"
25988 ac_ext=c
25989 ac_cpp='$CPP $CPPFLAGS'
25990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25994 CC="$lt_save_CC"
25996 else
25997 tagname=""
26002 ac_ext=c
26003 ac_cpp='$CPP $CPPFLAGS'
26004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26009 # Source file extension for RC test sources.
26010 ac_ext=rc
26012 # Object file extension for compiled RC test sources.
26013 objext=o
26014 objext_RC=$objext
26016 # Code to be used in simple compile tests
26017 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26019 # Code to be used in simple link tests
26020 lt_simple_link_test_code="$lt_simple_compile_test_code"
26022 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26024 # If no C compiler was specified, use CC.
26025 LTCC=${LTCC-"$CC"}
26027 # If no C compiler flags were specified, use CFLAGS.
26028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26030 # Allow CC to be a program name with arguments.
26031 compiler=$CC
26034 # save warnings/boilerplate of simple test code
26035 ac_outfile=conftest.$ac_objext
26036 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26038 _lt_compiler_boilerplate=`cat conftest.err`
26039 $rm conftest*
26041 ac_outfile=conftest.$ac_objext
26042 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26044 _lt_linker_boilerplate=`cat conftest.err`
26045 $rm conftest*
26048 # Allow CC to be a program name with arguments.
26049 lt_save_CC="$CC"
26050 CC=${RC-"windres"}
26051 compiler=$CC
26052 compiler_RC=$CC
26053 for cc_temp in $compiler""; do
26054 case $cc_temp in
26055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26057 \-*) ;;
26058 *) break;;
26059 esac
26060 done
26061 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26063 lt_cv_prog_compiler_c_o_RC=yes
26065 # The else clause should only fire when bootstrapping the
26066 # libtool distribution, otherwise you forgot to ship ltmain.sh
26067 # with your package, and you will get complaints that there are
26068 # no rules to generate ltmain.sh.
26069 if test -f "$ltmain"; then
26070 # See if we are running on zsh, and set the options which allow our commands through
26071 # without removal of \ escapes.
26072 if test -n "${ZSH_VERSION+set}" ; then
26073 setopt NO_GLOB_SUBST
26075 # Now quote all the things that may contain metacharacters while being
26076 # careful not to overquote the AC_SUBSTed values. We take copies of the
26077 # variables and quote the copies for generation of the libtool script.
26078 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26079 SED SHELL STRIP \
26080 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26081 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26082 deplibs_check_method reload_flag reload_cmds need_locks \
26083 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26084 lt_cv_sys_global_symbol_to_c_name_address \
26085 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26086 old_postinstall_cmds old_postuninstall_cmds \
26087 compiler_RC \
26088 CC_RC \
26089 LD_RC \
26090 lt_prog_compiler_wl_RC \
26091 lt_prog_compiler_pic_RC \
26092 lt_prog_compiler_static_RC \
26093 lt_prog_compiler_no_builtin_flag_RC \
26094 export_dynamic_flag_spec_RC \
26095 thread_safe_flag_spec_RC \
26096 whole_archive_flag_spec_RC \
26097 enable_shared_with_static_runtimes_RC \
26098 old_archive_cmds_RC \
26099 old_archive_from_new_cmds_RC \
26100 predep_objects_RC \
26101 postdep_objects_RC \
26102 predeps_RC \
26103 postdeps_RC \
26104 compiler_lib_search_path_RC \
26105 archive_cmds_RC \
26106 archive_expsym_cmds_RC \
26107 postinstall_cmds_RC \
26108 postuninstall_cmds_RC \
26109 old_archive_from_expsyms_cmds_RC \
26110 allow_undefined_flag_RC \
26111 no_undefined_flag_RC \
26112 export_symbols_cmds_RC \
26113 hardcode_libdir_flag_spec_RC \
26114 hardcode_libdir_flag_spec_ld_RC \
26115 hardcode_libdir_separator_RC \
26116 hardcode_automatic_RC \
26117 module_cmds_RC \
26118 module_expsym_cmds_RC \
26119 lt_cv_prog_compiler_c_o_RC \
26120 exclude_expsyms_RC \
26121 include_expsyms_RC; do
26123 case $var in
26124 old_archive_cmds_RC | \
26125 old_archive_from_new_cmds_RC | \
26126 archive_cmds_RC | \
26127 archive_expsym_cmds_RC | \
26128 module_cmds_RC | \
26129 module_expsym_cmds_RC | \
26130 old_archive_from_expsyms_cmds_RC | \
26131 export_symbols_cmds_RC | \
26132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26133 postinstall_cmds | postuninstall_cmds | \
26134 old_postinstall_cmds | old_postuninstall_cmds | \
26135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26136 # Double-quote double-evaled strings.
26137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26142 esac
26143 done
26145 case $lt_echo in
26146 *'\$0 --fallback-echo"')
26147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26149 esac
26151 cfgfile="$ofile"
26153 cat <<__EOF__ >> "$cfgfile"
26154 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26158 # Shell to use when invoking shell scripts.
26159 SHELL=$lt_SHELL
26161 # Whether or not to build shared libraries.
26162 build_libtool_libs=$enable_shared
26164 # Whether or not to build static libraries.
26165 build_old_libs=$enable_static
26167 # Whether or not to add -lc for building shared libraries.
26168 build_libtool_need_lc=$archive_cmds_need_lc_RC
26170 # Whether or not to disallow shared libs when runtime libs are static
26171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26173 # Whether or not to optimize for fast installation.
26174 fast_install=$enable_fast_install
26176 # The host system.
26177 host_alias=$host_alias
26178 host=$host
26179 host_os=$host_os
26181 # The build system.
26182 build_alias=$build_alias
26183 build=$build
26184 build_os=$build_os
26186 # An echo program that does not interpret backslashes.
26187 echo=$lt_echo
26189 # The archiver.
26190 AR=$lt_AR
26191 AR_FLAGS=$lt_AR_FLAGS
26193 # A C compiler.
26194 LTCC=$lt_LTCC
26196 # LTCC compiler flags.
26197 LTCFLAGS=$lt_LTCFLAGS
26199 # A language-specific compiler.
26200 CC=$lt_compiler_RC
26202 # Is the compiler the GNU C compiler?
26203 with_gcc=$GCC_RC
26205 # An ERE matcher.
26206 EGREP=$lt_EGREP
26208 # The linker used to build libraries.
26209 LD=$lt_LD_RC
26211 # Whether we need hard or soft links.
26212 LN_S=$lt_LN_S
26214 # A BSD-compatible nm program.
26215 NM=$lt_NM
26217 # A symbol stripping program
26218 STRIP=$lt_STRIP
26220 # Used to examine libraries when file_magic_cmd begins "file"
26221 MAGIC_CMD=$MAGIC_CMD
26223 # Used on cygwin: DLL creation program.
26224 DLLTOOL="$DLLTOOL"
26226 # Used on cygwin: object dumper.
26227 OBJDUMP="$OBJDUMP"
26229 # Used on cygwin: assembler.
26230 AS="$AS"
26232 # The name of the directory that contains temporary libtool files.
26233 objdir=$objdir
26235 # How to create reloadable object files.
26236 reload_flag=$lt_reload_flag
26237 reload_cmds=$lt_reload_cmds
26239 # How to pass a linker flag through the compiler.
26240 wl=$lt_lt_prog_compiler_wl_RC
26242 # Object file suffix (normally "o").
26243 objext="$ac_objext"
26245 # Old archive suffix (normally "a").
26246 libext="$libext"
26248 # Shared library suffix (normally ".so").
26249 shrext_cmds='$shrext_cmds'
26251 # Executable file suffix (normally "").
26252 exeext="$exeext"
26254 # Additional compiler flags for building library objects.
26255 pic_flag=$lt_lt_prog_compiler_pic_RC
26256 pic_mode=$pic_mode
26258 # What is the maximum length of a command?
26259 max_cmd_len=$lt_cv_sys_max_cmd_len
26261 # Does compiler simultaneously support -c and -o options?
26262 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26264 # Must we lock files when doing compilation?
26265 need_locks=$lt_need_locks
26267 # Do we need the lib prefix for modules?
26268 need_lib_prefix=$need_lib_prefix
26270 # Do we need a version for libraries?
26271 need_version=$need_version
26273 # Whether dlopen is supported.
26274 dlopen_support=$enable_dlopen
26276 # Whether dlopen of programs is supported.
26277 dlopen_self=$enable_dlopen_self
26279 # Whether dlopen of statically linked programs is supported.
26280 dlopen_self_static=$enable_dlopen_self_static
26282 # Compiler flag to prevent dynamic linking.
26283 link_static_flag=$lt_lt_prog_compiler_static_RC
26285 # Compiler flag to turn off builtin functions.
26286 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26288 # Compiler flag to allow reflexive dlopens.
26289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26291 # Compiler flag to generate shared objects directly from archives.
26292 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26294 # Compiler flag to generate thread-safe objects.
26295 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26297 # Library versioning type.
26298 version_type=$version_type
26300 # Format of library name prefix.
26301 libname_spec=$lt_libname_spec
26303 # List of archive names. First name is the real one, the rest are links.
26304 # The last name is the one that the linker finds with -lNAME.
26305 library_names_spec=$lt_library_names_spec
26307 # The coded name of the library, if different from the real name.
26308 soname_spec=$lt_soname_spec
26310 # Commands used to build and install an old-style archive.
26311 RANLIB=$lt_RANLIB
26312 old_archive_cmds=$lt_old_archive_cmds_RC
26313 old_postinstall_cmds=$lt_old_postinstall_cmds
26314 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26316 # Create an old-style archive from a shared archive.
26317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26319 # Create a temporary old-style archive to link instead of a shared archive.
26320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26322 # Commands used to build and install a shared archive.
26323 archive_cmds=$lt_archive_cmds_RC
26324 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26325 postinstall_cmds=$lt_postinstall_cmds
26326 postuninstall_cmds=$lt_postuninstall_cmds
26328 # Commands used to build a loadable module (assumed same as above if empty)
26329 module_cmds=$lt_module_cmds_RC
26330 module_expsym_cmds=$lt_module_expsym_cmds_RC
26332 # Commands to strip libraries.
26333 old_striplib=$lt_old_striplib
26334 striplib=$lt_striplib
26336 # Dependencies to place before the objects being linked to create a
26337 # shared library.
26338 predep_objects=$lt_predep_objects_RC
26340 # Dependencies to place after the objects being linked to create a
26341 # shared library.
26342 postdep_objects=$lt_postdep_objects_RC
26344 # Dependencies to place before the objects being linked to create a
26345 # shared library.
26346 predeps=$lt_predeps_RC
26348 # Dependencies to place after the objects being linked to create a
26349 # shared library.
26350 postdeps=$lt_postdeps_RC
26352 # The library search path used internally by the compiler when linking
26353 # a shared library.
26354 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26356 # Method to check whether dependent libraries are shared objects.
26357 deplibs_check_method=$lt_deplibs_check_method
26359 # Command to use when deplibs_check_method == file_magic.
26360 file_magic_cmd=$lt_file_magic_cmd
26362 # Flag that allows shared libraries with undefined symbols to be built.
26363 allow_undefined_flag=$lt_allow_undefined_flag_RC
26365 # Flag that forces no undefined symbols.
26366 no_undefined_flag=$lt_no_undefined_flag_RC
26368 # Commands used to finish a libtool library installation in a directory.
26369 finish_cmds=$lt_finish_cmds
26371 # Same as above, but a single script fragment to be evaled but not shown.
26372 finish_eval=$lt_finish_eval
26374 # Take the output of nm and produce a listing of raw symbols and C names.
26375 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26377 # Transform the output of nm in a proper C declaration
26378 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26380 # Transform the output of nm in a C name address pair
26381 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26383 # This is the shared library runtime path variable.
26384 runpath_var=$runpath_var
26386 # This is the shared library path variable.
26387 shlibpath_var=$shlibpath_var
26389 # Is shlibpath searched before the hard-coded library search path?
26390 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26392 # How to hardcode a shared library path into an executable.
26393 hardcode_action=$hardcode_action_RC
26395 # Whether we should hardcode library paths into libraries.
26396 hardcode_into_libs=$hardcode_into_libs
26398 # Flag to hardcode \$libdir into a binary during linking.
26399 # This must work even if \$libdir does not exist.
26400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26402 # If ld is used when linking, flag to hardcode \$libdir into
26403 # a binary during linking. This must work even if \$libdir does
26404 # not exist.
26405 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26407 # Whether we need a single -rpath flag with a separated argument.
26408 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26410 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26411 # resulting binary.
26412 hardcode_direct=$hardcode_direct_RC
26414 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26415 # resulting binary.
26416 hardcode_minus_L=$hardcode_minus_L_RC
26418 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26419 # the resulting binary.
26420 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26422 # Set to yes if building a shared library automatically hardcodes DIR into the library
26423 # and all subsequent libraries and executables linked against it.
26424 hardcode_automatic=$hardcode_automatic_RC
26426 # Variables whose values should be saved in libtool wrapper scripts and
26427 # restored at relink time.
26428 variables_saved_for_relink="$variables_saved_for_relink"
26430 # Whether libtool must link a program against all its dependency libraries.
26431 link_all_deplibs=$link_all_deplibs_RC
26433 # Compile-time system search path for libraries
26434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26436 # Run-time system search path for libraries
26437 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26439 # Fix the shell variable \$srcfile for the compiler.
26440 fix_srcfile_path="$fix_srcfile_path_RC"
26442 # Set to yes if exported symbols are required.
26443 always_export_symbols=$always_export_symbols_RC
26445 # The commands to list exported symbols.
26446 export_symbols_cmds=$lt_export_symbols_cmds_RC
26448 # The commands to extract the exported symbol list from a shared archive.
26449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26451 # Symbols that should not be listed in the preloaded symbols.
26452 exclude_expsyms=$lt_exclude_expsyms_RC
26454 # Symbols that must always be exported.
26455 include_expsyms=$lt_include_expsyms_RC
26457 # ### END LIBTOOL TAG CONFIG: $tagname
26459 __EOF__
26462 else
26463 # If there is no Makefile yet, we rely on a make rule to execute
26464 # `config.status --recheck' to rerun these tests and create the
26465 # libtool script then.
26466 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26467 if test -f "$ltmain_in"; then
26468 test -f Makefile && make "$ltmain"
26473 ac_ext=c
26474 ac_cpp='$CPP $CPPFLAGS'
26475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26479 CC="$lt_save_CC"
26484 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26485 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26486 { (exit 1); exit 1; }; }
26488 esac
26490 # Append the new tag name to the list of available tags.
26491 if test -n "$tagname" ; then
26492 available_tags="$available_tags $tagname"
26495 done
26496 IFS="$lt_save_ifs"
26498 # Now substitute the updated list of available tags.
26499 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26500 mv "${ofile}T" "$ofile"
26501 chmod +x "$ofile"
26502 else
26503 rm -f "${ofile}T"
26504 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26505 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26506 { (exit 1); exit 1; }; }
26512 # This can be used to rebuild libtool when needed
26513 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26515 # Always use our own libtool.
26516 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26518 # Prevent multiple expansion
26540 if test "$lt_cv_dlopen_self" = "yes" ; then
26542 cat >>confdefs.h <<\_ACEOF
26543 #define CAN_DLOPEN_SELF 1
26544 _ACEOF
26548 etags_version=`$ETAGS --version 2>&1`
26549 case "$etags_version" in
26550 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26551 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26552 *) ETAGSFLAGS="" ;;
26553 esac
26554 ETAGSFLAGS=$ETAGSFLAGS
26557 if test "$WITH_LLVMGCCDIR" = "default" ; then
26558 LLVMGCC="llvm-gcc${EXEEXT}"
26559 LLVMGXX="llvm-g++${EXEEXT}"
26560 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26561 set dummy $LLVMGCC; ac_word=$2
26562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26564 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26566 else
26567 case $LLVMGCC in
26568 [\\/]* | ?:[\\/]*)
26569 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26573 for as_dir in $PATH
26575 IFS=$as_save_IFS
26576 test -z "$as_dir" && as_dir=.
26577 for ac_exec_ext in '' $ac_executable_extensions; do
26578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26579 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26581 break 2
26583 done
26584 done
26585 IFS=$as_save_IFS
26588 esac
26590 LLVMGCC=$ac_cv_path_LLVMGCC
26591 if test -n "$LLVMGCC"; then
26592 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26593 echo "${ECHO_T}$LLVMGCC" >&6; }
26594 else
26595 { echo "$as_me:$LINENO: result: no" >&5
26596 echo "${ECHO_T}no" >&6; }
26600 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26601 set dummy $LLVMGXX; ac_word=$2
26602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26604 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26606 else
26607 case $LLVMGXX in
26608 [\\/]* | ?:[\\/]*)
26609 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26613 for as_dir in $PATH
26615 IFS=$as_save_IFS
26616 test -z "$as_dir" && as_dir=.
26617 for ac_exec_ext in '' $ac_executable_extensions; do
26618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26619 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26621 break 2
26623 done
26624 done
26625 IFS=$as_save_IFS
26628 esac
26630 LLVMGXX=$ac_cv_path_LLVMGXX
26631 if test -n "$LLVMGXX"; then
26632 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26633 echo "${ECHO_T}$LLVMGXX" >&6; }
26634 else
26635 { echo "$as_me:$LINENO: result: no" >&5
26636 echo "${ECHO_T}no" >&6; }
26640 else
26641 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26642 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26643 LLVMGCC=$LLVMGCC
26645 LLVMGXX=$LLVMGXX
26649 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26650 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26652 ICC=no
26653 IXX=no
26654 case $CC in
26655 icc*|icpc*)
26656 ICC=yes
26657 IXX=yes
26661 esac
26663 if test "$GCC" != "yes" && test "$ICC" != "yes"
26664 then
26665 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26666 echo "$as_me: error: gcc|icc required but not found" >&2;}
26667 { (exit 1); exit 1; }; }
26670 if test "$GXX" != "yes" && test "$IXX" != "yes"
26671 then
26672 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26673 echo "$as_me: error: g++|icc required but not found" >&2;}
26674 { (exit 1); exit 1; }; }
26677 if test "$GCC" = "yes"
26678 then
26679 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26680 if test "$gccmajor" -lt "3"
26681 then
26682 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26683 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26684 { (exit 1); exit 1; }; }
26688 if test -z "$llvm_cv_gnu_make_command"
26689 then
26690 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26691 echo "$as_me: error: GNU Make required but not found" >&2;}
26692 { (exit 1); exit 1; }; }
26695 { echo "$as_me:$LINENO: result: ok" >&5
26696 echo "${ECHO_T}ok" >&6; }
26700 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26701 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26702 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26704 else
26705 ac_check_lib_save_LIBS=$LIBS
26706 LIBS="-lelf $LIBS"
26707 cat >conftest.$ac_ext <<_ACEOF
26708 /* confdefs.h. */
26709 _ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h. */
26714 /* Override any GCC internal prototype to avoid an error.
26715 Use char because int might match the return type of a GCC
26716 builtin and then its argument prototype would still apply. */
26717 #ifdef __cplusplus
26718 extern "C"
26719 #endif
26720 char elf_begin ();
26722 main ()
26724 return elf_begin ();
26726 return 0;
26728 _ACEOF
26729 rm -f conftest.$ac_objext conftest$ac_exeext
26730 if { (ac_try="$ac_link"
26731 case "(($ac_try" in
26732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733 *) ac_try_echo=$ac_try;;
26734 esac
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736 (eval "$ac_link") 2>conftest.er1
26737 ac_status=$?
26738 grep -v '^ *+' conftest.er1 >conftest.err
26739 rm -f conftest.er1
26740 cat conftest.err >&5
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); } &&
26743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26744 { (case "(($ac_try" in
26745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746 *) ac_try_echo=$ac_try;;
26747 esac
26748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749 (eval "$ac_try") 2>&5
26750 ac_status=$?
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; } &&
26753 { ac_try='test -s conftest$ac_exeext'
26754 { (case "(($ac_try" in
26755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756 *) ac_try_echo=$ac_try;;
26757 esac
26758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759 (eval "$ac_try") 2>&5
26760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; }; then
26763 ac_cv_lib_elf_elf_begin=yes
26764 else
26765 echo "$as_me: failed program was:" >&5
26766 sed 's/^/| /' conftest.$ac_ext >&5
26768 ac_cv_lib_elf_elf_begin=no
26771 rm -f core conftest.err conftest.$ac_objext \
26772 conftest$ac_exeext conftest.$ac_ext
26773 LIBS=$ac_check_lib_save_LIBS
26775 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26776 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26777 if test $ac_cv_lib_elf_elf_begin = yes; then
26778 cat >>confdefs.h <<_ACEOF
26779 #define HAVE_LIBELF 1
26780 _ACEOF
26782 LIBS="-lelf $LIBS"
26787 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26788 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26789 if test "${ac_cv_lib_m_sin+set}" = set; then
26790 echo $ECHO_N "(cached) $ECHO_C" >&6
26791 else
26792 ac_check_lib_save_LIBS=$LIBS
26793 LIBS="-lm $LIBS"
26794 cat >conftest.$ac_ext <<_ACEOF
26795 /* confdefs.h. */
26796 _ACEOF
26797 cat confdefs.h >>conftest.$ac_ext
26798 cat >>conftest.$ac_ext <<_ACEOF
26799 /* end confdefs.h. */
26801 /* Override any GCC internal prototype to avoid an error.
26802 Use char because int might match the return type of a GCC
26803 builtin and then its argument prototype would still apply. */
26804 #ifdef __cplusplus
26805 extern "C"
26806 #endif
26807 char sin ();
26809 main ()
26811 return sin ();
26813 return 0;
26815 _ACEOF
26816 rm -f conftest.$ac_objext conftest$ac_exeext
26817 if { (ac_try="$ac_link"
26818 case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_link") 2>conftest.er1
26824 ac_status=$?
26825 grep -v '^ *+' conftest.er1 >conftest.err
26826 rm -f conftest.er1
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } &&
26830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26831 { (case "(($ac_try" in
26832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833 *) ac_try_echo=$ac_try;;
26834 esac
26835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26836 (eval "$ac_try") 2>&5
26837 ac_status=$?
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; } &&
26840 { ac_try='test -s conftest$ac_exeext'
26841 { (case "(($ac_try" in
26842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26843 *) ac_try_echo=$ac_try;;
26844 esac
26845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26846 (eval "$ac_try") 2>&5
26847 ac_status=$?
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); }; }; then
26850 ac_cv_lib_m_sin=yes
26851 else
26852 echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26855 ac_cv_lib_m_sin=no
26858 rm -f core conftest.err conftest.$ac_objext \
26859 conftest$ac_exeext conftest.$ac_ext
26860 LIBS=$ac_check_lib_save_LIBS
26862 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26863 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26864 if test $ac_cv_lib_m_sin = yes; then
26865 cat >>confdefs.h <<_ACEOF
26866 #define HAVE_LIBM 1
26867 _ACEOF
26869 LIBS="-lm $LIBS"
26873 if test "$llvm_cv_os_type" == "MingW" ; then
26875 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26876 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26877 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26879 else
26880 ac_check_lib_save_LIBS=$LIBS
26881 LIBS="-limagehlp $LIBS"
26882 cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h. */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26891 main ()
26893 return main ();
26895 return 0;
26897 _ACEOF
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902 *) ac_try_echo=$ac_try;;
26903 esac
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905 (eval "$ac_link") 2>conftest.er1
26906 ac_status=$?
26907 grep -v '^ *+' conftest.er1 >conftest.err
26908 rm -f conftest.er1
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
26912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26913 { (case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26916 esac
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918 (eval "$ac_try") 2>&5
26919 ac_status=$?
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; } &&
26922 { ac_try='test -s conftest$ac_exeext'
26923 { (case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_try") 2>&5
26929 ac_status=$?
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; }; then
26932 ac_cv_lib_imagehlp_main=yes
26933 else
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26937 ac_cv_lib_imagehlp_main=no
26940 rm -f core conftest.err conftest.$ac_objext \
26941 conftest$ac_exeext conftest.$ac_ext
26942 LIBS=$ac_check_lib_save_LIBS
26944 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26945 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26946 if test $ac_cv_lib_imagehlp_main = yes; then
26947 cat >>confdefs.h <<_ACEOF
26948 #define HAVE_LIBIMAGEHLP 1
26949 _ACEOF
26951 LIBS="-limagehlp $LIBS"
26956 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26957 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26958 if test "${ac_cv_lib_psapi_main+set}" = set; then
26959 echo $ECHO_N "(cached) $ECHO_C" >&6
26960 else
26961 ac_check_lib_save_LIBS=$LIBS
26962 LIBS="-lpsapi $LIBS"
26963 cat >conftest.$ac_ext <<_ACEOF
26964 /* confdefs.h. */
26965 _ACEOF
26966 cat confdefs.h >>conftest.$ac_ext
26967 cat >>conftest.$ac_ext <<_ACEOF
26968 /* end confdefs.h. */
26972 main ()
26974 return main ();
26976 return 0;
26978 _ACEOF
26979 rm -f conftest.$ac_objext conftest$ac_exeext
26980 if { (ac_try="$ac_link"
26981 case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26984 esac
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986 (eval "$ac_link") 2>conftest.er1
26987 ac_status=$?
26988 grep -v '^ *+' conftest.er1 >conftest.err
26989 rm -f conftest.er1
26990 cat conftest.err >&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); } &&
26993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26994 { (case "(($ac_try" in
26995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996 *) ac_try_echo=$ac_try;;
26997 esac
26998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26999 (eval "$ac_try") 2>&5
27000 ac_status=$?
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; } &&
27003 { ac_try='test -s conftest$ac_exeext'
27004 { (case "(($ac_try" in
27005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27006 *) ac_try_echo=$ac_try;;
27007 esac
27008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27009 (eval "$ac_try") 2>&5
27010 ac_status=$?
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); }; }; then
27013 ac_cv_lib_psapi_main=yes
27014 else
27015 echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27018 ac_cv_lib_psapi_main=no
27021 rm -f core conftest.err conftest.$ac_objext \
27022 conftest$ac_exeext conftest.$ac_ext
27023 LIBS=$ac_check_lib_save_LIBS
27025 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27026 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27027 if test $ac_cv_lib_psapi_main = yes; then
27028 cat >>confdefs.h <<_ACEOF
27029 #define HAVE_LIBPSAPI 1
27030 _ACEOF
27032 LIBS="-lpsapi $LIBS"
27038 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27039 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27040 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27041 echo $ECHO_N "(cached) $ECHO_C" >&6
27042 else
27043 ac_func_search_save_LIBS=$LIBS
27044 cat >conftest.$ac_ext <<_ACEOF
27045 /* confdefs.h. */
27046 _ACEOF
27047 cat confdefs.h >>conftest.$ac_ext
27048 cat >>conftest.$ac_ext <<_ACEOF
27049 /* end confdefs.h. */
27051 /* Override any GCC internal prototype to avoid an error.
27052 Use char because int might match the return type of a GCC
27053 builtin and then its argument prototype would still apply. */
27054 #ifdef __cplusplus
27055 extern "C"
27056 #endif
27057 char lt_dlopen ();
27059 main ()
27061 return lt_dlopen ();
27063 return 0;
27065 _ACEOF
27066 for ac_lib in '' ltdl; do
27067 if test -z "$ac_lib"; then
27068 ac_res="none required"
27069 else
27070 ac_res=-l$ac_lib
27071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27073 rm -f conftest.$ac_objext conftest$ac_exeext
27074 if { (ac_try="$ac_link"
27075 case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27078 esac
27079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080 (eval "$ac_link") 2>conftest.er1
27081 ac_status=$?
27082 grep -v '^ *+' conftest.er1 >conftest.err
27083 rm -f conftest.er1
27084 cat conftest.err >&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); } &&
27087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27088 { (case "(($ac_try" in
27089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090 *) ac_try_echo=$ac_try;;
27091 esac
27092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093 (eval "$ac_try") 2>&5
27094 ac_status=$?
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; } &&
27097 { ac_try='test -s conftest$ac_exeext'
27098 { (case "(($ac_try" in
27099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27100 *) ac_try_echo=$ac_try;;
27101 esac
27102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27103 (eval "$ac_try") 2>&5
27104 ac_status=$?
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; }; then
27107 ac_cv_search_lt_dlopen=$ac_res
27108 else
27109 echo "$as_me: failed program was:" >&5
27110 sed 's/^/| /' conftest.$ac_ext >&5
27115 rm -f core conftest.err conftest.$ac_objext \
27116 conftest$ac_exeext
27117 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27118 break
27120 done
27121 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27123 else
27124 ac_cv_search_lt_dlopen=no
27126 rm conftest.$ac_ext
27127 LIBS=$ac_func_search_save_LIBS
27129 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27130 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27131 ac_res=$ac_cv_search_lt_dlopen
27132 if test "$ac_res" != no; then
27133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27135 cat >>confdefs.h <<\_ACEOF
27136 #define HAVE_LT_DLOPEN 1
27137 _ACEOF
27139 else
27140 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27141 not be available" >&5
27142 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27143 not be available" >&2;}
27147 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27148 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27149 if test "${ac_cv_search_dlopen+set}" = set; then
27150 echo $ECHO_N "(cached) $ECHO_C" >&6
27151 else
27152 ac_func_search_save_LIBS=$LIBS
27153 cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h. */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27160 /* Override any GCC internal prototype to avoid an error.
27161 Use char because int might match the return type of a GCC
27162 builtin and then its argument prototype would still apply. */
27163 #ifdef __cplusplus
27164 extern "C"
27165 #endif
27166 char dlopen ();
27168 main ()
27170 return dlopen ();
27172 return 0;
27174 _ACEOF
27175 for ac_lib in '' dl; do
27176 if test -z "$ac_lib"; then
27177 ac_res="none required"
27178 else
27179 ac_res=-l$ac_lib
27180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27182 rm -f conftest.$ac_objext conftest$ac_exeext
27183 if { (ac_try="$ac_link"
27184 case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27187 esac
27188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189 (eval "$ac_link") 2>conftest.er1
27190 ac_status=$?
27191 grep -v '^ *+' conftest.er1 >conftest.err
27192 rm -f conftest.er1
27193 cat conftest.err >&5
27194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } &&
27196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27197 { (case "(($ac_try" in
27198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199 *) ac_try_echo=$ac_try;;
27200 esac
27201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202 (eval "$ac_try") 2>&5
27203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; } &&
27206 { ac_try='test -s conftest$ac_exeext'
27207 { (case "(($ac_try" in
27208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209 *) ac_try_echo=$ac_try;;
27210 esac
27211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212 (eval "$ac_try") 2>&5
27213 ac_status=$?
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; }; then
27216 ac_cv_search_dlopen=$ac_res
27217 else
27218 echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27224 rm -f core conftest.err conftest.$ac_objext \
27225 conftest$ac_exeext
27226 if test "${ac_cv_search_dlopen+set}" = set; then
27227 break
27229 done
27230 if test "${ac_cv_search_dlopen+set}" = set; then
27232 else
27233 ac_cv_search_dlopen=no
27235 rm conftest.$ac_ext
27236 LIBS=$ac_func_search_save_LIBS
27238 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27239 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27240 ac_res=$ac_cv_search_dlopen
27241 if test "$ac_res" != no; then
27242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_DLOPEN 1
27246 _ACEOF
27248 else
27249 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27250 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27254 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27255 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27256 if test "${ac_cv_search_mallinfo+set}" = set; then
27257 echo $ECHO_N "(cached) $ECHO_C" >&6
27258 else
27259 ac_func_search_save_LIBS=$LIBS
27260 cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h. */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h. */
27267 /* Override any GCC internal prototype to avoid an error.
27268 Use char because int might match the return type of a GCC
27269 builtin and then its argument prototype would still apply. */
27270 #ifdef __cplusplus
27271 extern "C"
27272 #endif
27273 char mallinfo ();
27275 main ()
27277 return mallinfo ();
27279 return 0;
27281 _ACEOF
27282 for ac_lib in '' malloc; do
27283 if test -z "$ac_lib"; then
27284 ac_res="none required"
27285 else
27286 ac_res=-l$ac_lib
27287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27289 rm -f conftest.$ac_objext conftest$ac_exeext
27290 if { (ac_try="$ac_link"
27291 case "(($ac_try" in
27292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27293 *) ac_try_echo=$ac_try;;
27294 esac
27295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296 (eval "$ac_link") 2>conftest.er1
27297 ac_status=$?
27298 grep -v '^ *+' conftest.er1 >conftest.err
27299 rm -f conftest.er1
27300 cat conftest.err >&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } &&
27303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27304 { (case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27307 esac
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_try") 2>&5
27310 ac_status=$?
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; } &&
27313 { ac_try='test -s conftest$ac_exeext'
27314 { (case "(($ac_try" in
27315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316 *) ac_try_echo=$ac_try;;
27317 esac
27318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319 (eval "$ac_try") 2>&5
27320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; }; then
27323 ac_cv_search_mallinfo=$ac_res
27324 else
27325 echo "$as_me: failed program was:" >&5
27326 sed 's/^/| /' conftest.$ac_ext >&5
27331 rm -f core conftest.err conftest.$ac_objext \
27332 conftest$ac_exeext
27333 if test "${ac_cv_search_mallinfo+set}" = set; then
27334 break
27336 done
27337 if test "${ac_cv_search_mallinfo+set}" = set; then
27339 else
27340 ac_cv_search_mallinfo=no
27342 rm conftest.$ac_ext
27343 LIBS=$ac_func_search_save_LIBS
27345 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27346 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27347 ac_res=$ac_cv_search_mallinfo
27348 if test "$ac_res" != no; then
27349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27351 cat >>confdefs.h <<\_ACEOF
27352 #define HAVE_MALLINFO 1
27353 _ACEOF
27358 if test "$ENABLE_THREADS" -eq 1 ; then
27360 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27361 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27362 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27364 else
27365 ac_check_lib_save_LIBS=$LIBS
27366 LIBS="-lpthread $LIBS"
27367 cat >conftest.$ac_ext <<_ACEOF
27368 /* confdefs.h. */
27369 _ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h. */
27374 /* Override any GCC internal prototype to avoid an error.
27375 Use char because int might match the return type of a GCC
27376 builtin and then its argument prototype would still apply. */
27377 #ifdef __cplusplus
27378 extern "C"
27379 #endif
27380 char pthread_mutex_init ();
27382 main ()
27384 return pthread_mutex_init ();
27386 return 0;
27388 _ACEOF
27389 rm -f conftest.$ac_objext conftest$ac_exeext
27390 if { (ac_try="$ac_link"
27391 case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27394 esac
27395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_link") 2>conftest.er1
27397 ac_status=$?
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
27403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27404 { (case "(($ac_try" in
27405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406 *) ac_try_echo=$ac_try;;
27407 esac
27408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409 (eval "$ac_try") 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try='test -s conftest$ac_exeext'
27414 { (case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27417 esac
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; }; then
27423 ac_cv_lib_pthread_pthread_mutex_init=yes
27424 else
27425 echo "$as_me: failed program was:" >&5
27426 sed 's/^/| /' conftest.$ac_ext >&5
27428 ac_cv_lib_pthread_pthread_mutex_init=no
27431 rm -f core conftest.err conftest.$ac_objext \
27432 conftest$ac_exeext conftest.$ac_ext
27433 LIBS=$ac_check_lib_save_LIBS
27435 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27436 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27437 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27438 cat >>confdefs.h <<_ACEOF
27439 #define HAVE_LIBPTHREAD 1
27440 _ACEOF
27442 LIBS="-lpthread $LIBS"
27446 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27447 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27448 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
27450 else
27451 ac_func_search_save_LIBS=$LIBS
27452 cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h. */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27459 /* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
27462 #ifdef __cplusplus
27463 extern "C"
27464 #endif
27465 char pthread_mutex_lock ();
27467 main ()
27469 return pthread_mutex_lock ();
27471 return 0;
27473 _ACEOF
27474 for ac_lib in '' pthread; do
27475 if test -z "$ac_lib"; then
27476 ac_res="none required"
27477 else
27478 ac_res=-l$ac_lib
27479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (ac_try="$ac_link"
27483 case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27486 esac
27487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_link") 2>conftest.er1
27489 ac_status=$?
27490 grep -v '^ *+' conftest.er1 >conftest.err
27491 rm -f conftest.er1
27492 cat conftest.err >&5
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } &&
27495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest$ac_exeext'
27506 { (case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27509 esac
27510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_try") 2>&5
27512 ac_status=$?
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; }; then
27515 ac_cv_search_pthread_mutex_lock=$ac_res
27516 else
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27523 rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext
27525 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27526 break
27528 done
27529 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27531 else
27532 ac_cv_search_pthread_mutex_lock=no
27534 rm conftest.$ac_ext
27535 LIBS=$ac_func_search_save_LIBS
27537 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27538 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27539 ac_res=$ac_cv_search_pthread_mutex_lock
27540 if test "$ac_res" != no; then
27541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27543 cat >>confdefs.h <<\_ACEOF
27544 #define HAVE_PTHREAD_MUTEX_LOCK 1
27545 _ACEOF
27557 ac_header_dirent=no
27558 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27559 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27560 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27561 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27563 echo $ECHO_N "(cached) $ECHO_C" >&6
27564 else
27565 cat >conftest.$ac_ext <<_ACEOF
27566 /* confdefs.h. */
27567 _ACEOF
27568 cat confdefs.h >>conftest.$ac_ext
27569 cat >>conftest.$ac_ext <<_ACEOF
27570 /* end confdefs.h. */
27571 #include <sys/types.h>
27572 #include <$ac_hdr>
27575 main ()
27577 if ((DIR *) 0)
27578 return 0;
27580 return 0;
27582 _ACEOF
27583 rm -f conftest.$ac_objext
27584 if { (ac_try="$ac_compile"
27585 case "(($ac_try" in
27586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587 *) ac_try_echo=$ac_try;;
27588 esac
27589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590 (eval "$ac_compile") 2>conftest.er1
27591 ac_status=$?
27592 grep -v '^ *+' conftest.er1 >conftest.err
27593 rm -f conftest.er1
27594 cat conftest.err >&5
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); } &&
27597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27598 { (case "(($ac_try" in
27599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600 *) ac_try_echo=$ac_try;;
27601 esac
27602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603 (eval "$ac_try") 2>&5
27604 ac_status=$?
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; } &&
27607 { ac_try='test -s conftest.$ac_objext'
27608 { (case "(($ac_try" in
27609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610 *) ac_try_echo=$ac_try;;
27611 esac
27612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613 (eval "$ac_try") 2>&5
27614 ac_status=$?
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); }; }; then
27617 eval "$as_ac_Header=yes"
27618 else
27619 echo "$as_me: failed program was:" >&5
27620 sed 's/^/| /' conftest.$ac_ext >&5
27622 eval "$as_ac_Header=no"
27625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27627 ac_res=`eval echo '${'$as_ac_Header'}'`
27628 { echo "$as_me:$LINENO: result: $ac_res" >&5
27629 echo "${ECHO_T}$ac_res" >&6; }
27630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27631 cat >>confdefs.h <<_ACEOF
27632 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27633 _ACEOF
27635 ac_header_dirent=$ac_hdr; break
27638 done
27639 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27640 if test $ac_header_dirent = dirent.h; then
27641 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27642 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27643 if test "${ac_cv_search_opendir+set}" = set; then
27644 echo $ECHO_N "(cached) $ECHO_C" >&6
27645 else
27646 ac_func_search_save_LIBS=$LIBS
27647 cat >conftest.$ac_ext <<_ACEOF
27648 /* confdefs.h. */
27649 _ACEOF
27650 cat confdefs.h >>conftest.$ac_ext
27651 cat >>conftest.$ac_ext <<_ACEOF
27652 /* end confdefs.h. */
27654 /* Override any GCC internal prototype to avoid an error.
27655 Use char because int might match the return type of a GCC
27656 builtin and then its argument prototype would still apply. */
27657 #ifdef __cplusplus
27658 extern "C"
27659 #endif
27660 char opendir ();
27662 main ()
27664 return opendir ();
27666 return 0;
27668 _ACEOF
27669 for ac_lib in '' dir; do
27670 if test -z "$ac_lib"; then
27671 ac_res="none required"
27672 else
27673 ac_res=-l$ac_lib
27674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27676 rm -f conftest.$ac_objext conftest$ac_exeext
27677 if { (ac_try="$ac_link"
27678 case "(($ac_try" in
27679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680 *) ac_try_echo=$ac_try;;
27681 esac
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683 (eval "$ac_link") 2>conftest.er1
27684 ac_status=$?
27685 grep -v '^ *+' conftest.er1 >conftest.err
27686 rm -f conftest.er1
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
27690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691 { (case "(($ac_try" in
27692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693 *) ac_try_echo=$ac_try;;
27694 esac
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696 (eval "$ac_try") 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest$ac_exeext'
27701 { (case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27704 esac
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_try") 2>&5
27707 ac_status=$?
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; }; then
27710 ac_cv_search_opendir=$ac_res
27711 else
27712 echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.$ac_ext >&5
27718 rm -f core conftest.err conftest.$ac_objext \
27719 conftest$ac_exeext
27720 if test "${ac_cv_search_opendir+set}" = set; then
27721 break
27723 done
27724 if test "${ac_cv_search_opendir+set}" = set; then
27726 else
27727 ac_cv_search_opendir=no
27729 rm conftest.$ac_ext
27730 LIBS=$ac_func_search_save_LIBS
27732 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27733 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27734 ac_res=$ac_cv_search_opendir
27735 if test "$ac_res" != no; then
27736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27740 else
27741 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27742 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27743 if test "${ac_cv_search_opendir+set}" = set; then
27744 echo $ECHO_N "(cached) $ECHO_C" >&6
27745 else
27746 ac_func_search_save_LIBS=$LIBS
27747 cat >conftest.$ac_ext <<_ACEOF
27748 /* confdefs.h. */
27749 _ACEOF
27750 cat confdefs.h >>conftest.$ac_ext
27751 cat >>conftest.$ac_ext <<_ACEOF
27752 /* end confdefs.h. */
27754 /* Override any GCC internal prototype to avoid an error.
27755 Use char because int might match the return type of a GCC
27756 builtin and then its argument prototype would still apply. */
27757 #ifdef __cplusplus
27758 extern "C"
27759 #endif
27760 char opendir ();
27762 main ()
27764 return opendir ();
27766 return 0;
27768 _ACEOF
27769 for ac_lib in '' x; do
27770 if test -z "$ac_lib"; then
27771 ac_res="none required"
27772 else
27773 ac_res=-l$ac_lib
27774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27776 rm -f conftest.$ac_objext conftest$ac_exeext
27777 if { (ac_try="$ac_link"
27778 case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27781 esac
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_link") 2>conftest.er1
27784 ac_status=$?
27785 grep -v '^ *+' conftest.er1 >conftest.err
27786 rm -f conftest.er1
27787 cat conftest.err >&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } &&
27790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27791 { (case "(($ac_try" in
27792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27793 *) ac_try_echo=$ac_try;;
27794 esac
27795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27796 (eval "$ac_try") 2>&5
27797 ac_status=$?
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; } &&
27800 { ac_try='test -s conftest$ac_exeext'
27801 { (case "(($ac_try" in
27802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27803 *) ac_try_echo=$ac_try;;
27804 esac
27805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27806 (eval "$ac_try") 2>&5
27807 ac_status=$?
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); }; }; then
27810 ac_cv_search_opendir=$ac_res
27811 else
27812 echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27818 rm -f core conftest.err conftest.$ac_objext \
27819 conftest$ac_exeext
27820 if test "${ac_cv_search_opendir+set}" = set; then
27821 break
27823 done
27824 if test "${ac_cv_search_opendir+set}" = set; then
27826 else
27827 ac_cv_search_opendir=no
27829 rm conftest.$ac_ext
27830 LIBS=$ac_func_search_save_LIBS
27832 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27833 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27834 ac_res=$ac_cv_search_opendir
27835 if test "$ac_res" != no; then
27836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27842 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27843 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
27844 if test "${ac_cv_header_mmap_anon+set}" = set; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27846 else
27847 ac_ext=c
27848 ac_cpp='$CPP $CPPFLAGS'
27849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27853 cat >conftest.$ac_ext <<_ACEOF
27854 /* confdefs.h. */
27855 _ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h. */
27859 #include <sys/mman.h>
27860 #include <unistd.h>
27861 #include <fcntl.h>
27863 main ()
27865 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27867 return 0;
27869 _ACEOF
27870 rm -f conftest.$ac_objext
27871 if { (ac_try="$ac_compile"
27872 case "(($ac_try" in
27873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874 *) ac_try_echo=$ac_try;;
27875 esac
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877 (eval "$ac_compile") 2>conftest.er1
27878 ac_status=$?
27879 grep -v '^ *+' conftest.er1 >conftest.err
27880 rm -f conftest.er1
27881 cat conftest.err >&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
27884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27885 { (case "(($ac_try" in
27886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887 *) ac_try_echo=$ac_try;;
27888 esac
27889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890 (eval "$ac_try") 2>&5
27891 ac_status=$?
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; } &&
27894 { ac_try='test -s conftest.$ac_objext'
27895 { (case "(($ac_try" in
27896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897 *) ac_try_echo=$ac_try;;
27898 esac
27899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_try") 2>&5
27901 ac_status=$?
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); }; }; then
27904 ac_cv_header_mmap_anon=yes
27905 else
27906 echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27909 ac_cv_header_mmap_anon=no
27912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27913 ac_ext=c
27914 ac_cpp='$CPP $CPPFLAGS'
27915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27921 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27922 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27923 if test "$ac_cv_header_mmap_anon" = yes; then
27925 cat >>confdefs.h <<\_ACEOF
27926 #define HAVE_MMAP_ANONYMOUS 1
27927 _ACEOF
27931 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27932 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27933 if test "${ac_cv_header_stat_broken+set}" = set; then
27934 echo $ECHO_N "(cached) $ECHO_C" >&6
27935 else
27936 cat >conftest.$ac_ext <<_ACEOF
27937 /* confdefs.h. */
27938 _ACEOF
27939 cat confdefs.h >>conftest.$ac_ext
27940 cat >>conftest.$ac_ext <<_ACEOF
27941 /* end confdefs.h. */
27942 #include <sys/types.h>
27943 #include <sys/stat.h>
27945 #if defined S_ISBLK && defined S_IFDIR
27946 # if S_ISBLK (S_IFDIR)
27947 You lose.
27948 # endif
27949 #endif
27951 #if defined S_ISBLK && defined S_IFCHR
27952 # if S_ISBLK (S_IFCHR)
27953 You lose.
27954 # endif
27955 #endif
27957 #if defined S_ISLNK && defined S_IFREG
27958 # if S_ISLNK (S_IFREG)
27959 You lose.
27960 # endif
27961 #endif
27963 #if defined S_ISSOCK && defined S_IFREG
27964 # if S_ISSOCK (S_IFREG)
27965 You lose.
27966 # endif
27967 #endif
27969 _ACEOF
27970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27971 $EGREP "You lose" >/dev/null 2>&1; then
27972 ac_cv_header_stat_broken=yes
27973 else
27974 ac_cv_header_stat_broken=no
27976 rm -f conftest*
27979 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27980 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27981 if test $ac_cv_header_stat_broken = yes; then
27983 cat >>confdefs.h <<\_ACEOF
27984 #define STAT_MACROS_BROKEN 1
27985 _ACEOF
27989 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27990 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27991 if test "${ac_cv_header_stdc+set}" = set; then
27992 echo $ECHO_N "(cached) $ECHO_C" >&6
27993 else
27994 cat >conftest.$ac_ext <<_ACEOF
27995 /* confdefs.h. */
27996 _ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h. */
28000 #include <stdlib.h>
28001 #include <stdarg.h>
28002 #include <string.h>
28003 #include <float.h>
28006 main ()
28010 return 0;
28012 _ACEOF
28013 rm -f conftest.$ac_objext
28014 if { (ac_try="$ac_compile"
28015 case "(($ac_try" in
28016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017 *) ac_try_echo=$ac_try;;
28018 esac
28019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020 (eval "$ac_compile") 2>conftest.er1
28021 ac_status=$?
28022 grep -v '^ *+' conftest.er1 >conftest.err
28023 rm -f conftest.er1
28024 cat conftest.err >&5
28025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28026 (exit $ac_status); } &&
28027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28028 { (case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_try") 2>&5
28034 ac_status=$?
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; } &&
28037 { ac_try='test -s conftest.$ac_objext'
28038 { (case "(($ac_try" in
28039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28040 *) ac_try_echo=$ac_try;;
28041 esac
28042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28043 (eval "$ac_try") 2>&5
28044 ac_status=$?
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); }; }; then
28047 ac_cv_header_stdc=yes
28048 else
28049 echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28052 ac_cv_header_stdc=no
28055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28057 if test $ac_cv_header_stdc = yes; then
28058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28059 cat >conftest.$ac_ext <<_ACEOF
28060 /* confdefs.h. */
28061 _ACEOF
28062 cat confdefs.h >>conftest.$ac_ext
28063 cat >>conftest.$ac_ext <<_ACEOF
28064 /* end confdefs.h. */
28065 #include <string.h>
28067 _ACEOF
28068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28069 $EGREP "memchr" >/dev/null 2>&1; then
28071 else
28072 ac_cv_header_stdc=no
28074 rm -f conftest*
28078 if test $ac_cv_header_stdc = yes; then
28079 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28080 cat >conftest.$ac_ext <<_ACEOF
28081 /* confdefs.h. */
28082 _ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h. */
28086 #include <stdlib.h>
28088 _ACEOF
28089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28090 $EGREP "free" >/dev/null 2>&1; then
28092 else
28093 ac_cv_header_stdc=no
28095 rm -f conftest*
28099 if test $ac_cv_header_stdc = yes; then
28100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28101 if test "$cross_compiling" = yes; then
28103 else
28104 cat >conftest.$ac_ext <<_ACEOF
28105 /* confdefs.h. */
28106 _ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h. */
28110 #include <ctype.h>
28111 #include <stdlib.h>
28112 #if ((' ' & 0x0FF) == 0x020)
28113 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28114 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28115 #else
28116 # define ISLOWER(c) \
28117 (('a' <= (c) && (c) <= 'i') \
28118 || ('j' <= (c) && (c) <= 'r') \
28119 || ('s' <= (c) && (c) <= 'z'))
28120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28121 #endif
28123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28125 main ()
28127 int i;
28128 for (i = 0; i < 256; i++)
28129 if (XOR (islower (i), ISLOWER (i))
28130 || toupper (i) != TOUPPER (i))
28131 return 2;
28132 return 0;
28134 _ACEOF
28135 rm -f conftest$ac_exeext
28136 if { (ac_try="$ac_link"
28137 case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28140 esac
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_link") 2>&5
28143 ac_status=$?
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28146 { (case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28149 esac
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_try") 2>&5
28152 ac_status=$?
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; }; then
28156 else
28157 echo "$as_me: program exited with status $ac_status" >&5
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28161 ( exit $ac_status )
28162 ac_cv_header_stdc=no
28164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28170 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28171 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28172 if test $ac_cv_header_stdc = yes; then
28174 cat >>confdefs.h <<\_ACEOF
28175 #define STDC_HEADERS 1
28176 _ACEOF
28180 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28181 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28182 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28183 echo $ECHO_N "(cached) $ECHO_C" >&6
28184 else
28185 cat >conftest.$ac_ext <<_ACEOF
28186 /* confdefs.h. */
28187 _ACEOF
28188 cat confdefs.h >>conftest.$ac_ext
28189 cat >>conftest.$ac_ext <<_ACEOF
28190 /* end confdefs.h. */
28191 #include <sys/types.h>
28192 #include <sys/wait.h>
28193 #ifndef WEXITSTATUS
28194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28195 #endif
28196 #ifndef WIFEXITED
28197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28198 #endif
28201 main ()
28203 int s;
28204 wait (&s);
28205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28207 return 0;
28209 _ACEOF
28210 rm -f conftest.$ac_objext
28211 if { (ac_try="$ac_compile"
28212 case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28215 esac
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_compile") 2>conftest.er1
28218 ac_status=$?
28219 grep -v '^ *+' conftest.er1 >conftest.err
28220 rm -f conftest.er1
28221 cat conftest.err >&5
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); } &&
28224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28225 { (case "(($ac_try" in
28226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227 *) ac_try_echo=$ac_try;;
28228 esac
28229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230 (eval "$ac_try") 2>&5
28231 ac_status=$?
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; } &&
28234 { ac_try='test -s conftest.$ac_objext'
28235 { (case "(($ac_try" in
28236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237 *) ac_try_echo=$ac_try;;
28238 esac
28239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240 (eval "$ac_try") 2>&5
28241 ac_status=$?
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; }; then
28244 ac_cv_header_sys_wait_h=yes
28245 else
28246 echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28249 ac_cv_header_sys_wait_h=no
28252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28255 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28256 if test $ac_cv_header_sys_wait_h = yes; then
28258 cat >>confdefs.h <<\_ACEOF
28259 #define HAVE_SYS_WAIT_H 1
28260 _ACEOF
28264 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28265 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28266 if test "${ac_cv_header_time+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269 cat >conftest.$ac_ext <<_ACEOF
28270 /* confdefs.h. */
28271 _ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h. */
28275 #include <sys/types.h>
28276 #include <sys/time.h>
28277 #include <time.h>
28280 main ()
28282 if ((struct tm *) 0)
28283 return 0;
28285 return 0;
28287 _ACEOF
28288 rm -f conftest.$ac_objext
28289 if { (ac_try="$ac_compile"
28290 case "(($ac_try" in
28291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292 *) ac_try_echo=$ac_try;;
28293 esac
28294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295 (eval "$ac_compile") 2>conftest.er1
28296 ac_status=$?
28297 grep -v '^ *+' conftest.er1 >conftest.err
28298 rm -f conftest.er1
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } &&
28302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28303 { (case "(($ac_try" in
28304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305 *) ac_try_echo=$ac_try;;
28306 esac
28307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28308 (eval "$ac_try") 2>&5
28309 ac_status=$?
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); }; } &&
28312 { ac_try='test -s conftest.$ac_objext'
28313 { (case "(($ac_try" in
28314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315 *) ac_try_echo=$ac_try;;
28316 esac
28317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318 (eval "$ac_try") 2>&5
28319 ac_status=$?
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; }; then
28322 ac_cv_header_time=yes
28323 else
28324 echo "$as_me: failed program was:" >&5
28325 sed 's/^/| /' conftest.$ac_ext >&5
28327 ac_cv_header_time=no
28330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28332 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28333 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28334 if test $ac_cv_header_time = yes; then
28336 cat >>confdefs.h <<\_ACEOF
28337 #define TIME_WITH_SYS_TIME 1
28338 _ACEOF
28349 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28351 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28356 echo $ECHO_N "(cached) $ECHO_C" >&6
28358 ac_res=`eval echo '${'$as_ac_Header'}'`
28359 { echo "$as_me:$LINENO: result: $ac_res" >&5
28360 echo "${ECHO_T}$ac_res" >&6; }
28361 else
28362 # Is the header compilable?
28363 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28365 cat >conftest.$ac_ext <<_ACEOF
28366 /* confdefs.h. */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h. */
28371 $ac_includes_default
28372 #include <$ac_header>
28373 _ACEOF
28374 rm -f conftest.$ac_objext
28375 if { (ac_try="$ac_compile"
28376 case "(($ac_try" in
28377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28378 *) ac_try_echo=$ac_try;;
28379 esac
28380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28381 (eval "$ac_compile") 2>conftest.er1
28382 ac_status=$?
28383 grep -v '^ *+' conftest.er1 >conftest.err
28384 rm -f conftest.er1
28385 cat conftest.err >&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
28388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28389 { (case "(($ac_try" in
28390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28391 *) ac_try_echo=$ac_try;;
28392 esac
28393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394 (eval "$ac_try") 2>&5
28395 ac_status=$?
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); }; } &&
28398 { ac_try='test -s conftest.$ac_objext'
28399 { (case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28402 esac
28403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_try") 2>&5
28405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
28408 ac_header_compiler=yes
28409 else
28410 echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28413 ac_header_compiler=no
28416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28418 echo "${ECHO_T}$ac_header_compiler" >&6; }
28420 # Is the header present?
28421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28423 cat >conftest.$ac_ext <<_ACEOF
28424 /* confdefs.h. */
28425 _ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h. */
28429 #include <$ac_header>
28430 _ACEOF
28431 if { (ac_try="$ac_cpp conftest.$ac_ext"
28432 case "(($ac_try" in
28433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434 *) ac_try_echo=$ac_try;;
28435 esac
28436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28438 ac_status=$?
28439 grep -v '^ *+' conftest.er1 >conftest.err
28440 rm -f conftest.er1
28441 cat conftest.err >&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); } >/dev/null; then
28444 if test -s conftest.err; then
28445 ac_cpp_err=$ac_c_preproc_warn_flag
28446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28447 else
28448 ac_cpp_err=
28450 else
28451 ac_cpp_err=yes
28453 if test -z "$ac_cpp_err"; then
28454 ac_header_preproc=yes
28455 else
28456 echo "$as_me: failed program was:" >&5
28457 sed 's/^/| /' conftest.$ac_ext >&5
28459 ac_header_preproc=no
28462 rm -f conftest.err conftest.$ac_ext
28463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28464 echo "${ECHO_T}$ac_header_preproc" >&6; }
28466 # So? What about this header?
28467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28468 yes:no: )
28469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28473 ac_header_preproc=yes
28475 no:yes:* )
28476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28488 ( cat <<\_ASBOX
28489 ## ----------------------------------- ##
28490 ## Report this to llvmbugs@cs.uiuc.edu ##
28491 ## ----------------------------------- ##
28492 _ASBOX
28493 ) | sed "s/^/$as_me: WARNING: /" >&2
28495 esac
28496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28499 echo $ECHO_N "(cached) $ECHO_C" >&6
28500 else
28501 eval "$as_ac_Header=\$ac_header_preproc"
28503 ac_res=`eval echo '${'$as_ac_Header'}'`
28504 { echo "$as_me:$LINENO: result: $ac_res" >&5
28505 echo "${ECHO_T}$ac_res" >&6; }
28508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28509 cat >>confdefs.h <<_ACEOF
28510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28511 _ACEOF
28515 done
28523 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28530 echo $ECHO_N "(cached) $ECHO_C" >&6
28532 ac_res=`eval echo '${'$as_ac_Header'}'`
28533 { echo "$as_me:$LINENO: result: $ac_res" >&5
28534 echo "${ECHO_T}$ac_res" >&6; }
28535 else
28536 # Is the header compilable?
28537 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28539 cat >conftest.$ac_ext <<_ACEOF
28540 /* confdefs.h. */
28541 _ACEOF
28542 cat confdefs.h >>conftest.$ac_ext
28543 cat >>conftest.$ac_ext <<_ACEOF
28544 /* end confdefs.h. */
28545 $ac_includes_default
28546 #include <$ac_header>
28547 _ACEOF
28548 rm -f conftest.$ac_objext
28549 if { (ac_try="$ac_compile"
28550 case "(($ac_try" in
28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28553 esac
28554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555 (eval "$ac_compile") 2>conftest.er1
28556 ac_status=$?
28557 grep -v '^ *+' conftest.er1 >conftest.err
28558 rm -f conftest.er1
28559 cat conftest.err >&5
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } &&
28562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28563 { (case "(($ac_try" in
28564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565 *) ac_try_echo=$ac_try;;
28566 esac
28567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568 (eval "$ac_try") 2>&5
28569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; } &&
28572 { ac_try='test -s conftest.$ac_objext'
28573 { (case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28576 esac
28577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_try") 2>&5
28579 ac_status=$?
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
28582 ac_header_compiler=yes
28583 else
28584 echo "$as_me: failed program was:" >&5
28585 sed 's/^/| /' conftest.$ac_ext >&5
28587 ac_header_compiler=no
28590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28592 echo "${ECHO_T}$ac_header_compiler" >&6; }
28594 # Is the header present?
28595 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28597 cat >conftest.$ac_ext <<_ACEOF
28598 /* confdefs.h. */
28599 _ACEOF
28600 cat confdefs.h >>conftest.$ac_ext
28601 cat >>conftest.$ac_ext <<_ACEOF
28602 /* end confdefs.h. */
28603 #include <$ac_header>
28604 _ACEOF
28605 if { (ac_try="$ac_cpp conftest.$ac_ext"
28606 case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28609 esac
28610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28612 ac_status=$?
28613 grep -v '^ *+' conftest.er1 >conftest.err
28614 rm -f conftest.er1
28615 cat conftest.err >&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } >/dev/null; then
28618 if test -s conftest.err; then
28619 ac_cpp_err=$ac_c_preproc_warn_flag
28620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28621 else
28622 ac_cpp_err=
28624 else
28625 ac_cpp_err=yes
28627 if test -z "$ac_cpp_err"; then
28628 ac_header_preproc=yes
28629 else
28630 echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28633 ac_header_preproc=no
28636 rm -f conftest.err conftest.$ac_ext
28637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28638 echo "${ECHO_T}$ac_header_preproc" >&6; }
28640 # So? What about this header?
28641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28642 yes:no: )
28643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28647 ac_header_preproc=yes
28649 no:yes:* )
28650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28653 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28657 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28662 ( cat <<\_ASBOX
28663 ## ----------------------------------- ##
28664 ## Report this to llvmbugs@cs.uiuc.edu ##
28665 ## ----------------------------------- ##
28666 _ASBOX
28667 ) | sed "s/^/$as_me: WARNING: /" >&2
28669 esac
28670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28674 else
28675 eval "$as_ac_Header=\$ac_header_preproc"
28677 ac_res=`eval echo '${'$as_ac_Header'}'`
28678 { echo "$as_me:$LINENO: result: $ac_res" >&5
28679 echo "${ECHO_T}$ac_res" >&6; }
28682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28683 cat >>confdefs.h <<_ACEOF
28684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28685 _ACEOF
28689 done
28696 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28705 ac_res=`eval echo '${'$as_ac_Header'}'`
28706 { echo "$as_me:$LINENO: result: $ac_res" >&5
28707 echo "${ECHO_T}$ac_res" >&6; }
28708 else
28709 # Is the header compilable?
28710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28712 cat >conftest.$ac_ext <<_ACEOF
28713 /* confdefs.h. */
28714 _ACEOF
28715 cat confdefs.h >>conftest.$ac_ext
28716 cat >>conftest.$ac_ext <<_ACEOF
28717 /* end confdefs.h. */
28718 $ac_includes_default
28719 #include <$ac_header>
28720 _ACEOF
28721 rm -f conftest.$ac_objext
28722 if { (ac_try="$ac_compile"
28723 case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28726 esac
28727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728 (eval "$ac_compile") 2>conftest.er1
28729 ac_status=$?
28730 grep -v '^ *+' conftest.er1 >conftest.err
28731 rm -f conftest.er1
28732 cat conftest.err >&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } &&
28735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28736 { (case "(($ac_try" in
28737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28738 *) ac_try_echo=$ac_try;;
28739 esac
28740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28741 (eval "$ac_try") 2>&5
28742 ac_status=$?
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; } &&
28745 { ac_try='test -s conftest.$ac_objext'
28746 { (case "(($ac_try" in
28747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748 *) ac_try_echo=$ac_try;;
28749 esac
28750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751 (eval "$ac_try") 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; }; then
28755 ac_header_compiler=yes
28756 else
28757 echo "$as_me: failed program was:" >&5
28758 sed 's/^/| /' conftest.$ac_ext >&5
28760 ac_header_compiler=no
28763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28765 echo "${ECHO_T}$ac_header_compiler" >&6; }
28767 # Is the header present?
28768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28770 cat >conftest.$ac_ext <<_ACEOF
28771 /* confdefs.h. */
28772 _ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h. */
28776 #include <$ac_header>
28777 _ACEOF
28778 if { (ac_try="$ac_cpp conftest.$ac_ext"
28779 case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28782 esac
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28785 ac_status=$?
28786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } >/dev/null; then
28791 if test -s conftest.err; then
28792 ac_cpp_err=$ac_c_preproc_warn_flag
28793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28794 else
28795 ac_cpp_err=
28797 else
28798 ac_cpp_err=yes
28800 if test -z "$ac_cpp_err"; then
28801 ac_header_preproc=yes
28802 else
28803 echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.$ac_ext >&5
28806 ac_header_preproc=no
28809 rm -f conftest.err conftest.$ac_ext
28810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28811 echo "${ECHO_T}$ac_header_preproc" >&6; }
28813 # So? What about this header?
28814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28815 yes:no: )
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28820 ac_header_preproc=yes
28822 no:yes:* )
28823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28835 ( cat <<\_ASBOX
28836 ## ----------------------------------- ##
28837 ## Report this to llvmbugs@cs.uiuc.edu ##
28838 ## ----------------------------------- ##
28839 _ASBOX
28840 ) | sed "s/^/$as_me: WARNING: /" >&2
28842 esac
28843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28846 echo $ECHO_N "(cached) $ECHO_C" >&6
28847 else
28848 eval "$as_ac_Header=\$ac_header_preproc"
28850 ac_res=`eval echo '${'$as_ac_Header'}'`
28851 { echo "$as_me:$LINENO: result: $ac_res" >&5
28852 echo "${ECHO_T}$ac_res" >&6; }
28855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28856 cat >>confdefs.h <<_ACEOF
28857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28858 _ACEOF
28862 done
28867 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28874 echo $ECHO_N "(cached) $ECHO_C" >&6
28876 ac_res=`eval echo '${'$as_ac_Header'}'`
28877 { echo "$as_me:$LINENO: result: $ac_res" >&5
28878 echo "${ECHO_T}$ac_res" >&6; }
28879 else
28880 # Is the header compilable?
28881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28883 cat >conftest.$ac_ext <<_ACEOF
28884 /* confdefs.h. */
28885 _ACEOF
28886 cat confdefs.h >>conftest.$ac_ext
28887 cat >>conftest.$ac_ext <<_ACEOF
28888 /* end confdefs.h. */
28889 $ac_includes_default
28890 #include <$ac_header>
28891 _ACEOF
28892 rm -f conftest.$ac_objext
28893 if { (ac_try="$ac_compile"
28894 case "(($ac_try" in
28895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896 *) ac_try_echo=$ac_try;;
28897 esac
28898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899 (eval "$ac_compile") 2>conftest.er1
28900 ac_status=$?
28901 grep -v '^ *+' conftest.er1 >conftest.err
28902 rm -f conftest.er1
28903 cat conftest.err >&5
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } &&
28906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28907 { (case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28910 esac
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_try") 2>&5
28913 ac_status=$?
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; } &&
28916 { ac_try='test -s conftest.$ac_objext'
28917 { (case "(($ac_try" in
28918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919 *) ac_try_echo=$ac_try;;
28920 esac
28921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922 (eval "$ac_try") 2>&5
28923 ac_status=$?
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; }; then
28926 ac_header_compiler=yes
28927 else
28928 echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28931 ac_header_compiler=no
28934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28936 echo "${ECHO_T}$ac_header_compiler" >&6; }
28938 # Is the header present?
28939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28941 cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h. */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28947 #include <$ac_header>
28948 _ACEOF
28949 if { (ac_try="$ac_cpp conftest.$ac_ext"
28950 case "(($ac_try" in
28951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952 *) ac_try_echo=$ac_try;;
28953 esac
28954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28956 ac_status=$?
28957 grep -v '^ *+' conftest.er1 >conftest.err
28958 rm -f conftest.er1
28959 cat conftest.err >&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } >/dev/null; then
28962 if test -s conftest.err; then
28963 ac_cpp_err=$ac_c_preproc_warn_flag
28964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28965 else
28966 ac_cpp_err=
28968 else
28969 ac_cpp_err=yes
28971 if test -z "$ac_cpp_err"; then
28972 ac_header_preproc=yes
28973 else
28974 echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28977 ac_header_preproc=no
28980 rm -f conftest.err conftest.$ac_ext
28981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28982 echo "${ECHO_T}$ac_header_preproc" >&6; }
28984 # So? What about this header?
28985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28986 yes:no: )
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28991 ac_header_preproc=yes
28993 no:yes:* )
28994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29006 ( cat <<\_ASBOX
29007 ## ----------------------------------- ##
29008 ## Report this to llvmbugs@cs.uiuc.edu ##
29009 ## ----------------------------------- ##
29010 _ASBOX
29011 ) | sed "s/^/$as_me: WARNING: /" >&2
29013 esac
29014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29017 echo $ECHO_N "(cached) $ECHO_C" >&6
29018 else
29019 eval "$as_ac_Header=\$ac_header_preproc"
29021 ac_res=`eval echo '${'$as_ac_Header'}'`
29022 { echo "$as_me:$LINENO: result: $ac_res" >&5
29023 echo "${ECHO_T}$ac_res" >&6; }
29026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29027 cat >>confdefs.h <<_ACEOF
29028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29029 _ACEOF
29033 done
29035 if test "$ENABLE_THREADS" -eq 1 ; then
29037 for ac_header in pthread.h
29039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29044 echo $ECHO_N "(cached) $ECHO_C" >&6
29046 ac_res=`eval echo '${'$as_ac_Header'}'`
29047 { echo "$as_me:$LINENO: result: $ac_res" >&5
29048 echo "${ECHO_T}$ac_res" >&6; }
29049 else
29050 # Is the header compilable?
29051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29053 cat >conftest.$ac_ext <<_ACEOF
29054 /* confdefs.h. */
29055 _ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h. */
29059 $ac_includes_default
29060 #include <$ac_header>
29061 _ACEOF
29062 rm -f conftest.$ac_objext
29063 if { (ac_try="$ac_compile"
29064 case "(($ac_try" in
29065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066 *) ac_try_echo=$ac_try;;
29067 esac
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069 (eval "$ac_compile") 2>conftest.er1
29070 ac_status=$?
29071 grep -v '^ *+' conftest.er1 >conftest.err
29072 rm -f conftest.er1
29073 cat conftest.err >&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } &&
29076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29077 { (case "(($ac_try" in
29078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079 *) ac_try_echo=$ac_try;;
29080 esac
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082 (eval "$ac_try") 2>&5
29083 ac_status=$?
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; } &&
29086 { ac_try='test -s conftest.$ac_objext'
29087 { (case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29090 esac
29091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092 (eval "$ac_try") 2>&5
29093 ac_status=$?
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); }; }; then
29096 ac_header_compiler=yes
29097 else
29098 echo "$as_me: failed program was:" >&5
29099 sed 's/^/| /' conftest.$ac_ext >&5
29101 ac_header_compiler=no
29104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29106 echo "${ECHO_T}$ac_header_compiler" >&6; }
29108 # Is the header present?
29109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29111 cat >conftest.$ac_ext <<_ACEOF
29112 /* confdefs.h. */
29113 _ACEOF
29114 cat confdefs.h >>conftest.$ac_ext
29115 cat >>conftest.$ac_ext <<_ACEOF
29116 /* end confdefs.h. */
29117 #include <$ac_header>
29118 _ACEOF
29119 if { (ac_try="$ac_cpp conftest.$ac_ext"
29120 case "(($ac_try" in
29121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122 *) ac_try_echo=$ac_try;;
29123 esac
29124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29126 ac_status=$?
29127 grep -v '^ *+' conftest.er1 >conftest.err
29128 rm -f conftest.er1
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } >/dev/null; then
29132 if test -s conftest.err; then
29133 ac_cpp_err=$ac_c_preproc_warn_flag
29134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29135 else
29136 ac_cpp_err=
29138 else
29139 ac_cpp_err=yes
29141 if test -z "$ac_cpp_err"; then
29142 ac_header_preproc=yes
29143 else
29144 echo "$as_me: failed program was:" >&5
29145 sed 's/^/| /' conftest.$ac_ext >&5
29147 ac_header_preproc=no
29150 rm -f conftest.err conftest.$ac_ext
29151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29152 echo "${ECHO_T}$ac_header_preproc" >&6; }
29154 # So? What about this header?
29155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29156 yes:no: )
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29161 ac_header_preproc=yes
29163 no:yes:* )
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29176 ( cat <<\_ASBOX
29177 ## ----------------------------------- ##
29178 ## Report this to llvmbugs@cs.uiuc.edu ##
29179 ## ----------------------------------- ##
29180 _ASBOX
29181 ) | sed "s/^/$as_me: WARNING: /" >&2
29183 esac
29184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29187 echo $ECHO_N "(cached) $ECHO_C" >&6
29188 else
29189 eval "$as_ac_Header=\$ac_header_preproc"
29191 ac_res=`eval echo '${'$as_ac_Header'}'`
29192 { echo "$as_me:$LINENO: result: $ac_res" >&5
29193 echo "${ECHO_T}$ac_res" >&6; }
29196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29197 cat >>confdefs.h <<_ACEOF
29198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29199 _ACEOF
29203 done
29209 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29210 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29211 if test "${ac_cv_huge_val_sanity+set}" = set; then
29212 echo $ECHO_N "(cached) $ECHO_C" >&6
29213 else
29215 ac_ext=cpp
29216 ac_cpp='$CXXCPP $CPPFLAGS'
29217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29221 CXXFLAGS=-pedantic
29222 if test "$cross_compiling" = yes; then
29223 ac_cv_huge_val_sanity=yes
29224 else
29225 cat >conftest.$ac_ext <<_ACEOF
29226 /* confdefs.h. */
29227 _ACEOF
29228 cat confdefs.h >>conftest.$ac_ext
29229 cat >>conftest.$ac_ext <<_ACEOF
29230 /* end confdefs.h. */
29231 #include <math.h>
29233 main ()
29235 double x = HUGE_VAL; return x != x;
29237 return 0;
29239 _ACEOF
29240 rm -f conftest$ac_exeext
29241 if { (ac_try="$ac_link"
29242 case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29245 esac
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_link") 2>&5
29248 ac_status=$?
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29251 { (case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29254 esac
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_try") 2>&5
29257 ac_status=$?
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; }; then
29260 ac_cv_huge_val_sanity=yes
29261 else
29262 echo "$as_me: program exited with status $ac_status" >&5
29263 echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.$ac_ext >&5
29266 ( exit $ac_status )
29267 ac_cv_huge_val_sanity=no
29269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29273 ac_ext=c
29274 ac_cpp='$CPP $CPPFLAGS'
29275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29281 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29282 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29283 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29286 { echo "$as_me:$LINENO: checking for pid_t" >&5
29287 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29288 if test "${ac_cv_type_pid_t+set}" = set; then
29289 echo $ECHO_N "(cached) $ECHO_C" >&6
29290 else
29291 cat >conftest.$ac_ext <<_ACEOF
29292 /* confdefs.h. */
29293 _ACEOF
29294 cat confdefs.h >>conftest.$ac_ext
29295 cat >>conftest.$ac_ext <<_ACEOF
29296 /* end confdefs.h. */
29297 $ac_includes_default
29298 typedef pid_t ac__type_new_;
29300 main ()
29302 if ((ac__type_new_ *) 0)
29303 return 0;
29304 if (sizeof (ac__type_new_))
29305 return 0;
29307 return 0;
29309 _ACEOF
29310 rm -f conftest.$ac_objext
29311 if { (ac_try="$ac_compile"
29312 case "(($ac_try" in
29313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314 *) ac_try_echo=$ac_try;;
29315 esac
29316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317 (eval "$ac_compile") 2>conftest.er1
29318 ac_status=$?
29319 grep -v '^ *+' conftest.er1 >conftest.err
29320 rm -f conftest.er1
29321 cat conftest.err >&5
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } &&
29324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29325 { (case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29328 esac
29329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_try") 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; } &&
29334 { ac_try='test -s conftest.$ac_objext'
29335 { (case "(($ac_try" in
29336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337 *) ac_try_echo=$ac_try;;
29338 esac
29339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340 (eval "$ac_try") 2>&5
29341 ac_status=$?
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); }; }; then
29344 ac_cv_type_pid_t=yes
29345 else
29346 echo "$as_me: failed program was:" >&5
29347 sed 's/^/| /' conftest.$ac_ext >&5
29349 ac_cv_type_pid_t=no
29352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29354 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29355 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29356 if test $ac_cv_type_pid_t = yes; then
29358 else
29360 cat >>confdefs.h <<_ACEOF
29361 #define pid_t int
29362 _ACEOF
29366 { echo "$as_me:$LINENO: checking for size_t" >&5
29367 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29368 if test "${ac_cv_type_size_t+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29370 else
29371 cat >conftest.$ac_ext <<_ACEOF
29372 /* confdefs.h. */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h. */
29377 $ac_includes_default
29378 typedef size_t ac__type_new_;
29380 main ()
29382 if ((ac__type_new_ *) 0)
29383 return 0;
29384 if (sizeof (ac__type_new_))
29385 return 0;
29387 return 0;
29389 _ACEOF
29390 rm -f conftest.$ac_objext
29391 if { (ac_try="$ac_compile"
29392 case "(($ac_try" in
29393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394 *) ac_try_echo=$ac_try;;
29395 esac
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397 (eval "$ac_compile") 2>conftest.er1
29398 ac_status=$?
29399 grep -v '^ *+' conftest.er1 >conftest.err
29400 rm -f conftest.er1
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
29404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29405 { (case "(($ac_try" in
29406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407 *) ac_try_echo=$ac_try;;
29408 esac
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410 (eval "$ac_try") 2>&5
29411 ac_status=$?
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; } &&
29414 { ac_try='test -s conftest.$ac_objext'
29415 { (case "(($ac_try" in
29416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417 *) ac_try_echo=$ac_try;;
29418 esac
29419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420 (eval "$ac_try") 2>&5
29421 ac_status=$?
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
29424 ac_cv_type_size_t=yes
29425 else
29426 echo "$as_me: failed program was:" >&5
29427 sed 's/^/| /' conftest.$ac_ext >&5
29429 ac_cv_type_size_t=no
29432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29434 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29435 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29436 if test $ac_cv_type_size_t = yes; then
29438 else
29440 cat >>confdefs.h <<_ACEOF
29441 #define size_t unsigned int
29442 _ACEOF
29446 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29447 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29448 if test "${ac_cv_type_signal+set}" = set; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29450 else
29451 cat >conftest.$ac_ext <<_ACEOF
29452 /* confdefs.h. */
29453 _ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h. */
29457 #include <sys/types.h>
29458 #include <signal.h>
29461 main ()
29463 return *(signal (0, 0)) (0) == 1;
29465 return 0;
29467 _ACEOF
29468 rm -f conftest.$ac_objext
29469 if { (ac_try="$ac_compile"
29470 case "(($ac_try" in
29471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29472 *) ac_try_echo=$ac_try;;
29473 esac
29474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29475 (eval "$ac_compile") 2>conftest.er1
29476 ac_status=$?
29477 grep -v '^ *+' conftest.er1 >conftest.err
29478 rm -f conftest.er1
29479 cat conftest.err >&5
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); } &&
29482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29483 { (case "(($ac_try" in
29484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485 *) ac_try_echo=$ac_try;;
29486 esac
29487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488 (eval "$ac_try") 2>&5
29489 ac_status=$?
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); }; } &&
29492 { ac_try='test -s conftest.$ac_objext'
29493 { (case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_try") 2>&5
29499 ac_status=$?
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; }; then
29502 ac_cv_type_signal=int
29503 else
29504 echo "$as_me: failed program was:" >&5
29505 sed 's/^/| /' conftest.$ac_ext >&5
29507 ac_cv_type_signal=void
29510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29512 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29513 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29515 cat >>confdefs.h <<_ACEOF
29516 #define RETSIGTYPE $ac_cv_type_signal
29517 _ACEOF
29520 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29521 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29522 if test "${ac_cv_struct_tm+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29524 else
29525 cat >conftest.$ac_ext <<_ACEOF
29526 /* confdefs.h. */
29527 _ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h. */
29531 #include <sys/types.h>
29532 #include <time.h>
29535 main ()
29537 struct tm *tp; tp->tm_sec;
29539 return 0;
29541 _ACEOF
29542 rm -f conftest.$ac_objext
29543 if { (ac_try="$ac_compile"
29544 case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29547 esac
29548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549 (eval "$ac_compile") 2>conftest.er1
29550 ac_status=$?
29551 grep -v '^ *+' conftest.er1 >conftest.err
29552 rm -f conftest.er1
29553 cat conftest.err >&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
29556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560 esac
29561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
29563 ac_status=$?
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } &&
29566 { ac_try='test -s conftest.$ac_objext'
29567 { (case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29570 esac
29571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_try") 2>&5
29573 ac_status=$?
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; }; then
29576 ac_cv_struct_tm=time.h
29577 else
29578 echo "$as_me: failed program was:" >&5
29579 sed 's/^/| /' conftest.$ac_ext >&5
29581 ac_cv_struct_tm=sys/time.h
29584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29586 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29587 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29588 if test $ac_cv_struct_tm = sys/time.h; then
29590 cat >>confdefs.h <<\_ACEOF
29591 #define TM_IN_SYS_TIME 1
29592 _ACEOF
29596 { echo "$as_me:$LINENO: checking for int64_t" >&5
29597 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29598 if test "${ac_cv_type_int64_t+set}" = set; then
29599 echo $ECHO_N "(cached) $ECHO_C" >&6
29600 else
29601 cat >conftest.$ac_ext <<_ACEOF
29602 /* confdefs.h. */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h. */
29607 $ac_includes_default
29608 typedef int64_t ac__type_new_;
29610 main ()
29612 if ((ac__type_new_ *) 0)
29613 return 0;
29614 if (sizeof (ac__type_new_))
29615 return 0;
29617 return 0;
29619 _ACEOF
29620 rm -f conftest.$ac_objext
29621 if { (ac_try="$ac_compile"
29622 case "(($ac_try" in
29623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29625 esac
29626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627 (eval "$ac_compile") 2>conftest.er1
29628 ac_status=$?
29629 grep -v '^ *+' conftest.er1 >conftest.err
29630 rm -f conftest.er1
29631 cat conftest.err >&5
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
29634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29635 { (case "(($ac_try" in
29636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637 *) ac_try_echo=$ac_try;;
29638 esac
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_try") 2>&5
29641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; } &&
29644 { ac_try='test -s conftest.$ac_objext'
29645 { (case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29648 esac
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_try") 2>&5
29651 ac_status=$?
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; }; then
29654 ac_cv_type_int64_t=yes
29655 else
29656 echo "$as_me: failed program was:" >&5
29657 sed 's/^/| /' conftest.$ac_ext >&5
29659 ac_cv_type_int64_t=no
29662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29664 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29665 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29666 if test $ac_cv_type_int64_t = yes; then
29668 cat >>confdefs.h <<_ACEOF
29669 #define HAVE_INT64_T 1
29670 _ACEOF
29673 else
29674 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29675 echo "$as_me: error: Type int64_t required but not found" >&2;}
29676 { (exit 1); exit 1; }; }
29679 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29680 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29681 if test "${ac_cv_type_uint64_t+set}" = set; then
29682 echo $ECHO_N "(cached) $ECHO_C" >&6
29683 else
29684 cat >conftest.$ac_ext <<_ACEOF
29685 /* confdefs.h. */
29686 _ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h. */
29690 $ac_includes_default
29691 typedef uint64_t ac__type_new_;
29693 main ()
29695 if ((ac__type_new_ *) 0)
29696 return 0;
29697 if (sizeof (ac__type_new_))
29698 return 0;
29700 return 0;
29702 _ACEOF
29703 rm -f conftest.$ac_objext
29704 if { (ac_try="$ac_compile"
29705 case "(($ac_try" in
29706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707 *) ac_try_echo=$ac_try;;
29708 esac
29709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710 (eval "$ac_compile") 2>conftest.er1
29711 ac_status=$?
29712 grep -v '^ *+' conftest.er1 >conftest.err
29713 rm -f conftest.er1
29714 cat conftest.err >&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
29717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29718 { (case "(($ac_try" in
29719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720 *) ac_try_echo=$ac_try;;
29721 esac
29722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723 (eval "$ac_try") 2>&5
29724 ac_status=$?
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; } &&
29727 { ac_try='test -s conftest.$ac_objext'
29728 { (case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29731 esac
29732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_try") 2>&5
29734 ac_status=$?
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; }; then
29737 ac_cv_type_uint64_t=yes
29738 else
29739 echo "$as_me: failed program was:" >&5
29740 sed 's/^/| /' conftest.$ac_ext >&5
29742 ac_cv_type_uint64_t=no
29745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29747 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29748 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29749 if test $ac_cv_type_uint64_t = yes; then
29751 cat >>confdefs.h <<_ACEOF
29752 #define HAVE_UINT64_T 1
29753 _ACEOF
29756 else
29757 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29758 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29759 if test "${ac_cv_type_u_int64_t+set}" = set; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29761 else
29762 cat >conftest.$ac_ext <<_ACEOF
29763 /* confdefs.h. */
29764 _ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h. */
29768 $ac_includes_default
29769 typedef u_int64_t ac__type_new_;
29771 main ()
29773 if ((ac__type_new_ *) 0)
29774 return 0;
29775 if (sizeof (ac__type_new_))
29776 return 0;
29778 return 0;
29780 _ACEOF
29781 rm -f conftest.$ac_objext
29782 if { (ac_try="$ac_compile"
29783 case "(($ac_try" in
29784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29785 *) ac_try_echo=$ac_try;;
29786 esac
29787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29788 (eval "$ac_compile") 2>conftest.er1
29789 ac_status=$?
29790 grep -v '^ *+' conftest.er1 >conftest.err
29791 rm -f conftest.er1
29792 cat conftest.err >&5
29793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); } &&
29795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29796 { (case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29799 esac
29800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29801 (eval "$ac_try") 2>&5
29802 ac_status=$?
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; } &&
29805 { ac_try='test -s conftest.$ac_objext'
29806 { (case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29809 esac
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_try") 2>&5
29812 ac_status=$?
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; }; then
29815 ac_cv_type_u_int64_t=yes
29816 else
29817 echo "$as_me: failed program was:" >&5
29818 sed 's/^/| /' conftest.$ac_ext >&5
29820 ac_cv_type_u_int64_t=no
29823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29825 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29826 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29827 if test $ac_cv_type_u_int64_t = yes; then
29829 cat >>confdefs.h <<_ACEOF
29830 #define HAVE_U_INT64_T 1
29831 _ACEOF
29834 else
29835 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29836 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29837 { (exit 1); exit 1; }; }
29851 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
29853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29857 echo $ECHO_N "(cached) $ECHO_C" >&6
29858 else
29859 cat >conftest.$ac_ext <<_ACEOF
29860 /* confdefs.h. */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h. */
29865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29867 #define $ac_func innocuous_$ac_func
29869 /* System header to define __stub macros and hopefully few prototypes,
29870 which can conflict with char $ac_func (); below.
29871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29872 <limits.h> exists even on freestanding compilers. */
29874 #ifdef __STDC__
29875 # include <limits.h>
29876 #else
29877 # include <assert.h>
29878 #endif
29880 #undef $ac_func
29882 /* Override any GCC internal prototype to avoid an error.
29883 Use char because int might match the return type of a GCC
29884 builtin and then its argument prototype would still apply. */
29885 #ifdef __cplusplus
29886 extern "C"
29887 #endif
29888 char $ac_func ();
29889 /* The GNU C library defines this for functions which it implements
29890 to always fail with ENOSYS. Some functions are actually named
29891 something starting with __ and the normal name is an alias. */
29892 #if defined __stub_$ac_func || defined __stub___$ac_func
29893 choke me
29894 #endif
29897 main ()
29899 return $ac_func ();
29901 return 0;
29903 _ACEOF
29904 rm -f conftest.$ac_objext conftest$ac_exeext
29905 if { (ac_try="$ac_link"
29906 case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29909 esac
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911 (eval "$ac_link") 2>conftest.er1
29912 ac_status=$?
29913 grep -v '^ *+' conftest.er1 >conftest.err
29914 rm -f conftest.er1
29915 cat conftest.err >&5
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); } &&
29918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29919 { (case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29922 esac
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_try") 2>&5
29925 ac_status=$?
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; } &&
29928 { ac_try='test -s conftest$ac_exeext'
29929 { (case "(($ac_try" in
29930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29931 *) ac_try_echo=$ac_try;;
29932 esac
29933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29934 (eval "$ac_try") 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; }; then
29938 eval "$as_ac_var=yes"
29939 else
29940 echo "$as_me: failed program was:" >&5
29941 sed 's/^/| /' conftest.$ac_ext >&5
29943 eval "$as_ac_var=no"
29946 rm -f core conftest.err conftest.$ac_objext \
29947 conftest$ac_exeext conftest.$ac_ext
29949 ac_res=`eval echo '${'$as_ac_var'}'`
29950 { echo "$as_me:$LINENO: result: $ac_res" >&5
29951 echo "${ECHO_T}$ac_res" >&6; }
29952 if test `eval echo '${'$as_ac_var'}'` = yes; then
29953 cat >>confdefs.h <<_ACEOF
29954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29955 _ACEOF
29958 done
29966 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29972 echo $ECHO_N "(cached) $ECHO_C" >&6
29973 else
29974 cat >conftest.$ac_ext <<_ACEOF
29975 /* confdefs.h. */
29976 _ACEOF
29977 cat confdefs.h >>conftest.$ac_ext
29978 cat >>conftest.$ac_ext <<_ACEOF
29979 /* end confdefs.h. */
29980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29982 #define $ac_func innocuous_$ac_func
29984 /* System header to define __stub macros and hopefully few prototypes,
29985 which can conflict with char $ac_func (); below.
29986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29987 <limits.h> exists even on freestanding compilers. */
29989 #ifdef __STDC__
29990 # include <limits.h>
29991 #else
29992 # include <assert.h>
29993 #endif
29995 #undef $ac_func
29997 /* Override any GCC internal prototype to avoid an error.
29998 Use char because int might match the return type of a GCC
29999 builtin and then its argument prototype would still apply. */
30000 #ifdef __cplusplus
30001 extern "C"
30002 #endif
30003 char $ac_func ();
30004 /* The GNU C library defines this for functions which it implements
30005 to always fail with ENOSYS. Some functions are actually named
30006 something starting with __ and the normal name is an alias. */
30007 #if defined __stub_$ac_func || defined __stub___$ac_func
30008 choke me
30009 #endif
30012 main ()
30014 return $ac_func ();
30016 return 0;
30018 _ACEOF
30019 rm -f conftest.$ac_objext conftest$ac_exeext
30020 if { (ac_try="$ac_link"
30021 case "(($ac_try" in
30022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023 *) ac_try_echo=$ac_try;;
30024 esac
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026 (eval "$ac_link") 2>conftest.er1
30027 ac_status=$?
30028 grep -v '^ *+' conftest.er1 >conftest.err
30029 rm -f conftest.er1
30030 cat conftest.err >&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } &&
30033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30034 { (case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30037 esac
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_try") 2>&5
30040 ac_status=$?
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; } &&
30043 { ac_try='test -s conftest$ac_exeext'
30044 { (case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30047 esac
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_try") 2>&5
30050 ac_status=$?
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; }; then
30053 eval "$as_ac_var=yes"
30054 else
30055 echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30058 eval "$as_ac_var=no"
30061 rm -f core conftest.err conftest.$ac_objext \
30062 conftest$ac_exeext conftest.$ac_ext
30064 ac_res=`eval echo '${'$as_ac_var'}'`
30065 { echo "$as_me:$LINENO: result: $ac_res" >&5
30066 echo "${ECHO_T}$ac_res" >&6; }
30067 if test `eval echo '${'$as_ac_var'}'` = yes; then
30068 cat >>confdefs.h <<_ACEOF
30069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30070 _ACEOF
30073 done
30082 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30088 echo $ECHO_N "(cached) $ECHO_C" >&6
30089 else
30090 cat >conftest.$ac_ext <<_ACEOF
30091 /* confdefs.h. */
30092 _ACEOF
30093 cat confdefs.h >>conftest.$ac_ext
30094 cat >>conftest.$ac_ext <<_ACEOF
30095 /* end confdefs.h. */
30096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30098 #define $ac_func innocuous_$ac_func
30100 /* System header to define __stub macros and hopefully few prototypes,
30101 which can conflict with char $ac_func (); below.
30102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30103 <limits.h> exists even on freestanding compilers. */
30105 #ifdef __STDC__
30106 # include <limits.h>
30107 #else
30108 # include <assert.h>
30109 #endif
30111 #undef $ac_func
30113 /* Override any GCC internal prototype to avoid an error.
30114 Use char because int might match the return type of a GCC
30115 builtin and then its argument prototype would still apply. */
30116 #ifdef __cplusplus
30117 extern "C"
30118 #endif
30119 char $ac_func ();
30120 /* The GNU C library defines this for functions which it implements
30121 to always fail with ENOSYS. Some functions are actually named
30122 something starting with __ and the normal name is an alias. */
30123 #if defined __stub_$ac_func || defined __stub___$ac_func
30124 choke me
30125 #endif
30128 main ()
30130 return $ac_func ();
30132 return 0;
30134 _ACEOF
30135 rm -f conftest.$ac_objext conftest$ac_exeext
30136 if { (ac_try="$ac_link"
30137 case "(($ac_try" in
30138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139 *) ac_try_echo=$ac_try;;
30140 esac
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142 (eval "$ac_link") 2>conftest.er1
30143 ac_status=$?
30144 grep -v '^ *+' conftest.er1 >conftest.err
30145 rm -f conftest.er1
30146 cat conftest.err >&5
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); } &&
30149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30150 { (case "(($ac_try" in
30151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30153 esac
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155 (eval "$ac_try") 2>&5
30156 ac_status=$?
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; } &&
30159 { ac_try='test -s conftest$ac_exeext'
30160 { (case "(($ac_try" in
30161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30162 *) ac_try_echo=$ac_try;;
30163 esac
30164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30165 (eval "$ac_try") 2>&5
30166 ac_status=$?
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; }; then
30169 eval "$as_ac_var=yes"
30170 else
30171 echo "$as_me: failed program was:" >&5
30172 sed 's/^/| /' conftest.$ac_ext >&5
30174 eval "$as_ac_var=no"
30177 rm -f core conftest.err conftest.$ac_objext \
30178 conftest$ac_exeext conftest.$ac_ext
30180 ac_res=`eval echo '${'$as_ac_var'}'`
30181 { echo "$as_me:$LINENO: result: $ac_res" >&5
30182 echo "${ECHO_T}$ac_res" >&6; }
30183 if test `eval echo '${'$as_ac_var'}'` = yes; then
30184 cat >>confdefs.h <<_ACEOF
30185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30186 _ACEOF
30189 done
30195 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30201 echo $ECHO_N "(cached) $ECHO_C" >&6
30202 else
30203 cat >conftest.$ac_ext <<_ACEOF
30204 /* confdefs.h. */
30205 _ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h. */
30209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30211 #define $ac_func innocuous_$ac_func
30213 /* System header to define __stub macros and hopefully few prototypes,
30214 which can conflict with char $ac_func (); below.
30215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216 <limits.h> exists even on freestanding compilers. */
30218 #ifdef __STDC__
30219 # include <limits.h>
30220 #else
30221 # include <assert.h>
30222 #endif
30224 #undef $ac_func
30226 /* Override any GCC internal prototype to avoid an error.
30227 Use char because int might match the return type of a GCC
30228 builtin and then its argument prototype would still apply. */
30229 #ifdef __cplusplus
30230 extern "C"
30231 #endif
30232 char $ac_func ();
30233 /* The GNU C library defines this for functions which it implements
30234 to always fail with ENOSYS. Some functions are actually named
30235 something starting with __ and the normal name is an alias. */
30236 #if defined __stub_$ac_func || defined __stub___$ac_func
30237 choke me
30238 #endif
30241 main ()
30243 return $ac_func ();
30245 return 0;
30247 _ACEOF
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252 *) ac_try_echo=$ac_try;;
30253 esac
30254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30255 (eval "$ac_link") 2>conftest.er1
30256 ac_status=$?
30257 grep -v '^ *+' conftest.er1 >conftest.err
30258 rm -f conftest.er1
30259 cat conftest.err >&5
30260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); } &&
30262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30263 { (case "(($ac_try" in
30264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265 *) ac_try_echo=$ac_try;;
30266 esac
30267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268 (eval "$ac_try") 2>&5
30269 ac_status=$?
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; } &&
30272 { ac_try='test -s conftest$ac_exeext'
30273 { (case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_try") 2>&5
30279 ac_status=$?
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; }; then
30282 eval "$as_ac_var=yes"
30283 else
30284 echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30287 eval "$as_ac_var=no"
30290 rm -f core conftest.err conftest.$ac_objext \
30291 conftest$ac_exeext conftest.$ac_ext
30293 ac_res=`eval echo '${'$as_ac_var'}'`
30294 { echo "$as_me:$LINENO: result: $ac_res" >&5
30295 echo "${ECHO_T}$ac_res" >&6; }
30296 if test `eval echo '${'$as_ac_var'}'` = yes; then
30297 cat >>confdefs.h <<_ACEOF
30298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30299 _ACEOF
30302 done
30310 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30316 echo $ECHO_N "(cached) $ECHO_C" >&6
30317 else
30318 cat >conftest.$ac_ext <<_ACEOF
30319 /* confdefs.h. */
30320 _ACEOF
30321 cat confdefs.h >>conftest.$ac_ext
30322 cat >>conftest.$ac_ext <<_ACEOF
30323 /* end confdefs.h. */
30324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30326 #define $ac_func innocuous_$ac_func
30328 /* System header to define __stub macros and hopefully few prototypes,
30329 which can conflict with char $ac_func (); below.
30330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30331 <limits.h> exists even on freestanding compilers. */
30333 #ifdef __STDC__
30334 # include <limits.h>
30335 #else
30336 # include <assert.h>
30337 #endif
30339 #undef $ac_func
30341 /* Override any GCC internal prototype to avoid an error.
30342 Use char because int might match the return type of a GCC
30343 builtin and then its argument prototype would still apply. */
30344 #ifdef __cplusplus
30345 extern "C"
30346 #endif
30347 char $ac_func ();
30348 /* The GNU C library defines this for functions which it implements
30349 to always fail with ENOSYS. Some functions are actually named
30350 something starting with __ and the normal name is an alias. */
30351 #if defined __stub_$ac_func || defined __stub___$ac_func
30352 choke me
30353 #endif
30356 main ()
30358 return $ac_func ();
30360 return 0;
30362 _ACEOF
30363 rm -f conftest.$ac_objext conftest$ac_exeext
30364 if { (ac_try="$ac_link"
30365 case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30368 esac
30369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370 (eval "$ac_link") 2>conftest.er1
30371 ac_status=$?
30372 grep -v '^ *+' conftest.er1 >conftest.err
30373 rm -f conftest.er1
30374 cat conftest.err >&5
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); } &&
30377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30378 { (case "(($ac_try" in
30379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380 *) ac_try_echo=$ac_try;;
30381 esac
30382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383 (eval "$ac_try") 2>&5
30384 ac_status=$?
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; } &&
30387 { ac_try='test -s conftest$ac_exeext'
30388 { (case "(($ac_try" in
30389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390 *) ac_try_echo=$ac_try;;
30391 esac
30392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393 (eval "$ac_try") 2>&5
30394 ac_status=$?
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); }; }; then
30397 eval "$as_ac_var=yes"
30398 else
30399 echo "$as_me: failed program was:" >&5
30400 sed 's/^/| /' conftest.$ac_ext >&5
30402 eval "$as_ac_var=no"
30405 rm -f core conftest.err conftest.$ac_objext \
30406 conftest$ac_exeext conftest.$ac_ext
30408 ac_res=`eval echo '${'$as_ac_var'}'`
30409 { echo "$as_me:$LINENO: result: $ac_res" >&5
30410 echo "${ECHO_T}$ac_res" >&6; }
30411 if test `eval echo '${'$as_ac_var'}'` = yes; then
30412 cat >>confdefs.h <<_ACEOF
30413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30414 _ACEOF
30417 done
30419 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30420 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30421 if test "${llvm_cv_c_printf_a+set}" = set; then
30422 echo $ECHO_N "(cached) $ECHO_C" >&6
30423 else
30424 ac_ext=c
30425 ac_cpp='$CPP $CPPFLAGS'
30426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30430 if test "$cross_compiling" = yes; then
30431 llvmac_cv_c_printf_a=no
30432 else
30433 cat >conftest.$ac_ext <<_ACEOF
30435 /* confdefs.h. */
30436 _ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h. */
30441 #include <stdio.h>
30442 #include <stdlib.h>
30445 main ()
30448 volatile double A, B;
30449 char Buffer[100];
30450 A = 1;
30451 A /= 10.0;
30452 sprintf(Buffer, "%a", A);
30453 B = atof(Buffer);
30454 if (A != B)
30455 return (1);
30456 if (A != 0x1.999999999999ap-4)
30457 return (1);
30458 return (0);
30460 return 0;
30462 _ACEOF
30463 rm -f conftest$ac_exeext
30464 if { (ac_try="$ac_link"
30465 case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30468 esac
30469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30470 (eval "$ac_link") 2>&5
30471 ac_status=$?
30472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30474 { (case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30477 esac
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_try") 2>&5
30480 ac_status=$?
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; }; then
30483 llvm_cv_c_printf_a=yes
30484 else
30485 echo "$as_me: program exited with status $ac_status" >&5
30486 echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30489 ( exit $ac_status )
30490 llvmac_cv_c_printf_a=no
30492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30496 ac_ext=c
30497 ac_cpp='$CPP $CPPFLAGS'
30498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30503 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30504 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30505 if test "$llvm_cv_c_printf_a" = "yes"; then
30507 cat >>confdefs.h <<\_ACEOF
30508 #define HAVE_PRINTF_A 1
30509 _ACEOF
30513 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30514 # for constant arguments. Useless!
30515 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30516 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30517 if test "${ac_cv_working_alloca_h+set}" = set; then
30518 echo $ECHO_N "(cached) $ECHO_C" >&6
30519 else
30520 cat >conftest.$ac_ext <<_ACEOF
30521 /* confdefs.h. */
30522 _ACEOF
30523 cat confdefs.h >>conftest.$ac_ext
30524 cat >>conftest.$ac_ext <<_ACEOF
30525 /* end confdefs.h. */
30526 #include <alloca.h>
30528 main ()
30530 char *p = (char *) alloca (2 * sizeof (int));
30531 if (p) return 0;
30533 return 0;
30535 _ACEOF
30536 rm -f conftest.$ac_objext conftest$ac_exeext
30537 if { (ac_try="$ac_link"
30538 case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30541 esac
30542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543 (eval "$ac_link") 2>conftest.er1
30544 ac_status=$?
30545 grep -v '^ *+' conftest.er1 >conftest.err
30546 rm -f conftest.er1
30547 cat conftest.err >&5
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); } &&
30550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30551 { (case "(($ac_try" in
30552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30553 *) ac_try_echo=$ac_try;;
30554 esac
30555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30556 (eval "$ac_try") 2>&5
30557 ac_status=$?
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; } &&
30560 { ac_try='test -s conftest$ac_exeext'
30561 { (case "(($ac_try" in
30562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563 *) ac_try_echo=$ac_try;;
30564 esac
30565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566 (eval "$ac_try") 2>&5
30567 ac_status=$?
30568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569 (exit $ac_status); }; }; then
30570 ac_cv_working_alloca_h=yes
30571 else
30572 echo "$as_me: failed program was:" >&5
30573 sed 's/^/| /' conftest.$ac_ext >&5
30575 ac_cv_working_alloca_h=no
30578 rm -f core conftest.err conftest.$ac_objext \
30579 conftest$ac_exeext conftest.$ac_ext
30581 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30582 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30583 if test $ac_cv_working_alloca_h = yes; then
30585 cat >>confdefs.h <<\_ACEOF
30586 #define HAVE_ALLOCA_H 1
30587 _ACEOF
30591 { echo "$as_me:$LINENO: checking for alloca" >&5
30592 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30593 if test "${ac_cv_func_alloca_works+set}" = set; then
30594 echo $ECHO_N "(cached) $ECHO_C" >&6
30595 else
30596 cat >conftest.$ac_ext <<_ACEOF
30597 /* confdefs.h. */
30598 _ACEOF
30599 cat confdefs.h >>conftest.$ac_ext
30600 cat >>conftest.$ac_ext <<_ACEOF
30601 /* end confdefs.h. */
30602 #ifdef __GNUC__
30603 # define alloca __builtin_alloca
30604 #else
30605 # ifdef _MSC_VER
30606 # include <malloc.h>
30607 # define alloca _alloca
30608 # else
30609 # if HAVE_ALLOCA_H
30610 # include <alloca.h>
30611 # else
30612 # ifdef _AIX
30613 #pragma alloca
30614 # else
30615 # ifndef alloca /* predefined by HP cc +Olibcalls */
30616 char *alloca ();
30617 # endif
30618 # endif
30619 # endif
30620 # endif
30621 #endif
30624 main ()
30626 char *p = (char *) alloca (1);
30627 if (p) return 0;
30629 return 0;
30631 _ACEOF
30632 rm -f conftest.$ac_objext conftest$ac_exeext
30633 if { (ac_try="$ac_link"
30634 case "(($ac_try" in
30635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30636 *) ac_try_echo=$ac_try;;
30637 esac
30638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639 (eval "$ac_link") 2>conftest.er1
30640 ac_status=$?
30641 grep -v '^ *+' conftest.er1 >conftest.err
30642 rm -f conftest.er1
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
30646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30647 { (case "(($ac_try" in
30648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649 *) ac_try_echo=$ac_try;;
30650 esac
30651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652 (eval "$ac_try") 2>&5
30653 ac_status=$?
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; } &&
30656 { ac_try='test -s conftest$ac_exeext'
30657 { (case "(($ac_try" in
30658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30659 *) ac_try_echo=$ac_try;;
30660 esac
30661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30662 (eval "$ac_try") 2>&5
30663 ac_status=$?
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 ac_cv_func_alloca_works=yes
30667 else
30668 echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30671 ac_cv_func_alloca_works=no
30674 rm -f core conftest.err conftest.$ac_objext \
30675 conftest$ac_exeext conftest.$ac_ext
30677 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30678 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30680 if test $ac_cv_func_alloca_works = yes; then
30682 cat >>confdefs.h <<\_ACEOF
30683 #define HAVE_ALLOCA 1
30684 _ACEOF
30686 else
30687 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30688 # that cause trouble. Some versions do not even contain alloca or
30689 # contain a buggy version. If you still want to use their alloca,
30690 # use ar to extract alloca.o from them instead of compiling alloca.c.
30692 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30694 cat >>confdefs.h <<\_ACEOF
30695 #define C_ALLOCA 1
30696 _ACEOF
30699 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30700 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30701 if test "${ac_cv_os_cray+set}" = set; then
30702 echo $ECHO_N "(cached) $ECHO_C" >&6
30703 else
30704 cat >conftest.$ac_ext <<_ACEOF
30705 /* confdefs.h. */
30706 _ACEOF
30707 cat confdefs.h >>conftest.$ac_ext
30708 cat >>conftest.$ac_ext <<_ACEOF
30709 /* end confdefs.h. */
30710 #if defined CRAY && ! defined CRAY2
30711 webecray
30712 #else
30713 wenotbecray
30714 #endif
30716 _ACEOF
30717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30718 $EGREP "webecray" >/dev/null 2>&1; then
30719 ac_cv_os_cray=yes
30720 else
30721 ac_cv_os_cray=no
30723 rm -f conftest*
30726 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30727 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30728 if test $ac_cv_os_cray = yes; then
30729 for ac_func in _getb67 GETB67 getb67; do
30730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30734 echo $ECHO_N "(cached) $ECHO_C" >&6
30735 else
30736 cat >conftest.$ac_ext <<_ACEOF
30737 /* confdefs.h. */
30738 _ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h. */
30742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30744 #define $ac_func innocuous_$ac_func
30746 /* System header to define __stub macros and hopefully few prototypes,
30747 which can conflict with char $ac_func (); below.
30748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30749 <limits.h> exists even on freestanding compilers. */
30751 #ifdef __STDC__
30752 # include <limits.h>
30753 #else
30754 # include <assert.h>
30755 #endif
30757 #undef $ac_func
30759 /* Override any GCC internal prototype to avoid an error.
30760 Use char because int might match the return type of a GCC
30761 builtin and then its argument prototype would still apply. */
30762 #ifdef __cplusplus
30763 extern "C"
30764 #endif
30765 char $ac_func ();
30766 /* The GNU C library defines this for functions which it implements
30767 to always fail with ENOSYS. Some functions are actually named
30768 something starting with __ and the normal name is an alias. */
30769 #if defined __stub_$ac_func || defined __stub___$ac_func
30770 choke me
30771 #endif
30774 main ()
30776 return $ac_func ();
30778 return 0;
30780 _ACEOF
30781 rm -f conftest.$ac_objext conftest$ac_exeext
30782 if { (ac_try="$ac_link"
30783 case "(($ac_try" in
30784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30785 *) ac_try_echo=$ac_try;;
30786 esac
30787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30788 (eval "$ac_link") 2>conftest.er1
30789 ac_status=$?
30790 grep -v '^ *+' conftest.er1 >conftest.err
30791 rm -f conftest.er1
30792 cat conftest.err >&5
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); } &&
30795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30796 { (case "(($ac_try" in
30797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798 *) ac_try_echo=$ac_try;;
30799 esac
30800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801 (eval "$ac_try") 2>&5
30802 ac_status=$?
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); }; } &&
30805 { ac_try='test -s conftest$ac_exeext'
30806 { (case "(($ac_try" in
30807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808 *) ac_try_echo=$ac_try;;
30809 esac
30810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811 (eval "$ac_try") 2>&5
30812 ac_status=$?
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); }; }; then
30815 eval "$as_ac_var=yes"
30816 else
30817 echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30820 eval "$as_ac_var=no"
30823 rm -f core conftest.err conftest.$ac_objext \
30824 conftest$ac_exeext conftest.$ac_ext
30826 ac_res=`eval echo '${'$as_ac_var'}'`
30827 { echo "$as_me:$LINENO: result: $ac_res" >&5
30828 echo "${ECHO_T}$ac_res" >&6; }
30829 if test `eval echo '${'$as_ac_var'}'` = yes; then
30831 cat >>confdefs.h <<_ACEOF
30832 #define CRAY_STACKSEG_END $ac_func
30833 _ACEOF
30835 break
30838 done
30841 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30842 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
30843 if test "${ac_cv_c_stack_direction+set}" = set; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30845 else
30846 if test "$cross_compiling" = yes; then
30847 ac_cv_c_stack_direction=0
30848 else
30849 cat >conftest.$ac_ext <<_ACEOF
30850 /* confdefs.h. */
30851 _ACEOF
30852 cat confdefs.h >>conftest.$ac_ext
30853 cat >>conftest.$ac_ext <<_ACEOF
30854 /* end confdefs.h. */
30855 $ac_includes_default
30857 find_stack_direction ()
30859 static char *addr = 0;
30860 auto char dummy;
30861 if (addr == 0)
30863 addr = &dummy;
30864 return find_stack_direction ();
30866 else
30867 return (&dummy > addr) ? 1 : -1;
30871 main ()
30873 return find_stack_direction () < 0;
30875 _ACEOF
30876 rm -f conftest$ac_exeext
30877 if { (ac_try="$ac_link"
30878 case "(($ac_try" in
30879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880 *) ac_try_echo=$ac_try;;
30881 esac
30882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883 (eval "$ac_link") 2>&5
30884 ac_status=$?
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30887 { (case "(($ac_try" in
30888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889 *) ac_try_echo=$ac_try;;
30890 esac
30891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30892 (eval "$ac_try") 2>&5
30893 ac_status=$?
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; }; then
30896 ac_cv_c_stack_direction=1
30897 else
30898 echo "$as_me: program exited with status $ac_status" >&5
30899 echo "$as_me: failed program was:" >&5
30900 sed 's/^/| /' conftest.$ac_ext >&5
30902 ( exit $ac_status )
30903 ac_cv_c_stack_direction=-1
30905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30910 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30911 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
30913 cat >>confdefs.h <<_ACEOF
30914 #define STACK_DIRECTION $ac_cv_c_stack_direction
30915 _ACEOF
30921 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30922 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
30923 if test "${ac_cv_func_rand48+set}" = set; then
30924 echo $ECHO_N "(cached) $ECHO_C" >&6
30925 else
30926 ac_ext=cpp
30927 ac_cpp='$CXXCPP $CPPFLAGS'
30928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30932 cat >conftest.$ac_ext <<_ACEOF
30933 /* confdefs.h. */
30934 _ACEOF
30935 cat confdefs.h >>conftest.$ac_ext
30936 cat >>conftest.$ac_ext <<_ACEOF
30937 /* end confdefs.h. */
30938 #include <stdlib.h>
30940 main ()
30942 srand48(0);lrand48();drand48();
30944 return 0;
30946 _ACEOF
30947 rm -f conftest.$ac_objext
30948 if { (ac_try="$ac_compile"
30949 case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30952 esac
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_compile") 2>conftest.er1
30955 ac_status=$?
30956 grep -v '^ *+' conftest.er1 >conftest.err
30957 rm -f conftest.er1
30958 cat conftest.err >&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); } &&
30961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30962 { (case "(($ac_try" in
30963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30964 *) ac_try_echo=$ac_try;;
30965 esac
30966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30967 (eval "$ac_try") 2>&5
30968 ac_status=$?
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); }; } &&
30971 { ac_try='test -s conftest.$ac_objext'
30972 { (case "(($ac_try" in
30973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974 *) ac_try_echo=$ac_try;;
30975 esac
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_try") 2>&5
30978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; }; then
30981 ac_cv_func_rand48=yes
30982 else
30983 echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30986 ac_cv_func_rand48=no
30989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30990 ac_ext=c
30991 ac_cpp='$CPP $CPPFLAGS'
30992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30997 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30998 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31000 if test "$ac_cv_func_rand48" = "yes" ; then
31002 cat >>confdefs.h <<\_ACEOF
31003 #define HAVE_RAND48 1
31004 _ACEOF
31009 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31010 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31011 if test "${ac_cv_cxx_namespaces+set}" = set; then
31012 echo $ECHO_N "(cached) $ECHO_C" >&6
31013 else
31014 ac_ext=cpp
31015 ac_cpp='$CXXCPP $CPPFLAGS'
31016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31020 cat >conftest.$ac_ext <<_ACEOF
31021 /* confdefs.h. */
31022 _ACEOF
31023 cat confdefs.h >>conftest.$ac_ext
31024 cat >>conftest.$ac_ext <<_ACEOF
31025 /* end confdefs.h. */
31026 namespace Outer { namespace Inner { int i = 0; }}
31028 main ()
31030 using namespace Outer::Inner; return i;
31032 return 0;
31034 _ACEOF
31035 rm -f conftest.$ac_objext
31036 if { (ac_try="$ac_compile"
31037 case "(($ac_try" in
31038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039 *) ac_try_echo=$ac_try;;
31040 esac
31041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042 (eval "$ac_compile") 2>conftest.er1
31043 ac_status=$?
31044 grep -v '^ *+' conftest.er1 >conftest.err
31045 rm -f conftest.er1
31046 cat conftest.err >&5
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); } &&
31049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31050 { (case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31053 esac
31054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_try") 2>&5
31056 ac_status=$?
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; } &&
31059 { ac_try='test -s conftest.$ac_objext'
31060 { (case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31063 esac
31064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_try") 2>&5
31066 ac_status=$?
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); }; }; then
31069 ac_cv_cxx_namespaces=yes
31070 else
31071 echo "$as_me: failed program was:" >&5
31072 sed 's/^/| /' conftest.$ac_ext >&5
31074 ac_cv_cxx_namespaces=no
31077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31078 ac_ext=c
31079 ac_cpp='$CPP $CPPFLAGS'
31080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31086 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31087 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31088 if test "$ac_cv_cxx_namespaces" = yes; then
31090 cat >>confdefs.h <<\_ACEOF
31091 #define HAVE_NAMESPACES
31092 _ACEOF
31096 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31097 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31098 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31099 echo $ECHO_N "(cached) $ECHO_C" >&6
31100 else
31102 ac_ext=cpp
31103 ac_cpp='$CXXCPP $CPPFLAGS'
31104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31108 cat >conftest.$ac_ext <<_ACEOF
31109 /* confdefs.h. */
31110 _ACEOF
31111 cat confdefs.h >>conftest.$ac_ext
31112 cat >>conftest.$ac_ext <<_ACEOF
31113 /* end confdefs.h. */
31114 #include <ext/hash_map>
31115 #ifdef HAVE_NAMESPACES
31116 using namespace std;
31117 #endif
31119 main ()
31121 hash_map<int, int> t;
31123 return 0;
31125 _ACEOF
31126 rm -f conftest.$ac_objext
31127 if { (ac_try="$ac_compile"
31128 case "(($ac_try" in
31129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130 *) ac_try_echo=$ac_try;;
31131 esac
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133 (eval "$ac_compile") 2>conftest.er1
31134 ac_status=$?
31135 grep -v '^ *+' conftest.er1 >conftest.err
31136 rm -f conftest.er1
31137 cat conftest.err >&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } &&
31140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31141 { (case "(($ac_try" in
31142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143 *) ac_try_echo=$ac_try;;
31144 esac
31145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31146 (eval "$ac_try") 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; } &&
31150 { ac_try='test -s conftest.$ac_objext'
31151 { (case "(($ac_try" in
31152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153 *) ac_try_echo=$ac_try;;
31154 esac
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156 (eval "$ac_try") 2>&5
31157 ac_status=$?
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; }; then
31160 ac_cv_cxx_have_std_ext_hash_map=yes
31161 else
31162 echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31165 ac_cv_cxx_have_std_ext_hash_map=no
31168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31169 ac_ext=c
31170 ac_cpp='$CPP $CPPFLAGS'
31171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31176 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31177 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31178 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31179 then
31181 cat >>confdefs.h <<\_ACEOF
31182 #define HAVE_STD_EXT_HASH_MAP 1
31183 _ACEOF
31185 else
31187 cat >>confdefs.h <<\_ACEOF
31188 #define HAVE_STD_EXT_HASH_MAP 0
31189 _ACEOF
31193 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31194 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31195 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31196 echo $ECHO_N "(cached) $ECHO_C" >&6
31197 else
31199 ac_ext=cpp
31200 ac_cpp='$CXXCPP $CPPFLAGS'
31201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31205 cat >conftest.$ac_ext <<_ACEOF
31206 /* confdefs.h. */
31207 _ACEOF
31208 cat confdefs.h >>conftest.$ac_ext
31209 cat >>conftest.$ac_ext <<_ACEOF
31210 /* end confdefs.h. */
31211 #include <ext/hash_map>
31212 #ifdef HAVE_NAMESPACES
31213 using namespace __gnu_cxx;
31214 #endif
31216 main ()
31218 hash_map<int,int> t;
31220 return 0;
31222 _ACEOF
31223 rm -f conftest.$ac_objext
31224 if { (ac_try="$ac_compile"
31225 case "(($ac_try" in
31226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227 *) ac_try_echo=$ac_try;;
31228 esac
31229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230 (eval "$ac_compile") 2>conftest.er1
31231 ac_status=$?
31232 grep -v '^ *+' conftest.er1 >conftest.err
31233 rm -f conftest.er1
31234 cat conftest.err >&5
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } &&
31237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31238 { (case "(($ac_try" in
31239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240 *) ac_try_echo=$ac_try;;
31241 esac
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243 (eval "$ac_try") 2>&5
31244 ac_status=$?
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); }; } &&
31247 { ac_try='test -s conftest.$ac_objext'
31248 { (case "(($ac_try" in
31249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250 *) ac_try_echo=$ac_try;;
31251 esac
31252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253 (eval "$ac_try") 2>&5
31254 ac_status=$?
31255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256 (exit $ac_status); }; }; then
31257 ac_cv_cxx_have_gnu_ext_hash_map=yes
31258 else
31259 echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31262 ac_cv_cxx_have_gnu_ext_hash_map=no
31265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31266 ac_ext=c
31267 ac_cpp='$CPP $CPPFLAGS'
31268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31273 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31274 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31275 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31276 then
31278 cat >>confdefs.h <<\_ACEOF
31279 #define HAVE_GNU_EXT_HASH_MAP 1
31280 _ACEOF
31282 else
31284 cat >>confdefs.h <<\_ACEOF
31285 #define HAVE_GNU_EXT_HASH_MAP 0
31286 _ACEOF
31290 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31291 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31292 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31293 echo $ECHO_N "(cached) $ECHO_C" >&6
31294 else
31296 ac_ext=cpp
31297 ac_cpp='$CXXCPP $CPPFLAGS'
31298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31302 cat >conftest.$ac_ext <<_ACEOF
31303 /* confdefs.h. */
31304 _ACEOF
31305 cat confdefs.h >>conftest.$ac_ext
31306 cat >>conftest.$ac_ext <<_ACEOF
31307 /* end confdefs.h. */
31308 #include <hash_map>
31310 main ()
31312 hash_map<int,int> t;
31314 return 0;
31316 _ACEOF
31317 rm -f conftest.$ac_objext
31318 if { (ac_try="$ac_compile"
31319 case "(($ac_try" in
31320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31321 *) ac_try_echo=$ac_try;;
31322 esac
31323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31324 (eval "$ac_compile") 2>conftest.er1
31325 ac_status=$?
31326 grep -v '^ *+' conftest.er1 >conftest.err
31327 rm -f conftest.er1
31328 cat conftest.err >&5
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } &&
31331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31332 { (case "(($ac_try" in
31333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31334 *) ac_try_echo=$ac_try;;
31335 esac
31336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31337 (eval "$ac_try") 2>&5
31338 ac_status=$?
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); }; } &&
31341 { ac_try='test -s conftest.$ac_objext'
31342 { (case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31345 esac
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_try") 2>&5
31348 ac_status=$?
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); }; }; then
31351 ac_cv_cxx_have_global_hash_map=yes
31352 else
31353 echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31356 ac_cv_cxx_have_global_hash_map=no
31359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31360 ac_ext=c
31361 ac_cpp='$CPP $CPPFLAGS'
31362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31367 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31368 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31369 if test "$ac_cv_cxx_have_global_hash_map" = yes
31370 then
31372 cat >>confdefs.h <<\_ACEOF
31373 #define HAVE_GLOBAL_HASH_MAP 1
31374 _ACEOF
31376 else
31378 cat >>confdefs.h <<\_ACEOF
31379 #define HAVE_GLOBAL_HASH_MAP 0
31380 _ACEOF
31384 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31385 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31386 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31387 echo $ECHO_N "(cached) $ECHO_C" >&6
31388 else
31390 ac_ext=cpp
31391 ac_cpp='$CXXCPP $CPPFLAGS'
31392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31396 cat >conftest.$ac_ext <<_ACEOF
31397 /* confdefs.h. */
31398 _ACEOF
31399 cat confdefs.h >>conftest.$ac_ext
31400 cat >>conftest.$ac_ext <<_ACEOF
31401 /* end confdefs.h. */
31402 #include <ext/hash_set>
31403 #ifdef HAVE_NAMESPACES
31404 using namespace std;
31405 #endif
31407 main ()
31409 hash_set<int> t;
31411 return 0;
31413 _ACEOF
31414 rm -f conftest.$ac_objext
31415 if { (ac_try="$ac_compile"
31416 case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_compile") 2>conftest.er1
31422 ac_status=$?
31423 grep -v '^ *+' conftest.er1 >conftest.err
31424 rm -f conftest.er1
31425 cat conftest.err >&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
31428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31432 esac
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest.$ac_objext'
31439 { (case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31442 esac
31443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444 (eval "$ac_try") 2>&5
31445 ac_status=$?
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; }; then
31448 ac_cv_cxx_have_std_ext_hash_set=yes
31449 else
31450 echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31453 ac_cv_cxx_have_std_ext_hash_set=no
31456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31457 ac_ext=c
31458 ac_cpp='$CPP $CPPFLAGS'
31459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31464 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31465 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31466 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31467 then
31469 cat >>confdefs.h <<\_ACEOF
31470 #define HAVE_STD_EXT_HASH_SET 1
31471 _ACEOF
31473 else
31475 cat >>confdefs.h <<\_ACEOF
31476 #define HAVE_STD_EXT_HASH_SET 0
31477 _ACEOF
31481 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31482 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31483 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31485 else
31487 ac_ext=cpp
31488 ac_cpp='$CXXCPP $CPPFLAGS'
31489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31493 cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h. */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 #include <ext/hash_set>
31500 #ifdef HAVE_NAMESPACES
31501 using namespace __gnu_cxx;
31502 #endif
31504 main ()
31506 hash_set<int> t;
31508 return 0;
31510 _ACEOF
31511 rm -f conftest.$ac_objext
31512 if { (ac_try="$ac_compile"
31513 case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_compile") 2>conftest.er1
31519 ac_status=$?
31520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
31525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529 esac
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest.$ac_objext'
31536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_cxx_have_gnu_ext_hash_set=yes
31546 else
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 ac_cv_cxx_have_gnu_ext_hash_set=no
31553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31554 ac_ext=c
31555 ac_cpp='$CPP $CPPFLAGS'
31556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31561 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31562 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31563 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31564 then
31566 cat >>confdefs.h <<\_ACEOF
31567 #define HAVE_GNU_EXT_HASH_SET 1
31568 _ACEOF
31570 else
31572 cat >>confdefs.h <<\_ACEOF
31573 #define HAVE_GNU_EXT_HASH_SET 0
31574 _ACEOF
31578 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31579 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31580 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31584 ac_ext=cpp
31585 ac_cpp='$CXXCPP $CPPFLAGS'
31586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31590 cat >conftest.$ac_ext <<_ACEOF
31591 /* confdefs.h. */
31592 _ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h. */
31596 #include <hash_set>
31598 main ()
31600 hash_set<int> t; return 0;
31602 return 0;
31604 _ACEOF
31605 rm -f conftest.$ac_objext
31606 if { (ac_try="$ac_compile"
31607 case "(($ac_try" in
31608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609 *) ac_try_echo=$ac_try;;
31610 esac
31611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612 (eval "$ac_compile") 2>conftest.er1
31613 ac_status=$?
31614 grep -v '^ *+' conftest.er1 >conftest.err
31615 rm -f conftest.er1
31616 cat conftest.err >&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
31619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31620 { (case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31623 esac
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_try") 2>&5
31626 ac_status=$?
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; } &&
31629 { ac_try='test -s conftest.$ac_objext'
31630 { (case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31633 esac
31634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_try") 2>&5
31636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
31639 ac_cv_cxx_have_global_hash_set=yes
31640 else
31641 echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31644 ac_cv_cxx_have_global_hash_set=no
31647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31648 ac_ext=c
31649 ac_cpp='$CPP $CPPFLAGS'
31650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31655 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31656 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31657 if test "$ac_cv_cxx_have_global_hash_set" = yes
31658 then
31660 cat >>confdefs.h <<\_ACEOF
31661 #define HAVE_GLOBAL_HASH_SET 1
31662 _ACEOF
31664 else
31666 cat >>confdefs.h <<\_ACEOF
31667 #define HAVE_GLOBAL_HASH_SET 0
31668 _ACEOF
31672 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31673 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31674 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31675 echo $ECHO_N "(cached) $ECHO_C" >&6
31676 else
31678 ac_ext=cpp
31679 ac_cpp='$CXXCPP $CPPFLAGS'
31680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31684 cat >conftest.$ac_ext <<_ACEOF
31685 /* confdefs.h. */
31686 _ACEOF
31687 cat confdefs.h >>conftest.$ac_ext
31688 cat >>conftest.$ac_ext <<_ACEOF
31689 /* end confdefs.h. */
31690 #include <iterator>
31691 #ifdef HAVE_NAMESPACES
31692 using namespace std;
31693 #endif
31695 main ()
31697 iterator<int,int,int> t; return 0;
31699 return 0;
31701 _ACEOF
31702 rm -f conftest.$ac_objext
31703 if { (ac_try="$ac_compile"
31704 case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31707 esac
31708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709 (eval "$ac_compile") 2>conftest.er1
31710 ac_status=$?
31711 grep -v '^ *+' conftest.er1 >conftest.err
31712 rm -f conftest.er1
31713 cat conftest.err >&5
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); } &&
31716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31717 { (case "(($ac_try" in
31718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719 *) ac_try_echo=$ac_try;;
31720 esac
31721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722 (eval "$ac_try") 2>&5
31723 ac_status=$?
31724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725 (exit $ac_status); }; } &&
31726 { ac_try='test -s conftest.$ac_objext'
31727 { (case "(($ac_try" in
31728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729 *) ac_try_echo=$ac_try;;
31730 esac
31731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732 (eval "$ac_try") 2>&5
31733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; }; then
31736 ac_cv_cxx_have_std_iterator=yes
31737 else
31738 echo "$as_me: failed program was:" >&5
31739 sed 's/^/| /' conftest.$ac_ext >&5
31741 ac_cv_cxx_have_std_iterator=no
31744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31745 ac_ext=c
31746 ac_cpp='$CPP $CPPFLAGS'
31747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31753 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31754 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
31755 if test "$ac_cv_cxx_have_std_iterator" = yes
31756 then
31758 cat >>confdefs.h <<\_ACEOF
31759 #define HAVE_STD_ITERATOR 1
31760 _ACEOF
31762 else
31764 cat >>confdefs.h <<\_ACEOF
31765 #define HAVE_STD_ITERATOR 0
31766 _ACEOF
31770 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31771 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
31772 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31773 echo $ECHO_N "(cached) $ECHO_C" >&6
31774 else
31776 ac_ext=cpp
31777 ac_cpp='$CXXCPP $CPPFLAGS'
31778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31782 cat >conftest.$ac_ext <<_ACEOF
31783 /* confdefs.h. */
31784 _ACEOF
31785 cat confdefs.h >>conftest.$ac_ext
31786 cat >>conftest.$ac_ext <<_ACEOF
31787 /* end confdefs.h. */
31788 #include <iterator>
31789 #ifdef HAVE_NAMESPACES
31790 using namespace std;
31791 #endif
31793 main ()
31795 bidirectional_iterator<int,int> t; return 0;
31797 return 0;
31799 _ACEOF
31800 rm -f conftest.$ac_objext
31801 if { (ac_try="$ac_compile"
31802 case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31805 esac
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_compile") 2>conftest.er1
31808 ac_status=$?
31809 grep -v '^ *+' conftest.er1 >conftest.err
31810 rm -f conftest.er1
31811 cat conftest.err >&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); } &&
31814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31818 esac
31819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
31821 ac_status=$?
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; } &&
31824 { ac_try='test -s conftest.$ac_objext'
31825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31828 esac
31829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
31831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
31834 ac_cv_cxx_have_bi_iterator=yes
31835 else
31836 echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31839 ac_cv_cxx_have_bi_iterator=no
31842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31843 ac_ext=c
31844 ac_cpp='$CPP $CPPFLAGS'
31845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31851 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31852 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
31853 if test "$ac_cv_cxx_have_bi_iterator" = yes
31854 then
31856 cat >>confdefs.h <<\_ACEOF
31857 #define HAVE_BI_ITERATOR 1
31858 _ACEOF
31860 else
31862 cat >>confdefs.h <<\_ACEOF
31863 #define HAVE_BI_ITERATOR 0
31864 _ACEOF
31868 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31869 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
31870 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31871 echo $ECHO_N "(cached) $ECHO_C" >&6
31872 else
31874 ac_ext=cpp
31875 ac_cpp='$CXXCPP $CPPFLAGS'
31876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31880 cat >conftest.$ac_ext <<_ACEOF
31881 /* confdefs.h. */
31882 _ACEOF
31883 cat confdefs.h >>conftest.$ac_ext
31884 cat >>conftest.$ac_ext <<_ACEOF
31885 /* end confdefs.h. */
31886 #include <iterator>
31887 #ifdef HAVE_NAMESPACES
31888 using namespace std;
31889 #endif
31891 main ()
31893 forward_iterator<int,int> t; return 0;
31895 return 0;
31897 _ACEOF
31898 rm -f conftest.$ac_objext
31899 if { (ac_try="$ac_compile"
31900 case "(($ac_try" in
31901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902 *) ac_try_echo=$ac_try;;
31903 esac
31904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905 (eval "$ac_compile") 2>conftest.er1
31906 ac_status=$?
31907 grep -v '^ *+' conftest.er1 >conftest.err
31908 rm -f conftest.er1
31909 cat conftest.err >&5
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); } &&
31912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31913 { (case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31916 esac
31917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_try") 2>&5
31919 ac_status=$?
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); }; } &&
31922 { ac_try='test -s conftest.$ac_objext'
31923 { (case "(($ac_try" in
31924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925 *) ac_try_echo=$ac_try;;
31926 esac
31927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928 (eval "$ac_try") 2>&5
31929 ac_status=$?
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; }; then
31932 ac_cv_cxx_have_fwd_iterator=yes
31933 else
31934 echo "$as_me: failed program was:" >&5
31935 sed 's/^/| /' conftest.$ac_ext >&5
31937 ac_cv_cxx_have_fwd_iterator=no
31940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31941 ac_ext=c
31942 ac_cpp='$CPP $CPPFLAGS'
31943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31950 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
31951 if test "$ac_cv_cxx_have_fwd_iterator" = yes
31952 then
31954 cat >>confdefs.h <<\_ACEOF
31955 #define HAVE_FWD_ITERATOR 1
31956 _ACEOF
31958 else
31960 cat >>confdefs.h <<\_ACEOF
31961 #define HAVE_FWD_ITERATOR 0
31962 _ACEOF
31967 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31968 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
31969 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31971 else
31972 ac_ext=cpp
31973 ac_cpp='$CXXCPP $CPPFLAGS'
31974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31978 cat >conftest.$ac_ext <<_ACEOF
31979 /* confdefs.h. */
31980 _ACEOF
31981 cat confdefs.h >>conftest.$ac_ext
31982 cat >>conftest.$ac_ext <<_ACEOF
31983 /* end confdefs.h. */
31984 #include <math.h>
31986 main ()
31988 float f; isnan(f);
31990 return 0;
31992 _ACEOF
31993 rm -f conftest.$ac_objext
31994 if { (ac_try="$ac_compile"
31995 case "(($ac_try" in
31996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31997 *) ac_try_echo=$ac_try;;
31998 esac
31999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32000 (eval "$ac_compile") 2>conftest.er1
32001 ac_status=$?
32002 grep -v '^ *+' conftest.er1 >conftest.err
32003 rm -f conftest.er1
32004 cat conftest.err >&5
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); } &&
32007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32008 { (case "(($ac_try" in
32009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32010 *) ac_try_echo=$ac_try;;
32011 esac
32012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32013 (eval "$ac_try") 2>&5
32014 ac_status=$?
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; } &&
32017 { ac_try='test -s conftest.$ac_objext'
32018 { (case "(($ac_try" in
32019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020 *) ac_try_echo=$ac_try;;
32021 esac
32022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023 (eval "$ac_try") 2>&5
32024 ac_status=$?
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); }; }; then
32027 ac_cv_func_isnan_in_math_h=yes
32028 else
32029 echo "$as_me: failed program was:" >&5
32030 sed 's/^/| /' conftest.$ac_ext >&5
32032 ac_cv_func_isnan_in_math_h=no
32035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32036 ac_ext=c
32037 ac_cpp='$CPP $CPPFLAGS'
32038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32043 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32044 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32047 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32049 cat >>confdefs.h <<\_ACEOF
32050 #define HAVE_ISNAN_IN_MATH_H 1
32051 _ACEOF
32055 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32056 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32057 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32058 echo $ECHO_N "(cached) $ECHO_C" >&6
32059 else
32060 ac_ext=cpp
32061 ac_cpp='$CXXCPP $CPPFLAGS'
32062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32066 cat >conftest.$ac_ext <<_ACEOF
32067 /* confdefs.h. */
32068 _ACEOF
32069 cat confdefs.h >>conftest.$ac_ext
32070 cat >>conftest.$ac_ext <<_ACEOF
32071 /* end confdefs.h. */
32072 #include <cmath>
32074 main ()
32076 float f; isnan(f);
32078 return 0;
32080 _ACEOF
32081 rm -f conftest.$ac_objext
32082 if { (ac_try="$ac_compile"
32083 case "(($ac_try" in
32084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085 *) ac_try_echo=$ac_try;;
32086 esac
32087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088 (eval "$ac_compile") 2>conftest.er1
32089 ac_status=$?
32090 grep -v '^ *+' conftest.er1 >conftest.err
32091 rm -f conftest.er1
32092 cat conftest.err >&5
32093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
32095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32096 { (case "(($ac_try" in
32097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32098 *) ac_try_echo=$ac_try;;
32099 esac
32100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32101 (eval "$ac_try") 2>&5
32102 ac_status=$?
32103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104 (exit $ac_status); }; } &&
32105 { ac_try='test -s conftest.$ac_objext'
32106 { (case "(($ac_try" in
32107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108 *) ac_try_echo=$ac_try;;
32109 esac
32110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32111 (eval "$ac_try") 2>&5
32112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; }; then
32115 ac_cv_func_isnan_in_cmath=yes
32116 else
32117 echo "$as_me: failed program was:" >&5
32118 sed 's/^/| /' conftest.$ac_ext >&5
32120 ac_cv_func_isnan_in_cmath=no
32123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32124 ac_ext=c
32125 ac_cpp='$CPP $CPPFLAGS'
32126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32131 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32132 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32134 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32136 cat >>confdefs.h <<\_ACEOF
32137 #define HAVE_ISNAN_IN_CMATH 1
32138 _ACEOF
32142 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32143 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32144 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32145 echo $ECHO_N "(cached) $ECHO_C" >&6
32146 else
32147 ac_ext=cpp
32148 ac_cpp='$CXXCPP $CPPFLAGS'
32149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32153 cat >conftest.$ac_ext <<_ACEOF
32154 /* confdefs.h. */
32155 _ACEOF
32156 cat confdefs.h >>conftest.$ac_ext
32157 cat >>conftest.$ac_ext <<_ACEOF
32158 /* end confdefs.h. */
32159 #include <cmath>
32161 main ()
32163 float f; std::isnan(f);
32165 return 0;
32167 _ACEOF
32168 rm -f conftest.$ac_objext
32169 if { (ac_try="$ac_compile"
32170 case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_compile") 2>conftest.er1
32176 ac_status=$?
32177 grep -v '^ *+' conftest.er1 >conftest.err
32178 rm -f conftest.er1
32179 cat conftest.err >&5
32180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } &&
32182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32183 { (case "(($ac_try" in
32184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185 *) ac_try_echo=$ac_try;;
32186 esac
32187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188 (eval "$ac_try") 2>&5
32189 ac_status=$?
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; } &&
32192 { ac_try='test -s conftest.$ac_objext'
32193 { (case "(($ac_try" in
32194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195 *) ac_try_echo=$ac_try;;
32196 esac
32197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198 (eval "$ac_try") 2>&5
32199 ac_status=$?
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); }; }; then
32202 ac_cv_func_std_isnan_in_cmath=yes
32203 else
32204 echo "$as_me: failed program was:" >&5
32205 sed 's/^/| /' conftest.$ac_ext >&5
32207 ac_cv_func_std_isnan_in_cmath=no
32210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32211 ac_ext=c
32212 ac_cpp='$CPP $CPPFLAGS'
32213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32218 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32219 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32221 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32223 cat >>confdefs.h <<\_ACEOF
32224 #define HAVE_STD_ISNAN_IN_CMATH 1
32225 _ACEOF
32230 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32231 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32232 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32233 echo $ECHO_N "(cached) $ECHO_C" >&6
32234 else
32235 ac_ext=cpp
32236 ac_cpp='$CXXCPP $CPPFLAGS'
32237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32241 cat >conftest.$ac_ext <<_ACEOF
32242 /* confdefs.h. */
32243 _ACEOF
32244 cat confdefs.h >>conftest.$ac_ext
32245 cat >>conftest.$ac_ext <<_ACEOF
32246 /* end confdefs.h. */
32247 #include <math.h>
32249 main ()
32251 float f; isinf(f);
32253 return 0;
32255 _ACEOF
32256 rm -f conftest.$ac_objext
32257 if { (ac_try="$ac_compile"
32258 case "(($ac_try" in
32259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260 *) ac_try_echo=$ac_try;;
32261 esac
32262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263 (eval "$ac_compile") 2>conftest.er1
32264 ac_status=$?
32265 grep -v '^ *+' conftest.er1 >conftest.err
32266 rm -f conftest.er1
32267 cat conftest.err >&5
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); } &&
32270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32271 { (case "(($ac_try" in
32272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32273 *) ac_try_echo=$ac_try;;
32274 esac
32275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32276 (eval "$ac_try") 2>&5
32277 ac_status=$?
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); }; } &&
32280 { ac_try='test -s conftest.$ac_objext'
32281 { (case "(($ac_try" in
32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32284 esac
32285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_try") 2>&5
32287 ac_status=$?
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); }; }; then
32290 ac_cv_func_isinf_in_math_h=yes
32291 else
32292 echo "$as_me: failed program was:" >&5
32293 sed 's/^/| /' conftest.$ac_ext >&5
32295 ac_cv_func_isinf_in_math_h=no
32298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32299 ac_ext=c
32300 ac_cpp='$CPP $CPPFLAGS'
32301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32306 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32307 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32309 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32311 cat >>confdefs.h <<\_ACEOF
32312 #define HAVE_ISINF_IN_MATH_H 1
32313 _ACEOF
32317 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32318 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32319 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321 else
32322 ac_ext=cpp
32323 ac_cpp='$CXXCPP $CPPFLAGS'
32324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32328 cat >conftest.$ac_ext <<_ACEOF
32329 /* confdefs.h. */
32330 _ACEOF
32331 cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h. */
32334 #include <cmath>
32336 main ()
32338 float f; isinf(f);
32340 return 0;
32342 _ACEOF
32343 rm -f conftest.$ac_objext
32344 if { (ac_try="$ac_compile"
32345 case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348 esac
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_compile") 2>conftest.er1
32351 ac_status=$?
32352 grep -v '^ *+' conftest.er1 >conftest.err
32353 rm -f conftest.er1
32354 cat conftest.err >&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } &&
32357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32358 { (case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32361 esac
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest.$ac_objext'
32368 { (case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32371 esac
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_try") 2>&5
32374 ac_status=$?
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
32377 ac_cv_func_isinf_in_cmath=yes
32378 else
32379 echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32382 ac_cv_func_isinf_in_cmath=no
32385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32386 ac_ext=c
32387 ac_cpp='$CPP $CPPFLAGS'
32388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32393 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32394 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32396 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32398 cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_ISINF_IN_CMATH 1
32400 _ACEOF
32404 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32405 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32406 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32408 else
32409 ac_ext=cpp
32410 ac_cpp='$CXXCPP $CPPFLAGS'
32411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32415 cat >conftest.$ac_ext <<_ACEOF
32416 /* confdefs.h. */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32421 #include <cmath>
32423 main ()
32425 float f; std::isinf(f)}
32427 return 0;
32429 _ACEOF
32430 rm -f conftest.$ac_objext
32431 if { (ac_try="$ac_compile"
32432 case "(($ac_try" in
32433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32435 esac
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_compile") 2>conftest.er1
32438 ac_status=$?
32439 grep -v '^ *+' conftest.er1 >conftest.err
32440 rm -f conftest.er1
32441 cat conftest.err >&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } &&
32444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32445 { (case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32448 esac
32449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_try") 2>&5
32451 ac_status=$?
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); }; } &&
32454 { ac_try='test -s conftest.$ac_objext'
32455 { (case "(($ac_try" in
32456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457 *) ac_try_echo=$ac_try;;
32458 esac
32459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460 (eval "$ac_try") 2>&5
32461 ac_status=$?
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
32464 ac_cv_func_std_isinf_in_cmath=yes
32465 else
32466 echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32469 ac_cv_func_std_isinf_in_cmath=no
32472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32473 ac_ext=c
32474 ac_cpp='$CPP $CPPFLAGS'
32475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32480 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32481 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32483 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32485 cat >>confdefs.h <<\_ACEOF
32486 #define HAVE_STD_ISINF_IN_CMATH 1
32487 _ACEOF
32491 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32492 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32493 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32494 echo $ECHO_N "(cached) $ECHO_C" >&6
32495 else
32496 ac_ext=cpp
32497 ac_cpp='$CXXCPP $CPPFLAGS'
32498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32502 cat >conftest.$ac_ext <<_ACEOF
32503 /* confdefs.h. */
32504 _ACEOF
32505 cat confdefs.h >>conftest.$ac_ext
32506 cat >>conftest.$ac_ext <<_ACEOF
32507 /* end confdefs.h. */
32508 #include <ieeefp.h>
32510 main ()
32512 float f; finite(f);
32514 return 0;
32516 _ACEOF
32517 rm -f conftest.$ac_objext
32518 if { (ac_try="$ac_compile"
32519 case "(($ac_try" in
32520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521 *) ac_try_echo=$ac_try;;
32522 esac
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524 (eval "$ac_compile") 2>conftest.er1
32525 ac_status=$?
32526 grep -v '^ *+' conftest.er1 >conftest.err
32527 rm -f conftest.er1
32528 cat conftest.err >&5
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); } &&
32531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32532 { (case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32535 esac
32536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_try") 2>&5
32538 ac_status=$?
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; } &&
32541 { ac_try='test -s conftest.$ac_objext'
32542 { (case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32545 esac
32546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_try") 2>&5
32548 ac_status=$?
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; }; then
32551 ac_cv_func_finite_in_ieeefp_h=yes
32552 else
32553 echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32556 ac_cv_func_finite_in_ieeefp_h=no
32559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32560 ac_ext=c
32561 ac_cpp='$CPP $CPPFLAGS'
32562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32567 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32568 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32570 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32572 cat >>confdefs.h <<\_ACEOF
32573 #define HAVE_FINITE_IN_IEEEFP_H 1
32574 _ACEOF
32582 for ac_header in stdlib.h unistd.h
32584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32589 echo $ECHO_N "(cached) $ECHO_C" >&6
32591 ac_res=`eval echo '${'$as_ac_Header'}'`
32592 { echo "$as_me:$LINENO: result: $ac_res" >&5
32593 echo "${ECHO_T}$ac_res" >&6; }
32594 else
32595 # Is the header compilable?
32596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32598 cat >conftest.$ac_ext <<_ACEOF
32599 /* confdefs.h. */
32600 _ACEOF
32601 cat confdefs.h >>conftest.$ac_ext
32602 cat >>conftest.$ac_ext <<_ACEOF
32603 /* end confdefs.h. */
32604 $ac_includes_default
32605 #include <$ac_header>
32606 _ACEOF
32607 rm -f conftest.$ac_objext
32608 if { (ac_try="$ac_compile"
32609 case "(($ac_try" in
32610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611 *) ac_try_echo=$ac_try;;
32612 esac
32613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32614 (eval "$ac_compile") 2>conftest.er1
32615 ac_status=$?
32616 grep -v '^ *+' conftest.er1 >conftest.err
32617 rm -f conftest.er1
32618 cat conftest.err >&5
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); } &&
32621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32622 { (case "(($ac_try" in
32623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32624 *) ac_try_echo=$ac_try;;
32625 esac
32626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32627 (eval "$ac_try") 2>&5
32628 ac_status=$?
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); }; } &&
32631 { ac_try='test -s conftest.$ac_objext'
32632 { (case "(($ac_try" in
32633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634 *) ac_try_echo=$ac_try;;
32635 esac
32636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637 (eval "$ac_try") 2>&5
32638 ac_status=$?
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; }; then
32641 ac_header_compiler=yes
32642 else
32643 echo "$as_me: failed program was:" >&5
32644 sed 's/^/| /' conftest.$ac_ext >&5
32646 ac_header_compiler=no
32649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32651 echo "${ECHO_T}$ac_header_compiler" >&6; }
32653 # Is the header present?
32654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32656 cat >conftest.$ac_ext <<_ACEOF
32657 /* confdefs.h. */
32658 _ACEOF
32659 cat confdefs.h >>conftest.$ac_ext
32660 cat >>conftest.$ac_ext <<_ACEOF
32661 /* end confdefs.h. */
32662 #include <$ac_header>
32663 _ACEOF
32664 if { (ac_try="$ac_cpp conftest.$ac_ext"
32665 case "(($ac_try" in
32666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32667 *) ac_try_echo=$ac_try;;
32668 esac
32669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32671 ac_status=$?
32672 grep -v '^ *+' conftest.er1 >conftest.err
32673 rm -f conftest.er1
32674 cat conftest.err >&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); } >/dev/null; then
32677 if test -s conftest.err; then
32678 ac_cpp_err=$ac_c_preproc_warn_flag
32679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32680 else
32681 ac_cpp_err=
32683 else
32684 ac_cpp_err=yes
32686 if test -z "$ac_cpp_err"; then
32687 ac_header_preproc=yes
32688 else
32689 echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32692 ac_header_preproc=no
32695 rm -f conftest.err conftest.$ac_ext
32696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32697 echo "${ECHO_T}$ac_header_preproc" >&6; }
32699 # So? What about this header?
32700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32701 yes:no: )
32702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32706 ac_header_preproc=yes
32708 no:yes:* )
32709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32721 ( cat <<\_ASBOX
32722 ## ----------------------------------- ##
32723 ## Report this to llvmbugs@cs.uiuc.edu ##
32724 ## ----------------------------------- ##
32725 _ASBOX
32726 ) | sed "s/^/$as_me: WARNING: /" >&2
32728 esac
32729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32732 echo $ECHO_N "(cached) $ECHO_C" >&6
32733 else
32734 eval "$as_ac_Header=\$ac_header_preproc"
32736 ac_res=`eval echo '${'$as_ac_Header'}'`
32737 { echo "$as_me:$LINENO: result: $ac_res" >&5
32738 echo "${ECHO_T}$ac_res" >&6; }
32741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32742 cat >>confdefs.h <<_ACEOF
32743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32744 _ACEOF
32748 done
32751 for ac_func in getpagesize
32753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32757 echo $ECHO_N "(cached) $ECHO_C" >&6
32758 else
32759 cat >conftest.$ac_ext <<_ACEOF
32760 /* confdefs.h. */
32761 _ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h. */
32765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32767 #define $ac_func innocuous_$ac_func
32769 /* System header to define __stub macros and hopefully few prototypes,
32770 which can conflict with char $ac_func (); below.
32771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32772 <limits.h> exists even on freestanding compilers. */
32774 #ifdef __STDC__
32775 # include <limits.h>
32776 #else
32777 # include <assert.h>
32778 #endif
32780 #undef $ac_func
32782 /* Override any GCC internal prototype to avoid an error.
32783 Use char because int might match the return type of a GCC
32784 builtin and then its argument prototype would still apply. */
32785 #ifdef __cplusplus
32786 extern "C"
32787 #endif
32788 char $ac_func ();
32789 /* The GNU C library defines this for functions which it implements
32790 to always fail with ENOSYS. Some functions are actually named
32791 something starting with __ and the normal name is an alias. */
32792 #if defined __stub_$ac_func || defined __stub___$ac_func
32793 choke me
32794 #endif
32797 main ()
32799 return $ac_func ();
32801 return 0;
32803 _ACEOF
32804 rm -f conftest.$ac_objext conftest$ac_exeext
32805 if { (ac_try="$ac_link"
32806 case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32809 esac
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_link") 2>conftest.er1
32812 ac_status=$?
32813 grep -v '^ *+' conftest.er1 >conftest.err
32814 rm -f conftest.er1
32815 cat conftest.err >&5
32816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); } &&
32818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32822 esac
32823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
32825 ac_status=$?
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest$ac_exeext'
32829 { (case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32832 esac
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_try") 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
32838 eval "$as_ac_var=yes"
32839 else
32840 echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32843 eval "$as_ac_var=no"
32846 rm -f core conftest.err conftest.$ac_objext \
32847 conftest$ac_exeext conftest.$ac_ext
32849 ac_res=`eval echo '${'$as_ac_var'}'`
32850 { echo "$as_me:$LINENO: result: $ac_res" >&5
32851 echo "${ECHO_T}$ac_res" >&6; }
32852 if test `eval echo '${'$as_ac_var'}'` = yes; then
32853 cat >>confdefs.h <<_ACEOF
32854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32855 _ACEOF
32858 done
32860 { echo "$as_me:$LINENO: checking for working mmap" >&5
32861 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
32862 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32863 echo $ECHO_N "(cached) $ECHO_C" >&6
32864 else
32865 if test "$cross_compiling" = yes; then
32866 ac_cv_func_mmap_fixed_mapped=no
32867 else
32868 cat >conftest.$ac_ext <<_ACEOF
32869 /* confdefs.h. */
32870 _ACEOF
32871 cat confdefs.h >>conftest.$ac_ext
32872 cat >>conftest.$ac_ext <<_ACEOF
32873 /* end confdefs.h. */
32874 $ac_includes_default
32875 /* malloc might have been renamed as rpl_malloc. */
32876 #undef malloc
32878 /* Thanks to Mike Haertel and Jim Avera for this test.
32879 Here is a matrix of mmap possibilities:
32880 mmap private not fixed
32881 mmap private fixed at somewhere currently unmapped
32882 mmap private fixed at somewhere already mapped
32883 mmap shared not fixed
32884 mmap shared fixed at somewhere currently unmapped
32885 mmap shared fixed at somewhere already mapped
32886 For private mappings, we should verify that changes cannot be read()
32887 back from the file, nor mmap's back from the file at a different
32888 address. (There have been systems where private was not correctly
32889 implemented like the infamous i386 svr4.0, and systems where the
32890 VM page cache was not coherent with the file system buffer cache
32891 like early versions of FreeBSD and possibly contemporary NetBSD.)
32892 For shared mappings, we should conversely verify that changes get
32893 propagated back to all the places they're supposed to be.
32895 Grep wants private fixed already mapped.
32896 The main things grep needs to know about mmap are:
32897 * does it exist and is it safe to write into the mmap'd area
32898 * how to use it (BSD variants) */
32900 #include <fcntl.h>
32901 #include <sys/mman.h>
32903 #if !STDC_HEADERS && !HAVE_STDLIB_H
32904 char *malloc ();
32905 #endif
32907 /* This mess was copied from the GNU getpagesize.h. */
32908 #if !HAVE_GETPAGESIZE
32909 /* Assume that all systems that can run configure have sys/param.h. */
32910 # if !HAVE_SYS_PARAM_H
32911 # define HAVE_SYS_PARAM_H 1
32912 # endif
32914 # ifdef _SC_PAGESIZE
32915 # define getpagesize() sysconf(_SC_PAGESIZE)
32916 # else /* no _SC_PAGESIZE */
32917 # if HAVE_SYS_PARAM_H
32918 # include <sys/param.h>
32919 # ifdef EXEC_PAGESIZE
32920 # define getpagesize() EXEC_PAGESIZE
32921 # else /* no EXEC_PAGESIZE */
32922 # ifdef NBPG
32923 # define getpagesize() NBPG * CLSIZE
32924 # ifndef CLSIZE
32925 # define CLSIZE 1
32926 # endif /* no CLSIZE */
32927 # else /* no NBPG */
32928 # ifdef NBPC
32929 # define getpagesize() NBPC
32930 # else /* no NBPC */
32931 # ifdef PAGESIZE
32932 # define getpagesize() PAGESIZE
32933 # endif /* PAGESIZE */
32934 # endif /* no NBPC */
32935 # endif /* no NBPG */
32936 # endif /* no EXEC_PAGESIZE */
32937 # else /* no HAVE_SYS_PARAM_H */
32938 # define getpagesize() 8192 /* punt totally */
32939 # endif /* no HAVE_SYS_PARAM_H */
32940 # endif /* no _SC_PAGESIZE */
32942 #endif /* no HAVE_GETPAGESIZE */
32945 main ()
32947 char *data, *data2, *data3;
32948 int i, pagesize;
32949 int fd;
32951 pagesize = getpagesize ();
32953 /* First, make a file with some known garbage in it. */
32954 data = (char *) malloc (pagesize);
32955 if (!data)
32956 return 1;
32957 for (i = 0; i < pagesize; ++i)
32958 *(data + i) = rand ();
32959 umask (0);
32960 fd = creat ("conftest.mmap", 0600);
32961 if (fd < 0)
32962 return 1;
32963 if (write (fd, data, pagesize) != pagesize)
32964 return 1;
32965 close (fd);
32967 /* Next, try to mmap the file at a fixed address which already has
32968 something else allocated at it. If we can, also make sure that
32969 we see the same garbage. */
32970 fd = open ("conftest.mmap", O_RDWR);
32971 if (fd < 0)
32972 return 1;
32973 data2 = (char *) malloc (2 * pagesize);
32974 if (!data2)
32975 return 1;
32976 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
32977 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
32978 MAP_PRIVATE | MAP_FIXED, fd, 0L))
32979 return 1;
32980 for (i = 0; i < pagesize; ++i)
32981 if (*(data + i) != *(data2 + i))
32982 return 1;
32984 /* Finally, make sure that changes to the mapped area do not
32985 percolate back to the file as seen by read(). (This is a bug on
32986 some variants of i386 svr4.0.) */
32987 for (i = 0; i < pagesize; ++i)
32988 *(data2 + i) = *(data2 + i) + 1;
32989 data3 = (char *) malloc (pagesize);
32990 if (!data3)
32991 return 1;
32992 if (read (fd, data3, pagesize) != pagesize)
32993 return 1;
32994 for (i = 0; i < pagesize; ++i)
32995 if (*(data + i) != *(data3 + i))
32996 return 1;
32997 close (fd);
32998 return 0;
33000 _ACEOF
33001 rm -f conftest$ac_exeext
33002 if { (ac_try="$ac_link"
33003 case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_link") 2>&5
33009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33012 { (case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_try") 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33021 ac_cv_func_mmap_fixed_mapped=yes
33022 else
33023 echo "$as_me: program exited with status $ac_status" >&5
33024 echo "$as_me: failed program was:" >&5
33025 sed 's/^/| /' conftest.$ac_ext >&5
33027 ( exit $ac_status )
33028 ac_cv_func_mmap_fixed_mapped=no
33030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33035 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33036 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33037 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33039 cat >>confdefs.h <<\_ACEOF
33040 #define HAVE_MMAP 1
33041 _ACEOF
33044 rm -f conftest.mmap
33046 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33047 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33048 if test "${ac_cv_func_mmap_file+set}" = set; then
33049 echo $ECHO_N "(cached) $ECHO_C" >&6
33050 else
33051 ac_ext=c
33052 ac_cpp='$CPP $CPPFLAGS'
33053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33057 if test "$cross_compiling" = yes; then
33058 ac_cv_func_mmap_file=no
33059 else
33060 cat >conftest.$ac_ext <<_ACEOF
33062 /* confdefs.h. */
33063 _ACEOF
33064 cat confdefs.h >>conftest.$ac_ext
33065 cat >>conftest.$ac_ext <<_ACEOF
33066 /* end confdefs.h. */
33068 #include <sys/types.h>
33069 #include <sys/mman.h>
33070 #include <fcntl.h>
33073 main ()
33076 int fd;
33077 fd = creat ("foo",0777);
33078 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33079 unlink ("foo");
33080 return (fd != (int) MAP_FAILED);
33082 return 0;
33084 _ACEOF
33085 rm -f conftest$ac_exeext
33086 if { (ac_try="$ac_link"
33087 case "(($ac_try" in
33088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089 *) ac_try_echo=$ac_try;;
33090 esac
33091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092 (eval "$ac_link") 2>&5
33093 ac_status=$?
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33096 { (case "(($ac_try" in
33097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33098 *) ac_try_echo=$ac_try;;
33099 esac
33100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101 (eval "$ac_try") 2>&5
33102 ac_status=$?
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; }; then
33105 ac_cv_func_mmap_file=yes
33106 else
33107 echo "$as_me: program exited with status $ac_status" >&5
33108 echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33111 ( exit $ac_status )
33112 ac_cv_func_mmap_file=no
33114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33118 ac_ext=c
33119 ac_cpp='$CPP $CPPFLAGS'
33120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33126 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33127 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33128 if test "$ac_cv_func_mmap_file" = yes; then
33130 cat >>confdefs.h <<\_ACEOF
33131 #define HAVE_MMAP_FILE
33132 _ACEOF
33134 MMAP_FILE=yes
33138 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33139 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33140 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33141 echo $ECHO_N "(cached) $ECHO_C" >&6
33142 else
33143 if test "$llvm_cv_os_type" = "Interix" ; then
33144 ac_cv_need_dev_zero_for_mmap=yes
33145 else
33146 ac_cv_need_dev_zero_for_mmap=no
33150 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33151 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33152 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33154 cat >>confdefs.h <<\_ACEOF
33155 #define NEED_DEV_ZERO_FOR_MMAP 1
33156 _ACEOF
33159 { echo "$as_me:$LINENO: checking for mprotect" >&5
33160 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
33161 if test "${ac_cv_func_mprotect+set}" = set; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33163 else
33164 cat >conftest.$ac_ext <<_ACEOF
33165 /* confdefs.h. */
33166 _ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h. */
33170 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33172 #define mprotect innocuous_mprotect
33174 /* System header to define __stub macros and hopefully few prototypes,
33175 which can conflict with char mprotect (); below.
33176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33177 <limits.h> exists even on freestanding compilers. */
33179 #ifdef __STDC__
33180 # include <limits.h>
33181 #else
33182 # include <assert.h>
33183 #endif
33185 #undef mprotect
33187 /* Override any GCC internal prototype to avoid an error.
33188 Use char because int might match the return type of a GCC
33189 builtin and then its argument prototype would still apply. */
33190 #ifdef __cplusplus
33191 extern "C"
33192 #endif
33193 char mprotect ();
33194 /* The GNU C library defines this for functions which it implements
33195 to always fail with ENOSYS. Some functions are actually named
33196 something starting with __ and the normal name is an alias. */
33197 #if defined __stub_mprotect || defined __stub___mprotect
33198 choke me
33199 #endif
33202 main ()
33204 return mprotect ();
33206 return 0;
33208 _ACEOF
33209 rm -f conftest.$ac_objext conftest$ac_exeext
33210 if { (ac_try="$ac_link"
33211 case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33214 esac
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_link") 2>conftest.er1
33217 ac_status=$?
33218 grep -v '^ *+' conftest.er1 >conftest.err
33219 rm -f conftest.er1
33220 cat conftest.err >&5
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } &&
33223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33224 { (case "(($ac_try" in
33225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226 *) ac_try_echo=$ac_try;;
33227 esac
33228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229 (eval "$ac_try") 2>&5
33230 ac_status=$?
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); }; } &&
33233 { ac_try='test -s conftest$ac_exeext'
33234 { (case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33237 esac
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_try") 2>&5
33240 ac_status=$?
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; }; then
33243 ac_cv_func_mprotect=yes
33244 else
33245 echo "$as_me: failed program was:" >&5
33246 sed 's/^/| /' conftest.$ac_ext >&5
33248 ac_cv_func_mprotect=no
33251 rm -f core conftest.err conftest.$ac_objext \
33252 conftest$ac_exeext conftest.$ac_ext
33254 { echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33255 echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
33256 if test $ac_cv_func_mprotect = yes; then
33258 else
33259 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33260 echo "$as_me: error: Function mprotect() required but not found" >&2;}
33261 { (exit 1); exit 1; }; }
33265 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33266 then
33267 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33268 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33270 if test "$ac_cv_func_mmap_file" = "no"
33271 then
33272 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33273 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33277 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33278 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33279 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33280 echo $ECHO_N "(cached) $ECHO_C" >&6
33281 else
33282 llvm_cv_llvmgcc_sanity="no"
33283 if test -x "$LLVMGCC" ; then
33284 cp /dev/null conftest.c
33285 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
33286 if test $? -eq 0 ; then
33287 llvm_cv_llvmgcc_sanity="yes"
33289 rm conftest.c
33292 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33293 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33295 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33296 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33297 LLVMCC1=$llvmcc1path
33299 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33300 LLVMCC1PLUS=$llvmcc1pluspath
33302 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33303 LLVMGCCDIR=$llvmgccdir
33305 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33306 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33307 LLVMGCC_VERSION=$llvmgccversion
33309 LLVMGCC_MAJVERS=$llvmgccmajvers
33313 SHLIBEXT=$libltdl_cv_shlibext
33316 # Translate the various configuration directories and other basic
33317 # information into substitutions that will end up in Makefile.config.in
33318 # that these configured values can be used by the makefiles
33319 if test "${prefix}" == "NONE" ; then
33320 prefix="/usr/local"
33322 eval LLVM_PREFIX="${prefix}";
33323 eval LLVM_BINDIR="${prefix}/bin";
33324 eval LLVM_LIBDIR="${prefix}/lib";
33325 eval LLVM_DATADIR="${prefix}/share/llvm";
33326 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33327 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33328 eval LLVM_INCLUDEDIR="${prefix}/include";
33329 eval LLVM_INFODIR="${prefix}/info";
33330 eval LLVM_MANDIR="${prefix}/man";
33331 LLVM_CONFIGTIME=`date`
33343 # Place the various directores into the config.h file as #defines so that we
33344 # can know about the installation paths within LLVM.
33346 cat >>confdefs.h <<_ACEOF
33347 #define LLVM_PREFIX "$LLVM_PREFIX"
33348 _ACEOF
33351 cat >>confdefs.h <<_ACEOF
33352 #define LLVM_BINDIR "$LLVM_BINDIR"
33353 _ACEOF
33356 cat >>confdefs.h <<_ACEOF
33357 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33358 _ACEOF
33361 cat >>confdefs.h <<_ACEOF
33362 #define LLVM_DATADIR "$LLVM_DATADIR"
33363 _ACEOF
33366 cat >>confdefs.h <<_ACEOF
33367 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33368 _ACEOF
33371 cat >>confdefs.h <<_ACEOF
33372 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33373 _ACEOF
33376 cat >>confdefs.h <<_ACEOF
33377 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33378 _ACEOF
33381 cat >>confdefs.h <<_ACEOF
33382 #define LLVM_INFODIR "$LLVM_INFODIR"
33383 _ACEOF
33386 cat >>confdefs.h <<_ACEOF
33387 #define LLVM_MANDIR "$LLVM_MANDIR"
33388 _ACEOF
33391 cat >>confdefs.h <<_ACEOF
33392 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33393 _ACEOF
33397 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33399 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33401 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33403 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33405 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33408 ac_config_files="$ac_config_files Makefile.config"
33411 ac_config_files="$ac_config_files llvm.spec"
33414 ac_config_files="$ac_config_files docs/doxygen.cfg"
33417 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33420 ac_config_commands="$ac_config_commands setup"
33422 ac_config_commands="$ac_config_commands Makefile"
33425 ac_config_commands="$ac_config_commands Makefile.common"
33428 ac_config_commands="$ac_config_commands examples/Makefile"
33431 ac_config_commands="$ac_config_commands lib/Makefile"
33434 ac_config_commands="$ac_config_commands runtime/Makefile"
33437 ac_config_commands="$ac_config_commands test/Makefile"
33440 ac_config_commands="$ac_config_commands test/Makefile.tests"
33443 ac_config_commands="$ac_config_commands tools/Makefile"
33446 ac_config_commands="$ac_config_commands utils/Makefile"
33449 ac_config_commands="$ac_config_commands projects/Makefile"
33453 cat >confcache <<\_ACEOF
33454 # This file is a shell script that caches the results of configure
33455 # tests run on this system so they can be shared between configure
33456 # scripts and configure runs, see configure's option --config-cache.
33457 # It is not useful on other systems. If it contains results you don't
33458 # want to keep, you may remove or edit it.
33460 # config.status only pays attention to the cache file if you give it
33461 # the --recheck option to rerun configure.
33463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33465 # following values.
33467 _ACEOF
33469 # The following way of writing the cache mishandles newlines in values,
33470 # but we know of no workaround that is simple, portable, and efficient.
33471 # So, we kill variables containing newlines.
33472 # Ultrix sh set writes to stderr and can't be redirected directly,
33473 # and sets the high bit in the cache file unless we assign to the vars.
33475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33476 eval ac_val=\$$ac_var
33477 case $ac_val in #(
33478 *${as_nl}*)
33479 case $ac_var in #(
33480 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33481 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33482 esac
33483 case $ac_var in #(
33484 _ | IFS | as_nl) ;; #(
33485 *) $as_unset $ac_var ;;
33486 esac ;;
33487 esac
33488 done
33490 (set) 2>&1 |
33491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33492 *${as_nl}ac_space=\ *)
33493 # `set' does not quote correctly, so add quotes (double-quote
33494 # substitution turns \\\\ into \\, and sed turns \\ into \).
33495 sed -n \
33496 "s/'/'\\\\''/g;
33497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33498 ;; #(
33500 # `set' quotes correctly as required by POSIX, so do not add quotes.
33501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33503 esac |
33504 sort
33506 sed '
33507 /^ac_cv_env_/b end
33508 t clear
33509 :clear
33510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33511 t end
33512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33513 :end' >>confcache
33514 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33515 if test -w "$cache_file"; then
33516 test "x$cache_file" != "x/dev/null" &&
33517 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33518 echo "$as_me: updating cache $cache_file" >&6;}
33519 cat confcache >$cache_file
33520 else
33521 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33522 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33525 rm -f confcache
33527 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33528 # Let make expand exec_prefix.
33529 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33531 DEFS=-DHAVE_CONFIG_H
33533 ac_libobjs=
33534 ac_ltlibobjs=
33535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33536 # 1. Remove the extension, and $U if already installed.
33537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33538 ac_i=`echo "$ac_i" | sed "$ac_script"`
33539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33540 # will be set to the directory where LIBOBJS objects are built.
33541 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33542 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33543 done
33544 LIBOBJS=$ac_libobjs
33546 LTLIBOBJS=$ac_ltlibobjs
33549 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33550 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33551 Usually this means the macro was only invoked conditionally." >&5
33552 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33553 Usually this means the macro was only invoked conditionally." >&2;}
33554 { (exit 1); exit 1; }; }
33556 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33557 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33558 Usually this means the macro was only invoked conditionally." >&5
33559 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33560 Usually this means the macro was only invoked conditionally." >&2;}
33561 { (exit 1); exit 1; }; }
33564 : ${CONFIG_STATUS=./config.status}
33565 ac_clean_files_save=$ac_clean_files
33566 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33567 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33568 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33569 cat >$CONFIG_STATUS <<_ACEOF
33570 #! $SHELL
33571 # Generated by $as_me.
33572 # Run this file to recreate the current configuration.
33573 # Compiler output produced by configure, useful for debugging
33574 # configure, is in config.log if it exists.
33576 debug=false
33577 ac_cs_recheck=false
33578 ac_cs_silent=false
33579 SHELL=\${CONFIG_SHELL-$SHELL}
33580 _ACEOF
33582 cat >>$CONFIG_STATUS <<\_ACEOF
33583 ## --------------------- ##
33584 ## M4sh Initialization. ##
33585 ## --------------------- ##
33587 # Be Bourne compatible
33588 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33589 emulate sh
33590 NULLCMD=:
33591 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33592 # is contrary to our usage. Disable this feature.
33593 alias -g '${1+"$@"}'='"$@"'
33594 setopt NO_GLOB_SUBST
33595 else
33596 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33598 BIN_SH=xpg4; export BIN_SH # for Tru64
33599 DUALCASE=1; export DUALCASE # for MKS sh
33602 # PATH needs CR
33603 # Avoid depending upon Character Ranges.
33604 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33605 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33606 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33607 as_cr_digits='0123456789'
33608 as_cr_alnum=$as_cr_Letters$as_cr_digits
33610 # The user is always right.
33611 if test "${PATH_SEPARATOR+set}" != set; then
33612 echo "#! /bin/sh" >conf$$.sh
33613 echo "exit 0" >>conf$$.sh
33614 chmod +x conf$$.sh
33615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33616 PATH_SEPARATOR=';'
33617 else
33618 PATH_SEPARATOR=:
33620 rm -f conf$$.sh
33623 # Support unset when possible.
33624 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33625 as_unset=unset
33626 else
33627 as_unset=false
33631 # IFS
33632 # We need space, tab and new line, in precisely that order. Quoting is
33633 # there to prevent editors from complaining about space-tab.
33634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33635 # splitting by setting IFS to empty value.)
33636 as_nl='
33638 IFS=" "" $as_nl"
33640 # Find who we are. Look in the path if we contain no directory separator.
33641 case $0 in
33642 *[\\/]* ) as_myself=$0 ;;
33643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33644 for as_dir in $PATH
33646 IFS=$as_save_IFS
33647 test -z "$as_dir" && as_dir=.
33648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33649 done
33650 IFS=$as_save_IFS
33653 esac
33654 # We did not find ourselves, most probably we were run as `sh COMMAND'
33655 # in which case we are not to be found in the path.
33656 if test "x$as_myself" = x; then
33657 as_myself=$0
33659 if test ! -f "$as_myself"; then
33660 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33661 { (exit 1); exit 1; }
33664 # Work around bugs in pre-3.0 UWIN ksh.
33665 for as_var in ENV MAIL MAILPATH
33666 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33667 done
33668 PS1='$ '
33669 PS2='> '
33670 PS4='+ '
33672 # NLS nuisances.
33673 for as_var in \
33674 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33675 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33676 LC_TELEPHONE LC_TIME
33678 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33679 eval $as_var=C; export $as_var
33680 else
33681 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33683 done
33685 # Required to use basename.
33686 if expr a : '\(a\)' >/dev/null 2>&1 &&
33687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33688 as_expr=expr
33689 else
33690 as_expr=false
33693 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33694 as_basename=basename
33695 else
33696 as_basename=false
33700 # Name of the executable.
33701 as_me=`$as_basename -- "$0" ||
33702 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33703 X"$0" : 'X\(//\)$' \| \
33704 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33705 echo X/"$0" |
33706 sed '/^.*\/\([^/][^/]*\)\/*$/{
33707 s//\1/
33710 /^X\/\(\/\/\)$/{
33711 s//\1/
33714 /^X\/\(\/\).*/{
33715 s//\1/
33718 s/.*/./; q'`
33720 # CDPATH.
33721 $as_unset CDPATH
33725 as_lineno_1=$LINENO
33726 as_lineno_2=$LINENO
33727 test "x$as_lineno_1" != "x$as_lineno_2" &&
33728 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33730 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33731 # uniformly replaced by the line number. The first 'sed' inserts a
33732 # line-number line after each line using $LINENO; the second 'sed'
33733 # does the real work. The second script uses 'N' to pair each
33734 # line-number line with the line containing $LINENO, and appends
33735 # trailing '-' during substitution so that $LINENO is not a special
33736 # case at line end.
33737 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33738 # scripts with optimization help from Paolo Bonzini. Blame Lee
33739 # E. McMahon (1931-1989) for sed's syntax. :-)
33740 sed -n '
33742 /[$]LINENO/=
33743 ' <$as_myself |
33744 sed '
33745 s/[$]LINENO.*/&-/
33746 t lineno
33748 :lineno
33750 :loop
33751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33752 t loop
33753 s/-\n.*//
33754 ' >$as_me.lineno &&
33755 chmod +x "$as_me.lineno" ||
33756 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33757 { (exit 1); exit 1; }; }
33759 # Don't try to exec as it changes $[0], causing all sort of problems
33760 # (the dirname of $[0] is not the place where we might find the
33761 # original and so on. Autoconf is especially sensitive to this).
33762 . "./$as_me.lineno"
33763 # Exit status is that of the last command.
33764 exit
33768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33769 as_dirname=dirname
33770 else
33771 as_dirname=false
33774 ECHO_C= ECHO_N= ECHO_T=
33775 case `echo -n x` in
33776 -n*)
33777 case `echo 'x\c'` in
33778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33779 *) ECHO_C='\c';;
33780 esac;;
33782 ECHO_N='-n';;
33783 esac
33785 if expr a : '\(a\)' >/dev/null 2>&1 &&
33786 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33787 as_expr=expr
33788 else
33789 as_expr=false
33792 rm -f conf$$ conf$$.exe conf$$.file
33793 if test -d conf$$.dir; then
33794 rm -f conf$$.dir/conf$$.file
33795 else
33796 rm -f conf$$.dir
33797 mkdir conf$$.dir
33799 echo >conf$$.file
33800 if ln -s conf$$.file conf$$ 2>/dev/null; then
33801 as_ln_s='ln -s'
33802 # ... but there are two gotchas:
33803 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33804 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33805 # In both cases, we have to default to `cp -p'.
33806 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33807 as_ln_s='cp -p'
33808 elif ln conf$$.file conf$$ 2>/dev/null; then
33809 as_ln_s=ln
33810 else
33811 as_ln_s='cp -p'
33813 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33814 rmdir conf$$.dir 2>/dev/null
33816 if mkdir -p . 2>/dev/null; then
33817 as_mkdir_p=:
33818 else
33819 test -d ./-p && rmdir ./-p
33820 as_mkdir_p=false
33823 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33824 # systems may use methods other than mode bits to determine executability.
33825 cat >conf$$.file <<_ASEOF
33826 #! /bin/sh
33827 exit 0
33828 _ASEOF
33829 chmod +x conf$$.file
33830 if test -x conf$$.file >/dev/null 2>&1; then
33831 as_executable_p="test -x"
33832 else
33833 as_executable_p=:
33835 rm -f conf$$.file
33837 # Sed expression to map a string onto a valid CPP name.
33838 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33840 # Sed expression to map a string onto a valid variable name.
33841 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33844 exec 6>&1
33846 # Save the log message, to keep $[0] and so on meaningful, and to
33847 # report actual input values of CONFIG_FILES etc. instead of their
33848 # values after options handling.
33849 ac_log="
33850 This file was extended by llvm $as_me 1.9cvs, which was
33851 generated by GNU Autoconf 2.60. Invocation command line was
33853 CONFIG_FILES = $CONFIG_FILES
33854 CONFIG_HEADERS = $CONFIG_HEADERS
33855 CONFIG_LINKS = $CONFIG_LINKS
33856 CONFIG_COMMANDS = $CONFIG_COMMANDS
33857 $ $0 $@
33859 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33862 _ACEOF
33864 cat >>$CONFIG_STATUS <<_ACEOF
33865 # Files that config.status was made for.
33866 config_files="$ac_config_files"
33867 config_headers="$ac_config_headers"
33868 config_commands="$ac_config_commands"
33870 _ACEOF
33872 cat >>$CONFIG_STATUS <<\_ACEOF
33873 ac_cs_usage="\
33874 \`$as_me' instantiates files from templates according to the
33875 current configuration.
33877 Usage: $0 [OPTIONS] [FILE]...
33879 -h, --help print this help, then exit
33880 -V, --version print version number, then exit
33881 -q, --quiet do not print progress messages
33882 -d, --debug don't remove temporary files
33883 --recheck update $as_me by reconfiguring in the same conditions
33884 --file=FILE[:TEMPLATE]
33885 instantiate the configuration file FILE
33886 --header=FILE[:TEMPLATE]
33887 instantiate the configuration header FILE
33889 Configuration files:
33890 $config_files
33892 Configuration headers:
33893 $config_headers
33895 Configuration commands:
33896 $config_commands
33898 Report bugs to <bug-autoconf@gnu.org>."
33900 _ACEOF
33901 cat >>$CONFIG_STATUS <<_ACEOF
33902 ac_cs_version="\\
33903 llvm config.status 1.9cvs
33904 configured by $0, generated by GNU Autoconf 2.60,
33905 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33907 Copyright (C) 2006 Free Software Foundation, Inc.
33908 This config.status script is free software; the Free Software Foundation
33909 gives unlimited permission to copy, distribute and modify it."
33911 ac_pwd='$ac_pwd'
33912 srcdir='$srcdir'
33913 INSTALL='$INSTALL'
33914 _ACEOF
33916 cat >>$CONFIG_STATUS <<\_ACEOF
33917 # If no file are specified by the user, then we need to provide default
33918 # value. By we need to know if files were specified by the user.
33919 ac_need_defaults=:
33920 while test $# != 0
33922 case $1 in
33923 --*=*)
33924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33926 ac_shift=:
33929 ac_option=$1
33930 ac_optarg=$2
33931 ac_shift=shift
33933 esac
33935 case $ac_option in
33936 # Handling of the options.
33937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33938 ac_cs_recheck=: ;;
33939 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33940 echo "$ac_cs_version"; exit ;;
33941 --debug | --debu | --deb | --de | --d | -d )
33942 debug=: ;;
33943 --file | --fil | --fi | --f )
33944 $ac_shift
33945 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33946 ac_need_defaults=false;;
33947 --header | --heade | --head | --hea )
33948 $ac_shift
33949 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33950 ac_need_defaults=false;;
33951 --he | --h)
33952 # Conflict between --help and --header
33953 { echo "$as_me: error: ambiguous option: $1
33954 Try \`$0 --help' for more information." >&2
33955 { (exit 1); exit 1; }; };;
33956 --help | --hel | -h )
33957 echo "$ac_cs_usage"; exit ;;
33958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33960 ac_cs_silent=: ;;
33962 # This is an error.
33963 -*) { echo "$as_me: error: unrecognized option: $1
33964 Try \`$0 --help' for more information." >&2
33965 { (exit 1); exit 1; }; } ;;
33967 *) ac_config_targets="$ac_config_targets $1"
33968 ac_need_defaults=false ;;
33970 esac
33971 shift
33972 done
33974 ac_configure_extra_args=
33976 if $ac_cs_silent; then
33977 exec 6>/dev/null
33978 ac_configure_extra_args="$ac_configure_extra_args --silent"
33981 _ACEOF
33982 cat >>$CONFIG_STATUS <<_ACEOF
33983 if \$ac_cs_recheck; then
33984 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33985 CONFIG_SHELL=$SHELL
33986 export CONFIG_SHELL
33987 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33990 _ACEOF
33991 cat >>$CONFIG_STATUS <<\_ACEOF
33992 exec 5>>config.log
33994 echo
33995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33996 ## Running $as_me. ##
33997 _ASBOX
33998 echo "$ac_log"
33999 } >&5
34001 _ACEOF
34002 cat >>$CONFIG_STATUS <<_ACEOF
34004 # INIT-COMMANDS
34006 llvm_src="${srcdir}"
34008 _ACEOF
34010 cat >>$CONFIG_STATUS <<\_ACEOF
34012 # Handling of arguments.
34013 for ac_config_target in $ac_config_targets
34015 case $ac_config_target in
34016 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34017 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34018 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34019 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34020 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34021 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34022 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34023 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34024 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34025 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34026 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34027 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34028 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34029 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34030 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34031 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34032 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34033 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34034 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34035 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34037 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34038 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34039 { (exit 1); exit 1; }; };;
34040 esac
34041 done
34044 # If the user did not use the arguments to specify the items to instantiate,
34045 # then the envvar interface is used. Set only those that are not.
34046 # We use the long form for the default assignment because of an extremely
34047 # bizarre bug on SunOS 4.1.3.
34048 if $ac_need_defaults; then
34049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34054 # Have a temporary directory for convenience. Make it in the build tree
34055 # simply because there is no reason against having it here, and in addition,
34056 # creating and moving files from /tmp can sometimes cause problems.
34057 # Hook for its removal unless debugging.
34058 # Note that there is a small window in which the directory will not be cleaned:
34059 # after its creation but before its name has been assigned to `$tmp'.
34060 $debug ||
34062 tmp=
34063 trap 'exit_status=$?
34064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34066 trap '{ (exit 1); exit 1; }' 1 2 13 15
34068 # Create a (secure) tmp directory for tmp files.
34071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34072 test -n "$tmp" && test -d "$tmp"
34073 } ||
34075 tmp=./conf$$-$RANDOM
34076 (umask 077 && mkdir "$tmp")
34077 } ||
34079 echo "$me: cannot create a temporary directory in ." >&2
34080 { (exit 1); exit 1; }
34084 # Set up the sed scripts for CONFIG_FILES section.
34087 # No need to generate the scripts if there are no CONFIG_FILES.
34088 # This happens for instance when ./config.status config.h
34089 if test -n "$CONFIG_FILES"; then
34091 _ACEOF
34095 ac_delim='%!_!# '
34096 for ac_last_try in false false false false false :; do
34097 cat >conf$$subs.sed <<_ACEOF
34098 SHELL!$SHELL$ac_delim
34099 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34100 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34101 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34102 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34103 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34104 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34105 exec_prefix!$exec_prefix$ac_delim
34106 prefix!$prefix$ac_delim
34107 program_transform_name!$program_transform_name$ac_delim
34108 bindir!$bindir$ac_delim
34109 sbindir!$sbindir$ac_delim
34110 libexecdir!$libexecdir$ac_delim
34111 datarootdir!$datarootdir$ac_delim
34112 datadir!$datadir$ac_delim
34113 sysconfdir!$sysconfdir$ac_delim
34114 sharedstatedir!$sharedstatedir$ac_delim
34115 localstatedir!$localstatedir$ac_delim
34116 includedir!$includedir$ac_delim
34117 oldincludedir!$oldincludedir$ac_delim
34118 docdir!$docdir$ac_delim
34119 infodir!$infodir$ac_delim
34120 htmldir!$htmldir$ac_delim
34121 dvidir!$dvidir$ac_delim
34122 pdfdir!$pdfdir$ac_delim
34123 psdir!$psdir$ac_delim
34124 libdir!$libdir$ac_delim
34125 localedir!$localedir$ac_delim
34126 mandir!$mandir$ac_delim
34127 DEFS!$DEFS$ac_delim
34128 ECHO_C!$ECHO_C$ac_delim
34129 ECHO_N!$ECHO_N$ac_delim
34130 ECHO_T!$ECHO_T$ac_delim
34131 LIBS!$LIBS$ac_delim
34132 build_alias!$build_alias$ac_delim
34133 host_alias!$host_alias$ac_delim
34134 target_alias!$target_alias$ac_delim
34135 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34136 subdirs!$subdirs$ac_delim
34137 build!$build$ac_delim
34138 build_cpu!$build_cpu$ac_delim
34139 build_vendor!$build_vendor$ac_delim
34140 build_os!$build_os$ac_delim
34141 host!$host$ac_delim
34142 host_cpu!$host_cpu$ac_delim
34143 host_vendor!$host_vendor$ac_delim
34144 host_os!$host_os$ac_delim
34145 target!$target$ac_delim
34146 target_cpu!$target_cpu$ac_delim
34147 target_vendor!$target_vendor$ac_delim
34148 target_os!$target_os$ac_delim
34149 OS!$OS$ac_delim
34150 LINKALL!$LINKALL$ac_delim
34151 NOLINKALL!$NOLINKALL$ac_delim
34152 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34153 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34154 ARCH!$ARCH$ac_delim
34155 ENDIAN!$ENDIAN$ac_delim
34156 CC!$CC$ac_delim
34157 CFLAGS!$CFLAGS$ac_delim
34158 LDFLAGS!$LDFLAGS$ac_delim
34159 CPPFLAGS!$CPPFLAGS$ac_delim
34160 ac_ct_CC!$ac_ct_CC$ac_delim
34161 EXEEXT!$EXEEXT$ac_delim
34162 OBJEXT!$OBJEXT$ac_delim
34163 CPP!$CPP$ac_delim
34164 GREP!$GREP$ac_delim
34165 EGREP!$EGREP$ac_delim
34166 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34167 BUILD_CC!$BUILD_CC$ac_delim
34168 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34169 CVSBUILD!$CVSBUILD$ac_delim
34170 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34171 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34172 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34173 JIT!$JIT$ac_delim
34174 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34175 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34176 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34177 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34178 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34179 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34180 CXX!$CXX$ac_delim
34181 CXXFLAGS!$CXXFLAGS$ac_delim
34182 ac_ct_CXX!$ac_ct_CXX$ac_delim
34183 LEX!$LEX$ac_delim
34184 LEXLIB!$LEXLIB$ac_delim
34185 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34186 FLEX!$FLEX$ac_delim
34187 YACC!$YACC$ac_delim
34188 YFLAGS!$YFLAGS$ac_delim
34189 BISON!$BISON$ac_delim
34190 NM!$NM$ac_delim
34191 ifGNUmake!$ifGNUmake$ac_delim
34192 LN_S!$LN_S$ac_delim
34193 CMP!$CMP$ac_delim
34194 CP!$CP$ac_delim
34195 _ACEOF
34197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34198 break
34199 elif $ac_last_try; then
34200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34201 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34202 { (exit 1); exit 1; }; }
34203 else
34204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34206 done
34208 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34209 if test -n "$ac_eof"; then
34210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34211 ac_eof=`expr $ac_eof + 1`
34214 cat >>$CONFIG_STATUS <<_ACEOF
34215 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34217 _ACEOF
34218 sed '
34219 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34220 s/^/s,@/; s/!/@,|#_!!_#|/
34223 s/'"$ac_delim"'$/,g/; t
34224 s/$/\\/; p
34225 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34226 ' >>$CONFIG_STATUS <conf$$subs.sed
34227 rm -f conf$$subs.sed
34228 cat >>$CONFIG_STATUS <<_ACEOF
34229 CEOF$ac_eof
34230 _ACEOF
34233 ac_delim='%!_!# '
34234 for ac_last_try in false false false false false :; do
34235 cat >conf$$subs.sed <<_ACEOF
34236 DATE!$DATE$ac_delim
34237 FIND!$FIND$ac_delim
34238 MKDIR!$MKDIR$ac_delim
34239 MV!$MV$ac_delim
34240 RANLIB!$RANLIB$ac_delim
34241 RM!$RM$ac_delim
34242 SED!$SED$ac_delim
34243 TAR!$TAR$ac_delim
34244 BINPWD!$BINPWD$ac_delim
34245 GRAPHVIZ!$GRAPHVIZ$ac_delim
34246 DOT!$DOT$ac_delim
34247 GV!$GV$ac_delim
34248 DOTTY!$DOTTY$ac_delim
34249 PERL!$PERL$ac_delim
34250 HAVE_PERL!$HAVE_PERL$ac_delim
34251 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34252 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34253 INSTALL_DATA!$INSTALL_DATA$ac_delim
34254 BZIP2!$BZIP2$ac_delim
34255 DOXYGEN!$DOXYGEN$ac_delim
34256 GROFF!$GROFF$ac_delim
34257 GZIP!$GZIP$ac_delim
34258 POD2HTML!$POD2HTML$ac_delim
34259 POD2MAN!$POD2MAN$ac_delim
34260 RUNTEST!$RUNTEST$ac_delim
34261 TCLSH!$TCLSH$ac_delim
34262 ZIP!$ZIP$ac_delim
34263 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34264 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34265 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34266 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34267 LIBADD_DL!$LIBADD_DL$ac_delim
34268 ECHO!$ECHO$ac_delim
34269 AR!$AR$ac_delim
34270 STRIP!$STRIP$ac_delim
34271 CXXCPP!$CXXCPP$ac_delim
34272 F77!$F77$ac_delim
34273 FFLAGS!$FFLAGS$ac_delim
34274 ac_ct_F77!$ac_ct_F77$ac_delim
34275 LIBTOOL!$LIBTOOL$ac_delim
34276 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34277 LLVMGCC!$LLVMGCC$ac_delim
34278 LLVMGXX!$LLVMGXX$ac_delim
34279 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34280 ALLOCA!$ALLOCA$ac_delim
34281 MMAP_FILE!$MMAP_FILE$ac_delim
34282 LLVMCC1!$LLVMCC1$ac_delim
34283 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34284 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34285 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34286 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34287 SHLIBEXT!$SHLIBEXT$ac_delim
34288 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34289 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34290 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34291 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34292 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34293 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34294 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34295 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34296 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34297 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34298 LIBOBJS!$LIBOBJS$ac_delim
34299 LTLIBOBJS!$LTLIBOBJS$ac_delim
34300 _ACEOF
34302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
34303 break
34304 elif $ac_last_try; then
34305 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34307 { (exit 1); exit 1; }; }
34308 else
34309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34311 done
34313 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34314 if test -n "$ac_eof"; then
34315 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34316 ac_eof=`expr $ac_eof + 1`
34319 cat >>$CONFIG_STATUS <<_ACEOF
34320 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34322 _ACEOF
34323 sed '
34324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34325 s/^/s,@/; s/!/@,|#_!!_#|/
34328 s/'"$ac_delim"'$/,g/; t
34329 s/$/\\/; p
34330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34331 ' >>$CONFIG_STATUS <conf$$subs.sed
34332 rm -f conf$$subs.sed
34333 cat >>$CONFIG_STATUS <<_ACEOF
34334 :end
34335 s/|#_!!_#|//g
34336 CEOF$ac_eof
34337 _ACEOF
34340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34342 # trailing colons and then remove the whole line if VPATH becomes empty
34343 # (actually we leave an empty line to preserve line numbers).
34344 if test "x$srcdir" = x.; then
34345 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34346 s/:*\$(srcdir):*/:/
34347 s/:*\${srcdir}:*/:/
34348 s/:*@srcdir@:*/:/
34349 s/^\([^=]*=[ ]*\):*/\1/
34350 s/:*$//
34351 s/^[^=]*=[ ]*$//
34355 cat >>$CONFIG_STATUS <<\_ACEOF
34356 fi # test -n "$CONFIG_FILES"
34359 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34361 case $ac_tag in
34362 :[FHLC]) ac_mode=$ac_tag; continue;;
34363 esac
34364 case $ac_mode$ac_tag in
34365 :[FHL]*:*);;
34366 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34367 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34368 { (exit 1); exit 1; }; };;
34369 :[FH]-) ac_tag=-:-;;
34370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34371 esac
34372 ac_save_IFS=$IFS
34373 IFS=:
34374 set x $ac_tag
34375 IFS=$ac_save_IFS
34376 shift
34377 ac_file=$1
34378 shift
34380 case $ac_mode in
34381 :L) ac_source=$1;;
34382 :[FH])
34383 ac_file_inputs=
34384 for ac_f
34386 case $ac_f in
34387 -) ac_f="$tmp/stdin";;
34388 *) # Look for the file first in the build tree, then in the source tree
34389 # (if the path is not absolute). The absolute path cannot be DOS-style,
34390 # because $ac_f cannot contain `:'.
34391 test -f "$ac_f" ||
34392 case $ac_f in
34393 [\\/$]*) false;;
34394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34395 esac ||
34396 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34397 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34398 { (exit 1); exit 1; }; };;
34399 esac
34400 ac_file_inputs="$ac_file_inputs $ac_f"
34401 done
34403 # Let's still pretend it is `configure' which instantiates (i.e., don't
34404 # use $as_me), people would be surprised to read:
34405 # /* config.h. Generated by config.status. */
34406 configure_input="Generated from "`IFS=:
34407 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34408 if test x"$ac_file" != x-; then
34409 configure_input="$ac_file. $configure_input"
34410 { echo "$as_me:$LINENO: creating $ac_file" >&5
34411 echo "$as_me: creating $ac_file" >&6;}
34414 case $ac_tag in
34415 *:-:* | *:-) cat >"$tmp/stdin";;
34416 esac
34418 esac
34420 ac_dir=`$as_dirname -- "$ac_file" ||
34421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34422 X"$ac_file" : 'X\(//\)[^/]' \| \
34423 X"$ac_file" : 'X\(//\)$' \| \
34424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34425 echo X"$ac_file" |
34426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34427 s//\1/
34430 /^X\(\/\/\)[^/].*/{
34431 s//\1/
34434 /^X\(\/\/\)$/{
34435 s//\1/
34438 /^X\(\/\).*/{
34439 s//\1/
34442 s/.*/./; q'`
34443 { as_dir="$ac_dir"
34444 case $as_dir in #(
34445 -*) as_dir=./$as_dir;;
34446 esac
34447 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34448 as_dirs=
34449 while :; do
34450 case $as_dir in #(
34451 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34452 *) as_qdir=$as_dir;;
34453 esac
34454 as_dirs="'$as_qdir' $as_dirs"
34455 as_dir=`$as_dirname -- "$as_dir" ||
34456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34457 X"$as_dir" : 'X\(//\)[^/]' \| \
34458 X"$as_dir" : 'X\(//\)$' \| \
34459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34460 echo X"$as_dir" |
34461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34462 s//\1/
34465 /^X\(\/\/\)[^/].*/{
34466 s//\1/
34469 /^X\(\/\/\)$/{
34470 s//\1/
34473 /^X\(\/\).*/{
34474 s//\1/
34477 s/.*/./; q'`
34478 test -d "$as_dir" && break
34479 done
34480 test -z "$as_dirs" || eval "mkdir $as_dirs"
34481 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34482 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34483 { (exit 1); exit 1; }; }; }
34484 ac_builddir=.
34486 case "$ac_dir" in
34487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34490 # A ".." for each directory in $ac_dir_suffix.
34491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34492 case $ac_top_builddir_sub in
34493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34495 esac ;;
34496 esac
34497 ac_abs_top_builddir=$ac_pwd
34498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34499 # for backward compatibility:
34500 ac_top_builddir=$ac_top_build_prefix
34502 case $srcdir in
34503 .) # We are building in place.
34504 ac_srcdir=.
34505 ac_top_srcdir=$ac_top_builddir_sub
34506 ac_abs_top_srcdir=$ac_pwd ;;
34507 [\\/]* | ?:[\\/]* ) # Absolute name.
34508 ac_srcdir=$srcdir$ac_dir_suffix;
34509 ac_top_srcdir=$srcdir
34510 ac_abs_top_srcdir=$srcdir ;;
34511 *) # Relative name.
34512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34513 ac_top_srcdir=$ac_top_build_prefix$srcdir
34514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34515 esac
34516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34519 case $ac_mode in
34522 # CONFIG_FILE
34525 case $INSTALL in
34526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34528 esac
34529 _ACEOF
34531 cat >>$CONFIG_STATUS <<\_ACEOF
34532 # If the template does not know about datarootdir, expand it.
34533 # FIXME: This hack should be removed a few years after 2.60.
34534 ac_datarootdir_hack=; ac_datarootdir_seen=
34536 case `sed -n '/datarootdir/ {
34540 /@datadir@/p
34541 /@docdir@/p
34542 /@infodir@/p
34543 /@localedir@/p
34544 /@mandir@/p
34545 ' $ac_file_inputs` in
34546 *datarootdir*) ac_datarootdir_seen=yes;;
34547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34548 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34549 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34550 _ACEOF
34551 cat >>$CONFIG_STATUS <<_ACEOF
34552 ac_datarootdir_hack='
34553 s&@datadir@&$datadir&g
34554 s&@docdir@&$docdir&g
34555 s&@infodir@&$infodir&g
34556 s&@localedir@&$localedir&g
34557 s&@mandir@&$mandir&g
34558 s&\\\${datarootdir}&$datarootdir&g' ;;
34559 esac
34560 _ACEOF
34562 # Neutralize VPATH when `$srcdir' = `.'.
34563 # Shell code in configure.ac might set extrasub.
34564 # FIXME: do we really want to maintain this feature?
34565 cat >>$CONFIG_STATUS <<_ACEOF
34566 sed "$ac_vpsub
34567 $extrasub
34568 _ACEOF
34569 cat >>$CONFIG_STATUS <<\_ACEOF
34571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34572 s&@configure_input@&$configure_input&;t t
34573 s&@top_builddir@&$ac_top_builddir_sub&;t t
34574 s&@srcdir@&$ac_srcdir&;t t
34575 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34576 s&@top_srcdir@&$ac_top_srcdir&;t t
34577 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34578 s&@builddir@&$ac_builddir&;t t
34579 s&@abs_builddir@&$ac_abs_builddir&;t t
34580 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34581 s&@INSTALL@&$ac_INSTALL&;t t
34582 $ac_datarootdir_hack
34583 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34588 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34589 which seems to be undefined. Please make sure it is defined." >&5
34590 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34591 which seems to be undefined. Please make sure it is defined." >&2;}
34593 rm -f "$tmp/stdin"
34594 case $ac_file in
34595 -) cat "$tmp/out"; rm -f "$tmp/out";;
34596 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34597 esac
34601 # CONFIG_HEADER
34603 _ACEOF
34605 # Transform confdefs.h into a sed script `conftest.defines', that
34606 # substitutes the proper values into config.h.in to produce config.h.
34607 rm -f conftest.defines conftest.tail
34608 # First, append a space to every undef/define line, to ease matching.
34609 echo 's/$/ /' >conftest.defines
34610 # Then, protect against being on the right side of a sed subst, or in
34611 # an unquoted here document, in config.status. If some macros were
34612 # called several times there might be several #defines for the same
34613 # symbol, which is useless. But do not sort them, since the last
34614 # AC_DEFINE must be honored.
34615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34616 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34617 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34618 # PARAMS is the parameter list in the macro definition--in most cases, it's
34619 # just an empty string.
34620 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34621 ac_dB='\\)[ (].*,\\1define\\2'
34622 ac_dC=' '
34623 ac_dD=' ,'
34625 uniq confdefs.h |
34626 sed -n '
34627 t rset
34628 :rset
34629 s/^[ ]*#[ ]*define[ ][ ]*//
34630 t ok
34633 s/[\\&,]/\\&/g
34634 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34635 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34636 ' >>conftest.defines
34638 # Remove the space that was appended to ease matching.
34639 # Then replace #undef with comments. This is necessary, for
34640 # example, in the case of _POSIX_SOURCE, which is predefined and required
34641 # on some systems where configure will not decide to define it.
34642 # (The regexp can be short, since the line contains either #define or #undef.)
34643 echo 's/ $//
34644 s,^[ #]*u.*,/* & */,' >>conftest.defines
34646 # Break up conftest.defines:
34647 ac_max_sed_lines=50
34649 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34650 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34651 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34652 # et cetera.
34653 ac_in='$ac_file_inputs'
34654 ac_out='"$tmp/out1"'
34655 ac_nxt='"$tmp/out2"'
34657 while :
34659 # Write a here document:
34660 cat >>$CONFIG_STATUS <<_ACEOF
34661 # First, check the format of the line:
34662 cat >"\$tmp/defines.sed" <<\\CEOF
34663 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34664 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34666 :def
34667 _ACEOF
34668 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34669 echo 'CEOF
34670 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34671 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34672 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34673 grep . conftest.tail >/dev/null || break
34674 rm -f conftest.defines
34675 mv conftest.tail conftest.defines
34676 done
34677 rm -f conftest.defines conftest.tail
34679 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34680 cat >>$CONFIG_STATUS <<\_ACEOF
34681 if test x"$ac_file" != x-; then
34682 echo "/* $configure_input */" >"$tmp/config.h"
34683 cat "$ac_result" >>"$tmp/config.h"
34684 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34685 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34686 echo "$as_me: $ac_file is unchanged" >&6;}
34687 else
34688 rm -f $ac_file
34689 mv "$tmp/config.h" $ac_file
34691 else
34692 echo "/* $configure_input */"
34693 cat "$ac_result"
34695 rm -f "$tmp/out12"
34698 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34699 echo "$as_me: executing $ac_file commands" >&6;}
34701 esac
34704 case $ac_file$ac_mode in
34705 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34706 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34707 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34708 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34709 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34710 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34711 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34712 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34713 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34714 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34715 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34716 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34717 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34718 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34719 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34720 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34721 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34722 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34723 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34724 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34726 esac
34727 done # for ac_tag
34730 { (exit 0); exit 0; }
34731 _ACEOF
34732 chmod +x $CONFIG_STATUS
34733 ac_clean_files=$ac_clean_files_save
34736 # configure is writing to config.log, and then calls config.status.
34737 # config.status does its own redirection, appending to config.log.
34738 # Unfortunately, on DOS this fails, as config.log is still kept open
34739 # by configure, so config.status won't be able to write to it; its
34740 # output is simply discarded. So we exec the FD to /dev/null,
34741 # effectively closing config.log, so it can be properly (re)opened and
34742 # appended to by config.status. When coming back to configure, we
34743 # need to make the FD available again.
34744 if test "$no_create" != yes; then
34745 ac_cs_success=:
34746 ac_config_status_args=
34747 test "$silent" = yes &&
34748 ac_config_status_args="$ac_config_status_args --quiet"
34749 exec 5>/dev/null
34750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34751 exec 5>>config.log
34752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34753 # would make configure fail if this is the last instruction.
34754 $ac_cs_success || { (exit 1); exit 1; }
34758 # CONFIG_SUBDIRS section.
34760 if test "$no_recursion" != yes; then
34762 # Remove --cache-file and --srcdir arguments so they do not pile up.
34763 ac_sub_configure_args=
34764 ac_prev=
34765 eval "set x $ac_configure_args"
34766 shift
34767 for ac_arg
34769 if test -n "$ac_prev"; then
34770 ac_prev=
34771 continue
34773 case $ac_arg in
34774 -cache-file | --cache-file | --cache-fil | --cache-fi \
34775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34776 ac_prev=cache_file ;;
34777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34779 | --c=*)
34781 --config-cache | -C)
34783 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34784 ac_prev=srcdir ;;
34785 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34787 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34788 ac_prev=prefix ;;
34789 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34792 case $ac_arg in
34793 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34794 esac
34795 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34796 esac
34797 done
34799 # Always prepend --prefix to ensure using the same prefix
34800 # in subdir configurations.
34801 ac_arg="--prefix=$prefix"
34802 case $ac_arg in
34803 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34804 esac
34805 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34807 ac_popdir=`pwd`
34808 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34810 # Do not complain, so a configure script can configure whichever
34811 # parts of a large source tree are present.
34812 test -d "$srcdir/$ac_dir" || continue
34814 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34815 echo "$as_me:$LINENO: $ac_msg" >&5
34816 echo "$ac_msg" >&6
34817 { as_dir="$ac_dir"
34818 case $as_dir in #(
34819 -*) as_dir=./$as_dir;;
34820 esac
34821 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34822 as_dirs=
34823 while :; do
34824 case $as_dir in #(
34825 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34826 *) as_qdir=$as_dir;;
34827 esac
34828 as_dirs="'$as_qdir' $as_dirs"
34829 as_dir=`$as_dirname -- "$as_dir" ||
34830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34831 X"$as_dir" : 'X\(//\)[^/]' \| \
34832 X"$as_dir" : 'X\(//\)$' \| \
34833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34834 echo X"$as_dir" |
34835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34836 s//\1/
34839 /^X\(\/\/\)[^/].*/{
34840 s//\1/
34843 /^X\(\/\/\)$/{
34844 s//\1/
34847 /^X\(\/\).*/{
34848 s//\1/
34851 s/.*/./; q'`
34852 test -d "$as_dir" && break
34853 done
34854 test -z "$as_dirs" || eval "mkdir $as_dirs"
34855 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34856 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34857 { (exit 1); exit 1; }; }; }
34858 ac_builddir=.
34860 case "$ac_dir" in
34861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34864 # A ".." for each directory in $ac_dir_suffix.
34865 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34866 case $ac_top_builddir_sub in
34867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34869 esac ;;
34870 esac
34871 ac_abs_top_builddir=$ac_pwd
34872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34873 # for backward compatibility:
34874 ac_top_builddir=$ac_top_build_prefix
34876 case $srcdir in
34877 .) # We are building in place.
34878 ac_srcdir=.
34879 ac_top_srcdir=$ac_top_builddir_sub
34880 ac_abs_top_srcdir=$ac_pwd ;;
34881 [\\/]* | ?:[\\/]* ) # Absolute name.
34882 ac_srcdir=$srcdir$ac_dir_suffix;
34883 ac_top_srcdir=$srcdir
34884 ac_abs_top_srcdir=$srcdir ;;
34885 *) # Relative name.
34886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34887 ac_top_srcdir=$ac_top_build_prefix$srcdir
34888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34889 esac
34890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34893 cd "$ac_dir"
34895 # Check for guested configure; otherwise get Cygnus style configure.
34896 if test -f "$ac_srcdir/configure.gnu"; then
34897 ac_sub_configure=$ac_srcdir/configure.gnu
34898 elif test -f "$ac_srcdir/configure"; then
34899 ac_sub_configure=$ac_srcdir/configure
34900 elif test -f "$ac_srcdir/configure.in"; then
34901 # This should be Cygnus configure.
34902 ac_sub_configure=$ac_aux_dir/configure
34903 else
34904 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34905 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34906 ac_sub_configure=
34909 # The recursion is here.
34910 if test -n "$ac_sub_configure"; then
34911 # Make the cache file name correct relative to the subdirectory.
34912 case $cache_file in
34913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
34914 *) # Relative name.
34915 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
34916 esac
34918 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34919 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
34920 # The eval makes quoting arguments work.
34921 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34922 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
34923 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
34924 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34925 { (exit 1); exit 1; }; }
34928 cd "$ac_popdir"
34929 done
34933 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
34934 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34935 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
34936 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&5
34937 echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&2;}
34938 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34939 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34940 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34941 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34942 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34943 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}