Remove LLVMContext from reassociate. It was threaded through every function but
[llvm.git] / configure
blob947034ded80e7d9677b1ebd691e990a5c731dd00
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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='2.7svn'
719 PACKAGE_STRING='llvm 2.7svn'
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 HOST_OS
812 TARGET_OS
813 LINKALL
814 NOLINKALL
815 LLVM_ON_UNIX
816 LLVM_ON_WIN32
817 ARCH
818 ENDIAN
820 CFLAGS
821 LDFLAGS
822 CPPFLAGS
823 ac_ct_CC
824 EXEEXT
825 OBJEXT
827 GREP
828 EGREP
829 LLVM_CROSS_COMPILING
830 BUILD_CC
831 BUILD_EXEEXT
832 BUILD_CXX
833 CVSBUILD
834 ENABLE_OPTIMIZED
835 ENABLE_PROFILING
836 DISABLE_ASSERTIONS
837 ENABLE_EXPENSIVE_CHECKS
838 EXPENSIVE_CHECKS
839 DEBUG_RUNTIME
840 DEBUG_SYMBOLS
842 TARGET_HAS_JIT
843 ENABLE_DOXYGEN
844 ENABLE_THREADS
845 ENABLE_PIC
846 TARGETS_TO_BUILD
847 LLVM_ENUM_TARGETS
848 LLVM_ENUM_ASM_PRINTERS
849 LLVM_ENUM_ASM_PARSERS
850 ENABLE_CBE_PRINTF_A
851 OPTIMIZE_OPTION
852 EXTRA_OPTIONS
853 BINUTILS_INCDIR
854 ENABLE_LLVMC_DYNAMIC
855 ENABLE_LLVMC_DYNAMIC_PLUGINS
857 CXXFLAGS
858 ac_ct_CXX
860 ifGNUmake
861 LN_S
864 DATE
865 FIND
866 MKDIR
868 RANLIB
872 BINPWD
873 GRAPHVIZ
876 NEATO
877 TWOPI
878 CIRCO
880 DOTTY
881 PERL
882 HAVE_PERL
883 INSTALL_PROGRAM
884 INSTALL_SCRIPT
885 INSTALL_DATA
886 BZIP2
887 DOXYGEN
888 GROFF
889 GZIP
890 POD2HTML
891 POD2MAN
892 RUNTEST
893 TCLSH
895 OCAMLC
896 OCAMLOPT
897 OCAMLDEP
898 OCAMLDOC
900 INSTALL_LTDL_TRUE
901 INSTALL_LTDL_FALSE
902 CONVENIENCE_LTDL_TRUE
903 CONVENIENCE_LTDL_FALSE
904 LIBADD_DL
905 ECHO
907 STRIP
908 CXXCPP
910 FFLAGS
911 ac_ct_F77
912 LIBTOOL
913 LLVMGCCCOMMAND
914 LLVMGXXCOMMAND
915 LLVMGCC
916 LLVMGXX
917 NO_VARIADIC_MACROS
918 NO_MISSING_FIELD_INITIALIZERS
919 USE_UDIS86
920 USE_OPROFILE
921 HAVE_PTHREAD
922 HUGE_VAL_SANITY
923 ALLOCA
924 MMAP_FILE
925 LLVMCC1
926 LLVMCC1PLUS
927 LLVMGCCDIR
928 LLVMGCCLIBEXEC
929 LLVMGCC_VERSION
930 LLVMGCC_MAJVERS
931 LLVMGCC_LANGS
932 SHLIBEXT
933 LLVM_PREFIX
934 LLVM_BINDIR
935 LLVM_LIBDIR
936 LLVM_DATADIR
937 LLVM_DOCSDIR
938 LLVM_ETCDIR
939 LLVM_INCLUDEDIR
940 LLVM_INFODIR
941 LLVM_MANDIR
942 LLVM_CONFIGTIME
943 BINDINGS_TO_BUILD
944 ALL_BINDINGS
945 OCAML_LIBDIR
946 ENABLE_VISIBILITY_INLINES_HIDDEN
947 RPATH
948 RDYNAMIC
949 LIBOBJS
950 LTLIBOBJS'
951 ac_subst_files=''
952 ac_precious_vars='build_alias
953 host_alias
954 target_alias
956 CFLAGS
957 LDFLAGS
958 CPPFLAGS
961 CXXFLAGS
963 CXXCPP
965 FFLAGS'
966 ac_subdirs_all='projects/sample
967 projects/privbracket
968 projects/llvm-stacker
969 projects/llvm-test
970 projects/test-suite
971 projects/llvm-reopt
972 projects/llvm-gcc
973 projects/llvm-java
974 projects/llvm-tv
975 projects/llvm-poolalloc
976 projects/poolalloc
977 projects/llvm-kernel'
979 # Initialize some variables set by options.
980 ac_init_help=
981 ac_init_version=false
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1032 ac_prev=
1033 continue
1036 case $ac_option in
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *) ac_optarg=yes ;;
1039 esac
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1045 ac_dashdash=yes ;;
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 ac_prev=bindir ;;
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1068 ac_prev=datadir ;;
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086 eval enable_$ac_feature=no ;;
1088 -docdir | --docdir | --docdi | --doc | --do)
1089 ac_prev=docdir ;;
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094 ac_prev=dvidir ;;
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
1098 -enable-* | --enable-*)
1099 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1105 eval enable_$ac_feature=\$ac_optarg ;;
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1118 with_gas=yes ;;
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133 ac_prev=htmldir ;;
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135 | --ht=*)
1136 htmldir=$ac_optarg ;;
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1146 ac_prev=infodir ;;
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1150 -libdir | --libdir | --libdi | --libd)
1151 ac_prev=libdir ;;
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175 ac_prev=mandir ;;
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1181 with_fp=no ;;
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1185 no_create=yes ;;
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 no_recursion=yes ;;
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201 ac_prev=prefix ;;
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237 ac_prev=pdfdir ;;
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1241 -psdir | --psdir | --psdi | --psd | --ps)
1242 ac_prev=psdir ;;
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 psdir=$ac_optarg ;;
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1248 silent=yes ;;
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 ac_prev=sbindir ;;
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 | --sbi=* | --sb=*)
1254 sbindir=$ac_optarg ;;
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1259 | --sha | --sh)
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 | --sha=* | --sh=*)
1265 sharedstatedir=$ac_optarg ;;
1267 -site | --site | --sit)
1268 ac_prev=site ;;
1269 -site=* | --site=* | --sit=*)
1270 site=$ac_optarg ;;
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 ac_prev=srcdir ;;
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 verbose=yes ;;
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1295 -with-* | --with-*)
1296 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1299 { echo "$as_me: error: invalid package name: $ac_package" >&2
1300 { (exit 1); exit 1; }; }
1301 ac_package=`echo $ac_package| sed 's/-/_/g'`
1302 eval with_$ac_package=\$ac_optarg ;;
1304 -without-* | --without-*)
1305 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1308 { echo "$as_me: error: invalid package name: $ac_package" >&2
1309 { (exit 1); exit 1; }; }
1310 ac_package=`echo $ac_package | sed 's/-/_/g'`
1311 eval with_$ac_package=no ;;
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) { echo "$as_me: error: unrecognized option: $ac_option
1332 Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 esac
1354 done
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1362 # Be sure to have absolute directory names.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 case $ac_val in
1370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372 esac
1373 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374 { (exit 1); exit 1; }; }
1375 done
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1380 build=$build_alias
1381 host=$host_alias
1382 target=$target_alias
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398 test "$silent" = yes && exec 6>/dev/null
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 { echo "$as_me: error: Working directory cannot be determined" >&2
1405 { (exit 1); exit 1; }; }
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 { echo "$as_me: error: pwd does not report name of working directory" >&2
1408 { (exit 1); exit 1; }; }
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413 ac_srcdir_defaulted=yes
1414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir=`$as_dirname -- "$0" ||
1416 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417 X"$0" : 'X\(//\)[^/]' \| \
1418 X"$0" : 'X\(//\)$' \| \
1419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1420 echo X"$0" |
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 s//\1/
1425 /^X\(\/\/\)[^/].*/{
1426 s//\1/
1429 /^X\(\/\/\)$/{
1430 s//\1/
1433 /^X\(\/\).*/{
1434 s//\1/
1437 s/.*/./; q'`
1438 srcdir=$ac_confdir
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 srcdir=..
1442 else
1443 ac_srcdir_defaulted=no
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1448 { (exit 1); exit 1; }; }
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1453 { (exit 1); exit 1; }; }
1454 pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 srcdir=.
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1478 cat <<_ACEOF
1479 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1488 Configuration:
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 [PREFIX]
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1532 _ACEOF
1534 cat <<\_ACEOF
1536 System types:
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 --target=TARGET configure for building compilers for TARGET [HOST]
1540 _ACEOF
1543 if test -n "$ac_init_help"; then
1544 case $ac_init_help in
1545 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1546 esac
1547 cat <<\_ACEOF
1549 Optional Features:
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1552 --enable-optimized Compile with optimizations enabled (default is NO)
1553 --enable-profiling Compile with profiling enabled (default is NO)
1554 --enable-assertions Compile with assertion checks enabled (default is
1555 YES)
1556 --enable-expensive-checks
1557 Compile with expensive debug checks enabled (default
1558 is NO)
1559 --enable-debug-runtime Build runtime libs with debug symbols (default is
1561 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1562 optimization is on and YES if it's off)
1563 --enable-jit Enable Just In Time Compiling (default is YES)
1564 --enable-doxygen Build doxygen documentation (default is NO)
1565 --enable-threads Use threads if available (default is YES)
1566 --enable-pic Build LLVM with Position Independent Code (default
1567 is YES)
1568 --enable-targets Build specific host targets: all or
1569 target1,target2,... Valid targets are: host, x86,
1570 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1571 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1572 and cpp (default=all)
1573 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1574 %a (default is YES)
1575 --enable-bindings Build specific language bindings:
1576 all,auto,none,{binding-name} (default=auto)
1577 --enable-libffi Check for the presence of libffi (default is YES)
1578 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1579 Win32)
1580 --enable-llvmc-dynamic-plugins
1581 Enable dynamic LLVMC plugins (default is YES)
1582 --enable-ltdl-install install libltdl
1583 --enable-shared[=PKGS] build shared libraries
1584 [default=yes]
1585 --enable-static[=PKGS] build static libraries
1586 [default=yes]
1587 --enable-fast-install[=PKGS]
1588 optimize for fast installation
1589 [default=yes]
1590 --disable-libtool-lock avoid locking (might break parallel builds)
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1596 searches PATH)
1597 --with-llvmgcc Specify location of llvm-gcc driver (default
1598 searches PATH)
1599 --with-llvmgxx Specify location of llvm-g++ driver (default
1600 searches PATH)
1601 --with-optimize-option Select the compiler options to use for optimized
1602 builds
1603 --with-extra-options Specify additional options to compile LLVM with
1604 --with-ocaml-libdir Specify install location for ocaml bindings (default
1605 is stdlib)
1606 --with-c-include-dirs Colon separated list of directories clang will
1607 search for headers
1608 --with-binutils-include Specify path to binutils/include/ containing
1609 plugin-api.h file for gold plugin.
1610 --with-tclinclude directory where tcl headers are
1611 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1612 --with-pic try to use only PIC/non-PIC objects [default=use
1613 both]
1614 --with-tags[=TAGS] include additional configurations [automatic]
1615 --with-udis86=<path> Use udis86 external x86 disassembler library
1616 --with-oprofile=<prefix>
1617 Tell OProfile >= 0.9.4 how to symbolize JIT output
1619 Some influential environment variables:
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
1624 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1625 you have headers in a nonstandard directory <include dir>
1626 CPP C preprocessor
1627 CXX C++ compiler command
1628 CXXFLAGS C++ compiler flags
1629 CXXCPP C++ preprocessor
1630 F77 Fortran 77 compiler command
1631 FFLAGS Fortran 77 compiler flags
1633 Use these variables to override the choices made by `configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1636 Report bugs to <llvmbugs@cs.uiuc.edu>.
1637 _ACEOF
1638 ac_status=$?
1641 if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644 test -d "$ac_dir" || continue
1645 ac_builddir=.
1647 case "$ac_dir" in
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657 esac
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1663 case $srcdir in
1664 .) # We are building in place.
1665 ac_srcdir=.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 esac
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696 cat <<\_ACEOF
1697 llvm configure 2.7svn
1698 generated by GNU Autoconf 2.60
1700 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1701 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1705 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1706 _ACEOF
1707 exit
1709 cat >config.log <<_ACEOF
1710 This file contains any messages produced by compilers while
1711 running configure, to aid debugging if configure makes a mistake.
1713 It was created by llvm $as_me 2.7svn, which was
1714 generated by GNU Autoconf 2.60. Invocation command line was
1716 $ $0 $@
1718 _ACEOF
1719 exec 5>>config.log
1721 cat <<_ASUNAME
1722 ## --------- ##
1723 ## Platform. ##
1724 ## --------- ##
1726 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1727 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1728 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1729 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1730 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1732 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1733 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1735 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1736 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1737 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1738 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1739 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1740 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1741 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1743 _ASUNAME
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 for as_dir in $PATH
1748 IFS=$as_save_IFS
1749 test -z "$as_dir" && as_dir=.
1750 echo "PATH: $as_dir"
1751 done
1752 IFS=$as_save_IFS
1754 } >&5
1756 cat >&5 <<_ACEOF
1759 ## ----------- ##
1760 ## Core tests. ##
1761 ## ----------- ##
1763 _ACEOF
1766 # Keep a trace of the command line.
1767 # Strip out --no-create and --no-recursion so they do not pile up.
1768 # Strip out --silent because we don't want to record it for future runs.
1769 # Also quote any args containing shell meta-characters.
1770 # Make two passes to allow for proper duplicate-argument suppression.
1771 ac_configure_args=
1772 ac_configure_args0=
1773 ac_configure_args1=
1774 ac_must_keep_next=false
1775 for ac_pass in 1 2
1777 for ac_arg
1779 case $ac_arg in
1780 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1782 | -silent | --silent | --silen | --sile | --sil)
1783 continue ;;
1784 *\'*)
1785 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1786 esac
1787 case $ac_pass in
1788 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1790 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1791 if test $ac_must_keep_next = true; then
1792 ac_must_keep_next=false # Got value, back to normal.
1793 else
1794 case $ac_arg in
1795 *=* | --config-cache | -C | -disable-* | --disable-* \
1796 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1797 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1798 | -with-* | --with-* | -without-* | --without-* | --x)
1799 case "$ac_configure_args0 " in
1800 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1801 esac
1803 -* ) ac_must_keep_next=true ;;
1804 esac
1806 ac_configure_args="$ac_configure_args '$ac_arg'"
1808 esac
1809 done
1810 done
1811 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1812 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1814 # When interrupted or exit'd, cleanup temporary files, and complete
1815 # config.log. We remove comments because anyway the quotes in there
1816 # would cause problems or look ugly.
1817 # WARNING: Use '\'' to represent an apostrophe within the trap.
1818 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1819 trap 'exit_status=$?
1820 # Save into config.log some information that might help in debugging.
1822 echo
1824 cat <<\_ASBOX
1825 ## ---------------- ##
1826 ## Cache variables. ##
1827 ## ---------------- ##
1828 _ASBOX
1829 echo
1830 # The following way of writing the cache mishandles newlines in values,
1832 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1833 eval ac_val=\$$ac_var
1834 case $ac_val in #(
1835 *${as_nl}*)
1836 case $ac_var in #(
1837 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1838 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1839 esac
1840 case $ac_var in #(
1841 _ | IFS | as_nl) ;; #(
1842 *) $as_unset $ac_var ;;
1843 esac ;;
1844 esac
1845 done
1846 (set) 2>&1 |
1847 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1848 *${as_nl}ac_space=\ *)
1849 sed -n \
1850 "s/'\''/'\''\\\\'\'''\''/g;
1851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1852 ;; #(
1854 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1856 esac |
1857 sort
1859 echo
1861 cat <<\_ASBOX
1862 ## ----------------- ##
1863 ## Output variables. ##
1864 ## ----------------- ##
1865 _ASBOX
1866 echo
1867 for ac_var in $ac_subst_vars
1869 eval ac_val=\$$ac_var
1870 case $ac_val in
1871 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 esac
1873 echo "$ac_var='\''$ac_val'\''"
1874 done | sort
1875 echo
1877 if test -n "$ac_subst_files"; then
1878 cat <<\_ASBOX
1879 ## ------------------- ##
1880 ## File substitutions. ##
1881 ## ------------------- ##
1882 _ASBOX
1883 echo
1884 for ac_var in $ac_subst_files
1886 eval ac_val=\$$ac_var
1887 case $ac_val in
1888 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889 esac
1890 echo "$ac_var='\''$ac_val'\''"
1891 done | sort
1892 echo
1895 if test -s confdefs.h; then
1896 cat <<\_ASBOX
1897 ## ----------- ##
1898 ## confdefs.h. ##
1899 ## ----------- ##
1900 _ASBOX
1901 echo
1902 cat confdefs.h
1903 echo
1905 test "$ac_signal" != 0 &&
1906 echo "$as_me: caught signal $ac_signal"
1907 echo "$as_me: exit $exit_status"
1908 } >&5
1909 rm -f core *.core core.conftest.* &&
1910 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1911 exit $exit_status
1913 for ac_signal in 1 2 13 15; do
1914 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1915 done
1916 ac_signal=0
1918 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1919 rm -f -r conftest* confdefs.h
1921 # Predefined preprocessor variables.
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_NAME "$PACKAGE_NAME"
1925 _ACEOF
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1930 _ACEOF
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1935 _ACEOF
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_STRING "$PACKAGE_STRING"
1940 _ACEOF
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1945 _ACEOF
1948 # Let the site file select an alternate cache file if it wants to.
1949 # Prefer explicitly selected file to automatically selected ones.
1950 if test -n "$CONFIG_SITE"; then
1951 set x "$CONFIG_SITE"
1952 elif test "x$prefix" != xNONE; then
1953 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1954 else
1955 set x "$ac_default_prefix/share/config.site" \
1956 "$ac_default_prefix/etc/config.site"
1958 shift
1959 for ac_site_file
1961 if test -r "$ac_site_file"; then
1962 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1963 echo "$as_me: loading site script $ac_site_file" >&6;}
1964 sed 's/^/| /' "$ac_site_file" >&5
1965 . "$ac_site_file"
1967 done
1969 if test -r "$cache_file"; then
1970 # Some versions of bash will fail to source /dev/null (special
1971 # files actually), so we avoid doing that.
1972 if test -f "$cache_file"; then
1973 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1974 echo "$as_me: loading cache $cache_file" >&6;}
1975 case $cache_file in
1976 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1977 *) . "./$cache_file";;
1978 esac
1980 else
1981 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1982 echo "$as_me: creating cache $cache_file" >&6;}
1983 >$cache_file
1986 # Check that the precious variables saved in the cache have kept the same
1987 # value.
1988 ac_cache_corrupted=false
1989 for ac_var in $ac_precious_vars; do
1990 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1991 eval ac_new_set=\$ac_env_${ac_var}_set
1992 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1993 eval ac_new_val=\$ac_env_${ac_var}_value
1994 case $ac_old_set,$ac_new_set in
1995 set,)
1996 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1997 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1998 ac_cache_corrupted=: ;;
1999 ,set)
2000 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2001 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2003 ,);;
2005 if test "x$ac_old_val" != "x$ac_new_val"; then
2006 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2007 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2008 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2009 echo "$as_me: former value: $ac_old_val" >&2;}
2010 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2011 echo "$as_me: current value: $ac_new_val" >&2;}
2012 ac_cache_corrupted=:
2013 fi;;
2014 esac
2015 # Pass precious variables to config.status.
2016 if test "$ac_new_set" = set; then
2017 case $ac_new_val in
2018 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 *) ac_arg=$ac_var=$ac_new_val ;;
2020 esac
2021 case " $ac_configure_args " in
2022 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2023 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2024 esac
2026 done
2027 if $ac_cache_corrupted; then
2028 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2029 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2030 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2031 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2032 { (exit 1); exit 1; }; }
2059 ac_ext=c
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
2075 ac_aux_dir=
2076 for ac_dir in autoconf "$srcdir"/autoconf; do
2077 if test -f "$ac_dir/install-sh"; then
2078 ac_aux_dir=$ac_dir
2079 ac_install_sh="$ac_aux_dir/install-sh -c"
2080 break
2081 elif test -f "$ac_dir/install.sh"; then
2082 ac_aux_dir=$ac_dir
2083 ac_install_sh="$ac_aux_dir/install.sh -c"
2084 break
2085 elif test -f "$ac_dir/shtool"; then
2086 ac_aux_dir=$ac_dir
2087 ac_install_sh="$ac_aux_dir/shtool install -c"
2088 break
2090 done
2091 if test -z "$ac_aux_dir"; then
2092 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2093 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2094 { (exit 1); exit 1; }; }
2097 # These three variables are undocumented and unsupported,
2098 # and are intended to be withdrawn in a future Autoconf release.
2099 # They can cause serious problems if a builder's source tree is in a directory
2100 # whose full name contains unusual characters.
2101 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2102 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2103 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2107 if test ${srcdir} != "." ; then
2108 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2109 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2110 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2111 { (exit 1); exit 1; }; }
2115 for i in `ls ${srcdir}/projects`
2117 if test -d ${srcdir}/projects/${i} ; then
2118 case ${i} in
2119 CVS) ;;
2120 sample) subdirs="$subdirs projects/sample"
2122 privbracket) subdirs="$subdirs projects/privbracket"
2124 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2126 # llvm-test is the old name of the test-suite, kept here for backwards
2127 # compatibility
2128 llvm-test) subdirs="$subdirs projects/llvm-test"
2130 test-suite) subdirs="$subdirs projects/test-suite"
2132 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2134 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2136 llvm-java) subdirs="$subdirs projects/llvm-java"
2138 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2140 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2142 poolalloc) subdirs="$subdirs projects/poolalloc"
2144 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2147 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2148 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2150 esac
2152 done
2155 # Make sure we can run config.sub.
2156 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2157 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2158 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2159 { (exit 1); exit 1; }; }
2161 { echo "$as_me:$LINENO: checking build system type" >&5
2162 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_build+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 ac_build_alias=$build_alias
2167 test "x$ac_build_alias" = x &&
2168 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2169 test "x$ac_build_alias" = x &&
2170 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2171 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2172 { (exit 1); exit 1; }; }
2173 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2174 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2175 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2176 { (exit 1); exit 1; }; }
2179 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2180 echo "${ECHO_T}$ac_cv_build" >&6; }
2181 case $ac_cv_build in
2182 *-*-*) ;;
2183 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2184 echo "$as_me: error: invalid value of canonical build" >&2;}
2185 { (exit 1); exit 1; }; };;
2186 esac
2187 build=$ac_cv_build
2188 ac_save_IFS=$IFS; IFS='-'
2189 set x $ac_cv_build
2190 shift
2191 build_cpu=$1
2192 build_vendor=$2
2193 shift; shift
2194 # Remember, the first character of IFS is used to create $*,
2195 # except with old shells:
2196 build_os=$*
2197 IFS=$ac_save_IFS
2198 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2201 { echo "$as_me:$LINENO: checking host system type" >&5
2202 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2203 if test "${ac_cv_host+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206 if test "x$host_alias" = x; then
2207 ac_cv_host=$ac_cv_build
2208 else
2209 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2210 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2211 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2212 { (exit 1); exit 1; }; }
2216 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2217 echo "${ECHO_T}$ac_cv_host" >&6; }
2218 case $ac_cv_host in
2219 *-*-*) ;;
2220 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2221 echo "$as_me: error: invalid value of canonical host" >&2;}
2222 { (exit 1); exit 1; }; };;
2223 esac
2224 host=$ac_cv_host
2225 ac_save_IFS=$IFS; IFS='-'
2226 set x $ac_cv_host
2227 shift
2228 host_cpu=$1
2229 host_vendor=$2
2230 shift; shift
2231 # Remember, the first character of IFS is used to create $*,
2232 # except with old shells:
2233 host_os=$*
2234 IFS=$ac_save_IFS
2235 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2238 { echo "$as_me:$LINENO: checking target system type" >&5
2239 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2240 if test "${ac_cv_target+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test "x$target_alias" = x; then
2244 ac_cv_target=$ac_cv_host
2245 else
2246 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2247 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2248 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2249 { (exit 1); exit 1; }; }
2253 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2254 echo "${ECHO_T}$ac_cv_target" >&6; }
2255 case $ac_cv_target in
2256 *-*-*) ;;
2257 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2258 echo "$as_me: error: invalid value of canonical target" >&2;}
2259 { (exit 1); exit 1; }; };;
2260 esac
2261 target=$ac_cv_target
2262 ac_save_IFS=$IFS; IFS='-'
2263 set x $ac_cv_target
2264 shift
2265 target_cpu=$1
2266 target_vendor=$2
2267 shift; shift
2268 # Remember, the first character of IFS is used to create $*,
2269 # except with old shells:
2270 target_os=$*
2271 IFS=$ac_save_IFS
2272 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2275 # The aliases save the names the user supplied, while $host etc.
2276 # will get canonicalized.
2277 test -n "$target_alias" &&
2278 test "$program_prefix$program_suffix$program_transform_name" = \
2279 NONENONEs,x,x, &&
2280 program_prefix=${target_alias}-
2282 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2283 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2284 if test "${llvm_cv_os_type+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 case $host in
2288 *-*-aix*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="AIX"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-irix*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="IRIX"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-cygwin*)
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="Cygwin"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-darwin*)
2304 llvm_cv_link_all_option="-Wl,-all_load"
2305 llvm_cv_no_link_all_option="-Wl,-noall_load"
2306 llvm_cv_os_type="Darwin"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-freebsd*)
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="FreeBSD"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-openbsd*)
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="OpenBSD"
2317 llvm_cv_platform_type="Unix" ;;
2318 *-*-netbsd*)
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="NetBSD"
2322 llvm_cv_platform_type="Unix" ;;
2323 *-*-dragonfly*)
2324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2326 llvm_cv_os_type="DragonFly"
2327 llvm_cv_platform_type="Unix" ;;
2328 *-*-hpux*)
2329 llvm_cv_link_all_option="-Wl,--whole-archive"
2330 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2331 llvm_cv_os_type="HP-UX"
2332 llvm_cv_platform_type="Unix" ;;
2333 *-*-interix*)
2334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2336 llvm_cv_os_type="Interix"
2337 llvm_cv_platform_type="Unix" ;;
2338 *-*-linux*)
2339 llvm_cv_link_all_option="-Wl,--whole-archive"
2340 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2341 llvm_cv_os_type="Linux"
2342 llvm_cv_platform_type="Unix" ;;
2343 *-*-solaris*)
2344 llvm_cv_link_all_option="-Wl,-z,allextract"
2345 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2346 llvm_cv_os_type="SunOS"
2347 llvm_cv_platform_type="Unix" ;;
2348 *-*-auroraux*)
2349 llvm_cv_link_all_option="-Wl,-z,allextract"
2350 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2351 llvm_cv_os_type="AuroraUX"
2352 llvm_cv_platform_type="Unix" ;;
2353 *-*-win32*)
2354 llvm_cv_link_all_option="-Wl,--whole-archive"
2355 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2356 llvm_cv_os_type="Win32"
2357 llvm_cv_platform_type="Win32" ;;
2358 *-*-mingw*)
2359 llvm_cv_link_all_option="-Wl,--whole-archive"
2360 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2361 llvm_cv_os_type="MingW"
2362 llvm_cv_platform_type="Win32" ;;
2363 *-*-haiku*)
2364 llvm_cv_link_all_option="-Wl,--whole-archive"
2365 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2366 llvm_cv_os_type="Haiku"
2367 llvm_cv_platform_type="Unix" ;;
2368 *-unknown-eabi*)
2369 llvm_cv_link_all_option="-Wl,--whole-archive"
2370 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2371 llvm_cv_os_type="Freestanding"
2372 llvm_cv_platform_type="Unix" ;;
2373 *-unknown-elf*)
2374 llvm_cv_link_all_option="-Wl,--whole-archive"
2375 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2376 llvm_cv_os_type="Freestanding"
2377 llvm_cv_platform_type="Unix" ;;
2379 llvm_cv_link_all_option=""
2380 llvm_cv_no_link_all_option=""
2381 llvm_cv_os_type="Unknown"
2382 llvm_cv_platform_type="Unknown" ;;
2383 esac
2385 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2386 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2388 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2389 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2390 if test "${llvm_cv_target_os_type+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 case $target in
2394 *-*-aix*)
2395 llvm_cv_target_os_type="AIX" ;;
2396 *-*-irix*)
2397 llvm_cv_target_os_type="IRIX" ;;
2398 *-*-cygwin*)
2399 llvm_cv_target_os_type="Cygwin" ;;
2400 *-*-darwin*)
2401 llvm_cv_target_os_type="Darwin" ;;
2402 *-*-freebsd*)
2403 llvm_cv_target_os_type="FreeBSD" ;;
2404 *-*-openbsd*)
2405 llvm_cv_target_os_type="OpenBSD" ;;
2406 *-*-netbsd*)
2407 llvm_cv_target_os_type="NetBSD" ;;
2408 *-*-dragonfly*)
2409 llvm_cv_target_os_type="DragonFly" ;;
2410 *-*-hpux*)
2411 llvm_cv_target_os_type="HP-UX" ;;
2412 *-*-interix*)
2413 llvm_cv_target_os_type="Interix" ;;
2414 *-*-linux*)
2415 llvm_cv_target_os_type="Linux" ;;
2416 *-*-solaris*)
2417 llvm_cv_target_os_type="SunOS" ;;
2418 *-*-auroraux*)
2419 llvm_cv_target_os_type="AuroraUX" ;;
2420 *-*-win32*)
2421 llvm_cv_target_os_type="Win32" ;;
2422 *-*-mingw*)
2423 llvm_cv_target_os_type="MingW" ;;
2424 *-*-haiku*)
2425 llvm_cv_target_os_type="Haiku" ;;
2426 *-unknown-eabi*)
2427 llvm_cv_target_os_type="Freestanding" ;;
2429 llvm_cv_target_os_type="Unknown" ;;
2430 esac
2432 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2433 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2435 if test "$llvm_cv_os_type" = "Unknown" ; then
2436 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2437 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2438 { (exit 1); exit 1; }; }
2441 OS=$llvm_cv_os_type
2443 HOST_OS=$llvm_cv_os_type
2445 TARGET_OS=$llvm_cv_target_os_type
2448 LINKALL=$llvm_cv_link_all_option
2450 NOLINKALL=$llvm_cv_no_link_all_option
2453 case $llvm_cv_platform_type in
2454 Unix)
2456 cat >>confdefs.h <<\_ACEOF
2457 #define LLVM_ON_UNIX 1
2458 _ACEOF
2460 LLVM_ON_UNIX=1
2462 LLVM_ON_WIN32=0
2465 Win32)
2467 cat >>confdefs.h <<\_ACEOF
2468 #define LLVM_ON_WIN32 1
2469 _ACEOF
2471 LLVM_ON_UNIX=0
2473 LLVM_ON_WIN32=1
2476 esac
2478 { echo "$as_me:$LINENO: checking target architecture" >&5
2479 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2480 if test "${llvm_cv_target_arch+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483 case $target in
2484 i?86-*) llvm_cv_target_arch="x86" ;;
2485 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2486 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2487 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2488 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2489 arm*-*) llvm_cv_target_arch="ARM" ;;
2490 mips-*) llvm_cv_target_arch="Mips" ;;
2491 pic16-*) llvm_cv_target_arch="PIC16" ;;
2492 xcore-*) llvm_cv_target_arch="XCore" ;;
2493 msp430-*) llvm_cv_target_arch="MSP430" ;;
2494 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2495 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2496 *) llvm_cv_target_arch="Unknown" ;;
2497 esac
2499 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2500 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2502 if test "$llvm_cv_target_arch" = "Unknown" ; then
2503 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2504 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2507 # Determine the LLVM native architecture for the target
2508 case "$llvm_cv_target_arch" in
2509 x86) LLVM_NATIVE_ARCH="X86" ;;
2510 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2511 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2512 esac
2514 ARCH=$llvm_cv_target_arch
2517 ac_ext=c
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2522 if test -n "$ac_tool_prefix"; then
2523 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2524 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2527 if test "${ac_cv_prog_CC+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530 if test -n "$CC"; then
2531 ac_cv_prog_CC="$CC" # Let the user override the test.
2532 else
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 for as_dir in $PATH
2536 IFS=$as_save_IFS
2537 test -z "$as_dir" && as_dir=.
2538 for ac_exec_ext in '' $ac_executable_extensions; do
2539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2540 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 break 2
2544 done
2545 done
2546 IFS=$as_save_IFS
2550 CC=$ac_cv_prog_CC
2551 if test -n "$CC"; then
2552 { echo "$as_me:$LINENO: result: $CC" >&5
2553 echo "${ECHO_T}$CC" >&6; }
2554 else
2555 { echo "$as_me:$LINENO: result: no" >&5
2556 echo "${ECHO_T}no" >&6; }
2561 if test -z "$ac_cv_prog_CC"; then
2562 ac_ct_CC=$CC
2563 # Extract the first word of "gcc", so it can be a program name with args.
2564 set dummy gcc; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_ac_ct_CC="gcc"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2584 done
2585 done
2586 IFS=$as_save_IFS
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6; }
2594 else
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2599 if test "x$ac_ct_CC" = x; then
2600 CC=""
2601 else
2602 case $cross_compiling:$ac_tool_warned in
2603 yes:)
2604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2605 whose name does not start with the host triplet. If you think this
2606 configuration is useful to you, please write to autoconf@gnu.org." >&5
2607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet. If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2610 ac_tool_warned=yes ;;
2611 esac
2612 CC=$ac_ct_CC
2614 else
2615 CC="$ac_cv_prog_CC"
2618 if test -z "$CC"; then
2619 if test -n "$ac_tool_prefix"; then
2620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}cc; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_CC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 if test -n "$CC"; then
2628 ac_cv_prog_CC="$CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_CC="${ac_tool_prefix}cc"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2641 done
2642 done
2643 IFS=$as_save_IFS
2647 CC=$ac_cv_prog_CC
2648 if test -n "$CC"; then
2649 { echo "$as_me:$LINENO: result: $CC" >&5
2650 echo "${ECHO_T}$CC" >&6; }
2651 else
2652 { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2659 if test -z "$CC"; then
2660 # Extract the first word of "cc", so it can be a program name with args.
2661 set dummy cc; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_CC+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 if test -n "$CC"; then
2668 ac_cv_prog_CC="$CC" # Let the user override the test.
2669 else
2670 ac_prog_rejected=no
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2679 ac_prog_rejected=yes
2680 continue
2682 ac_cv_prog_CC="cc"
2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2686 done
2687 done
2688 IFS=$as_save_IFS
2690 if test $ac_prog_rejected = yes; then
2691 # We found a bogon in the path, so make sure we never use it.
2692 set dummy $ac_cv_prog_CC
2693 shift
2694 if test $# != 0; then
2695 # We chose a different compiler from the bogus one.
2696 # However, it has the same basename, so the bogon will be chosen
2697 # first if we set CC to just the basename; use the full file name.
2698 shift
2699 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 { echo "$as_me:$LINENO: result: $CC" >&5
2707 echo "${ECHO_T}$CC" >&6; }
2708 else
2709 { echo "$as_me:$LINENO: result: no" >&5
2710 echo "${ECHO_T}no" >&6; }
2715 if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
2717 for ac_prog in cl.exe
2719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2740 done
2741 done
2742 IFS=$as_save_IFS
2746 CC=$ac_cv_prog_CC
2747 if test -n "$CC"; then
2748 { echo "$as_me:$LINENO: result: $CC" >&5
2749 echo "${ECHO_T}$CC" >&6; }
2750 else
2751 { echo "$as_me:$LINENO: result: no" >&5
2752 echo "${ECHO_T}no" >&6; }
2756 test -n "$CC" && break
2757 done
2759 if test -z "$CC"; then
2760 ac_ct_CC=$CC
2761 for ac_prog in cl.exe
2763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2764 set dummy $ac_prog; ac_word=$2
2765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770 if test -n "$ac_ct_CC"; then
2771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2772 else
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_ac_ct_CC="$ac_prog"
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2791 if test -n "$ac_ct_CC"; then
2792 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2793 echo "${ECHO_T}$ac_ct_CC" >&6; }
2794 else
2795 { echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6; }
2800 test -n "$ac_ct_CC" && break
2801 done
2803 if test "x$ac_ct_CC" = x; then
2804 CC=""
2805 else
2806 case $cross_compiling:$ac_tool_warned in
2807 yes:)
2808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet. If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&5
2811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2812 whose name does not start with the host triplet. If you think this
2813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2814 ac_tool_warned=yes ;;
2815 esac
2816 CC=$ac_ct_CC
2823 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: no acceptable C compiler found in \$PATH
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2829 # Provide some information about the compiler.
2830 echo "$as_me:$LINENO: checking for C compiler version" >&5
2831 ac_compiler=`set X $ac_compile; echo $2`
2832 { (ac_try="$ac_compiler --version >&5"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compiler --version >&5") 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }
2842 { (ac_try="$ac_compiler -v >&5"
2843 case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compiler -v >&5") 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }
2852 { (ac_try="$ac_compiler -V >&5"
2853 case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856 esac
2857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_compiler -V >&5") 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2871 main ()
2875 return 0;
2877 _ACEOF
2878 ac_clean_files_save=$ac_clean_files
2879 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2880 # Try to create an executable without -o first, disregard a.out.
2881 # It will help us diagnose broken compilers, and finding out an intuition
2882 # of exeext.
2883 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2884 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2885 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2887 # List of possible output files, starting from the most likely.
2888 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2889 # only as a last resort. b.out is created by i960 compilers.
2890 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2892 # The IRIX 6 linker writes into existing files which may not be
2893 # executable, retaining their permissions. Remove them first so a
2894 # subsequent execution test works.
2895 ac_rmfiles=
2896 for ac_file in $ac_files
2898 case $ac_file in
2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2900 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2901 esac
2902 done
2903 rm -f $ac_rmfiles
2905 if { (ac_try="$ac_link_default"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_link_default") 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; then
2915 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2916 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2917 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2918 # so that the user can short-circuit this test for compilers unknown to
2919 # Autoconf.
2920 for ac_file in $ac_files
2922 test -f "$ac_file" || continue
2923 case $ac_file in
2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2926 [ab].out )
2927 # We found the default executable, but exeext='' is most
2928 # certainly right.
2929 break;;
2930 *.* )
2931 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2932 then :; else
2933 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935 # We set ac_cv_exeext here because the later test for it is not
2936 # safe: cross compilers may not add the suffix if given an `-o'
2937 # argument, so we may need to know it at that point already.
2938 # Even if this section looks crufty: it has the advantage of
2939 # actually working.
2940 break;;
2942 break;;
2943 esac
2944 done
2945 test "$ac_cv_exeext" = no && ac_cv_exeext=
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2952 See \`config.log' for more details." >&5
2953 echo "$as_me: error: C compiler cannot create executables
2954 See \`config.log' for more details." >&2;}
2955 { (exit 77); exit 77; }; }
2958 ac_exeext=$ac_cv_exeext
2959 { echo "$as_me:$LINENO: result: $ac_file" >&5
2960 echo "${ECHO_T}$ac_file" >&6; }
2962 # Check that the compiler produces executables we can run. If not, either
2963 # the compiler is broken, or we cross compile.
2964 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2966 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967 # If not cross compiling, check that we can run a simple program.
2968 if test "$cross_compiling" != yes; then
2969 if { ac_try='./$ac_file'
2970 { (case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973 esac
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_try") 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 cross_compiling=no
2980 else
2981 if test "$cross_compiling" = maybe; then
2982 cross_compiling=yes
2983 else
2984 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2985 If you meant to cross compile, use \`--host'.
2986 See \`config.log' for more details." >&5
2987 echo "$as_me: error: cannot run C compiled programs.
2988 If you meant to cross compile, use \`--host'.
2989 See \`config.log' for more details." >&2;}
2990 { (exit 1); exit 1; }; }
2994 { echo "$as_me:$LINENO: result: yes" >&5
2995 echo "${ECHO_T}yes" >&6; }
2997 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2998 ac_clean_files=$ac_clean_files_save
2999 # Check that the compiler produces executables we can run. If not, either
3000 # the compiler is broken, or we cross compile.
3001 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3002 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3003 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3004 echo "${ECHO_T}$cross_compiling" >&6; }
3006 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3007 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3008 if { (ac_try="$ac_link"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_link") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; then
3018 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3019 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3020 # work properly (i.e., refer to `conftest.exe'), while it won't with
3021 # `rm'.
3022 for ac_file in conftest.exe conftest conftest.*; do
3023 test -f "$ac_file" || continue
3024 case $ac_file in
3025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3026 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3027 break;;
3028 * ) break;;
3029 esac
3030 done
3031 else
3032 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3033 See \`config.log' for more details." >&5
3034 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3035 See \`config.log' for more details." >&2;}
3036 { (exit 1); exit 1; }; }
3039 rm -f conftest$ac_cv_exeext
3040 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3041 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3043 rm -f conftest.$ac_ext
3044 EXEEXT=$ac_cv_exeext
3045 ac_exeext=$EXEEXT
3046 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3047 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3048 if test "${ac_cv_objext+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3059 main ()
3063 return 0;
3065 _ACEOF
3066 rm -f conftest.o conftest.obj
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070 *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073 (eval "$ac_compile") 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; then
3077 for ac_file in conftest.o conftest.obj conftest.*; do
3078 test -f "$ac_file" || continue;
3079 case $ac_file in
3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3082 break;;
3083 esac
3084 done
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3090 See \`config.log' for more details." >&5
3091 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3092 See \`config.log' for more details." >&2;}
3093 { (exit 1); exit 1; }; }
3096 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3099 echo "${ECHO_T}$ac_cv_objext" >&6; }
3100 OBJEXT=$ac_cv_objext
3101 ac_objext=$OBJEXT
3102 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3103 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3104 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3105 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 else
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3115 main ()
3117 #ifndef __GNUC__
3118 choke me
3119 #endif
3122 return 0;
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_compiler_gnu=yes
3160 else
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_compiler_gnu=no
3167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3171 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3172 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3173 GCC=`test $ac_compiler_gnu = yes && echo yes`
3174 ac_test_CFLAGS=${CFLAGS+set}
3175 ac_save_CFLAGS=$CFLAGS
3176 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3177 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_cc_g+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 ac_save_c_werror_flag=$ac_c_werror_flag
3182 ac_c_werror_flag=yes
3183 ac_cv_prog_cc_g=no
3184 CFLAGS="-g"
3185 cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h. */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3193 main ()
3197 return 0;
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>conftest.er1
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3215 { (case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_try") 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; } &&
3224 { ac_try='test -s conftest.$ac_objext'
3225 { (case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_try") 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 ac_cv_prog_cc_g=yes
3235 else
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 CFLAGS=""
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3248 main ()
3252 return 0;
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_compile") 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
3269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3270 { (case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_try") 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; } &&
3279 { ac_try='test -s conftest.$ac_objext'
3280 { (case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_try") 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3295 CFLAGS="-g"
3296 cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h. */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3304 main ()
3308 return 0;
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } &&
3325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3326 { (case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_try") 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest.$ac_objext'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; }; then
3345 ac_cv_prog_cc_g=yes
3346 else
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3362 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3364 if test "$ac_test_CFLAGS" = set; then
3365 CFLAGS=$ac_save_CFLAGS
3366 elif test $ac_cv_prog_cc_g = yes; then
3367 if test "$GCC" = yes; then
3368 CFLAGS="-g -O2"
3369 else
3370 CFLAGS="-g"
3372 else
3373 if test "$GCC" = yes; then
3374 CFLAGS="-O2"
3375 else
3376 CFLAGS=
3379 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3380 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_cc_c89+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 ac_cv_prog_cc_c89=no
3385 ac_save_CC=$CC
3386 cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h. */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3392 #include <stdarg.h>
3393 #include <stdio.h>
3394 #include <sys/types.h>
3395 #include <sys/stat.h>
3396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3397 struct buf { int x; };
3398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399 static char *e (p, i)
3400 char **p;
3401 int i;
3403 return p[i];
3405 static char *f (char * (*g) (char **, int), char **p, ...)
3407 char *s;
3408 va_list v;
3409 va_start (v,p);
3410 s = g (p, va_arg (v,int));
3411 va_end (v);
3412 return s;
3415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3416 function prototypes and stuff, but not '\xHH' hex character constants.
3417 These don't provoke an error unfortunately, instead are silently treated
3418 as 'x'. The following induces an error, until -std is added to get
3419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3420 array size at least. It's necessary to write '\x00'==0 to get something
3421 that's true only with -std. */
3422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3425 inside strings and character constants. */
3426 #define FOO(x) 'x'
3427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 int argc;
3434 char **argv;
3436 main ()
3438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3440 return 0;
3442 _ACEOF
3443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446 CC="$ac_save_CC $ac_arg"
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>conftest.er1
3455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3462 { (case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_try") 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_prog_cc_c89=$ac_arg
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f core conftest.err conftest.$ac_objext
3490 test "x$ac_cv_prog_cc_c89" != "xno" && break
3491 done
3492 rm -f conftest.$ac_ext
3493 CC=$ac_save_CC
3496 # AC_CACHE_VAL
3497 case "x$ac_cv_prog_cc_c89" in
3499 { echo "$as_me:$LINENO: result: none needed" >&5
3500 echo "${ECHO_T}none needed" >&6; } ;;
3501 xno)
3502 { echo "$as_me:$LINENO: result: unsupported" >&5
3503 echo "${ECHO_T}unsupported" >&6; } ;;
3505 CC="$CC $ac_cv_prog_cc_c89"
3506 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3507 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3508 esac
3511 ac_ext=c
3512 ac_cpp='$CPP $CPPFLAGS'
3513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3524 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3525 # On Suns, sometimes $CPP names a directory.
3526 if test -n "$CPP" && test -d "$CPP"; then
3527 CPP=
3529 if test -z "$CPP"; then
3530 if test "${ac_cv_prog_CPP+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533 # Double quotes because CPP needs to be expanded
3534 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3536 ac_preproc_ok=false
3537 for ac_c_preproc_warn_flag in '' yes
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #ifdef __STDC__
3552 # include <limits.h>
3553 #else
3554 # include <assert.h>
3555 #endif
3556 Syntax error
3557 _ACEOF
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 else
3575 ac_cpp_err=
3577 else
3578 ac_cpp_err=yes
3580 if test -z "$ac_cpp_err"; then
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3586 # Broken: fails on valid input.
3587 continue
3590 rm -f conftest.err conftest.$ac_ext
3592 # OK, works on sane cases. Now check whether nonexistent headers
3593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 #include <ac_nonexistent.h>
3601 _ACEOF
3602 if { (ac_try="$ac_cpp conftest.$ac_ext"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 else
3619 ac_cpp_err=
3621 else
3622 ac_cpp_err=yes
3624 if test -z "$ac_cpp_err"; then
3625 # Broken: success on invalid input.
3626 continue
3627 else
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3636 rm -f conftest.err conftest.$ac_ext
3638 done
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.$ac_ext
3641 if $ac_preproc_ok; then
3642 break
3645 done
3646 ac_cv_prog_CPP=$CPP
3649 CPP=$ac_cv_prog_CPP
3650 else
3651 ac_cv_prog_CPP=$CPP
3653 { echo "$as_me:$LINENO: result: $CPP" >&5
3654 echo "${ECHO_T}$CPP" >&6; }
3655 ac_preproc_ok=false
3656 for ac_c_preproc_warn_flag in '' yes
3658 # Use a header file that comes with gcc, so configuring glibc
3659 # with a fresh cross-compiler works.
3660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661 # <limits.h> exists even on freestanding compilers.
3662 # On the NeXT, cc -E runs the code through the compiler's parser,
3663 # not just through cpp. "Syntax error" is here to catch this case.
3664 cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h. */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 #ifdef __STDC__
3671 # include <limits.h>
3672 #else
3673 # include <assert.h>
3674 #endif
3675 Syntax error
3676 _ACEOF
3677 if { (ac_try="$ac_cpp conftest.$ac_ext"
3678 case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } >/dev/null; then
3690 if test -s conftest.err; then
3691 ac_cpp_err=$ac_c_preproc_warn_flag
3692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3693 else
3694 ac_cpp_err=
3696 else
3697 ac_cpp_err=yes
3699 if test -z "$ac_cpp_err"; then
3701 else
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3705 # Broken: fails on valid input.
3706 continue
3709 rm -f conftest.err conftest.$ac_ext
3711 # OK, works on sane cases. Now check whether nonexistent headers
3712 # can be detected and how.
3713 cat >conftest.$ac_ext <<_ACEOF
3714 /* confdefs.h. */
3715 _ACEOF
3716 cat confdefs.h >>conftest.$ac_ext
3717 cat >>conftest.$ac_ext <<_ACEOF
3718 /* end confdefs.h. */
3719 #include <ac_nonexistent.h>
3720 _ACEOF
3721 if { (ac_try="$ac_cpp conftest.$ac_ext"
3722 case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } >/dev/null; then
3734 if test -s conftest.err; then
3735 ac_cpp_err=$ac_c_preproc_warn_flag
3736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737 else
3738 ac_cpp_err=
3740 else
3741 ac_cpp_err=yes
3743 if test -z "$ac_cpp_err"; then
3744 # Broken: success on invalid input.
3745 continue
3746 else
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3750 # Passes both tests.
3751 ac_preproc_ok=:
3752 break
3755 rm -f conftest.err conftest.$ac_ext
3757 done
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then
3762 else
3763 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details." >&2;}
3767 { (exit 1); exit 1; }; }
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3778 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3779 if test "${ac_cv_path_GREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 # Extract the first word of "grep ggrep" to use in msg output
3783 if test -z "$GREP"; then
3784 set dummy grep ggrep; ac_prog_name=$2
3785 if test "${ac_cv_path_GREP+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 else
3788 ac_path_GREP_found=false
3789 # Loop through the user's path and test for each of PROGNAME-LIST
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_prog in grep ggrep; do
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3798 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3799 # Check for GNU ac_path_GREP and select it if it is found.
3800 # Check for GNU $ac_path_GREP
3801 case `"$ac_path_GREP" --version 2>&1` in
3802 *GNU*)
3803 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3805 ac_count=0
3806 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3807 while :
3809 cat "conftest.in" "conftest.in" >"conftest.tmp"
3810 mv "conftest.tmp" "conftest.in"
3811 cp "conftest.in" "conftest.nl"
3812 echo 'GREP' >> "conftest.nl"
3813 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3815 ac_count=`expr $ac_count + 1`
3816 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3817 # Best one so far, save it but keep looking for a better one
3818 ac_cv_path_GREP="$ac_path_GREP"
3819 ac_path_GREP_max=$ac_count
3821 # 10*(2^10) chars as input seems more than enough
3822 test $ac_count -gt 10 && break
3823 done
3824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3825 esac
3828 $ac_path_GREP_found && break 3
3829 done
3830 done
3832 done
3833 IFS=$as_save_IFS
3838 GREP="$ac_cv_path_GREP"
3839 if test -z "$GREP"; then
3840 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3841 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3842 { (exit 1); exit 1; }; }
3845 else
3846 ac_cv_path_GREP=$GREP
3851 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3852 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3853 GREP="$ac_cv_path_GREP"
3856 { echo "$as_me:$LINENO: checking for egrep" >&5
3857 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3858 if test "${ac_cv_path_EGREP+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3862 then ac_cv_path_EGREP="$GREP -E"
3863 else
3864 # Extract the first word of "egrep" to use in msg output
3865 if test -z "$EGREP"; then
3866 set dummy egrep; ac_prog_name=$2
3867 if test "${ac_cv_path_EGREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870 ac_path_EGREP_found=false
3871 # Loop through the user's path and test for each of PROGNAME-LIST
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_prog in egrep; do
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3880 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3881 # Check for GNU ac_path_EGREP and select it if it is found.
3882 # Check for GNU $ac_path_EGREP
3883 case `"$ac_path_EGREP" --version 2>&1` in
3884 *GNU*)
3885 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3887 ac_count=0
3888 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3889 while :
3891 cat "conftest.in" "conftest.in" >"conftest.tmp"
3892 mv "conftest.tmp" "conftest.in"
3893 cp "conftest.in" "conftest.nl"
3894 echo 'EGREP' >> "conftest.nl"
3895 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897 ac_count=`expr $ac_count + 1`
3898 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3899 # Best one so far, save it but keep looking for a better one
3900 ac_cv_path_EGREP="$ac_path_EGREP"
3901 ac_path_EGREP_max=$ac_count
3903 # 10*(2^10) chars as input seems more than enough
3904 test $ac_count -gt 10 && break
3905 done
3906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907 esac
3910 $ac_path_EGREP_found && break 3
3911 done
3912 done
3914 done
3915 IFS=$as_save_IFS
3920 EGREP="$ac_cv_path_EGREP"
3921 if test -z "$EGREP"; then
3922 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3923 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3924 { (exit 1); exit 1; }; }
3927 else
3928 ac_cv_path_EGREP=$EGREP
3934 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3935 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3936 EGREP="$ac_cv_path_EGREP"
3939 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3940 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3941 if test "${ac_cv_header_stdc+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 else
3944 cat >conftest.$ac_ext <<_ACEOF
3945 /* confdefs.h. */
3946 _ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 #include <stdlib.h>
3951 #include <stdarg.h>
3952 #include <string.h>
3953 #include <float.h>
3956 main ()
3960 return 0;
3962 _ACEOF
3963 rm -f conftest.$ac_objext
3964 if { (ac_try="$ac_compile"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } &&
3977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3978 { (case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_try") 2>&5
3984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; } &&
3987 { ac_try='test -s conftest.$ac_objext'
3988 { (case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991 esac
3992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_try") 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 ac_cv_header_stdc=yes
3998 else
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 ac_cv_header_stdc=no
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007 if test $ac_cv_header_stdc = yes; then
4008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h. */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 #include <string.h>
4017 _ACEOF
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "memchr" >/dev/null 2>&1; then
4021 else
4022 ac_cv_header_stdc=no
4024 rm -f conftest*
4028 if test $ac_cv_header_stdc = yes; then
4029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h. */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 #include <stdlib.h>
4038 _ACEOF
4039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "free" >/dev/null 2>&1; then
4042 else
4043 ac_cv_header_stdc=no
4045 rm -f conftest*
4049 if test $ac_cv_header_stdc = yes; then
4050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4051 if test "$cross_compiling" = yes; then
4053 else
4054 cat >conftest.$ac_ext <<_ACEOF
4055 /* confdefs.h. */
4056 _ACEOF
4057 cat confdefs.h >>conftest.$ac_ext
4058 cat >>conftest.$ac_ext <<_ACEOF
4059 /* end confdefs.h. */
4060 #include <ctype.h>
4061 #include <stdlib.h>
4062 #if ((' ' & 0x0FF) == 0x020)
4063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4065 #else
4066 # define ISLOWER(c) \
4067 (('a' <= (c) && (c) <= 'i') \
4068 || ('j' <= (c) && (c) <= 'r') \
4069 || ('s' <= (c) && (c) <= 'z'))
4070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4071 #endif
4073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4075 main ()
4077 int i;
4078 for (i = 0; i < 256; i++)
4079 if (XOR (islower (i), ISLOWER (i))
4080 || toupper (i) != TOUPPER (i))
4081 return 2;
4082 return 0;
4084 _ACEOF
4085 rm -f conftest$ac_exeext
4086 if { (ac_try="$ac_link"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_link") 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
4106 else
4107 echo "$as_me: program exited with status $ac_status" >&5
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 ( exit $ac_status )
4112 ac_cv_header_stdc=no
4114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4120 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4121 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4122 if test $ac_cv_header_stdc = yes; then
4124 cat >>confdefs.h <<\_ACEOF
4125 #define STDC_HEADERS 1
4126 _ACEOF
4130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4140 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4141 inttypes.h stdint.h unistd.h
4143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h. */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 $ac_includes_default
4157 #include <$ac_header>
4158 _ACEOF
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4174 { (case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177 esac
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_try") 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest.$ac_objext'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 eval "$as_ac_Header=yes"
4194 else
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 eval "$as_ac_Header=no"
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_res=`eval echo '${'$as_ac_Header'}'`
4204 { echo "$as_me:$LINENO: result: $ac_res" >&5
4205 echo "${ECHO_T}$ac_res" >&6; }
4206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4207 cat >>confdefs.h <<_ACEOF
4208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4209 _ACEOF
4213 done
4216 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4217 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4218 if test "${ac_cv_c_bigendian+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 # See if sys/param.h defines the BYTE_ORDER macro.
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <sys/types.h>
4229 #include <sys/param.h>
4232 main ()
4234 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4235 bogus endian macros
4236 #endif
4239 return 0;
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 # It does; now see whether it defined to BIG_ENDIAN or not.
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <sys/types.h>
4284 #include <sys/param.h>
4287 main ()
4289 #if BYTE_ORDER != BIG_ENDIAN
4290 not big endian
4291 #endif
4294 return 0;
4296 _ACEOF
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4312 { (case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_try") 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; } &&
4321 { ac_try='test -s conftest.$ac_objext'
4322 { (case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325 esac
4326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_try") 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 ac_cv_c_bigendian=yes
4332 else
4333 echo "$as_me: failed program was:" >&5
4334 sed 's/^/| /' conftest.$ac_ext >&5
4336 ac_cv_c_bigendian=no
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 else
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 # It does not; compile a test program.
4345 if test "$cross_compiling" = yes; then
4346 # try to guess the endianness by grepping values into an object file
4347 ac_cv_c_bigendian=unknown
4348 cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h. */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4355 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4356 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4357 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4358 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4359 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4361 main ()
4363 _ascii (); _ebcdic ();
4365 return 0;
4367 _ACEOF
4368 rm -f conftest.$ac_objext
4369 if { (ac_try="$ac_compile"
4370 case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_compile") 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4383 { (case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_try") 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; } &&
4392 { ac_try='test -s conftest.$ac_objext'
4393 { (case "(($ac_try" in
4394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395 *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398 (eval "$ac_try") 2>&5
4399 ac_status=$?
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4403 ac_cv_c_bigendian=yes
4405 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4406 if test "$ac_cv_c_bigendian" = unknown; then
4407 ac_cv_c_bigendian=no
4408 else
4409 # finding both strings is unlikely to happen, but who knows?
4410 ac_cv_c_bigendian=unknown
4413 else
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 else
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h. */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 $ac_includes_default
4430 main ()
4433 /* Are we little or big endian? From Harbison&Steele. */
4434 union
4436 long int l;
4437 char c[sizeof (long int)];
4438 } u;
4439 u.l = 1;
4440 return u.c[sizeof (long int) - 1] == 1;
4443 return 0;
4445 _ACEOF
4446 rm -f conftest$ac_exeext
4447 if { (ac_try="$ac_link"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_link") 2>&5
4454 ac_status=$?
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4457 { (case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_try") 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4466 ac_cv_c_bigendian=no
4467 else
4468 echo "$as_me: program exited with status $ac_status" >&5
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 ( exit $ac_status )
4473 ac_cv_c_bigendian=yes
4475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4484 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4485 case $ac_cv_c_bigendian in
4486 yes)
4487 ENDIAN=big
4490 ENDIAN=little
4493 { { echo "$as_me:$LINENO: error: unknown endianness
4494 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4495 echo "$as_me: error: unknown endianness
4496 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4497 { (exit 1); exit 1; }; } ;;
4498 esac
4501 if test "$cross_compiling" = yes; then
4502 LLVM_CROSS_COMPILING=1
4505 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4506 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4507 if test "${ac_cv_build_exeext+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4511 ac_cv_build_exeext=.exe
4512 else
4513 ac_build_prefix=${build_alias}-
4515 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4516 set dummy ${ac_build_prefix}gcc; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 if test -n "$BUILD_CC"; then
4523 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4538 IFS=$as_save_IFS
4542 BUILD_CC=$ac_cv_prog_BUILD_CC
4543 if test -n "$BUILD_CC"; then
4544 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4545 echo "${ECHO_T}$BUILD_CC" >&6; }
4546 else
4547 { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4552 if test -z "$BUILD_CC"; then
4553 # Extract the first word of "gcc", so it can be a program name with args.
4554 set dummy gcc; ac_word=$2
4555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4557 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560 if test -n "$BUILD_CC"; then
4561 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_BUILD_CC="gcc"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 BUILD_CC=$ac_cv_prog_BUILD_CC
4581 if test -n "$BUILD_CC"; then
4582 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4583 echo "${ECHO_T}$BUILD_CC" >&6; }
4584 else
4585 { echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6; }
4590 if test -z "$BUILD_CC"; then
4591 # Extract the first word of "cc", so it can be a program name with args.
4592 set dummy cc; ac_word=$2
4593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4595 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598 if test -n "$BUILD_CC"; then
4599 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4600 else
4601 ac_prog_rejected=no
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4610 ac_prog_rejected=yes
4611 continue
4613 ac_cv_prog_BUILD_CC="cc"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4617 done
4618 done
4619 IFS=$as_save_IFS
4621 if test $ac_prog_rejected = yes; then
4622 # We found a bogon in the path, so make sure we never use it.
4623 set dummy $ac_cv_prog_BUILD_CC
4624 shift
4625 if test $# != 0; then
4626 # We chose a different compiler from the bogus one.
4627 # However, it has the same basename, so the bogon will be chosen
4628 # first if we set BUILD_CC to just the basename; use the full file name.
4629 shift
4630 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4635 BUILD_CC=$ac_cv_prog_BUILD_CC
4636 if test -n "$BUILD_CC"; then
4637 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4638 echo "${ECHO_T}$BUILD_CC" >&6; }
4639 else
4640 { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4647 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4648 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4649 { (exit 1); exit 1; }; }
4650 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4651 rm -f conftest*
4652 echo 'int main () { return 0; }' > conftest.$ac_ext
4653 ac_cv_build_exeext=
4654 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4655 (eval $ac_build_link) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; then
4659 for file in conftest.*; do
4660 case $file in
4661 *.c | *.o | *.obj | *.dSYM) ;;
4662 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4663 esac
4664 done
4665 else
4666 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4667 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4668 { (exit 1); exit 1; }; }
4670 rm -f conftest*
4671 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4675 BUILD_EXEEXT=""
4676 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4677 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4678 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4679 ac_build_exeext=$BUILD_EXEEXT
4681 ac_build_prefix=${build_alias}-
4682 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4683 set dummy ${ac_build_prefix}g++; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689 if test -n "$BUILD_CXX"; then
4690 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4699 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4703 done
4704 done
4705 IFS=$as_save_IFS
4709 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4710 if test -n "$BUILD_CXX"; then
4711 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4712 echo "${ECHO_T}$BUILD_CXX" >&6; }
4713 else
4714 { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4719 if test -z "$BUILD_CXX"; then
4720 # Extract the first word of "g++", so it can be a program name with args.
4721 set dummy g++; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727 if test -n "$BUILD_CXX"; then
4728 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_BUILD_CXX="g++"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4741 done
4742 done
4743 IFS=$as_save_IFS
4747 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4748 if test -n "$BUILD_CXX"; then
4749 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4750 echo "${ECHO_T}$BUILD_CXX" >&6; }
4751 else
4752 { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4757 if test -z "$BUILD_CXX"; then
4758 # Extract the first word of "c++", so it can be a program name with args.
4759 set dummy c++; ac_word=$2
4760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4762 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765 if test -n "$BUILD_CXX"; then
4766 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4767 else
4768 ac_prog_rejected=no
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4777 ac_prog_rejected=yes
4778 continue
4780 ac_cv_prog_BUILD_CXX="c++"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4786 IFS=$as_save_IFS
4788 if test $ac_prog_rejected = yes; then
4789 # We found a bogon in the path, so make sure we never use it.
4790 set dummy $ac_cv_prog_BUILD_CXX
4791 shift
4792 if test $# != 0; then
4793 # We chose a different compiler from the bogus one.
4794 # However, it has the same basename, so the bogon will be chosen
4795 # first if we set BUILD_CXX to just the basename; use the full file name.
4796 shift
4797 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4802 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4803 if test -n "$BUILD_CXX"; then
4804 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4805 echo "${ECHO_T}$BUILD_CXX" >&6; }
4806 else
4807 { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4814 else
4815 LLVM_CROSS_COMPILING=0
4819 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4820 cvsbuild="yes"
4821 optimize="no"
4822 CVSBUILD=CVSBUILD=1
4824 else
4825 cvsbuild="no"
4826 optimize="yes"
4830 # Check whether --enable-optimized was given.
4831 if test "${enable_optimized+set}" = set; then
4832 enableval=$enable_optimized;
4833 else
4834 enableval=$optimize
4837 if test ${enableval} = "no" ; then
4838 ENABLE_OPTIMIZED=
4840 else
4841 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4845 # Check whether --enable-profiling was given.
4846 if test "${enable_profiling+set}" = set; then
4847 enableval=$enable_profiling;
4848 else
4849 enableval="no"
4852 if test ${enableval} = "no" ; then
4853 ENABLE_PROFILING=
4855 else
4856 ENABLE_PROFILING=ENABLE_PROFILING=1
4860 # Check whether --enable-assertions was given.
4861 if test "${enable_assertions+set}" = set; then
4862 enableval=$enable_assertions;
4863 else
4864 enableval="yes"
4867 if test ${enableval} = "yes" ; then
4868 DISABLE_ASSERTIONS=
4870 else
4871 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4875 # Check whether --enable-expensive-checks was given.
4876 if test "${enable_expensive_checks+set}" = set; then
4877 enableval=$enable_expensive_checks;
4878 else
4879 enableval="no"
4882 if test ${enableval} = "yes" ; then
4883 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4885 EXPENSIVE_CHECKS=yes
4887 else
4888 ENABLE_EXPENSIVE_CHECKS=
4890 EXPENSIVE_CHECKS=no
4894 # Check whether --enable-debug-runtime was given.
4895 if test "${enable_debug_runtime+set}" = set; then
4896 enableval=$enable_debug_runtime;
4897 else
4898 enableval=no
4901 if test ${enableval} = "no" ; then
4902 DEBUG_RUNTIME=
4904 else
4905 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4909 # Check whether --enable-debug-symbols was given.
4910 if test "${enable_debug_symbols+set}" = set; then
4911 enableval=$enable_debug_symbols;
4912 else
4913 enableval=no
4916 if test ${enableval} = "no" ; then
4917 DEBUG_SYMBOLS=
4919 else
4920 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4924 # Check whether --enable-jit was given.
4925 if test "${enable_jit+set}" = set; then
4926 enableval=$enable_jit;
4927 else
4928 enableval=default
4931 if test ${enableval} = "no"
4932 then
4933 JIT=
4935 else
4936 case "$llvm_cv_target_arch" in
4937 x86) TARGET_HAS_JIT=1
4939 Sparc) TARGET_HAS_JIT=0
4941 PowerPC) TARGET_HAS_JIT=1
4943 x86_64) TARGET_HAS_JIT=1
4945 Alpha) TARGET_HAS_JIT=1
4947 ARM) TARGET_HAS_JIT=1
4949 Mips) TARGET_HAS_JIT=0
4951 PIC16) TARGET_HAS_JIT=0
4953 XCore) TARGET_HAS_JIT=0
4955 MSP430) TARGET_HAS_JIT=0
4957 SystemZ) TARGET_HAS_JIT=0
4959 Blackfin) TARGET_HAS_JIT=0
4961 *) TARGET_HAS_JIT=0
4963 esac
4966 # Check whether --enable-doxygen was given.
4967 if test "${enable_doxygen+set}" = set; then
4968 enableval=$enable_doxygen;
4969 else
4970 enableval=default
4973 case "$enableval" in
4974 yes) ENABLE_DOXYGEN=1
4976 no) ENABLE_DOXYGEN=0
4978 default) ENABLE_DOXYGEN=0
4980 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4981 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4982 { (exit 1); exit 1; }; } ;;
4983 esac
4985 # Check whether --enable-threads was given.
4986 if test "${enable_threads+set}" = set; then
4987 enableval=$enable_threads;
4988 else
4989 enableval=default
4992 case "$enableval" in
4993 yes) ENABLE_THREADS=1
4995 no) ENABLE_THREADS=0
4997 default) ENABLE_THREADS=1
4999 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5000 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5001 { (exit 1); exit 1; }; } ;;
5002 esac
5004 cat >>confdefs.h <<_ACEOF
5005 #define ENABLE_THREADS $ENABLE_THREADS
5006 _ACEOF
5009 # Check whether --enable-pic was given.
5010 if test "${enable_pic+set}" = set; then
5011 enableval=$enable_pic;
5012 else
5013 enableval=default
5016 case "$enableval" in
5017 yes) ENABLE_PIC=1
5019 no) ENABLE_PIC=0
5021 default) ENABLE_PIC=1
5023 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5024 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5025 { (exit 1); exit 1; }; } ;;
5026 esac
5028 cat >>confdefs.h <<_ACEOF
5029 #define ENABLE_PIC $ENABLE_PIC
5030 _ACEOF
5033 TARGETS_TO_BUILD=""
5034 # Check whether --enable-targets was given.
5035 if test "${enable_targets+set}" = set; then
5036 enableval=$enable_targets;
5037 else
5038 enableval=all
5041 if test "$enableval" = host-only ; then
5042 enableval=host
5044 case "$enableval" in
5045 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
5046 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5047 case "$a_target" in
5048 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5049 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5050 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5051 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5052 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5053 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5054 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5055 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5056 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5057 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5058 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5059 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5060 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5061 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5062 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5063 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5064 host) case "$llvm_cv_target_arch" in
5065 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5066 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5067 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5068 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5069 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5070 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5071 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5072 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5073 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5074 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5075 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5076 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5077 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5078 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5079 echo "$as_me: error: Can not set target to build" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5081 esac ;;
5082 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5083 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5084 { (exit 1); exit 1; }; } ;;
5085 esac
5086 done
5088 esac
5089 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5092 # Determine whether we are building LLVM support for the native architecture.
5093 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5094 for a_target in $TARGETS_TO_BUILD; do
5095 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5096 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5098 cat >>confdefs.h <<_ACEOF
5099 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5100 _ACEOF
5103 done
5105 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
5106 # Targets.def, AsmPrinters.def, and AsmParsers.def.
5107 LLVM_ENUM_TARGETS=""
5108 LLVM_ENUM_ASM_PRINTERS=""
5109 LLVM_ENUM_ASM_PARSERS=""
5110 for target_to_build in $TARGETS_TO_BUILD; do
5111 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5112 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5113 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5115 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5116 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5118 done
5123 # Check whether --enable-cbe-printf-a was given.
5124 if test "${enable_cbe_printf_a+set}" = set; then
5125 enableval=$enable_cbe_printf_a;
5126 else
5127 enableval=default
5130 case "$enableval" in
5131 yes) ENABLE_CBE_PRINTF_A=1
5133 no) ENABLE_CBE_PRINTF_A=0
5135 default) ENABLE_CBE_PRINTF_A=1
5137 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5138 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140 esac
5142 cat >>confdefs.h <<_ACEOF
5143 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5144 _ACEOF
5148 # Check whether --with-llvmgccdir was given.
5149 if test "${with_llvmgccdir+set}" = set; then
5150 withval=$with_llvmgccdir;
5151 else
5152 withval=default
5155 case "$withval" in
5156 default) WITH_LLVMGCCDIR=default ;;
5157 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5158 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5159 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5160 { (exit 1); exit 1; }; } ;;
5161 esac
5164 # Check whether --with-llvmgcc was given.
5165 if test "${with_llvmgcc+set}" = set; then
5166 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5167 WITH_LLVMGCCDIR=""
5172 # Check whether --with-llvmgxx was given.
5173 if test "${with_llvmgxx+set}" = set; then
5174 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5175 WITH_LLVMGCCDIR=""
5179 if test -n "$LLVMGCC"; then
5180 LLVMGCCCOMMAND="$LLVMGCC"
5183 if test -n "$LLVMGXX"; then
5184 LLVMGXXCOMMAND="$LLVMGXX"
5187 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5188 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5189 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5190 { (exit 1); exit 1; }; };
5193 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5194 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5195 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5196 { (exit 1); exit 1; }; };
5200 # Check whether --with-optimize-option was given.
5201 if test "${with_optimize_option+set}" = set; then
5202 withval=$with_optimize_option;
5203 else
5204 withval=default
5207 { echo "$as_me:$LINENO: checking optimization flags" >&5
5208 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5209 case "$withval" in
5210 default)
5211 case "$llvm_cv_os_type" in
5212 MingW) optimize_option=-O3 ;;
5213 *) optimize_option=-O2 ;;
5214 esac ;;
5215 *) optimize_option="$withval" ;;
5216 esac
5217 OPTIMIZE_OPTION=$optimize_option
5219 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5220 echo "${ECHO_T}$optimize_option" >&6; }
5223 # Check whether --with-extra-options was given.
5224 if test "${with_extra_options+set}" = set; then
5225 withval=$with_extra_options;
5226 else
5227 withval=default
5230 case "$withval" in
5231 default) EXTRA_OPTIONS= ;;
5232 *) EXTRA_OPTIONS=$withval ;;
5233 esac
5234 EXTRA_OPTIONS=$EXTRA_OPTIONS
5237 # Check whether --enable-bindings was given.
5238 if test "${enable_bindings+set}" = set; then
5239 enableval=$enable_bindings;
5240 else
5241 enableval=default
5244 BINDINGS_TO_BUILD=""
5245 case "$enableval" in
5246 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5247 all ) BINDINGS_TO_BUILD="ocaml" ;;
5248 none | no) BINDINGS_TO_BUILD="" ;;
5249 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5250 case "$a_binding" in
5251 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5252 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5253 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5255 esac
5256 done
5258 esac
5261 # Check whether --with-ocaml-libdir was given.
5262 if test "${with_ocaml_libdir+set}" = set; then
5263 withval=$with_ocaml_libdir;
5264 else
5265 withval=auto
5268 case "$withval" in
5269 auto) with_ocaml_libdir="$withval" ;;
5270 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5271 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5272 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5273 { (exit 1); exit 1; }; } ;;
5274 esac
5277 # Check whether --with-c-include-dir was given.
5278 if test "${with_c_include_dir+set}" = set; then
5279 withval=$with_c_include_dir;
5280 else
5281 withval=""
5285 cat >>confdefs.h <<_ACEOF
5286 #define C_INCLUDE_DIRS "$withval"
5287 _ACEOF
5291 # Check whether --with-binutils-include was given.
5292 if test "${with_binutils_include+set}" = set; then
5293 withval=$with_binutils_include;
5294 else
5295 withval=default
5298 case "$withval" in
5299 default) WITH_BINUTILS_INCDIR=default ;;
5300 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5301 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5302 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5303 { (exit 1); exit 1; }; } ;;
5304 esac
5305 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5306 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5308 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5309 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5310 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5311 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5312 { (exit 1); exit 1; }; };
5316 # Check whether --enable-libffi was given.
5317 if test "${enable_libffi+set}" = set; then
5318 enableval=$enable_libffi;
5319 else
5320 enableval=yes
5323 case "$enableval" in
5324 yes) llvm_cv_enable_libffi="yes" ;;
5325 no) llvm_cv_enable_libffi="no" ;;
5326 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5327 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5328 { (exit 1); exit 1; }; } ;;
5329 esac
5331 if test "$llvm_cv_os_type" = "Win32" ; then
5332 llvmc_dynamic="yes"
5333 else
5334 llvmc_dynamic="no"
5337 # Check whether --enable-llvmc-dynamic was given.
5338 if test "${enable_llvmc_dynamic+set}" = set; then
5339 enableval=$enable_llvmc_dynamic;
5340 else
5341 enableval=$llvmc_dynamic
5344 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5345 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5347 else
5348 ENABLE_LLVMC_DYNAMIC=
5352 # Check whether --enable-llvmc-dynamic-plugins was given.
5353 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5354 enableval=$enable_llvmc_dynamic_plugins;
5355 else
5356 enableval=yes
5359 if test ${enableval} = "yes" ; then
5360 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5362 else
5363 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5368 ac_ext=c
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5374 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5375 # On Suns, sometimes $CPP names a directory.
5376 if test -n "$CPP" && test -d "$CPP"; then
5377 CPP=
5379 if test -z "$CPP"; then
5380 if test "${ac_cv_prog_CPP+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 # Double quotes because CPP needs to be expanded
5384 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5386 ac_preproc_ok=false
5387 for ac_c_preproc_warn_flag in '' yes
5389 # Use a header file that comes with gcc, so configuring glibc
5390 # with a fresh cross-compiler works.
5391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5392 # <limits.h> exists even on freestanding compilers.
5393 # On the NeXT, cc -E runs the code through the compiler's parser,
5394 # not just through cpp. "Syntax error" is here to catch this case.
5395 cat >conftest.$ac_ext <<_ACEOF
5396 /* confdefs.h. */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 #ifdef __STDC__
5402 # include <limits.h>
5403 #else
5404 # include <assert.h>
5405 #endif
5406 Syntax error
5407 _ACEOF
5408 if { (ac_try="$ac_cpp conftest.$ac_ext"
5409 case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424 else
5425 ac_cpp_err=
5427 else
5428 ac_cpp_err=yes
5430 if test -z "$ac_cpp_err"; then
5432 else
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5436 # Broken: fails on valid input.
5437 continue
5440 rm -f conftest.err conftest.$ac_ext
5442 # OK, works on sane cases. Now check whether nonexistent headers
5443 # can be detected and how.
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 <ac_nonexistent.h>
5451 _ACEOF
5452 if { (ac_try="$ac_cpp conftest.$ac_ext"
5453 case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456 esac
5457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } >/dev/null; then
5465 if test -s conftest.err; then
5466 ac_cpp_err=$ac_c_preproc_warn_flag
5467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5468 else
5469 ac_cpp_err=
5471 else
5472 ac_cpp_err=yes
5474 if test -z "$ac_cpp_err"; then
5475 # Broken: success on invalid input.
5476 continue
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 # Passes both tests.
5482 ac_preproc_ok=:
5483 break
5486 rm -f conftest.err conftest.$ac_ext
5488 done
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.$ac_ext
5491 if $ac_preproc_ok; then
5492 break
5495 done
5496 ac_cv_prog_CPP=$CPP
5499 CPP=$ac_cv_prog_CPP
5500 else
5501 ac_cv_prog_CPP=$CPP
5503 { echo "$as_me:$LINENO: result: $CPP" >&5
5504 echo "${ECHO_T}$CPP" >&6; }
5505 ac_preproc_ok=false
5506 for ac_c_preproc_warn_flag in '' yes
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #ifdef __STDC__
5521 # include <limits.h>
5522 #else
5523 # include <assert.h>
5524 #endif
5525 Syntax error
5526 _ACEOF
5527 if { (ac_try="$ac_cpp conftest.$ac_ext"
5528 case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } >/dev/null; then
5540 if test -s conftest.err; then
5541 ac_cpp_err=$ac_c_preproc_warn_flag
5542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5543 else
5544 ac_cpp_err=
5546 else
5547 ac_cpp_err=yes
5549 if test -z "$ac_cpp_err"; then
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5555 # Broken: fails on valid input.
5556 continue
5559 rm -f conftest.err conftest.$ac_ext
5561 # OK, works on sane cases. Now check whether nonexistent headers
5562 # can be detected and how.
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 #include <ac_nonexistent.h>
5570 _ACEOF
5571 if { (ac_try="$ac_cpp conftest.$ac_ext"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } >/dev/null; then
5584 if test -s conftest.err; then
5585 ac_cpp_err=$ac_c_preproc_warn_flag
5586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5587 else
5588 ac_cpp_err=
5590 else
5591 ac_cpp_err=yes
5593 if test -z "$ac_cpp_err"; then
5594 # Broken: success on invalid input.
5595 continue
5596 else
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 # Passes both tests.
5601 ac_preproc_ok=:
5602 break
5605 rm -f conftest.err conftest.$ac_ext
5607 done
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.err conftest.$ac_ext
5610 if $ac_preproc_ok; then
5612 else
5613 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5614 See \`config.log' for more details." >&5
5615 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5616 See \`config.log' for more details." >&2;}
5617 { (exit 1); exit 1; }; }
5620 ac_ext=c
5621 ac_cpp='$CPP $CPPFLAGS'
5622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626 ac_ext=c
5627 ac_cpp='$CPP $CPPFLAGS'
5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631 if test -n "$ac_tool_prefix"; then
5632 for ac_prog in gcc
5634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5638 if test "${ac_cv_prog_CC+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 if test -n "$CC"; then
5642 ac_cv_prog_CC="$CC" # Let the user override the test.
5643 else
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5655 done
5656 done
5657 IFS=$as_save_IFS
5661 CC=$ac_cv_prog_CC
5662 if test -n "$CC"; then
5663 { echo "$as_me:$LINENO: result: $CC" >&5
5664 echo "${ECHO_T}$CC" >&6; }
5665 else
5666 { echo "$as_me:$LINENO: result: no" >&5
5667 echo "${ECHO_T}no" >&6; }
5671 test -n "$CC" && break
5672 done
5674 if test -z "$CC"; then
5675 ac_ct_CC=$CC
5676 for ac_prog in gcc
5678 # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685 if test -n "$ac_ct_CC"; then
5686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5695 ac_cv_prog_ac_ct_CC="$ac_prog"
5696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5699 done
5700 done
5701 IFS=$as_save_IFS
5705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5706 if test -n "$ac_ct_CC"; then
5707 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5708 echo "${ECHO_T}$ac_ct_CC" >&6; }
5709 else
5710 { echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6; }
5715 test -n "$ac_ct_CC" && break
5716 done
5718 if test "x$ac_ct_CC" = x; then
5719 CC=""
5720 else
5721 case $cross_compiling:$ac_tool_warned in
5722 yes:)
5723 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5724 whose name does not start with the host triplet. If you think this
5725 configuration is useful to you, please write to autoconf@gnu.org." >&5
5726 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5727 whose name does not start with the host triplet. If you think this
5728 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5729 ac_tool_warned=yes ;;
5730 esac
5731 CC=$ac_ct_CC
5736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5737 See \`config.log' for more details." >&5
5738 echo "$as_me: error: no acceptable C compiler found in \$PATH
5739 See \`config.log' for more details." >&2;}
5740 { (exit 1); exit 1; }; }
5742 # Provide some information about the compiler.
5743 echo "$as_me:$LINENO: checking for C compiler version" >&5
5744 ac_compiler=`set X $ac_compile; echo $2`
5745 { (ac_try="$ac_compiler --version >&5"
5746 case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_compiler --version >&5") 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }
5755 { (ac_try="$ac_compiler -v >&5"
5756 case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759 esac
5760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_compiler -v >&5") 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }
5765 { (ac_try="$ac_compiler -V >&5"
5766 case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769 esac
5770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_compiler -V >&5") 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }
5776 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5777 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5778 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5789 main ()
5791 #ifndef __GNUC__
5792 choke me
5793 #endif
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5801 case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5814 { (case "(($ac_try" in
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5817 esac
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_try") 2>&5
5820 ac_status=$?
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; } &&
5823 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_compiler_gnu=yes
5834 else
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 ac_compiler_gnu=no
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5845 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5846 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5847 GCC=`test $ac_compiler_gnu = yes && echo yes`
5848 ac_test_CFLAGS=${CFLAGS+set}
5849 ac_save_CFLAGS=$CFLAGS
5850 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5851 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_cc_g+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855 ac_save_c_werror_flag=$ac_c_werror_flag
5856 ac_c_werror_flag=yes
5857 ac_cv_prog_cc_g=no
5858 CFLAGS="-g"
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5867 main ()
5871 return 0;
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (ac_try="$ac_compile"
5876 case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5889 { (case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_try") 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_try") 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 ac_cv_prog_cc_g=yes
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5913 CFLAGS=""
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5922 main ()
5926 return 0;
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (ac_try="$ac_compile"
5931 case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934 esac
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_compile") 2>conftest.er1
5937 ac_status=$?
5938 grep -v '^ *+' conftest.er1 >conftest.err
5939 rm -f conftest.er1
5940 cat conftest.err >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5944 { (case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_try") 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; } &&
5953 { ac_try='test -s conftest.$ac_objext'
5954 { (case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_try") 2>&5
5960 ac_status=$?
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5964 else
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ac_c_werror_flag=$ac_save_c_werror_flag
5969 CFLAGS="-g"
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5978 main ()
5982 return 0;
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6000 { (case "(($ac_try" in
6001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002 *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005 (eval "$ac_try") 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest.$ac_objext'
6010 { (case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_try") 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6019 ac_cv_prog_cc_g=yes
6020 else
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 ac_c_werror_flag=$ac_save_c_werror_flag
6036 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6037 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6038 if test "$ac_test_CFLAGS" = set; then
6039 CFLAGS=$ac_save_CFLAGS
6040 elif test $ac_cv_prog_cc_g = yes; then
6041 if test "$GCC" = yes; then
6042 CFLAGS="-g -O2"
6043 else
6044 CFLAGS="-g"
6046 else
6047 if test "$GCC" = yes; then
6048 CFLAGS="-O2"
6049 else
6050 CFLAGS=
6053 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6054 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6055 if test "${ac_cv_prog_cc_c89+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058 ac_cv_prog_cc_c89=no
6059 ac_save_CC=$CC
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h. */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 #include <stdarg.h>
6067 #include <stdio.h>
6068 #include <sys/types.h>
6069 #include <sys/stat.h>
6070 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6071 struct buf { int x; };
6072 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6073 static char *e (p, i)
6074 char **p;
6075 int i;
6077 return p[i];
6079 static char *f (char * (*g) (char **, int), char **p, ...)
6081 char *s;
6082 va_list v;
6083 va_start (v,p);
6084 s = g (p, va_arg (v,int));
6085 va_end (v);
6086 return s;
6089 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6090 function prototypes and stuff, but not '\xHH' hex character constants.
6091 These don't provoke an error unfortunately, instead are silently treated
6092 as 'x'. The following induces an error, until -std is added to get
6093 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6094 array size at least. It's necessary to write '\x00'==0 to get something
6095 that's true only with -std. */
6096 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6098 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6099 inside strings and character constants. */
6100 #define FOO(x) 'x'
6101 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6103 int test (int i, double x);
6104 struct s1 {int (*f) (int a);};
6105 struct s2 {int (*f) (double a);};
6106 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6107 int argc;
6108 char **argv;
6110 main ()
6112 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6114 return 0;
6116 _ACEOF
6117 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6118 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6120 CC="$ac_save_CC $ac_arg"
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6123 case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6136 { (case "(($ac_try" in
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_try") 2>&5
6142 ac_status=$?
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_try") 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; }; then
6155 ac_cv_prog_cc_c89=$ac_arg
6156 else
6157 echo "$as_me: failed program was:" >&5
6158 sed 's/^/| /' conftest.$ac_ext >&5
6163 rm -f core conftest.err conftest.$ac_objext
6164 test "x$ac_cv_prog_cc_c89" != "xno" && break
6165 done
6166 rm -f conftest.$ac_ext
6167 CC=$ac_save_CC
6170 # AC_CACHE_VAL
6171 case "x$ac_cv_prog_cc_c89" in
6173 { echo "$as_me:$LINENO: result: none needed" >&5
6174 echo "${ECHO_T}none needed" >&6; } ;;
6175 xno)
6176 { echo "$as_me:$LINENO: result: unsupported" >&5
6177 echo "${ECHO_T}unsupported" >&6; } ;;
6179 CC="$CC $ac_cv_prog_cc_c89"
6180 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6181 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6182 esac
6185 ac_ext=c
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6191 ac_ext=cpp
6192 ac_cpp='$CXXCPP $CPPFLAGS'
6193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6196 if test -z "$CXX"; then
6197 if test -n "$CCC"; then
6198 CXX=$CCC
6199 else
6200 if test -n "$ac_tool_prefix"; then
6201 for ac_prog in g++
6203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6207 if test "${ac_cv_prog_CXX+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 if test -n "$CXX"; then
6211 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6220 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6224 done
6225 done
6226 IFS=$as_save_IFS
6230 CXX=$ac_cv_prog_CXX
6231 if test -n "$CXX"; then
6232 { echo "$as_me:$LINENO: result: $CXX" >&5
6233 echo "${ECHO_T}$CXX" >&6; }
6234 else
6235 { echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6; }
6240 test -n "$CXX" && break
6241 done
6243 if test -z "$CXX"; then
6244 ac_ct_CXX=$CXX
6245 for ac_prog in g++
6247 # Extract the first word of "$ac_prog", so it can be a program name with args.
6248 set dummy $ac_prog; ac_word=$2
6249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6251 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254 if test -n "$ac_ct_CXX"; then
6255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_ac_ct_CXX="$ac_prog"
6265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6268 done
6269 done
6270 IFS=$as_save_IFS
6274 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6275 if test -n "$ac_ct_CXX"; then
6276 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6277 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6278 else
6279 { echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6; }
6284 test -n "$ac_ct_CXX" && break
6285 done
6287 if test "x$ac_ct_CXX" = x; then
6288 CXX="g++"
6289 else
6290 case $cross_compiling:$ac_tool_warned in
6291 yes:)
6292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6293 whose name does not start with the host triplet. If you think this
6294 configuration is useful to you, please write to autoconf@gnu.org." >&5
6295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6296 whose name does not start with the host triplet. If you think this
6297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6298 ac_tool_warned=yes ;;
6299 esac
6300 CXX=$ac_ct_CXX
6306 # Provide some information about the compiler.
6307 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6308 ac_compiler=`set X $ac_compile; echo $2`
6309 { (ac_try="$ac_compiler --version >&5"
6310 case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compiler --version >&5") 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }
6319 { (ac_try="$ac_compiler -v >&5"
6320 case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323 esac
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_compiler -v >&5") 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }
6329 { (ac_try="$ac_compiler -V >&5"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_compiler -V >&5") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }
6340 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6341 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6342 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6353 main ()
6355 #ifndef __GNUC__
6356 choke me
6357 #endif
6360 return 0;
6362 _ACEOF
6363 rm -f conftest.$ac_objext
6364 if { (ac_try="$ac_compile"
6365 case "(($ac_try" in
6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6367 *) ac_try_echo=$ac_try;;
6368 esac
6369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6370 (eval "$ac_compile") 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6378 { (case "(($ac_try" in
6379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6380 *) ac_try_echo=$ac_try;;
6381 esac
6382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6383 (eval "$ac_try") 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_try") 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_compiler_gnu=yes
6398 else
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6402 ac_compiler_gnu=no
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6409 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6410 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6411 GXX=`test $ac_compiler_gnu = yes && echo yes`
6412 ac_test_CXXFLAGS=${CXXFLAGS+set}
6413 ac_save_CXXFLAGS=$CXXFLAGS
6414 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6415 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6416 if test "${ac_cv_prog_cxx_g+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 else
6419 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6420 ac_cxx_werror_flag=yes
6421 ac_cv_prog_cxx_g=no
6422 CXXFLAGS="-g"
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6431 main ()
6435 return 0;
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (ac_try="$ac_compile"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_compile") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6453 { (case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456 esac
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_try") 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_try") 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
6472 ac_cv_prog_cxx_g=yes
6473 else
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6477 CXXFLAGS=""
6478 cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h. */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6486 main ()
6490 return 0;
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6495 case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498 esac
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6508 { (case "(($ac_try" in
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6511 esac
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_try") 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521 esac
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523 (eval "$ac_try") 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6528 else
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6533 CXXFLAGS="-g"
6534 cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h. */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6542 main ()
6546 return 0;
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6551 case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6554 esac
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_compile") 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } &&
6563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6564 { (case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_try") 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; } &&
6573 { ac_try='test -s conftest.$ac_objext'
6574 { (case "(($ac_try" in
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_try") 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 ac_cv_prog_cxx_g=yes
6584 else
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6600 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6601 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6602 if test "$ac_test_CXXFLAGS" = set; then
6603 CXXFLAGS=$ac_save_CXXFLAGS
6604 elif test $ac_cv_prog_cxx_g = yes; then
6605 if test "$GXX" = yes; then
6606 CXXFLAGS="-g -O2"
6607 else
6608 CXXFLAGS="-g"
6610 else
6611 if test "$GXX" = yes; then
6612 CXXFLAGS="-O2"
6613 else
6614 CXXFLAGS=
6617 ac_ext=c
6618 ac_cpp='$CPP $CPPFLAGS'
6619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6624 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6625 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6626 if test "${lt_cv_path_NM+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629 if test -n "$NM"; then
6630 # Let the user override the test.
6631 lt_cv_path_NM="$NM"
6632 else
6633 lt_nm_to_check="${ac_tool_prefix}nm"
6634 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6635 lt_nm_to_check="$lt_nm_to_check nm"
6637 for lt_tmp_nm in $lt_nm_to_check; do
6638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6639 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6640 IFS="$lt_save_ifs"
6641 test -z "$ac_dir" && ac_dir=.
6642 tmp_nm="$ac_dir/$lt_tmp_nm"
6643 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6644 # Check to see if the nm accepts a BSD-compat flag.
6645 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6646 # nm: unknown option "B" ignored
6647 # Tru64's nm complains that /dev/null is an invalid object file
6648 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6649 */dev/null* | *'Invalid file or object type'*)
6650 lt_cv_path_NM="$tmp_nm -B"
6651 break
6654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6655 */dev/null*)
6656 lt_cv_path_NM="$tmp_nm -p"
6657 break
6660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6661 continue # so that we can try to find one that supports BSD flags
6663 esac
6665 esac
6667 done
6668 IFS="$lt_save_ifs"
6669 done
6670 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6673 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6674 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6675 NM="$lt_cv_path_NM"
6679 { echo "$as_me:$LINENO: checking for GNU make" >&5
6680 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6681 if test "${llvm_cv_gnu_make_command+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 llvm_cv_gnu_make_command=''
6685 for a in "$MAKE" make gmake gnumake ; do
6686 if test -z "$a" ; then continue ; fi ;
6687 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6688 then
6689 llvm_cv_gnu_make_command=$a ;
6690 break;
6692 done
6694 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6695 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6696 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6697 ifGNUmake='' ;
6698 else
6699 ifGNUmake='#' ;
6700 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6701 echo "${ECHO_T}\"Not found\"" >&6; };
6705 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6706 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6707 LN_S=$as_ln_s
6708 if test "$LN_S" = "ln -s"; then
6709 { echo "$as_me:$LINENO: result: yes" >&5
6710 echo "${ECHO_T}yes" >&6; }
6711 else
6712 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6713 echo "${ECHO_T}no, using $LN_S" >&6; }
6716 # Extract the first word of "cmp", so it can be a program name with args.
6717 set dummy cmp; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_CMP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723 case $CMP in
6724 [\\/]* | ?:[\\/]*)
6725 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6739 done
6740 done
6741 IFS=$as_save_IFS
6743 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6745 esac
6747 CMP=$ac_cv_path_CMP
6748 if test -n "$CMP"; then
6749 { echo "$as_me:$LINENO: result: $CMP" >&5
6750 echo "${ECHO_T}$CMP" >&6; }
6751 else
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6757 # Extract the first word of "cp", so it can be a program name with args.
6758 set dummy cp; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_CP+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 case $CP in
6765 [\\/]* | ?:[\\/]*)
6766 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6780 done
6781 done
6782 IFS=$as_save_IFS
6784 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6786 esac
6788 CP=$ac_cv_path_CP
6789 if test -n "$CP"; then
6790 { echo "$as_me:$LINENO: result: $CP" >&5
6791 echo "${ECHO_T}$CP" >&6; }
6792 else
6793 { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6798 # Extract the first word of "date", so it can be a program name with args.
6799 set dummy date; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_DATE+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 case $DATE in
6806 [\\/]* | ?:[\\/]*)
6807 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6821 done
6822 done
6823 IFS=$as_save_IFS
6825 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6827 esac
6829 DATE=$ac_cv_path_DATE
6830 if test -n "$DATE"; then
6831 { echo "$as_me:$LINENO: result: $DATE" >&5
6832 echo "${ECHO_T}$DATE" >&6; }
6833 else
6834 { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6839 # Extract the first word of "find", so it can be a program name with args.
6840 set dummy find; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_FIND+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846 case $FIND in
6847 [\\/]* | ?:[\\/]*)
6848 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6862 done
6863 done
6864 IFS=$as_save_IFS
6866 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6868 esac
6870 FIND=$ac_cv_path_FIND
6871 if test -n "$FIND"; then
6872 { echo "$as_me:$LINENO: result: $FIND" >&5
6873 echo "${ECHO_T}$FIND" >&6; }
6874 else
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6880 # Extract the first word of "grep", so it can be a program name with args.
6881 set dummy grep; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_GREP+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 case $GREP in
6888 [\\/]* | ?:[\\/]*)
6889 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6903 done
6904 done
6905 IFS=$as_save_IFS
6907 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6909 esac
6911 GREP=$ac_cv_path_GREP
6912 if test -n "$GREP"; then
6913 { echo "$as_me:$LINENO: result: $GREP" >&5
6914 echo "${ECHO_T}$GREP" >&6; }
6915 else
6916 { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6921 # Extract the first word of "mkdir", so it can be a program name with args.
6922 set dummy mkdir; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_MKDIR+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928 case $MKDIR in
6929 [\\/]* | ?:[\\/]*)
6930 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6944 done
6945 done
6946 IFS=$as_save_IFS
6948 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6950 esac
6952 MKDIR=$ac_cv_path_MKDIR
6953 if test -n "$MKDIR"; then
6954 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6955 echo "${ECHO_T}$MKDIR" >&6; }
6956 else
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6962 # Extract the first word of "mv", so it can be a program name with args.
6963 set dummy mv; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_MV+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 case $MV in
6970 [\\/]* | ?:[\\/]*)
6971 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6985 done
6986 done
6987 IFS=$as_save_IFS
6989 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6991 esac
6993 MV=$ac_cv_path_MV
6994 if test -n "$MV"; then
6995 { echo "$as_me:$LINENO: result: $MV" >&5
6996 echo "${ECHO_T}$MV" >&6; }
6997 else
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7003 if test -n "$ac_tool_prefix"; then
7004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011 if test -n "$RANLIB"; then
7012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7025 done
7026 done
7027 IFS=$as_save_IFS
7031 RANLIB=$ac_cv_prog_RANLIB
7032 if test -n "$RANLIB"; then
7033 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7034 echo "${ECHO_T}$RANLIB" >&6; }
7035 else
7036 { echo "$as_me:$LINENO: result: no" >&5
7037 echo "${ECHO_T}no" >&6; }
7042 if test -z "$ac_cv_prog_RANLIB"; then
7043 ac_ct_RANLIB=$RANLIB
7044 # Extract the first word of "ranlib", so it can be a program name with args.
7045 set dummy ranlib; ac_word=$2
7046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 if test -n "$ac_ct_RANLIB"; then
7052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_prog_ac_ct_RANLIB="ranlib"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7065 done
7066 done
7067 IFS=$as_save_IFS
7071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7072 if test -n "$ac_ct_RANLIB"; then
7073 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7074 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7075 else
7076 { echo "$as_me:$LINENO: result: no" >&5
7077 echo "${ECHO_T}no" >&6; }
7080 if test "x$ac_ct_RANLIB" = x; then
7081 RANLIB=":"
7082 else
7083 case $cross_compiling:$ac_tool_warned in
7084 yes:)
7085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7086 whose name does not start with the host triplet. If you think this
7087 configuration is useful to you, please write to autoconf@gnu.org." >&5
7088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7089 whose name does not start with the host triplet. If you think this
7090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7091 ac_tool_warned=yes ;;
7092 esac
7093 RANLIB=$ac_ct_RANLIB
7095 else
7096 RANLIB="$ac_cv_prog_RANLIB"
7099 # Extract the first word of "rm", so it can be a program name with args.
7100 set dummy rm; ac_word=$2
7101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7103 if test "${ac_cv_path_RM+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 case $RM in
7107 [\\/]* | ?:[\\/]*)
7108 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7118 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7122 done
7123 done
7124 IFS=$as_save_IFS
7126 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7128 esac
7130 RM=$ac_cv_path_RM
7131 if test -n "$RM"; then
7132 { echo "$as_me:$LINENO: result: $RM" >&5
7133 echo "${ECHO_T}$RM" >&6; }
7134 else
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7140 # Extract the first word of "sed", so it can be a program name with args.
7141 set dummy sed; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_path_SED+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 case $SED in
7148 [\\/]* | ?:[\\/]*)
7149 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7159 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 break 2
7163 done
7164 done
7165 IFS=$as_save_IFS
7167 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7169 esac
7171 SED=$ac_cv_path_SED
7172 if test -n "$SED"; then
7173 { echo "$as_me:$LINENO: result: $SED" >&5
7174 echo "${ECHO_T}$SED" >&6; }
7175 else
7176 { echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6; }
7181 # Extract the first word of "tar", so it can be a program name with args.
7182 set dummy tar; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_path_TAR+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 case $TAR in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7204 done
7205 done
7206 IFS=$as_save_IFS
7208 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7210 esac
7212 TAR=$ac_cv_path_TAR
7213 if test -n "$TAR"; then
7214 { echo "$as_me:$LINENO: result: $TAR" >&5
7215 echo "${ECHO_T}$TAR" >&6; }
7216 else
7217 { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7222 # Extract the first word of "pwd", so it can be a program name with args.
7223 set dummy pwd; ac_word=$2
7224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7226 if test "${ac_cv_path_BINPWD+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 case $BINPWD in
7230 [\\/]* | ?:[\\/]*)
7231 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7245 done
7246 done
7247 IFS=$as_save_IFS
7249 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7251 esac
7253 BINPWD=$ac_cv_path_BINPWD
7254 if test -n "$BINPWD"; then
7255 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7256 echo "${ECHO_T}$BINPWD" >&6; }
7257 else
7258 { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7264 # Extract the first word of "Graphviz", so it can be a program name with args.
7265 set dummy Graphviz; ac_word=$2
7266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271 case $GRAPHVIZ in
7272 [\\/]* | ?:[\\/]*)
7273 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7279 IFS=$as_save_IFS
7280 test -z "$as_dir" && as_dir=.
7281 for ac_exec_ext in '' $ac_executable_extensions; do
7282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7283 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 break 2
7287 done
7288 done
7289 IFS=$as_save_IFS
7291 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7293 esac
7295 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7296 if test -n "$GRAPHVIZ"; then
7297 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7298 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7299 else
7300 { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7305 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7307 cat >>confdefs.h <<\_ACEOF
7308 #define HAVE_GRAPHVIZ 1
7309 _ACEOF
7311 if test "$llvm_cv_os_type" = "MingW" ; then
7312 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7315 cat >>confdefs.h <<_ACEOF
7316 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7317 _ACEOF
7320 # Extract the first word of "dot", so it can be a program name with args.
7321 set dummy dot; ac_word=$2
7322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7324 if test "${ac_cv_path_DOT+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 case $DOT in
7328 [\\/]* | ?:[\\/]*)
7329 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7343 done
7344 done
7345 IFS=$as_save_IFS
7347 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7349 esac
7351 DOT=$ac_cv_path_DOT
7352 if test -n "$DOT"; then
7353 { echo "$as_me:$LINENO: result: $DOT" >&5
7354 echo "${ECHO_T}$DOT" >&6; }
7355 else
7356 { echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6; }
7361 if test "$DOT" != "echo dot" ; then
7363 cat >>confdefs.h <<\_ACEOF
7364 #define HAVE_DOT 1
7365 _ACEOF
7367 if test "$llvm_cv_os_type" = "MingW" ; then
7368 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7371 cat >>confdefs.h <<_ACEOF
7372 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7373 _ACEOF
7376 # Extract the first word of "fdp", so it can be a program name with args.
7377 set dummy fdp; ac_word=$2
7378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380 if test "${ac_cv_path_FDP+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383 case $FDP in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7395 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7399 done
7400 done
7401 IFS=$as_save_IFS
7403 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7405 esac
7407 FDP=$ac_cv_path_FDP
7408 if test -n "$FDP"; then
7409 { echo "$as_me:$LINENO: result: $FDP" >&5
7410 echo "${ECHO_T}$FDP" >&6; }
7411 else
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7417 if test "$FDP" != "echo fdp" ; then
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_FDP 1
7421 _ACEOF
7423 if test "$llvm_cv_os_type" = "MingW" ; then
7424 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7427 cat >>confdefs.h <<_ACEOF
7428 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7429 _ACEOF
7432 # Extract the first word of "neato", so it can be a program name with args.
7433 set dummy neato; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_NEATO+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 case $NEATO in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7455 done
7456 done
7457 IFS=$as_save_IFS
7459 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7461 esac
7463 NEATO=$ac_cv_path_NEATO
7464 if test -n "$NEATO"; then
7465 { echo "$as_me:$LINENO: result: $NEATO" >&5
7466 echo "${ECHO_T}$NEATO" >&6; }
7467 else
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7473 if test "$NEATO" != "echo neato" ; then
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_NEATO 1
7477 _ACEOF
7479 if test "$llvm_cv_os_type" = "MingW" ; then
7480 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7483 cat >>confdefs.h <<_ACEOF
7484 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7485 _ACEOF
7488 # Extract the first word of "twopi", so it can be a program name with args.
7489 set dummy twopi; ac_word=$2
7490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7492 if test "${ac_cv_path_TWOPI+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 case $TWOPI in
7496 [\\/]* | ?:[\\/]*)
7497 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7503 IFS=$as_save_IFS
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7507 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 break 2
7511 done
7512 done
7513 IFS=$as_save_IFS
7515 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7517 esac
7519 TWOPI=$ac_cv_path_TWOPI
7520 if test -n "$TWOPI"; then
7521 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7522 echo "${ECHO_T}$TWOPI" >&6; }
7523 else
7524 { echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6; }
7529 if test "$TWOPI" != "echo twopi" ; then
7531 cat >>confdefs.h <<\_ACEOF
7532 #define HAVE_TWOPI 1
7533 _ACEOF
7535 if test "$llvm_cv_os_type" = "MingW" ; then
7536 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7539 cat >>confdefs.h <<_ACEOF
7540 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7541 _ACEOF
7544 # Extract the first word of "circo", so it can be a program name with args.
7545 set dummy circo; 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_CIRCO+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 case $CIRCO in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_CIRCO="$CIRCO" # 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_CIRCO="$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_CIRCO" && ac_cv_path_CIRCO="echo circo"
7573 esac
7575 CIRCO=$ac_cv_path_CIRCO
7576 if test -n "$CIRCO"; then
7577 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7578 echo "${ECHO_T}$CIRCO" >&6; }
7579 else
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7585 if test "$CIRCO" != "echo circo" ; then
7587 cat >>confdefs.h <<\_ACEOF
7588 #define HAVE_CIRCO 1
7589 _ACEOF
7591 if test "$llvm_cv_os_type" = "MingW" ; then
7592 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7595 cat >>confdefs.h <<_ACEOF
7596 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7597 _ACEOF
7600 for ac_prog in gv gsview32
7602 # Extract the first word of "$ac_prog", so it can be a program name with args.
7603 set dummy $ac_prog; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_path_GV+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609 case $GV in
7610 [\\/]* | ?:[\\/]*)
7611 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7625 done
7626 done
7627 IFS=$as_save_IFS
7630 esac
7632 GV=$ac_cv_path_GV
7633 if test -n "$GV"; then
7634 { echo "$as_me:$LINENO: result: $GV" >&5
7635 echo "${ECHO_T}$GV" >&6; }
7636 else
7637 { echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6; }
7642 test -n "$GV" && break
7643 done
7644 test -n "$GV" || GV="echo gv"
7646 if test "$GV" != "echo gv" ; then
7648 cat >>confdefs.h <<\_ACEOF
7649 #define HAVE_GV 1
7650 _ACEOF
7652 if test "$llvm_cv_os_type" = "MingW" ; then
7653 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7656 cat >>confdefs.h <<_ACEOF
7657 #define LLVM_PATH_GV "$GV${EXEEXT}"
7658 _ACEOF
7661 # Extract the first word of "dotty", so it can be a program name with args.
7662 set dummy dotty; ac_word=$2
7663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665 if test "${ac_cv_path_DOTTY+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 case $DOTTY in
7669 [\\/]* | ?:[\\/]*)
7670 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7680 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7684 done
7685 done
7686 IFS=$as_save_IFS
7688 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7690 esac
7692 DOTTY=$ac_cv_path_DOTTY
7693 if test -n "$DOTTY"; then
7694 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7695 echo "${ECHO_T}$DOTTY" >&6; }
7696 else
7697 { echo "$as_me:$LINENO: result: no" >&5
7698 echo "${ECHO_T}no" >&6; }
7702 if test "$DOTTY" != "echo dotty" ; then
7704 cat >>confdefs.h <<\_ACEOF
7705 #define HAVE_DOTTY 1
7706 _ACEOF
7708 if test "$llvm_cv_os_type" = "MingW" ; then
7709 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7712 cat >>confdefs.h <<_ACEOF
7713 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7714 _ACEOF
7719 # Extract the first word of "perl", so it can be a program name with args.
7720 set dummy perl; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_path_PERL+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726 case $PERL in
7727 [\\/]* | ?:[\\/]*)
7728 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7742 done
7743 done
7744 IFS=$as_save_IFS
7746 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7748 esac
7750 PERL=$ac_cv_path_PERL
7751 if test -n "$PERL"; then
7752 { echo "$as_me:$LINENO: result: $PERL" >&5
7753 echo "${ECHO_T}$PERL" >&6; }
7754 else
7755 { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7760 if test "$PERL" != "none"; then
7761 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7762 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7763 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7764 { echo "$as_me:$LINENO: result: yes" >&5
7765 echo "${ECHO_T}yes" >&6; }
7766 else
7767 PERL=none
7768 { echo "$as_me:$LINENO: result: not found" >&5
7769 echo "${ECHO_T}not found" >&6; }
7774 if test x"$PERL" = xnone; then
7775 HAVE_PERL=0
7777 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7778 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7779 { (exit 1); exit 1; }; }
7780 else
7781 HAVE_PERL=1
7785 # Find a good install program. We prefer a C program (faster),
7786 # so one script is as good as another. But avoid the broken or
7787 # incompatible versions:
7788 # SysV /etc/install, /usr/sbin/install
7789 # SunOS /usr/etc/install
7790 # IRIX /sbin/install
7791 # AIX /bin/install
7792 # AmigaOS /C/install, which installs bootblocks on floppy discs
7793 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7794 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7795 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7796 # OS/2's system install, which has a completely different semantic
7797 # ./install, which can be erroneously created by make from ./install.sh.
7798 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7799 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7800 if test -z "$INSTALL"; then
7801 if test "${ac_cv_path_install+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 # Account for people who put trailing slashes in PATH elements.
7810 case $as_dir/ in
7811 ./ | .// | /cC/* | \
7812 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7813 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7814 /usr/ucb/* ) ;;
7816 # OSF1 and SCO ODT 3.0 have their own names for install.
7817 # Don't use installbsd from OSF since it installs stuff as root
7818 # by default.
7819 for ac_prog in ginstall scoinst install; do
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7822 if test $ac_prog = install &&
7823 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7824 # AIX install. It has an incompatible calling convention.
7826 elif test $ac_prog = install &&
7827 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7828 # program-specific install script used by HP pwplus--don't use.
7830 else
7831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7832 break 3
7835 done
7836 done
7838 esac
7839 done
7840 IFS=$as_save_IFS
7844 if test "${ac_cv_path_install+set}" = set; then
7845 INSTALL=$ac_cv_path_install
7846 else
7847 # As a last resort, use the slow shell script. Don't cache a
7848 # value for INSTALL within a source directory, because that will
7849 # break other packages using the cache if that directory is
7850 # removed, or if the value is a relative name.
7851 INSTALL=$ac_install_sh
7854 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7855 echo "${ECHO_T}$INSTALL" >&6; }
7857 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7858 # It thinks the first close brace ends the variable substitution.
7859 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7861 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7863 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7866 # Extract the first word of "bzip2", so it can be a program name with args.
7867 set dummy bzip2; ac_word=$2
7868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870 if test "${ac_cv_path_BZIP2+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 case $BZIP2 in
7874 [\\/]* | ?:[\\/]*)
7875 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7889 done
7890 done
7891 IFS=$as_save_IFS
7894 esac
7896 BZIP2=$ac_cv_path_BZIP2
7897 if test -n "$BZIP2"; then
7898 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7899 echo "${ECHO_T}$BZIP2" >&6; }
7900 else
7901 { echo "$as_me:$LINENO: result: no" >&5
7902 echo "${ECHO_T}no" >&6; }
7906 # Extract the first word of "doxygen", so it can be a program name with args.
7907 set dummy doxygen; ac_word=$2
7908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7910 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913 case $DOXYGEN in
7914 [\\/]* | ?:[\\/]*)
7915 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7925 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7929 done
7930 done
7931 IFS=$as_save_IFS
7934 esac
7936 DOXYGEN=$ac_cv_path_DOXYGEN
7937 if test -n "$DOXYGEN"; then
7938 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7939 echo "${ECHO_T}$DOXYGEN" >&6; }
7940 else
7941 { echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6; }
7946 # Extract the first word of "groff", so it can be a program name with args.
7947 set dummy groff; ac_word=$2
7948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950 if test "${ac_cv_path_GROFF+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953 case $GROFF in
7954 [\\/]* | ?:[\\/]*)
7955 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7969 done
7970 done
7971 IFS=$as_save_IFS
7974 esac
7976 GROFF=$ac_cv_path_GROFF
7977 if test -n "$GROFF"; then
7978 { echo "$as_me:$LINENO: result: $GROFF" >&5
7979 echo "${ECHO_T}$GROFF" >&6; }
7980 else
7981 { echo "$as_me:$LINENO: result: no" >&5
7982 echo "${ECHO_T}no" >&6; }
7986 # Extract the first word of "gzip", so it can be a program name with args.
7987 set dummy gzip; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_path_GZIP+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 case $GZIP in
7994 [\\/]* | ?:[\\/]*)
7995 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 break 2
8009 done
8010 done
8011 IFS=$as_save_IFS
8014 esac
8016 GZIP=$ac_cv_path_GZIP
8017 if test -n "$GZIP"; then
8018 { echo "$as_me:$LINENO: result: $GZIP" >&5
8019 echo "${ECHO_T}$GZIP" >&6; }
8020 else
8021 { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8026 # Extract the first word of "pod2html", so it can be a program name with args.
8027 set dummy pod2html; ac_word=$2
8028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8030 if test "${ac_cv_path_POD2HTML+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 case $POD2HTML in
8034 [\\/]* | ?:[\\/]*)
8035 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8045 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8049 done
8050 done
8051 IFS=$as_save_IFS
8054 esac
8056 POD2HTML=$ac_cv_path_POD2HTML
8057 if test -n "$POD2HTML"; then
8058 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8059 echo "${ECHO_T}$POD2HTML" >&6; }
8060 else
8061 { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8066 # Extract the first word of "pod2man", so it can be a program name with args.
8067 set dummy pod2man; ac_word=$2
8068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8070 if test "${ac_cv_path_POD2MAN+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 case $POD2MAN in
8074 [\\/]* | ?:[\\/]*)
8075 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8085 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8089 done
8090 done
8091 IFS=$as_save_IFS
8094 esac
8096 POD2MAN=$ac_cv_path_POD2MAN
8097 if test -n "$POD2MAN"; then
8098 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8099 echo "${ECHO_T}$POD2MAN" >&6; }
8100 else
8101 { echo "$as_me:$LINENO: result: no" >&5
8102 echo "${ECHO_T}no" >&6; }
8106 # Extract the first word of "runtest", so it can be a program name with args.
8107 set dummy runtest; ac_word=$2
8108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8110 if test "${ac_cv_path_RUNTEST+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113 case $RUNTEST in
8114 [\\/]* | ?:[\\/]*)
8115 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8125 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8129 done
8130 done
8131 IFS=$as_save_IFS
8134 esac
8136 RUNTEST=$ac_cv_path_RUNTEST
8137 if test -n "$RUNTEST"; then
8138 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8139 echo "${ECHO_T}$RUNTEST" >&6; }
8140 else
8141 { echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6; }
8147 no_itcl=true
8148 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8149 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8151 # Check whether --with-tclinclude was given.
8152 if test "${with_tclinclude+set}" = set; then
8153 withval=$with_tclinclude; with_tclinclude=${withval}
8154 else
8155 with_tclinclude=''
8158 if test "${ac_cv_path_tclsh+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8162 if test x"${with_tclinclude}" != x ; then
8163 if test -f ${with_tclinclude}/tclsh ; then
8164 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8165 elif test -f ${with_tclinclude}/src/tclsh ; then
8166 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8167 else
8168 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8169 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8170 { (exit 1); exit 1; }; }
8174 if test x"${ac_cv_path_tclsh}" = x ; then
8175 { echo "$as_me:$LINENO: result: none" >&5
8176 echo "${ECHO_T}none" >&6; }
8177 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
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180 set dummy $ac_prog; ac_word=$2
8181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183 if test "${ac_cv_path_TCLSH+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 case $TCLSH in
8187 [\\/]* | ?:[\\/]*)
8188 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8198 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8202 done
8203 done
8204 IFS=$as_save_IFS
8207 esac
8209 TCLSH=$ac_cv_path_TCLSH
8210 if test -n "$TCLSH"; then
8211 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8212 echo "${ECHO_T}$TCLSH" >&6; }
8213 else
8214 { echo "$as_me:$LINENO: result: no" >&5
8215 echo "${ECHO_T}no" >&6; }
8219 test -n "$TCLSH" && break
8220 done
8222 if test x"${TCLSH}" = x ; then
8223 ac_cv_path_tclsh='';
8224 else
8225 ac_cv_path_tclsh="${TCLSH}";
8227 else
8228 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8229 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8230 TCLSH="${ac_cv_path_tclsh}"
8236 # Extract the first word of "zip", so it can be a program name with args.
8237 set dummy zip; ac_word=$2
8238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8240 if test "${ac_cv_path_ZIP+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243 case $ZIP in
8244 [\\/]* | ?:[\\/]*)
8245 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249 for as_dir in $PATH
8251 IFS=$as_save_IFS
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8255 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 break 2
8259 done
8260 done
8261 IFS=$as_save_IFS
8264 esac
8266 ZIP=$ac_cv_path_ZIP
8267 if test -n "$ZIP"; then
8268 { echo "$as_me:$LINENO: result: $ZIP" >&5
8269 echo "${ECHO_T}$ZIP" >&6; }
8270 else
8271 { echo "$as_me:$LINENO: result: no" >&5
8272 echo "${ECHO_T}no" >&6; }
8276 for ac_prog in ocamlc
8278 # Extract the first word of "$ac_prog", so it can be a program name with args.
8279 set dummy $ac_prog; ac_word=$2
8280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8282 if test "${ac_cv_path_OCAMLC+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 else
8285 case $OCAMLC in
8286 [\\/]* | ?:[\\/]*)
8287 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8301 done
8302 done
8303 IFS=$as_save_IFS
8306 esac
8308 OCAMLC=$ac_cv_path_OCAMLC
8309 if test -n "$OCAMLC"; then
8310 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8311 echo "${ECHO_T}$OCAMLC" >&6; }
8312 else
8313 { echo "$as_me:$LINENO: result: no" >&5
8314 echo "${ECHO_T}no" >&6; }
8318 test -n "$OCAMLC" && break
8319 done
8321 for ac_prog in ocamlopt
8323 # Extract the first word of "$ac_prog", so it can be a program name with args.
8324 set dummy $ac_prog; ac_word=$2
8325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8327 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330 case $OCAMLOPT in
8331 [\\/]* | ?:[\\/]*)
8332 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8338 IFS=$as_save_IFS
8339 test -z "$as_dir" && as_dir=.
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8342 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8344 break 2
8346 done
8347 done
8348 IFS=$as_save_IFS
8351 esac
8353 OCAMLOPT=$ac_cv_path_OCAMLOPT
8354 if test -n "$OCAMLOPT"; then
8355 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8356 echo "${ECHO_T}$OCAMLOPT" >&6; }
8357 else
8358 { echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6; }
8363 test -n "$OCAMLOPT" && break
8364 done
8366 for ac_prog in ocamldep
8368 # Extract the first word of "$ac_prog", so it can be a program name with args.
8369 set dummy $ac_prog; ac_word=$2
8370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8372 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 case $OCAMLDEP in
8376 [\\/]* | ?:[\\/]*)
8377 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 break 2
8391 done
8392 done
8393 IFS=$as_save_IFS
8396 esac
8398 OCAMLDEP=$ac_cv_path_OCAMLDEP
8399 if test -n "$OCAMLDEP"; then
8400 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8401 echo "${ECHO_T}$OCAMLDEP" >&6; }
8402 else
8403 { echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6; }
8408 test -n "$OCAMLDEP" && break
8409 done
8411 for ac_prog in ocamldoc
8413 # Extract the first word of "$ac_prog", so it can be a program name with args.
8414 set dummy $ac_prog; ac_word=$2
8415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8417 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
8420 case $OCAMLDOC in
8421 [\\/]* | ?:[\\/]*)
8422 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8432 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 break 2
8436 done
8437 done
8438 IFS=$as_save_IFS
8441 esac
8443 OCAMLDOC=$ac_cv_path_OCAMLDOC
8444 if test -n "$OCAMLDOC"; then
8445 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8446 echo "${ECHO_T}$OCAMLDOC" >&6; }
8447 else
8448 { echo "$as_me:$LINENO: result: no" >&5
8449 echo "${ECHO_T}no" >&6; }
8453 test -n "$OCAMLDOC" && break
8454 done
8456 for ac_prog in gas as
8458 # Extract the first word of "$ac_prog", so it can be a program name with args.
8459 set dummy $ac_prog; ac_word=$2
8460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462 if test "${ac_cv_path_GAS+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465 case $GAS in
8466 [\\/]* | ?:[\\/]*)
8467 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479 break 2
8481 done
8482 done
8483 IFS=$as_save_IFS
8486 esac
8488 GAS=$ac_cv_path_GAS
8489 if test -n "$GAS"; then
8490 { echo "$as_me:$LINENO: result: $GAS" >&5
8491 echo "${ECHO_T}$GAS" >&6; }
8492 else
8493 { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8498 test -n "$GAS" && break
8499 done
8502 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8503 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8504 if test "${llvm_cv_link_use_r+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507 ac_ext=c
8508 ac_cpp='$CPP $CPPFLAGS'
8509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8513 oldcflags="$CFLAGS"
8514 CFLAGS="$CFLAGS -Wl,-R."
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8523 main ()
8525 int main() { return 0; }
8527 return 0;
8529 _ACEOF
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (ac_try="$ac_link"
8532 case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_link") 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8545 { (case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548 esac
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_try") 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); }; } &&
8554 { ac_try='test -s conftest$ac_exeext'
8555 { (case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_try") 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
8564 llvm_cv_link_use_r=yes
8565 else
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8569 llvm_cv_link_use_r=no
8572 rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 CFLAGS="$oldcflags"
8575 ac_ext=c
8576 ac_cpp='$CPP $CPPFLAGS'
8577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8583 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8584 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8585 if test "$llvm_cv_link_use_r" = yes ; then
8587 cat >>confdefs.h <<\_ACEOF
8588 #define HAVE_LINK_R 1
8589 _ACEOF
8594 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8595 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8596 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599 ac_ext=c
8600 ac_cpp='$CPP $CPPFLAGS'
8601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8605 oldcflags="$CFLAGS"
8606 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8615 main ()
8617 int main() { return 0; }
8619 return 0;
8621 _ACEOF
8622 rm -f conftest.$ac_objext conftest$ac_exeext
8623 if { (ac_try="$ac_link"
8624 case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_link") 2>conftest.er1
8630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 llvm_cv_link_use_export_dynamic=yes
8657 else
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 llvm_cv_link_use_export_dynamic=no
8664 rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8666 CFLAGS="$oldcflags"
8667 ac_ext=c
8668 ac_cpp='$CPP $CPPFLAGS'
8669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8675 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8676 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8677 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8679 cat >>confdefs.h <<\_ACEOF
8680 #define HAVE_LINK_EXPORT_DYNAMIC 1
8681 _ACEOF
8688 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8689 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8690 if test "${ac_cv_c_const+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693 cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h. */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8701 main ()
8703 /* FIXME: Include the comments suggested by Paul. */
8704 #ifndef __cplusplus
8705 /* Ultrix mips cc rejects this. */
8706 typedef int charset[2];
8707 const charset x;
8708 /* SunOS 4.1.1 cc rejects this. */
8709 char const *const *ccp;
8710 char **p;
8711 /* NEC SVR4.0.2 mips cc rejects this. */
8712 struct point {int x, y;};
8713 static struct point const zero = {0,0};
8714 /* AIX XL C 1.02.0.0 rejects this.
8715 It does not let you subtract one const X* pointer from another in
8716 an arm of an if-expression whose if-part is not a constant
8717 expression */
8718 const char *g = "string";
8719 ccp = &g + (g ? g-g : 0);
8720 /* HPUX 7.0 cc rejects these. */
8721 ++ccp;
8722 p = (char**) ccp;
8723 ccp = (char const *const *) p;
8724 { /* SCO 3.2v4 cc rejects this. */
8725 char *t;
8726 char const *s = 0 ? (char *) 0 : (char const *) 0;
8728 *t++ = 0;
8729 if (s) return 0;
8731 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8732 int x[] = {25, 17};
8733 const int *foo = &x[0];
8734 ++foo;
8736 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8737 typedef const int *iptr;
8738 iptr p = 0;
8739 ++p;
8741 { /* AIX XL C 1.02.0.0 rejects this saying
8742 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8743 struct s { int j; const int *ap[3]; };
8744 struct s *b; b->j = 5;
8746 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8747 const int foo = 10;
8748 if (!foo) return 0;
8750 return !x[0] && !zero.x;
8751 #endif
8754 return 0;
8756 _ACEOF
8757 rm -f conftest.$ac_objext
8758 if { (ac_try="$ac_compile"
8759 case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_compile") 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772 { (case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_try") 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (case "(($ac_try" in
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_try") 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_cv_c_const=yes
8792 else
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8796 ac_cv_c_const=no
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8802 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8803 if test $ac_cv_c_const = no; then
8805 cat >>confdefs.h <<\_ACEOF
8806 #define const
8807 _ACEOF
8816 ac_header_dirent=no
8817 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8818 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8819 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8820 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h. */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8830 #include <sys/types.h>
8831 #include <$ac_hdr>
8834 main ()
8836 if ((DIR *) 0)
8837 return 0;
8839 return 0;
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_compile") 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872 (eval "$ac_try") 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 eval "$as_ac_Header=yes"
8877 else
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 eval "$as_ac_Header=no"
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 ac_res=`eval echo '${'$as_ac_Header'}'`
8887 { echo "$as_me:$LINENO: result: $ac_res" >&5
8888 echo "${ECHO_T}$ac_res" >&6; }
8889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8890 cat >>confdefs.h <<_ACEOF
8891 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8892 _ACEOF
8894 ac_header_dirent=$ac_hdr; break
8897 done
8898 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8899 if test $ac_header_dirent = dirent.h; then
8900 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8901 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8902 if test "${ac_cv_search_opendir+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905 ac_func_search_save_LIBS=$LIBS
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h. */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8913 /* Override any GCC internal prototype to avoid an error.
8914 Use char because int might match the return type of a GCC
8915 builtin and then its argument prototype would still apply. */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 char opendir ();
8921 main ()
8923 return opendir ();
8925 return 0;
8927 _ACEOF
8928 for ac_lib in '' dir; do
8929 if test -z "$ac_lib"; then
8930 ac_res="none required"
8931 else
8932 ac_res=-l$ac_lib
8933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8935 rm -f conftest.$ac_objext conftest$ac_exeext
8936 if { (ac_try="$ac_link"
8937 case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942 (eval "$ac_link") 2>conftest.er1
8943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8950 { (case "(($ac_try" in
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_try") 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; } &&
8959 { ac_try='test -s conftest$ac_exeext'
8960 { (case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_try") 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8969 ac_cv_search_opendir=$ac_res
8970 else
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8977 rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext
8979 if test "${ac_cv_search_opendir+set}" = set; then
8980 break
8982 done
8983 if test "${ac_cv_search_opendir+set}" = set; then
8985 else
8986 ac_cv_search_opendir=no
8988 rm conftest.$ac_ext
8989 LIBS=$ac_func_search_save_LIBS
8991 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8992 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8993 ac_res=$ac_cv_search_opendir
8994 if test "$ac_res" != no; then
8995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8999 else
9000 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9001 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9002 if test "${ac_cv_search_opendir+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005 ac_func_search_save_LIBS=$LIBS
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h. */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9013 /* Override any GCC internal prototype to avoid an error.
9014 Use char because int might match the return type of a GCC
9015 builtin and then its argument prototype would still apply. */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 char opendir ();
9021 main ()
9023 return opendir ();
9025 return 0;
9027 _ACEOF
9028 for ac_lib in '' x; do
9029 if test -z "$ac_lib"; then
9030 ac_res="none required"
9031 else
9032 ac_res=-l$ac_lib
9033 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9035 rm -f conftest.$ac_objext conftest$ac_exeext
9036 if { (ac_try="$ac_link"
9037 case "(($ac_try" in
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9040 esac
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_link") 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } &&
9049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9050 { (case "(($ac_try" in
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9053 esac
9054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9055 (eval "$ac_try") 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; } &&
9059 { ac_try='test -s conftest$ac_exeext'
9060 { (case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9063 esac
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_try") 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_search_opendir=$ac_res
9070 else
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9077 rm -f core conftest.err conftest.$ac_objext \
9078 conftest$ac_exeext
9079 if test "${ac_cv_search_opendir+set}" = set; then
9080 break
9082 done
9083 if test "${ac_cv_search_opendir+set}" = set; then
9085 else
9086 ac_cv_search_opendir=no
9088 rm conftest.$ac_ext
9089 LIBS=$ac_func_search_save_LIBS
9091 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9092 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9093 ac_res=$ac_cv_search_opendir
9094 if test "$ac_res" != no; then
9095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9102 for ac_header in dlfcn.h
9104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9109 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 ac_res=`eval echo '${'$as_ac_Header'}'`
9112 { echo "$as_me:$LINENO: result: $ac_res" >&5
9113 echo "${ECHO_T}$ac_res" >&6; }
9114 else
9115 # Is the header compilable?
9116 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9125 #include <$ac_header>
9126 _ACEOF
9127 rm -f conftest.$ac_objext
9128 if { (ac_try="$ac_compile"
9129 case "(($ac_try" in
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9132 esac
9133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_compile") 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
9141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9142 { (case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9145 esac
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_try") 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (case "(($ac_try" in
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9155 esac
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157 (eval "$ac_try") 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 ac_header_compiler=yes
9162 else
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 ac_header_compiler=no
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9171 echo "${ECHO_T}$ac_header_compiler" >&6; }
9173 # Is the header present?
9174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9176 cat >conftest.$ac_ext <<_ACEOF
9177 /* confdefs.h. */
9178 _ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 #include <$ac_header>
9183 _ACEOF
9184 if { (ac_try="$ac_cpp conftest.$ac_ext"
9185 case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188 esac
9189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } >/dev/null; then
9197 if test -s conftest.err; then
9198 ac_cpp_err=$ac_c_preproc_warn_flag
9199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9200 else
9201 ac_cpp_err=
9203 else
9204 ac_cpp_err=yes
9206 if test -z "$ac_cpp_err"; then
9207 ac_header_preproc=yes
9208 else
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 ac_header_preproc=no
9215 rm -f conftest.err conftest.$ac_ext
9216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9217 echo "${ECHO_T}$ac_header_preproc" >&6; }
9219 # So? What about this header?
9220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9221 yes:no: )
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9226 ac_header_preproc=yes
9228 no:yes:* )
9229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9241 ( cat <<\_ASBOX
9242 ## ----------------------------------- ##
9243 ## Report this to llvmbugs@cs.uiuc.edu ##
9244 ## ----------------------------------- ##
9245 _ASBOX
9246 ) | sed "s/^/$as_me: WARNING: /" >&2
9248 esac
9249 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254 eval "$as_ac_Header=\$ac_header_preproc"
9256 ac_res=`eval echo '${'$as_ac_Header'}'`
9257 { echo "$as_me:$LINENO: result: $ac_res" >&5
9258 echo "${ECHO_T}$ac_res" >&6; }
9261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9262 cat >>confdefs.h <<_ACEOF
9263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9264 _ACEOF
9268 done
9270 # Check whether --enable-ltdl-install was given.
9271 if test "${enable_ltdl_install+set}" = set; then
9272 enableval=$enable_ltdl_install;
9278 if test x"${enable_ltdl_install-no}" != xno; then
9279 INSTALL_LTDL_TRUE=
9280 INSTALL_LTDL_FALSE='#'
9281 else
9282 INSTALL_LTDL_TRUE='#'
9283 INSTALL_LTDL_FALSE=
9288 if test x"${enable_ltdl_convenience-no}" != xno; then
9289 CONVENIENCE_LTDL_TRUE=
9290 CONVENIENCE_LTDL_FALSE='#'
9291 else
9292 CONVENIENCE_LTDL_TRUE='#'
9293 CONVENIENCE_LTDL_FALSE=
9297 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9298 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9299 library_names_spec=
9300 libname_spec='lib$name'
9301 soname_spec=
9302 shrext_cmds=".so"
9303 postinstall_cmds=
9304 postuninstall_cmds=
9305 finish_cmds=
9306 finish_eval=
9307 shlibpath_var=
9308 shlibpath_overrides_runpath=unknown
9309 version_type=none
9310 dynamic_linker="$host_os ld.so"
9311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9312 if test "$GCC" = yes; then
9313 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9314 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9315 # if the path contains ";" then we assume it to be the separator
9316 # otherwise default to the standard path separator (i.e. ":") - it is
9317 # assumed that no part of a normal pathname contains ";" but that should
9318 # okay in the real world where ";" in dirpaths is itself problematic.
9319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9320 else
9321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9323 else
9324 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9326 need_lib_prefix=unknown
9327 hardcode_into_libs=no
9329 # when you set need_version to no, make sure it does not cause -set_version
9330 # flags to be left without arguments
9331 need_version=unknown
9333 case $host_os in
9334 aix3*)
9335 version_type=linux
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9337 shlibpath_var=LIBPATH
9339 # AIX 3 has no versioning support, so we append a major version to the name.
9340 soname_spec='${libname}${release}${shared_ext}$major'
9343 aix4* | aix5*)
9344 version_type=linux
9345 need_lib_prefix=no
9346 need_version=no
9347 hardcode_into_libs=yes
9348 if test "$host_cpu" = ia64; then
9349 # AIX 5 supports IA64
9350 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9351 shlibpath_var=LD_LIBRARY_PATH
9352 else
9353 # With GCC up to 2.95.x, collect2 would create an import file
9354 # for dependence libraries. The import file would start with
9355 # the line `#! .'. This would cause the generated library to
9356 # depend on `.', always an invalid library. This was fixed in
9357 # development snapshots of GCC prior to 3.0.
9358 case $host_os in
9359 aix4 | aix4.[01] | aix4.[01].*)
9360 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9361 echo ' yes '
9362 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9364 else
9365 can_build_shared=no
9368 esac
9369 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9370 # soname into executable. Probably we can add versioning support to
9371 # collect2, so additional links can be useful in future.
9372 if test "$aix_use_runtimelinking" = yes; then
9373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9374 # instead of lib<name>.a to let people know that these are not
9375 # typical AIX shared libraries.
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377 else
9378 # We preserve .a as extension for shared libraries through AIX4.2
9379 # and later when we are not doing run time linking.
9380 library_names_spec='${libname}${release}.a $libname.a'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9383 shlibpath_var=LIBPATH
9387 amigaos*)
9388 library_names_spec='$libname.ixlibrary $libname.a'
9389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9390 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'
9393 beos*)
9394 library_names_spec='${libname}${shared_ext}'
9395 dynamic_linker="$host_os ld.so"
9396 shlibpath_var=LIBRARY_PATH
9399 bsdi[45]*)
9400 version_type=linux
9401 need_version=no
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9405 shlibpath_var=LD_LIBRARY_PATH
9406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9408 # the default ld.so.conf also contains /usr/contrib/lib and
9409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9410 # libtool to hard-code these into programs
9413 cygwin* | mingw* | pw32*)
9414 version_type=windows
9415 shrext_cmds=".dll"
9416 need_version=no
9417 need_lib_prefix=no
9419 case $GCC,$host_os in
9420 yes,cygwin* | yes,mingw* | yes,pw32*)
9421 library_names_spec='$libname.dll.a'
9422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9423 postinstall_cmds='base_file=`basename \${file}`~
9424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9425 dldir=$destdir/`dirname \$dlpath`~
9426 test -d \$dldir || mkdir -p \$dldir~
9427 $install_prog $dir/$dlname \$dldir/$dlname~
9428 chmod a+x \$dldir/$dlname'
9429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9430 dlpath=$dir/\$dldll~
9431 $rm \$dlpath'
9432 shlibpath_overrides_runpath=yes
9434 case $host_os in
9435 cygwin*)
9436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9437 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9438 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9440 mingw*)
9441 # MinGW DLLs use traditional 'lib' prefix
9442 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9443 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9444 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9445 # It is most probably a Windows format PATH printed by
9446 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9447 # path with ; separators, and with drive letters. We can handle the
9448 # drive letters (cygwin fileutils understands them), so leave them,
9449 # especially as we might pass files found there to a mingw objdump,
9450 # which wouldn't understand a cygwinified path. Ahh.
9451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9452 else
9453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9456 pw32*)
9457 # pw32 DLLs use 'pw' prefix rather than 'lib'
9458 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9460 esac
9464 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9466 esac
9467 dynamic_linker='Win32 ld.exe'
9468 # FIXME: first we should search . and the directory the executable is in
9469 shlibpath_var=PATH
9472 darwin* | rhapsody*)
9473 dynamic_linker="$host_os dyld"
9474 version_type=darwin
9475 need_lib_prefix=no
9476 need_version=no
9477 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9478 soname_spec='${libname}${release}${major}$shared_ext'
9479 shlibpath_overrides_runpath=yes
9480 shlibpath_var=DYLD_LIBRARY_PATH
9481 shrext_cmds='.dylib'
9482 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9483 if test "$GCC" = yes; then
9484 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"`
9485 else
9486 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9488 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9491 dgux*)
9492 version_type=linux
9493 need_lib_prefix=no
9494 need_version=no
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9500 freebsd1*)
9501 dynamic_linker=no
9504 kfreebsd*-gnu)
9505 version_type=linux
9506 need_lib_prefix=no
9507 need_version=no
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 shlibpath_overrides_runpath=no
9512 hardcode_into_libs=yes
9513 dynamic_linker='GNU ld.so'
9516 freebsd* | dragonfly*)
9517 # DragonFly does not have aout. When/if they implement a new
9518 # versioning mechanism, adjust this.
9519 if test -x /usr/bin/objformat; then
9520 objformat=`/usr/bin/objformat`
9521 else
9522 case $host_os in
9523 freebsd[123]*) objformat=aout ;;
9524 *) objformat=elf ;;
9525 esac
9527 version_type=freebsd-$objformat
9528 case $version_type in
9529 freebsd-elf*)
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9531 need_version=no
9532 need_lib_prefix=no
9534 freebsd-*)
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9536 need_version=yes
9538 esac
9539 shlibpath_var=LD_LIBRARY_PATH
9540 case $host_os in
9541 freebsd2*)
9542 shlibpath_overrides_runpath=yes
9544 freebsd3.[01]* | freebsdelf3.[01]*)
9545 shlibpath_overrides_runpath=yes
9546 hardcode_into_libs=yes
9548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9550 shlibpath_overrides_runpath=no
9551 hardcode_into_libs=yes
9553 freebsd*) # from 4.6 on
9554 shlibpath_overrides_runpath=yes
9555 hardcode_into_libs=yes
9557 esac
9560 gnu*)
9561 version_type=linux
9562 need_lib_prefix=no
9563 need_version=no
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 shlibpath_var=LD_LIBRARY_PATH
9567 hardcode_into_libs=yes
9570 hpux9* | hpux10* | hpux11*)
9571 # Give a soname corresponding to the major version so that dld.sl refuses to
9572 # link against other versions.
9573 version_type=sunos
9574 need_lib_prefix=no
9575 need_version=no
9576 case $host_cpu in
9577 ia64*)
9578 shrext_cmds='.so'
9579 hardcode_into_libs=yes
9580 dynamic_linker="$host_os dld.so"
9581 shlibpath_var=LD_LIBRARY_PATH
9582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 if test "X$HPUX_IA64_MODE" = X32; then
9586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9587 else
9588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9592 hppa*64*)
9593 shrext_cmds='.sl'
9594 hardcode_into_libs=yes
9595 dynamic_linker="$host_os dld.sl"
9596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9604 shrext_cmds='.sl'
9605 dynamic_linker="$host_os dld.sl"
9606 shlibpath_var=SHLIB_PATH
9607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9609 soname_spec='${libname}${release}${shared_ext}$major'
9611 esac
9612 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9613 postinstall_cmds='chmod 555 $lib'
9616 interix3*)
9617 version_type=linux
9618 need_lib_prefix=no
9619 need_version=no
9620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621 soname_spec='${libname}${release}${shared_ext}$major'
9622 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9623 shlibpath_var=LD_LIBRARY_PATH
9624 shlibpath_overrides_runpath=no
9625 hardcode_into_libs=yes
9628 irix5* | irix6* | nonstopux*)
9629 case $host_os in
9630 nonstopux*) version_type=nonstopux ;;
9632 if test "$lt_cv_prog_gnu_ld" = yes; then
9633 version_type=linux
9634 else
9635 version_type=irix
9636 fi ;;
9637 esac
9638 need_lib_prefix=no
9639 need_version=no
9640 soname_spec='${libname}${release}${shared_ext}$major'
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9642 case $host_os in
9643 irix5* | nonstopux*)
9644 libsuff= shlibsuff=
9647 case $LD in # libtool.m4 will add one of these switches to LD
9648 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9649 libsuff= shlibsuff= libmagic=32-bit;;
9650 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9651 libsuff=32 shlibsuff=N32 libmagic=N32;;
9652 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9653 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9654 *) libsuff= shlibsuff= libmagic=never-match;;
9655 esac
9657 esac
9658 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9659 shlibpath_overrides_runpath=no
9660 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9661 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9662 hardcode_into_libs=yes
9665 # No shared lib support for Linux oldld, aout, or coff.
9666 linux*oldld* | linux*aout* | linux*coff*)
9667 dynamic_linker=no
9670 # This must be Linux ELF.
9671 linux*)
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 shlibpath_overrides_runpath=no
9680 # This implies no fast_install, which is unacceptable.
9681 # Some rework will be needed to allow for fast_install
9682 # before this can be enabled.
9683 hardcode_into_libs=yes
9685 # Append ld.so.conf contents to the search path
9686 if test -f /etc/ld.so.conf; then
9687 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' ' '`
9688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9691 # We used to test for /lib/ld.so.1 and disable shared libraries on
9692 # powerpc, because MkLinux only supported shared libraries with the
9693 # GNU dynamic linker. Since this was broken with cross compilers,
9694 # most powerpc-linux boxes support dynamic linking these days and
9695 # people can always --disable-shared, the test was removed, and we
9696 # assume the GNU/Linux dynamic linker is in use.
9697 dynamic_linker='GNU/Linux ld.so'
9700 knetbsd*-gnu)
9701 version_type=linux
9702 need_lib_prefix=no
9703 need_version=no
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=no
9708 hardcode_into_libs=yes
9709 dynamic_linker='GNU ld.so'
9712 netbsd*)
9713 version_type=sunos
9714 need_lib_prefix=no
9715 need_version=no
9716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9719 dynamic_linker='NetBSD (a.out) ld.so'
9720 else
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 dynamic_linker='NetBSD ld.elf_so'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=yes
9727 hardcode_into_libs=yes
9730 newsos6)
9731 version_type=linux
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 shlibpath_overrides_runpath=yes
9737 nto-qnx*)
9738 version_type=linux
9739 need_lib_prefix=no
9740 need_version=no
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742 soname_spec='${libname}${release}${shared_ext}$major'
9743 shlibpath_var=LD_LIBRARY_PATH
9744 shlibpath_overrides_runpath=yes
9747 openbsd*)
9748 version_type=sunos
9749 sys_lib_dlsearch_path_spec="/usr/lib"
9750 need_lib_prefix=no
9751 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9752 case $host_os in
9753 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9754 *) need_version=no ;;
9755 esac
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9760 case $host_os in
9761 openbsd2.[89] | openbsd2.[89].*)
9762 shlibpath_overrides_runpath=no
9765 shlibpath_overrides_runpath=yes
9767 esac
9768 else
9769 shlibpath_overrides_runpath=yes
9773 os2*)
9774 libname_spec='$name'
9775 shrext_cmds=".dll"
9776 need_lib_prefix=no
9777 library_names_spec='$libname${shared_ext} $libname.a'
9778 dynamic_linker='OS/2 ld.exe'
9779 shlibpath_var=LIBPATH
9782 osf3* | osf4* | osf5*)
9783 version_type=osf
9784 need_lib_prefix=no
9785 need_version=no
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9790 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9793 solaris*)
9794 version_type=linux
9795 need_lib_prefix=no
9796 need_version=no
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 shlibpath_overrides_runpath=yes
9801 hardcode_into_libs=yes
9802 # ldd complains unless libraries are executable
9803 postinstall_cmds='chmod +x $lib'
9806 sunos4*)
9807 version_type=sunos
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=yes
9812 if test "$with_gnu_ld" = yes; then
9813 need_lib_prefix=no
9815 need_version=yes
9818 sysv4 | sysv4.3*)
9819 version_type=linux
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 shlibpath_var=LD_LIBRARY_PATH
9823 case $host_vendor in
9824 sni)
9825 shlibpath_overrides_runpath=no
9826 need_lib_prefix=no
9827 export_dynamic_flag_spec='${wl}-Blargedynsym'
9828 runpath_var=LD_RUN_PATH
9830 siemens)
9831 need_lib_prefix=no
9833 motorola)
9834 need_lib_prefix=no
9835 need_version=no
9836 shlibpath_overrides_runpath=no
9837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9839 esac
9842 sysv4*MP*)
9843 if test -d /usr/nec ;then
9844 version_type=linux
9845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9846 soname_spec='$libname${shared_ext}.$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9852 version_type=freebsd-elf
9853 need_lib_prefix=no
9854 need_version=no
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 hardcode_into_libs=yes
9859 if test "$with_gnu_ld" = yes; then
9860 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9861 shlibpath_overrides_runpath=no
9862 else
9863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9864 shlibpath_overrides_runpath=yes
9865 case $host_os in
9866 sco3.2v5*)
9867 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9869 esac
9871 sys_lib_dlsearch_path_spec='/usr/lib'
9874 uts4*)
9875 version_type=linux
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 shlibpath_var=LD_LIBRARY_PATH
9882 dynamic_linker=no
9884 esac
9885 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9886 echo "${ECHO_T}$dynamic_linker" >&6; }
9887 test "$dynamic_linker" = no && can_build_shared=no
9889 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9890 if test "$GCC" = yes; then
9891 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9895 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9896 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9897 if test "${libltdl_cv_shlibext+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9901 module=yes
9902 eval libltdl_cv_shlibext=$shrext_cmds
9905 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9906 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9907 if test -n "$libltdl_cv_shlibext"; then
9909 cat >>confdefs.h <<_ACEOF
9910 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9911 _ACEOF
9916 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9917 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9918 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921 libltdl_cv_shlibpath_var="$shlibpath_var"
9923 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9924 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9925 if test -n "$libltdl_cv_shlibpath_var"; then
9927 cat >>confdefs.h <<_ACEOF
9928 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9929 _ACEOF
9934 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9935 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9936 if test "${libltdl_cv_sys_search_path+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9941 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9942 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9943 if test -n "$libltdl_cv_sys_search_path"; then
9944 sys_search_path=
9945 for dir in $libltdl_cv_sys_search_path; do
9946 if test -z "$sys_search_path"; then
9947 sys_search_path="$dir"
9948 else
9949 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9951 done
9953 cat >>confdefs.h <<_ACEOF
9954 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9955 _ACEOF
9959 { echo "$as_me:$LINENO: checking for objdir" >&5
9960 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9961 if test "${libltdl_cv_objdir+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 libltdl_cv_objdir="$objdir"
9965 if test -n "$objdir"; then
9967 else
9968 rm -f .libs 2>/dev/null
9969 mkdir .libs 2>/dev/null
9970 if test -d .libs; then
9971 libltdl_cv_objdir=.libs
9972 else
9973 # MS-DOS does not allow filenames that begin with a dot.
9974 libltdl_cv_objdir=_libs
9976 rmdir .libs 2>/dev/null
9980 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9981 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9983 cat >>confdefs.h <<_ACEOF
9984 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9985 _ACEOF
9992 # Check for command to grab the raw symbol name followed by C symbol from nm.
9993 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9994 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9995 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9999 # These are sane defaults that work on at least a few old systems.
10000 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10002 # Character class describing NM global symbol codes.
10003 symcode='[BCDEGRST]'
10005 # Regexp to match symbols that can be accessed directly from C.
10006 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10008 # Transform an extracted symbol line into a proper C declaration
10009 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10011 # Transform an extracted symbol line into symbol name and symbol address
10012 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'"
10014 # Define system-specific variables.
10015 case $host_os in
10016 aix*)
10017 symcode='[BCDT]'
10019 cygwin* | mingw* | pw32*)
10020 symcode='[ABCDGISTW]'
10022 hpux*) # Its linker distinguishes data from code symbols
10023 if test "$host_cpu" = ia64; then
10024 symcode='[ABCDEGRST]'
10026 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10027 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'"
10029 linux*)
10030 if test "$host_cpu" = ia64; then
10031 symcode='[ABCDGIRSTW]'
10032 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10033 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'"
10036 irix* | nonstopux*)
10037 symcode='[BCDEGRST]'
10039 osf*)
10040 symcode='[BCDEGQRST]'
10042 solaris*)
10043 symcode='[BDRT]'
10045 sco3.2v5*)
10046 symcode='[DT]'
10048 sysv4.2uw2*)
10049 symcode='[DT]'
10051 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10052 symcode='[ABDT]'
10054 sysv4)
10055 symcode='[DFNSTU]'
10057 esac
10059 # Handle CRLF in mingw tool chain
10060 opt_cr=
10061 case $build_os in
10062 mingw*)
10063 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10065 esac
10067 # If we're using GNU nm, then use its standard symbol codes.
10068 case `$NM -V 2>&1` in
10069 *GNU* | *'with BFD'*)
10070 symcode='[ABCDGIRSTW]' ;;
10071 esac
10073 # Try without a prefix undercore, then with it.
10074 for ac_symprfx in "" "_"; do
10076 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10077 symxfrm="\\1 $ac_symprfx\\2 \\2"
10079 # Write the raw and C identifiers.
10080 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10082 # Check to see that the pipe works correctly.
10083 pipe_works=no
10085 rm -f conftest*
10086 cat > conftest.$ac_ext <<EOF
10087 #ifdef __cplusplus
10088 extern "C" {
10089 #endif
10090 char nm_test_var;
10091 void nm_test_func(){}
10092 #ifdef __cplusplus
10094 #endif
10095 int main(){nm_test_var='a';nm_test_func();return(0);}
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; then
10103 # Now try to grab the symbols.
10104 nlist=conftest.nm
10105 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10106 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && test -s "$nlist"; then
10110 # Try sorting and uniquifying the output.
10111 if sort "$nlist" | uniq > "$nlist"T; then
10112 mv -f "$nlist"T "$nlist"
10113 else
10114 rm -f "$nlist"T
10117 # Make sure that we snagged all the symbols we need.
10118 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10119 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10120 cat <<EOF > conftest.$ac_ext
10121 #ifdef __cplusplus
10122 extern "C" {
10123 #endif
10126 # Now generate the symbol file.
10127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10129 cat <<EOF >> conftest.$ac_ext
10130 #if defined (__STDC__) && __STDC__
10131 # define lt_ptr_t void *
10132 #else
10133 # define lt_ptr_t char *
10134 # define const
10135 #endif
10137 /* The mapping between symbol names and symbols. */
10138 const struct {
10139 const char *name;
10140 lt_ptr_t address;
10142 lt_preloaded_symbols[] =
10145 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10146 cat <<\EOF >> conftest.$ac_ext
10147 {0, (lt_ptr_t) 0}
10150 #ifdef __cplusplus
10152 #endif
10154 # Now try linking the two files.
10155 mv conftest.$ac_objext conftstm.$ac_objext
10156 lt_save_LIBS="$LIBS"
10157 lt_save_CFLAGS="$CFLAGS"
10158 LIBS="conftstm.$ac_objext"
10159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161 (eval $ac_link) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10165 pipe_works=yes
10167 LIBS="$lt_save_LIBS"
10168 CFLAGS="$lt_save_CFLAGS"
10169 else
10170 echo "cannot find nm_test_func in $nlist" >&5
10172 else
10173 echo "cannot find nm_test_var in $nlist" >&5
10175 else
10176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10178 else
10179 echo "$progname: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10182 rm -f conftest* conftst*
10184 # Do not use the global_symbol_pipe unless it works.
10185 if test "$pipe_works" = yes; then
10186 break
10187 else
10188 lt_cv_sys_global_symbol_pipe=
10190 done
10194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10195 lt_cv_sys_global_symbol_to_cdecl=
10197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10198 { echo "$as_me:$LINENO: result: failed" >&5
10199 echo "${ECHO_T}failed" >&6; }
10200 else
10201 { echo "$as_me:$LINENO: result: ok" >&5
10202 echo "${ECHO_T}ok" >&6; }
10206 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10207 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10208 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10212 libltdl_cv_preloaded_symbols=yes
10213 else
10214 libltdl_cv_preloaded_symbols=no
10218 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10219 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10220 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_PRELOADED_SYMBOLS 1
10224 _ACEOF
10228 LIBADD_DL=
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
10237 { echo "$as_me:$LINENO: checking for shl_load" >&5
10238 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10239 if test "${ac_cv_func_shl_load+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 else
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10250 #define shl_load innocuous_shl_load
10252 /* System header to define __stub macros and hopefully few prototypes,
10253 which can conflict with char shl_load (); below.
10254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10255 <limits.h> exists even on freestanding compilers. */
10257 #ifdef __STDC__
10258 # include <limits.h>
10259 #else
10260 # include <assert.h>
10261 #endif
10263 #undef shl_load
10265 /* Override any GCC internal prototype to avoid an error.
10266 Use char because int might match the return type of a GCC
10267 builtin and then its argument prototype would still apply. */
10268 #ifdef __cplusplus
10269 extern "C"
10270 #endif
10271 char shl_load ();
10272 /* The GNU C library defines this for functions which it implements
10273 to always fail with ENOSYS. Some functions are actually named
10274 something starting with __ and the normal name is an alias. */
10275 #if defined __stub_shl_load || defined __stub___shl_load
10276 choke me
10277 #endif
10280 main ()
10282 return shl_load ();
10284 return 0;
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (ac_try="$ac_link"
10289 case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_link") 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } &&
10301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10302 { (case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_try") 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest$ac_exeext'
10312 { (case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_try") 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 ac_cv_func_shl_load=yes
10322 else
10323 echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10326 ac_cv_func_shl_load=no
10329 rm -f core conftest.err conftest.$ac_objext \
10330 conftest$ac_exeext conftest.$ac_ext
10332 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10333 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10334 if test $ac_cv_func_shl_load = yes; then
10336 cat >>confdefs.h <<\_ACEOF
10337 #define HAVE_SHL_LOAD 1
10338 _ACEOF
10340 else
10341 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10342 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10343 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346 ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-ldld $LIBS"
10348 cat >conftest.$ac_ext <<_ACEOF
10349 /* confdefs.h. */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10355 /* Override any GCC internal prototype to avoid an error.
10356 Use char because int might match the return type of a GCC
10357 builtin and then its argument prototype would still apply. */
10358 #ifdef __cplusplus
10359 extern "C"
10360 #endif
10361 char shl_load ();
10363 main ()
10365 return shl_load ();
10367 return 0;
10369 _ACEOF
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (ac_try="$ac_link"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10375 esac
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_link") 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10385 { (case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10388 esac
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_try") 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; } &&
10394 { ac_try='test -s conftest$ac_exeext'
10395 { (case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_try") 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
10404 ac_cv_lib_dld_shl_load=yes
10405 else
10406 echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_cv_lib_dld_shl_load=no
10412 rm -f core conftest.err conftest.$ac_objext \
10413 conftest$ac_exeext conftest.$ac_ext
10414 LIBS=$ac_check_lib_save_LIBS
10416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10417 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10418 if test $ac_cv_lib_dld_shl_load = yes; then
10420 cat >>confdefs.h <<\_ACEOF
10421 #define HAVE_SHL_LOAD 1
10422 _ACEOF
10424 LIBADD_DL="$LIBADD_DL -ldld"
10425 else
10426 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10427 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10428 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-ldl $LIBS"
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10443 #ifdef __cplusplus
10444 extern "C"
10445 #endif
10446 char dlopen ();
10448 main ()
10450 return dlopen ();
10452 return 0;
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10460 esac
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462 (eval "$ac_link") 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10470 { (case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473 esac
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_try") 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; } &&
10479 { ac_try='test -s conftest$ac_exeext'
10480 { (case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483 esac
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_try") 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 ac_cv_lib_dl_dlopen=yes
10490 else
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10494 ac_cv_lib_dl_dlopen=no
10497 rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 LIBS=$ac_check_lib_save_LIBS
10501 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10502 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10503 if test $ac_cv_lib_dl_dlopen = yes; then
10505 cat >>confdefs.h <<\_ACEOF
10506 #define HAVE_LIBDL 1
10507 _ACEOF
10509 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10510 else
10511 cat >conftest.$ac_ext <<_ACEOF
10512 /* confdefs.h. */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10517 #if HAVE_DLFCN_H
10518 # include <dlfcn.h>
10519 #endif
10522 main ()
10524 dlopen(0, 0);
10526 return 0;
10528 _ACEOF
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (ac_try="$ac_link"
10531 case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534 esac
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_link") 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10544 { (case "(($ac_try" in
10545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10547 esac
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_try") 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_try") 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10564 cat >>confdefs.h <<\_ACEOF
10565 #define HAVE_LIBDL 1
10566 _ACEOF
10567 libltdl_cv_func_dlopen="yes"
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10573 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10574 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577 ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-lsvld $LIBS"
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h. */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10586 /* Override any GCC internal prototype to avoid an error.
10587 Use char because int might match the return type of a GCC
10588 builtin and then its argument prototype would still apply. */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 char dlopen ();
10594 main ()
10596 return dlopen ();
10598 return 0;
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest$ac_exeext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_lib_svld_dlopen=yes
10636 else
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_cv_lib_svld_dlopen=no
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10647 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10648 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10649 if test $ac_cv_lib_svld_dlopen = yes; then
10651 cat >>confdefs.h <<\_ACEOF
10652 #define HAVE_LIBDL 1
10653 _ACEOF
10655 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10656 else
10657 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10658 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10659 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 ac_check_lib_save_LIBS=$LIBS
10663 LIBS="-ldld $LIBS"
10664 cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h. */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h. */
10671 /* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char dld_link ();
10679 main ()
10681 return dld_link ();
10683 return 0;
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691 esac
10692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_link") 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10701 { (case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_try") 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest$ac_exeext'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714 esac
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_lib_dld_dld_link=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_lib_dld_dld_link=no
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10733 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10734 if test $ac_cv_lib_dld_dld_link = yes; then
10736 cat >>confdefs.h <<\_ACEOF
10737 #define HAVE_DLD 1
10738 _ACEOF
10740 LIBADD_DL="$LIBADD_DL -ldld"
10741 else
10742 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10743 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10744 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10755 #define _dyld_func_lookup innocuous__dyld_func_lookup
10757 /* System header to define __stub macros and hopefully few prototypes,
10758 which can conflict with char _dyld_func_lookup (); below.
10759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10760 <limits.h> exists even on freestanding compilers. */
10762 #ifdef __STDC__
10763 # include <limits.h>
10764 #else
10765 # include <assert.h>
10766 #endif
10768 #undef _dyld_func_lookup
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char _dyld_func_lookup ();
10777 /* The GNU C library defines this for functions which it implements
10778 to always fail with ENOSYS. Some functions are actually named
10779 something starting with __ and the normal name is an alias. */
10780 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10781 choke me
10782 #endif
10785 main ()
10787 return _dyld_func_lookup ();
10789 return 0;
10791 _ACEOF
10792 rm -f conftest.$ac_objext conftest$ac_exeext
10793 if { (ac_try="$ac_link"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10797 esac
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>conftest.er1
10800 ac_status=$?
10801 grep -v '^ *+' conftest.er1 >conftest.err
10802 rm -f conftest.er1
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest$ac_exeext'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10820 esac
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 ac_cv_func__dyld_func_lookup=yes
10827 else
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10831 ac_cv_func__dyld_func_lookup=no
10834 rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10837 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10838 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10839 if test $ac_cv_func__dyld_func_lookup = yes; then
10841 cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_DYLD 1
10843 _ACEOF
10856 rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10868 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10869 then
10870 lt_save_LIBS="$LIBS"
10871 LIBS="$LIBS $LIBADD_DL"
10873 for ac_func in dlerror
10875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10889 #define $ac_func innocuous_$ac_func
10891 /* System header to define __stub macros and hopefully few prototypes,
10892 which can conflict with char $ac_func (); below.
10893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10894 <limits.h> exists even on freestanding compilers. */
10896 #ifdef __STDC__
10897 # include <limits.h>
10898 #else
10899 # include <assert.h>
10900 #endif
10902 #undef $ac_func
10904 /* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char $ac_func ();
10911 /* The GNU C library defines this for functions which it implements
10912 to always fail with ENOSYS. Some functions are actually named
10913 something starting with __ and the normal name is an alias. */
10914 #if defined __stub_$ac_func || defined __stub___$ac_func
10915 choke me
10916 #endif
10919 main ()
10921 return $ac_func ();
10923 return 0;
10925 _ACEOF
10926 rm -f conftest.$ac_objext conftest$ac_exeext
10927 if { (ac_try="$ac_link"
10928 case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931 esac
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_link") 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944 esac
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; } &&
10950 { ac_try='test -s conftest$ac_exeext'
10951 { (case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_try") 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 eval "$as_ac_var=yes"
10961 else
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 eval "$as_ac_var=no"
10968 rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10971 ac_res=`eval echo '${'$as_ac_var'}'`
10972 { echo "$as_me:$LINENO: result: $ac_res" >&5
10973 echo "${ECHO_T}$ac_res" >&6; }
10974 if test `eval echo '${'$as_ac_var'}'` = yes; then
10975 cat >>confdefs.h <<_ACEOF
10976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10977 _ACEOF
10980 done
10982 LIBS="$lt_save_LIBS"
10984 ac_ext=c
10985 ac_cpp='$CPP $CPPFLAGS'
10986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10992 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10993 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10994 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997 ac_cv_sys_symbol_underscore=no
10998 cat > conftest.$ac_ext <<EOF
10999 void nm_test_func(){}
11000 int main(){nm_test_func;return 0;}
11002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11003 (eval $ac_compile) 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; then
11007 # Now try to grab the symbols.
11008 ac_nlist=conftest.nm
11009 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11010 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && test -s "$ac_nlist"; then
11014 # See whether the symbols have a leading underscore.
11015 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11016 ac_cv_sys_symbol_underscore=yes
11017 else
11018 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11020 else
11021 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11024 else
11025 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11027 else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.c >&5
11031 rm -rf conftest*
11034 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11035 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11038 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11039 if test x"$libltdl_cv_func_dlopen" = xyes ||
11040 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11041 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11042 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11043 if test "${libltdl_cv_need_uscore+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 else
11046 libltdl_cv_need_uscore=unknown
11047 save_LIBS="$LIBS"
11048 LIBS="$LIBS $LIBADD_DL"
11049 if test "$cross_compiling" = yes; then :
11050 libltdl_cv_need_uscore=cross
11051 else
11052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11053 lt_status=$lt_dlunknown
11054 cat > conftest.$ac_ext <<EOF
11055 #line 11055 "configure"
11056 #include "confdefs.h"
11058 #if HAVE_DLFCN_H
11059 #include <dlfcn.h>
11060 #endif
11062 #include <stdio.h>
11064 #ifdef RTLD_GLOBAL
11065 # define LT_DLGLOBAL RTLD_GLOBAL
11066 #else
11067 # ifdef DL_GLOBAL
11068 # define LT_DLGLOBAL DL_GLOBAL
11069 # else
11070 # define LT_DLGLOBAL 0
11071 # endif
11072 #endif
11074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11075 find out it does not work in some platform. */
11076 #ifndef LT_DLLAZY_OR_NOW
11077 # ifdef RTLD_LAZY
11078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11079 # else
11080 # ifdef DL_LAZY
11081 # define LT_DLLAZY_OR_NOW DL_LAZY
11082 # else
11083 # ifdef RTLD_NOW
11084 # define LT_DLLAZY_OR_NOW RTLD_NOW
11085 # else
11086 # ifdef DL_NOW
11087 # define LT_DLLAZY_OR_NOW DL_NOW
11088 # else
11089 # define LT_DLLAZY_OR_NOW 0
11090 # endif
11091 # endif
11092 # endif
11093 # endif
11094 #endif
11096 #ifdef __cplusplus
11097 extern "C" void exit (int);
11098 #endif
11100 void fnord() { int i=42;}
11101 int main ()
11103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11104 int status = $lt_dlunknown;
11106 if (self)
11108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11110 /* dlclose (self); */
11112 else
11113 puts (dlerror ());
11115 exit (status);
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119 (eval $ac_link) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11123 (./conftest; exit; ) >&5 2>/dev/null
11124 lt_status=$?
11125 case x$lt_status in
11126 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11127 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11128 x$lt_dlunknown|x*) ;;
11129 esac
11130 else :
11131 # compilation failed
11135 rm -fr conftest*
11137 LIBS="$save_LIBS"
11140 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11141 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11145 if test x"$libltdl_cv_need_uscore" = xyes; then
11147 cat >>confdefs.h <<\_ACEOF
11148 #define NEED_USCORE 1
11149 _ACEOF
11154 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11155 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11156 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159 # PORTME does your system automatically load deplibs for dlopen?
11160 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11161 # For now, we just catch OSes we know something about -- in the
11162 # future, we'll try test this programmatically.
11163 libltdl_cv_sys_dlopen_deplibs=unknown
11164 case "$host_os" in
11165 aix3*|aix4.1.*|aix4.2.*)
11166 # Unknown whether this is true for these versions of AIX, but
11167 # we want this `case' here to explicitly catch those versions.
11168 libltdl_cv_sys_dlopen_deplibs=unknown
11170 aix[45]*)
11171 libltdl_cv_sys_dlopen_deplibs=yes
11173 darwin*)
11174 # Assuming the user has installed a libdl from somewhere, this is true
11175 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11176 libltdl_cv_sys_dlopen_deplibs=yes
11178 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11179 # GNU and its variants, using gnu ld.so (Glibc)
11180 libltdl_cv_sys_dlopen_deplibs=yes
11182 hpux10*|hpux11*)
11183 libltdl_cv_sys_dlopen_deplibs=yes
11185 interix*)
11186 libltdl_cv_sys_dlopen_deplibs=yes
11188 irix[12345]*|irix6.[01]*)
11189 # Catch all versions of IRIX before 6.2, and indicate that we don't
11190 # know how it worked for any of those versions.
11191 libltdl_cv_sys_dlopen_deplibs=unknown
11193 irix*)
11194 # The case above catches anything before 6.2, and it's known that
11195 # at 6.2 and later dlopen does load deplibs.
11196 libltdl_cv_sys_dlopen_deplibs=yes
11198 netbsd*)
11199 libltdl_cv_sys_dlopen_deplibs=yes
11201 openbsd*)
11202 libltdl_cv_sys_dlopen_deplibs=yes
11204 osf[1234]*)
11205 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11206 # it did *not* use an RPATH in a shared library to find objects the
11207 # library depends on, so we explictly say `no'.
11208 libltdl_cv_sys_dlopen_deplibs=no
11210 osf5.0|osf5.0a|osf5.1)
11211 # dlopen *does* load deplibs and with the right loader patch applied
11212 # it even uses RPATH in a shared library to search for shared objects
11213 # that the library depends on, but there's no easy way to know if that
11214 # patch is installed. Since this is the case, all we can really
11215 # say is unknown -- it depends on the patch being installed. If
11216 # it is, this changes to `yes'. Without it, it would be `no'.
11217 libltdl_cv_sys_dlopen_deplibs=unknown
11219 osf*)
11220 # the two cases above should catch all versions of osf <= 5.1. Read
11221 # the comments above for what we know about them.
11222 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11223 # is used to find them so we can finally say `yes'.
11224 libltdl_cv_sys_dlopen_deplibs=yes
11226 solaris*)
11227 libltdl_cv_sys_dlopen_deplibs=yes
11229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11230 libltdl_cv_sys_dlopen_deplibs=yes
11232 esac
11235 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11236 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11237 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11239 cat >>confdefs.h <<\_ACEOF
11240 #define LTDL_DLOPEN_DEPLIBS 1
11241 _ACEOF
11246 for ac_header in argz.h
11248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 ac_res=`eval echo '${'$as_ac_Header'}'`
11256 { echo "$as_me:$LINENO: result: $ac_res" >&5
11257 echo "${ECHO_T}$ac_res" >&6; }
11258 else
11259 # Is the header compilable?
11260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h. */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 $ac_includes_default
11269 #include <$ac_header>
11270 _ACEOF
11271 rm -f conftest.$ac_objext
11272 if { (ac_try="$ac_compile"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_compile") 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11286 { (case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_try") 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest.$ac_objext'
11296 { (case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299 esac
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_try") 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }; }; then
11305 ac_header_compiler=yes
11306 else
11307 echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11310 ac_header_compiler=no
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315 echo "${ECHO_T}$ac_header_compiler" >&6; }
11317 # Is the header present?
11318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 #include <$ac_header>
11327 _ACEOF
11328 if { (ac_try="$ac_cpp conftest.$ac_ext"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } >/dev/null; then
11341 if test -s conftest.err; then
11342 ac_cpp_err=$ac_c_preproc_warn_flag
11343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11344 else
11345 ac_cpp_err=
11347 else
11348 ac_cpp_err=yes
11350 if test -z "$ac_cpp_err"; then
11351 ac_header_preproc=yes
11352 else
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_header_preproc=no
11359 rm -f conftest.err conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 echo "${ECHO_T}$ac_header_preproc" >&6; }
11363 # So? What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11365 yes:no: )
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370 ac_header_preproc=yes
11372 no:yes:* )
11373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11385 ( cat <<\_ASBOX
11386 ## ----------------------------------- ##
11387 ## Report this to llvmbugs@cs.uiuc.edu ##
11388 ## ----------------------------------- ##
11389 _ASBOX
11390 ) | sed "s/^/$as_me: WARNING: /" >&2
11392 esac
11393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 else
11398 eval "$as_ac_Header=\$ac_header_preproc"
11400 ac_res=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11406 cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11408 _ACEOF
11412 done
11415 { echo "$as_me:$LINENO: checking for error_t" >&5
11416 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11417 if test "${ac_cv_type_error_t+set}" = set; then
11418 echo $ECHO_N "(cached) $ECHO_C" >&6
11419 else
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #if HAVE_ARGZ_H
11427 # include <argz.h>
11428 #endif
11430 typedef error_t ac__type_new_;
11432 main ()
11434 if ((ac__type_new_ *) 0)
11435 return 0;
11436 if (sizeof (ac__type_new_))
11437 return 0;
11439 return 0;
11441 _ACEOF
11442 rm -f conftest.$ac_objext
11443 if { (ac_try="$ac_compile"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447 esac
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_compile") 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11459 *) ac_try_echo=$ac_try;;
11460 esac
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; } &&
11466 { ac_try='test -s conftest.$ac_objext'
11467 { (case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_try") 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 ac_cv_type_error_t=yes
11477 else
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 ac_cv_type_error_t=no
11484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11486 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11487 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11488 if test $ac_cv_type_error_t = yes; then
11490 cat >>confdefs.h <<_ACEOF
11491 #define HAVE_ERROR_T 1
11492 _ACEOF
11495 else
11497 cat >>confdefs.h <<\_ACEOF
11498 #define error_t int
11499 _ACEOF
11509 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517 cat >conftest.$ac_ext <<_ACEOF
11518 /* confdefs.h. */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11525 #define $ac_func innocuous_$ac_func
11527 /* System header to define __stub macros and hopefully few prototypes,
11528 which can conflict with char $ac_func (); below.
11529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530 <limits.h> exists even on freestanding compilers. */
11532 #ifdef __STDC__
11533 # include <limits.h>
11534 #else
11535 # include <assert.h>
11536 #endif
11538 #undef $ac_func
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char $ac_func ();
11547 /* The GNU C library defines this for functions which it implements
11548 to always fail with ENOSYS. Some functions are actually named
11549 something starting with __ and the normal name is an alias. */
11550 #if defined __stub_$ac_func || defined __stub___$ac_func
11551 choke me
11552 #endif
11555 main ()
11557 return $ac_func ();
11559 return 0;
11561 _ACEOF
11562 rm -f conftest.$ac_objext conftest$ac_exeext
11563 if { (ac_try="$ac_link"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_link") 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11577 { (case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_try") 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; } &&
11586 { ac_try='test -s conftest$ac_exeext'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 eval "$as_ac_var=yes"
11597 else
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 eval "$as_ac_var=no"
11604 rm -f core conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11607 ac_res=`eval echo '${'$as_ac_var'}'`
11608 { echo "$as_me:$LINENO: result: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11610 if test `eval echo '${'$as_ac_var'}'` = yes; then
11611 cat >>confdefs.h <<_ACEOF
11612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11613 _ACEOF
11616 done
11645 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11646 stdio.h unistd.h
11648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 ac_res=`eval echo '${'$as_ac_Header'}'`
11656 { echo "$as_me:$LINENO: result: $ac_res" >&5
11657 echo "${ECHO_T}$ac_res" >&6; }
11658 else
11659 # Is the header compilable?
11660 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11662 cat >conftest.$ac_ext <<_ACEOF
11663 /* confdefs.h. */
11664 _ACEOF
11665 cat confdefs.h >>conftest.$ac_ext
11666 cat >>conftest.$ac_ext <<_ACEOF
11667 /* end confdefs.h. */
11668 $ac_includes_default
11669 #include <$ac_header>
11670 _ACEOF
11671 rm -f conftest.$ac_objext
11672 if { (ac_try="$ac_compile"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_compile") 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } &&
11685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11686 { (case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_try") 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; } &&
11695 { ac_try='test -s conftest.$ac_objext'
11696 { (case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699 esac
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_header_compiler=yes
11706 else
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 ac_header_compiler=no
11713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11715 echo "${ECHO_T}$ac_header_compiler" >&6; }
11717 # Is the header present?
11718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11720 cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h. */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 #include <$ac_header>
11727 _ACEOF
11728 if { (ac_try="$ac_cpp conftest.$ac_ext"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } >/dev/null; then
11741 if test -s conftest.err; then
11742 ac_cpp_err=$ac_c_preproc_warn_flag
11743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11744 else
11745 ac_cpp_err=
11747 else
11748 ac_cpp_err=yes
11750 if test -z "$ac_cpp_err"; then
11751 ac_header_preproc=yes
11752 else
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11756 ac_header_preproc=no
11759 rm -f conftest.err conftest.$ac_ext
11760 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11761 echo "${ECHO_T}$ac_header_preproc" >&6; }
11763 # So? What about this header?
11764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11765 yes:no: )
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11767 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11770 ac_header_preproc=yes
11772 no:yes:* )
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11774 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11776 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11778 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11780 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11784 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11785 ( cat <<\_ASBOX
11786 ## ----------------------------------- ##
11787 ## Report this to llvmbugs@cs.uiuc.edu ##
11788 ## ----------------------------------- ##
11789 _ASBOX
11790 ) | sed "s/^/$as_me: WARNING: /" >&2
11792 esac
11793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 eval "$as_ac_Header=\$ac_header_preproc"
11800 ac_res=`eval echo '${'$as_ac_Header'}'`
11801 { echo "$as_me:$LINENO: result: $ac_res" >&5
11802 echo "${ECHO_T}$ac_res" >&6; }
11805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11806 cat >>confdefs.h <<_ACEOF
11807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11808 _ACEOF
11812 done
11818 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 ac_res=`eval echo '${'$as_ac_Header'}'`
11828 { echo "$as_me:$LINENO: result: $ac_res" >&5
11829 echo "${ECHO_T}$ac_res" >&6; }
11830 else
11831 # Is the header compilable?
11832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h. */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 $ac_includes_default
11841 #include <$ac_header>
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (ac_try="$ac_compile"
11845 case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848 esac
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_compile") 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861 esac
11862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest.$ac_objext'
11868 { (case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_try") 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 ac_header_compiler=yes
11878 else
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 ac_header_compiler=no
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887 echo "${ECHO_T}$ac_header_compiler" >&6; }
11889 # Is the header present?
11890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h. */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 #include <$ac_header>
11899 _ACEOF
11900 if { (ac_try="$ac_cpp conftest.$ac_ext"
11901 case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } >/dev/null; then
11913 if test -s conftest.err; then
11914 ac_cpp_err=$ac_c_preproc_warn_flag
11915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11916 else
11917 ac_cpp_err=
11919 else
11920 ac_cpp_err=yes
11922 if test -z "$ac_cpp_err"; then
11923 ac_header_preproc=yes
11924 else
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11928 ac_header_preproc=no
11931 rm -f conftest.err conftest.$ac_ext
11932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11933 echo "${ECHO_T}$ac_header_preproc" >&6; }
11935 # So? What about this header?
11936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11937 yes:no: )
11938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11942 ac_header_preproc=yes
11944 no:yes:* )
11945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11957 ( cat <<\_ASBOX
11958 ## ----------------------------------- ##
11959 ## Report this to llvmbugs@cs.uiuc.edu ##
11960 ## ----------------------------------- ##
11961 _ASBOX
11962 ) | sed "s/^/$as_me: WARNING: /" >&2
11964 esac
11965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970 eval "$as_ac_Header=\$ac_header_preproc"
11972 ac_res=`eval echo '${'$as_ac_Header'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974 echo "${ECHO_T}$ac_res" >&6; }
11977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11980 _ACEOF
11984 done
11988 for ac_header in string.h strings.h
11990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11997 ac_res=`eval echo '${'$as_ac_Header'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999 echo "${ECHO_T}$ac_res" >&6; }
12000 else
12001 # Is the header compilable?
12002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 $ac_includes_default
12011 #include <$ac_header>
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031 esac
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_header_compiler=yes
12048 else
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12052 ac_header_compiler=no
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057 echo "${ECHO_T}$ac_header_compiler" >&6; }
12059 # Is the header present?
12060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 #include <$ac_header>
12069 _ACEOF
12070 if { (ac_try="$ac_cpp conftest.$ac_ext"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } >/dev/null; then
12083 if test -s conftest.err; then
12084 ac_cpp_err=$ac_c_preproc_warn_flag
12085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12086 else
12087 ac_cpp_err=
12089 else
12090 ac_cpp_err=yes
12092 if test -z "$ac_cpp_err"; then
12093 ac_header_preproc=yes
12094 else
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12098 ac_header_preproc=no
12101 rm -f conftest.err conftest.$ac_ext
12102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103 echo "${ECHO_T}$ac_header_preproc" >&6; }
12105 # So? What about this header?
12106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 yes:no: )
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112 ac_header_preproc=yes
12114 no:yes:* )
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12127 ( cat <<\_ASBOX
12128 ## ----------------------------------- ##
12129 ## Report this to llvmbugs@cs.uiuc.edu ##
12130 ## ----------------------------------- ##
12131 _ASBOX
12132 ) | sed "s/^/$as_me: WARNING: /" >&2
12134 esac
12135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 eval "$as_ac_Header=\$ac_header_preproc"
12142 ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144 echo "${ECHO_T}$ac_res" >&6; }
12147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12150 _ACEOF
12151 break
12154 done
12159 for ac_func in strchr index
12161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12162 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h. */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12175 #define $ac_func innocuous_$ac_func
12177 /* System header to define __stub macros and hopefully few prototypes,
12178 which can conflict with char $ac_func (); below.
12179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12180 <limits.h> exists even on freestanding compilers. */
12182 #ifdef __STDC__
12183 # include <limits.h>
12184 #else
12185 # include <assert.h>
12186 #endif
12188 #undef $ac_func
12190 /* Override any GCC internal prototype to avoid an error.
12191 Use char because int might match the return type of a GCC
12192 builtin and then its argument prototype would still apply. */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char $ac_func ();
12197 /* The GNU C library defines this for functions which it implements
12198 to always fail with ENOSYS. Some functions are actually named
12199 something starting with __ and the normal name is an alias. */
12200 #if defined __stub_$ac_func || defined __stub___$ac_func
12201 choke me
12202 #endif
12205 main ()
12207 return $ac_func ();
12209 return 0;
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12220 ac_status=$?
12221 grep -v '^ *+' conftest.er1 >conftest.err
12222 rm -f conftest.er1
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12227 { (case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12230 esac
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232 (eval "$ac_try") 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest$ac_exeext'
12237 { (case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12240 esac
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_try") 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 eval "$as_ac_var=yes"
12247 else
12248 echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12251 eval "$as_ac_var=no"
12254 rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12257 ac_res=`eval echo '${'$as_ac_var'}'`
12258 { echo "$as_me:$LINENO: result: $ac_res" >&5
12259 echo "${ECHO_T}$ac_res" >&6; }
12260 if test `eval echo '${'$as_ac_var'}'` = yes; then
12261 cat >>confdefs.h <<_ACEOF
12262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12263 _ACEOF
12264 break
12266 done
12270 for ac_func in strrchr rindex
12272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h. */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12286 #define $ac_func innocuous_$ac_func
12288 /* System header to define __stub macros and hopefully few prototypes,
12289 which can conflict with char $ac_func (); below.
12290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12291 <limits.h> exists even on freestanding compilers. */
12293 #ifdef __STDC__
12294 # include <limits.h>
12295 #else
12296 # include <assert.h>
12297 #endif
12299 #undef $ac_func
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12304 #ifdef __cplusplus
12305 extern "C"
12306 #endif
12307 char $ac_func ();
12308 /* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311 #if defined __stub_$ac_func || defined __stub___$ac_func
12312 choke me
12313 #endif
12316 main ()
12318 return $ac_func ();
12320 return 0;
12322 _ACEOF
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (ac_try="$ac_link"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_link") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 eval "$as_ac_var=yes"
12358 else
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 eval "$as_ac_var=no"
12365 rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12368 ac_res=`eval echo '${'$as_ac_var'}'`
12369 { echo "$as_me:$LINENO: result: $ac_res" >&5
12370 echo "${ECHO_T}$ac_res" >&6; }
12371 if test `eval echo '${'$as_ac_var'}'` = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12374 _ACEOF
12375 break
12377 done
12381 for ac_func in memcpy bcopy
12383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389 cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h. */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397 #define $ac_func innocuous_$ac_func
12399 /* System header to define __stub macros and hopefully few prototypes,
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12404 #ifdef __STDC__
12405 # include <limits.h>
12406 #else
12407 # include <assert.h>
12408 #endif
12410 #undef $ac_func
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char $ac_func ();
12419 /* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
12422 #if defined __stub_$ac_func || defined __stub___$ac_func
12423 choke me
12424 #endif
12427 main ()
12429 return $ac_func ();
12431 return 0;
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 eval "$as_ac_var=yes"
12469 else
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 eval "$as_ac_var=no"
12476 rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12479 ac_res=`eval echo '${'$as_ac_var'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481 echo "${ECHO_T}$ac_res" >&6; }
12482 if test `eval echo '${'$as_ac_var'}'` = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12485 _ACEOF
12486 break
12488 done
12492 for ac_func in memmove strcmp
12494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508 #define $ac_func innocuous_$ac_func
12510 /* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12515 #ifdef __STDC__
12516 # include <limits.h>
12517 #else
12518 # include <assert.h>
12519 #endif
12521 #undef $ac_func
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char $ac_func ();
12530 /* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
12533 #if defined __stub_$ac_func || defined __stub___$ac_func
12534 choke me
12535 #endif
12538 main ()
12540 return $ac_func ();
12542 return 0;
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550 esac
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563 esac
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 eval "$as_ac_var=yes"
12580 else
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12584 eval "$as_ac_var=no"
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12590 ac_res=`eval echo '${'$as_ac_var'}'`
12591 { echo "$as_me:$LINENO: result: $ac_res" >&5
12592 echo "${ECHO_T}$ac_res" >&6; }
12593 if test `eval echo '${'$as_ac_var'}'` = yes; then
12594 cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12596 _ACEOF
12599 done
12604 for ac_func in closedir opendir readdir
12606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12611 else
12612 cat >conftest.$ac_ext <<_ACEOF
12613 /* confdefs.h. */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12620 #define $ac_func innocuous_$ac_func
12622 /* System header to define __stub macros and hopefully few prototypes,
12623 which can conflict with char $ac_func (); below.
12624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12625 <limits.h> exists even on freestanding compilers. */
12627 #ifdef __STDC__
12628 # include <limits.h>
12629 #else
12630 # include <assert.h>
12631 #endif
12633 #undef $ac_func
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12638 #ifdef __cplusplus
12639 extern "C"
12640 #endif
12641 char $ac_func ();
12642 /* The GNU C library defines this for functions which it implements
12643 to always fail with ENOSYS. Some functions are actually named
12644 something starting with __ and the normal name is an alias. */
12645 #if defined __stub_$ac_func || defined __stub___$ac_func
12646 choke me
12647 #endif
12650 main ()
12652 return $ac_func ();
12654 return 0;
12656 _ACEOF
12657 rm -f conftest.$ac_objext conftest$ac_exeext
12658 if { (ac_try="$ac_link"
12659 case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662 esac
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_link") 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12672 { (case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_try") 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; } &&
12681 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 eval "$as_ac_var=yes"
12692 else
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 eval "$as_ac_var=no"
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12702 ac_res=`eval echo '${'$as_ac_var'}'`
12703 { echo "$as_me:$LINENO: result: $ac_res" >&5
12704 echo "${ECHO_T}$ac_res" >&6; }
12705 if test `eval echo '${'$as_ac_var'}'` = yes; then
12706 cat >>confdefs.h <<_ACEOF
12707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12708 _ACEOF
12711 done
12714 # Check whether --enable-shared was given.
12715 if test "${enable_shared+set}" = set; then
12716 enableval=$enable_shared; p=${PACKAGE-default}
12717 case $enableval in
12718 yes) enable_shared=yes ;;
12719 no) enable_shared=no ;;
12721 enable_shared=no
12722 # Look at the argument we got. We use all the common list separators.
12723 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12724 for pkg in $enableval; do
12725 IFS="$lt_save_ifs"
12726 if test "X$pkg" = "X$p"; then
12727 enable_shared=yes
12729 done
12730 IFS="$lt_save_ifs"
12732 esac
12733 else
12734 enable_shared=yes
12738 # Check whether --enable-static was given.
12739 if test "${enable_static+set}" = set; then
12740 enableval=$enable_static; p=${PACKAGE-default}
12741 case $enableval in
12742 yes) enable_static=yes ;;
12743 no) enable_static=no ;;
12745 enable_static=no
12746 # Look at the argument we got. We use all the common list separators.
12747 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12748 for pkg in $enableval; do
12749 IFS="$lt_save_ifs"
12750 if test "X$pkg" = "X$p"; then
12751 enable_static=yes
12753 done
12754 IFS="$lt_save_ifs"
12756 esac
12757 else
12758 enable_static=yes
12762 # Check whether --enable-fast-install was given.
12763 if test "${enable_fast_install+set}" = set; then
12764 enableval=$enable_fast_install; p=${PACKAGE-default}
12765 case $enableval in
12766 yes) enable_fast_install=yes ;;
12767 no) enable_fast_install=no ;;
12769 enable_fast_install=no
12770 # Look at the argument we got. We use all the common list separators.
12771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12772 for pkg in $enableval; do
12773 IFS="$lt_save_ifs"
12774 if test "X$pkg" = "X$p"; then
12775 enable_fast_install=yes
12777 done
12778 IFS="$lt_save_ifs"
12780 esac
12781 else
12782 enable_fast_install=yes
12786 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12787 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12788 if test "${lt_cv_path_SED+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791 # Loop through the user's path and test for sed and gsed.
12792 # Then use that list of sed's as ones to test for truncation.
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
12798 for lt_ac_prog in sed gsed; do
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12801 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12803 done
12804 done
12805 done
12806 lt_ac_max=0
12807 lt_ac_count=0
12808 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12809 # along with /bin/sed that truncates output.
12810 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12811 test ! -f $lt_ac_sed && continue
12812 cat /dev/null > conftest.in
12813 lt_ac_count=0
12814 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12815 # Check for GNU sed and select it if it is found.
12816 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12817 lt_cv_path_SED=$lt_ac_sed
12818 break
12820 while true; do
12821 cat conftest.in conftest.in >conftest.tmp
12822 mv conftest.tmp conftest.in
12823 cp conftest.in conftest.nl
12824 echo >>conftest.nl
12825 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12826 cmp -s conftest.out conftest.nl || break
12827 # 10000 chars as input seems more than enough
12828 test $lt_ac_count -gt 10 && break
12829 lt_ac_count=`expr $lt_ac_count + 1`
12830 if test $lt_ac_count -gt $lt_ac_max; then
12831 lt_ac_max=$lt_ac_count
12832 lt_cv_path_SED=$lt_ac_sed
12834 done
12835 done
12839 SED=$lt_cv_path_SED
12840 { echo "$as_me:$LINENO: result: $SED" >&5
12841 echo "${ECHO_T}$SED" >&6; }
12844 # Check whether --with-gnu-ld was given.
12845 if test "${with_gnu_ld+set}" = set; then
12846 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12847 else
12848 with_gnu_ld=no
12851 ac_prog=ld
12852 if test "$GCC" = yes; then
12853 # Check if gcc -print-prog-name=ld gives a path.
12854 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12855 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12856 case $host in
12857 *-*-mingw*)
12858 # gcc leaves a trailing carriage return which upsets mingw
12859 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12861 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12862 esac
12863 case $ac_prog in
12864 # Accept absolute paths.
12865 [\\/]* | ?:[\\/]*)
12866 re_direlt='/[^/][^/]*/\.\./'
12867 # Canonicalize the pathname of ld
12868 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12869 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12870 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12871 done
12872 test -z "$LD" && LD="$ac_prog"
12875 # If it fails, then pretend we aren't using GCC.
12876 ac_prog=ld
12879 # If it is relative, then search for the first ld in PATH.
12880 with_gnu_ld=unknown
12882 esac
12883 elif test "$with_gnu_ld" = yes; then
12884 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12885 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12886 else
12887 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12888 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12890 if test "${lt_cv_path_LD+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 else
12893 if test -z "$LD"; then
12894 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12895 for ac_dir in $PATH; do
12896 IFS="$lt_save_ifs"
12897 test -z "$ac_dir" && ac_dir=.
12898 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12899 lt_cv_path_LD="$ac_dir/$ac_prog"
12900 # Check to see if the program is GNU ld. I'd rather use --version,
12901 # but apparently some variants of GNU ld only accept -v.
12902 # Break only if it was the GNU/non-GNU ld that we prefer.
12903 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12904 *GNU* | *'with BFD'*)
12905 test "$with_gnu_ld" != no && break
12908 test "$with_gnu_ld" != yes && break
12910 esac
12912 done
12913 IFS="$lt_save_ifs"
12914 else
12915 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12919 LD="$lt_cv_path_LD"
12920 if test -n "$LD"; then
12921 { echo "$as_me:$LINENO: result: $LD" >&5
12922 echo "${ECHO_T}$LD" >&6; }
12923 else
12924 { echo "$as_me:$LINENO: result: no" >&5
12925 echo "${ECHO_T}no" >&6; }
12927 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12928 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12929 { (exit 1); exit 1; }; }
12930 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12931 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12932 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12936 case `$LD -v 2>&1 </dev/null` in
12937 *GNU* | *'with BFD'*)
12938 lt_cv_prog_gnu_ld=yes
12941 lt_cv_prog_gnu_ld=no
12943 esac
12945 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12946 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12947 with_gnu_ld=$lt_cv_prog_gnu_ld
12950 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12951 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12952 if test "${lt_cv_ld_reload_flag+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955 lt_cv_ld_reload_flag='-r'
12957 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12958 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12959 reload_flag=$lt_cv_ld_reload_flag
12960 case $reload_flag in
12961 "" | " "*) ;;
12962 *) reload_flag=" $reload_flag" ;;
12963 esac
12964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12965 case $host_os in
12966 darwin*)
12967 if test "$GCC" = yes; then
12968 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12969 else
12970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12973 esac
12975 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12976 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12977 if test "${lt_cv_deplibs_check_method+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980 lt_cv_file_magic_cmd='$MAGIC_CMD'
12981 lt_cv_file_magic_test_file=
12982 lt_cv_deplibs_check_method='unknown'
12983 # Need to set the preceding variable on all platforms that support
12984 # interlibrary dependencies.
12985 # 'none' -- dependencies not supported.
12986 # `unknown' -- same as none, but documents that we really don't know.
12987 # 'pass_all' -- all dependencies passed with no checks.
12988 # 'test_compile' -- check by making test program.
12989 # 'file_magic [[regex]]' -- check by looking for files in library path
12990 # which responds to the $file_magic_cmd with a given extended regex.
12991 # If you have `file' or equivalent on your system and you're not sure
12992 # whether `pass_all' will *always* work, you probably want this one.
12994 case $host_os in
12995 aix4* | aix5*)
12996 lt_cv_deplibs_check_method=pass_all
12999 beos*)
13000 lt_cv_deplibs_check_method=pass_all
13003 bsdi[45]*)
13004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13005 lt_cv_file_magic_cmd='/usr/bin/file -L'
13006 lt_cv_file_magic_test_file=/shlib/libc.so
13009 cygwin*)
13010 # func_win32_libid is a shell function defined in ltmain.sh
13011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13012 lt_cv_file_magic_cmd='func_win32_libid'
13015 mingw* | pw32*)
13016 # Base MSYS/MinGW do not provide the 'file' command needed by
13017 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
13018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13019 lt_cv_file_magic_cmd='$OBJDUMP -f'
13022 darwin* | rhapsody*)
13023 lt_cv_deplibs_check_method=pass_all
13026 freebsd* | kfreebsd*-gnu | dragonfly*)
13027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13028 case $host_cpu in
13029 i*86 )
13030 # Not sure whether the presence of OpenBSD here was a mistake.
13031 # Let's accept both of them until this is cleared up.
13032 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13033 lt_cv_file_magic_cmd=/usr/bin/file
13034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13036 esac
13037 else
13038 lt_cv_deplibs_check_method=pass_all
13042 gnu*)
13043 lt_cv_deplibs_check_method=pass_all
13046 hpux10.20* | hpux11*)
13047 lt_cv_file_magic_cmd=/usr/bin/file
13048 case $host_cpu in
13049 ia64*)
13050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13051 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13053 hppa*64*)
13054 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]'
13055 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13059 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13061 esac
13064 interix3*)
13065 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13069 irix5* | irix6* | nonstopux*)
13070 case $LD in
13071 *-32|*"-32 ") libmagic=32-bit;;
13072 *-n32|*"-n32 ") libmagic=N32;;
13073 *-64|*"-64 ") libmagic=64-bit;;
13074 *) libmagic=never-match;;
13075 esac
13076 lt_cv_deplibs_check_method=pass_all
13079 # This must be Linux ELF.
13080 linux*)
13081 lt_cv_deplibs_check_method=pass_all
13084 netbsd*)
13085 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13087 else
13088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13092 newos6*)
13093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13094 lt_cv_file_magic_cmd=/usr/bin/file
13095 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13098 nto-qnx*)
13099 lt_cv_deplibs_check_method=unknown
13102 openbsd*)
13103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13105 else
13106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13110 osf3* | osf4* | osf5*)
13111 lt_cv_deplibs_check_method=pass_all
13114 solaris*)
13115 lt_cv_deplibs_check_method=pass_all
13118 sysv4 | sysv4.3*)
13119 case $host_vendor in
13120 motorola)
13121 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]'
13122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13124 ncr)
13125 lt_cv_deplibs_check_method=pass_all
13127 sequent)
13128 lt_cv_file_magic_cmd='/bin/file'
13129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13131 sni)
13132 lt_cv_file_magic_cmd='/bin/file'
13133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13134 lt_cv_file_magic_test_file=/lib/libc.so
13136 siemens)
13137 lt_cv_deplibs_check_method=pass_all
13140 lt_cv_deplibs_check_method=pass_all
13142 esac
13145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13146 lt_cv_deplibs_check_method=pass_all
13148 esac
13151 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13152 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13153 file_magic_cmd=$lt_cv_file_magic_cmd
13154 deplibs_check_method=$lt_cv_deplibs_check_method
13155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13159 # If no C compiler was specified, use CC.
13160 LTCC=${LTCC-"$CC"}
13162 # If no C compiler flags were specified, use CFLAGS.
13163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13165 # Allow CC to be a program name with arguments.
13166 compiler=$CC
13168 # Check whether --enable-libtool-lock was given.
13169 if test "${enable_libtool_lock+set}" = set; then
13170 enableval=$enable_libtool_lock;
13173 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13175 # Some flags need to be propagated to the compiler or linker for good
13176 # libtool support.
13177 case $host in
13178 ia64-*-hpux*)
13179 # Find out which ABI we are using.
13180 echo 'int i;' > conftest.$ac_ext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182 (eval $ac_compile) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; then
13186 case `/usr/bin/file conftest.$ac_objext` in
13187 *ELF-32*)
13188 HPUX_IA64_MODE="32"
13190 *ELF-64*)
13191 HPUX_IA64_MODE="64"
13193 esac
13195 rm -rf conftest*
13197 *-*-irix6*)
13198 # Find out which ABI we are using.
13199 echo '#line 13199 "configure"' > conftest.$ac_ext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201 (eval $ac_compile) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; then
13205 if test "$lt_cv_prog_gnu_ld" = yes; then
13206 case `/usr/bin/file conftest.$ac_objext` in
13207 *32-bit*)
13208 LD="${LD-ld} -melf32bsmip"
13210 *N32*)
13211 LD="${LD-ld} -melf32bmipn32"
13213 *64-bit*)
13214 LD="${LD-ld} -melf64bmip"
13216 esac
13217 else
13218 case `/usr/bin/file conftest.$ac_objext` in
13219 *32-bit*)
13220 LD="${LD-ld} -32"
13222 *N32*)
13223 LD="${LD-ld} -n32"
13225 *64-bit*)
13226 LD="${LD-ld} -64"
13228 esac
13231 rm -rf conftest*
13234 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13235 # Find out which ABI we are using.
13236 echo 'int i;' > conftest.$ac_ext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>&5
13239 ac_status=$?
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; then
13242 case `/usr/bin/file conftest.o` in
13243 *32-bit*)
13244 case $host in
13245 x86_64-*linux*)
13246 LD="${LD-ld} -m elf_i386"
13248 ppc64-*linux*|powerpc64-*linux*)
13249 LD="${LD-ld} -m elf32ppclinux"
13251 s390x-*linux*)
13252 LD="${LD-ld} -m elf_s390"
13254 sparc64-*linux*)
13255 LD="${LD-ld} -m elf32_sparc"
13257 esac
13259 *64-bit*)
13260 case $host in
13261 x86_64-*linux*)
13262 LD="${LD-ld} -m elf_x86_64"
13264 ppc*-*linux*|powerpc*-*linux*)
13265 LD="${LD-ld} -m elf64ppc"
13267 s390*-*linux*)
13268 LD="${LD-ld} -m elf64_s390"
13270 sparc*-*linux*)
13271 LD="${LD-ld} -m elf64_sparc"
13273 esac
13275 esac
13277 rm -rf conftest*
13280 *-*-sco3.2v5*)
13281 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13282 SAVE_CFLAGS="$CFLAGS"
13283 CFLAGS="$CFLAGS -belf"
13284 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13285 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13286 if test "${lt_cv_cc_needs_belf+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 else
13289 ac_ext=c
13290 ac_cpp='$CPP $CPPFLAGS'
13291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13295 cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h. */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13303 main ()
13307 return 0;
13309 _ACEOF
13310 rm -f conftest.$ac_objext conftest$ac_exeext
13311 if { (ac_try="$ac_link"
13312 case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315 esac
13316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_link") 2>conftest.er1
13318 ac_status=$?
13319 grep -v '^ *+' conftest.er1 >conftest.err
13320 rm -f conftest.er1
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13325 { (case "(($ac_try" in
13326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13328 esac
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_try") 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest$ac_exeext'
13335 { (case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_try") 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 lt_cv_cc_needs_belf=yes
13345 else
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 lt_cv_cc_needs_belf=no
13352 rm -f core conftest.err conftest.$ac_objext \
13353 conftest$ac_exeext conftest.$ac_ext
13354 ac_ext=c
13355 ac_cpp='$CPP $CPPFLAGS'
13356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13361 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13362 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13363 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13364 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13365 CFLAGS="$SAVE_CFLAGS"
13368 sparc*-*solaris*)
13369 # Find out which ABI we are using.
13370 echo 'int i;' > conftest.$ac_ext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13372 (eval $ac_compile) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; then
13376 case `/usr/bin/file conftest.o` in
13377 *64-bit*)
13378 case $lt_cv_prog_gnu_ld in
13379 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13380 *) LD="${LD-ld} -64" ;;
13381 esac
13383 esac
13385 rm -rf conftest*
13389 esac
13391 need_locks="$enable_libtool_lock"
13396 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13397 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13398 (test "X$CXX" != "Xg++"))) ; then
13399 ac_ext=cpp
13400 ac_cpp='$CXXCPP $CPPFLAGS'
13401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13404 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13405 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13406 if test -z "$CXXCPP"; then
13407 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410 # Double quotes because CXXCPP needs to be expanded
13411 for CXXCPP in "$CXX -E" "/lib/cpp"
13413 ac_preproc_ok=false
13414 for ac_cxx_preproc_warn_flag in '' yes
13416 # Use a header file that comes with gcc, so configuring glibc
13417 # with a fresh cross-compiler works.
13418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13419 # <limits.h> exists even on freestanding compilers.
13420 # On the NeXT, cc -E runs the code through the compiler's parser,
13421 # not just through cpp. "Syntax error" is here to catch this case.
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h. */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428 #ifdef __STDC__
13429 # include <limits.h>
13430 #else
13431 # include <assert.h>
13432 #endif
13433 Syntax error
13434 _ACEOF
13435 if { (ac_try="$ac_cpp conftest.$ac_ext"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } >/dev/null; then
13448 if test -s conftest.err; then
13449 ac_cpp_err=$ac_cxx_preproc_warn_flag
13450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13451 else
13452 ac_cpp_err=
13454 else
13455 ac_cpp_err=yes
13457 if test -z "$ac_cpp_err"; then
13459 else
13460 echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13463 # Broken: fails on valid input.
13464 continue
13467 rm -f conftest.err conftest.$ac_ext
13469 # OK, works on sane cases. Now check whether nonexistent headers
13470 # can be detected and how.
13471 cat >conftest.$ac_ext <<_ACEOF
13472 /* confdefs.h. */
13473 _ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13477 #include <ac_nonexistent.h>
13478 _ACEOF
13479 if { (ac_try="$ac_cpp conftest.$ac_ext"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13483 esac
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } >/dev/null; then
13492 if test -s conftest.err; then
13493 ac_cpp_err=$ac_cxx_preproc_warn_flag
13494 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13495 else
13496 ac_cpp_err=
13498 else
13499 ac_cpp_err=yes
13501 if test -z "$ac_cpp_err"; then
13502 # Broken: success on invalid input.
13503 continue
13504 else
13505 echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 # Passes both tests.
13509 ac_preproc_ok=:
13510 break
13513 rm -f conftest.err conftest.$ac_ext
13515 done
13516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13517 rm -f conftest.err conftest.$ac_ext
13518 if $ac_preproc_ok; then
13519 break
13522 done
13523 ac_cv_prog_CXXCPP=$CXXCPP
13526 CXXCPP=$ac_cv_prog_CXXCPP
13527 else
13528 ac_cv_prog_CXXCPP=$CXXCPP
13530 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13531 echo "${ECHO_T}$CXXCPP" >&6; }
13532 ac_preproc_ok=false
13533 for ac_cxx_preproc_warn_flag in '' yes
13535 # Use a header file that comes with gcc, so configuring glibc
13536 # with a fresh cross-compiler works.
13537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13538 # <limits.h> exists even on freestanding compilers.
13539 # On the NeXT, cc -E runs the code through the compiler's parser,
13540 # not just through cpp. "Syntax error" is here to catch this case.
13541 cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h. */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 #ifdef __STDC__
13548 # include <limits.h>
13549 #else
13550 # include <assert.h>
13551 #endif
13552 Syntax error
13553 _ACEOF
13554 if { (ac_try="$ac_cpp conftest.$ac_ext"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558 esac
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13561 ac_status=$?
13562 grep -v '^ *+' conftest.er1 >conftest.err
13563 rm -f conftest.er1
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } >/dev/null; then
13567 if test -s conftest.err; then
13568 ac_cpp_err=$ac_cxx_preproc_warn_flag
13569 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13570 else
13571 ac_cpp_err=
13573 else
13574 ac_cpp_err=yes
13576 if test -z "$ac_cpp_err"; then
13578 else
13579 echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13582 # Broken: fails on valid input.
13583 continue
13586 rm -f conftest.err conftest.$ac_ext
13588 # OK, works on sane cases. Now check whether nonexistent headers
13589 # can be detected and how.
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596 #include <ac_nonexistent.h>
13597 _ACEOF
13598 if { (ac_try="$ac_cpp conftest.$ac_ext"
13599 case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602 esac
13603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13605 ac_status=$?
13606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } >/dev/null; then
13611 if test -s conftest.err; then
13612 ac_cpp_err=$ac_cxx_preproc_warn_flag
13613 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13614 else
13615 ac_cpp_err=
13617 else
13618 ac_cpp_err=yes
13620 if test -z "$ac_cpp_err"; then
13621 # Broken: success on invalid input.
13622 continue
13623 else
13624 echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.$ac_ext >&5
13627 # Passes both tests.
13628 ac_preproc_ok=:
13629 break
13632 rm -f conftest.err conftest.$ac_ext
13634 done
13635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13636 rm -f conftest.err conftest.$ac_ext
13637 if $ac_preproc_ok; then
13639 else
13640 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13641 See \`config.log' for more details." >&5
13642 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13643 See \`config.log' for more details." >&2;}
13644 { (exit 1); exit 1; }; }
13647 ac_ext=cpp
13648 ac_cpp='$CXXCPP $CPPFLAGS'
13649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13656 ac_ext=f
13657 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13658 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13659 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13660 if test -n "$ac_tool_prefix"; then
13661 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
13663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13667 if test "${ac_cv_prog_F77+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 if test -n "$F77"; then
13671 ac_cv_prog_F77="$F77" # Let the user override the test.
13672 else
13673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13674 for as_dir in $PATH
13676 IFS=$as_save_IFS
13677 test -z "$as_dir" && as_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13680 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13682 break 2
13684 done
13685 done
13686 IFS=$as_save_IFS
13690 F77=$ac_cv_prog_F77
13691 if test -n "$F77"; then
13692 { echo "$as_me:$LINENO: result: $F77" >&5
13693 echo "${ECHO_T}$F77" >&6; }
13694 else
13695 { echo "$as_me:$LINENO: result: no" >&5
13696 echo "${ECHO_T}no" >&6; }
13700 test -n "$F77" && break
13701 done
13703 if test -z "$F77"; then
13704 ac_ct_F77=$F77
13705 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
13707 # Extract the first word of "$ac_prog", so it can be a program name with args.
13708 set dummy $ac_prog; ac_word=$2
13709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13711 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 else
13714 if test -n "$ac_ct_F77"; then
13715 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13716 else
13717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13718 for as_dir in $PATH
13720 IFS=$as_save_IFS
13721 test -z "$as_dir" && as_dir=.
13722 for ac_exec_ext in '' $ac_executable_extensions; do
13723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13724 ac_cv_prog_ac_ct_F77="$ac_prog"
13725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13726 break 2
13728 done
13729 done
13730 IFS=$as_save_IFS
13734 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13735 if test -n "$ac_ct_F77"; then
13736 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13737 echo "${ECHO_T}$ac_ct_F77" >&6; }
13738 else
13739 { echo "$as_me:$LINENO: result: no" >&5
13740 echo "${ECHO_T}no" >&6; }
13744 test -n "$ac_ct_F77" && break
13745 done
13747 if test "x$ac_ct_F77" = x; then
13748 F77=""
13749 else
13750 case $cross_compiling:$ac_tool_warned in
13751 yes:)
13752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13753 whose name does not start with the host triplet. If you think this
13754 configuration is useful to you, please write to autoconf@gnu.org." >&5
13755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13756 whose name does not start with the host triplet. If you think this
13757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13758 ac_tool_warned=yes ;;
13759 esac
13760 F77=$ac_ct_F77
13765 # Provide some information about the compiler.
13766 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13767 ac_compiler=`set X $ac_compile; echo $2`
13768 { (ac_try="$ac_compiler --version >&5"
13769 case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772 esac
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_compiler --version >&5") 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }
13778 { (ac_try="$ac_compiler -v >&5"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782 esac
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_compiler -v >&5") 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }
13788 { (ac_try="$ac_compiler -V >&5"
13789 case "(($ac_try" in
13790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13791 *) ac_try_echo=$ac_try;;
13792 esac
13793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13794 (eval "$ac_compiler -V >&5") 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }
13798 rm -f a.out
13800 # If we don't use `.F' as extension, the preprocessor is not run on the
13801 # input file. (Note that this only needs to work for GNU compilers.)
13802 ac_save_ext=$ac_ext
13803 ac_ext=F
13804 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13805 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13806 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 cat >conftest.$ac_ext <<_ACEOF
13810 program main
13811 #ifndef __GNUC__
13812 choke me
13813 #endif
13816 _ACEOF
13817 rm -f conftest.$ac_objext
13818 if { (ac_try="$ac_compile"
13819 case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822 esac
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_compile") 2>conftest.er1
13825 ac_status=$?
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
13831 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13832 { (case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835 esac
13836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_try") 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; } &&
13841 { ac_try='test -s conftest.$ac_objext'
13842 { (case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_try") 2>&5
13848 ac_status=$?
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851 ac_compiler_gnu=yes
13852 else
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13856 ac_compiler_gnu=no
13859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13860 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13863 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13864 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13865 ac_ext=$ac_save_ext
13866 ac_test_FFLAGS=${FFLAGS+set}
13867 ac_save_FFLAGS=$FFLAGS
13868 FFLAGS=
13869 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13870 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13871 if test "${ac_cv_prog_f77_g+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 FFLAGS=-g
13875 cat >conftest.$ac_ext <<_ACEOF
13876 program main
13879 _ACEOF
13880 rm -f conftest.$ac_objext
13881 if { (ac_try="$ac_compile"
13882 case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13885 esac
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_compile") 2>conftest.er1
13888 ac_status=$?
13889 grep -v '^ *+' conftest.er1 >conftest.err
13890 rm -f conftest.er1
13891 cat conftest.err >&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13895 { (case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_try") 2>&5
13901 ac_status=$?
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try='test -s conftest.$ac_objext'
13905 { (case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908 esac
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_try") 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_prog_f77_g=yes
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 ac_cv_prog_f77_g=no
13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13926 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13927 if test "$ac_test_FFLAGS" = set; then
13928 FFLAGS=$ac_save_FFLAGS
13929 elif test $ac_cv_prog_f77_g = yes; then
13930 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13931 FFLAGS="-g -O2"
13932 else
13933 FFLAGS="-g"
13935 else
13936 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13937 FFLAGS="-O2"
13938 else
13939 FFLAGS=
13943 G77=`test $ac_compiler_gnu = yes && echo yes`
13944 ac_ext=c
13945 ac_cpp='$CPP $CPPFLAGS'
13946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13952 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13954 # find the maximum length of command line arguments
13955 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13956 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13957 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13961 teststring="ABCD"
13963 case $build_os in
13964 msdosdjgpp*)
13965 # On DJGPP, this test can blow up pretty badly due to problems in libc
13966 # (any single argument exceeding 2000 bytes causes a buffer overrun
13967 # during glob expansion). Even if it were fixed, the result of this
13968 # check would be larger than it should be.
13969 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13972 gnu*)
13973 # Under GNU Hurd, this test is not required because there is
13974 # no limit to the length of command line arguments.
13975 # Libtool will interpret -1 as no limit whatsoever
13976 lt_cv_sys_max_cmd_len=-1;
13979 cygwin* | mingw*)
13980 # On Win9x/ME, this test blows up -- it succeeds, but takes
13981 # about 5 minutes as the teststring grows exponentially.
13982 # Worse, since 9x/ME are not pre-emptively multitasking,
13983 # you end up with a "frozen" computer, even though with patience
13984 # the test eventually succeeds (with a max line length of 256k).
13985 # Instead, let's just punt: use the minimum linelength reported by
13986 # all of the supported platforms: 8192 (on NT/2K/XP).
13987 lt_cv_sys_max_cmd_len=8192;
13990 amigaos*)
13991 # On AmigaOS with pdksh, this test takes hours, literally.
13992 # So we just punt and use a minimum line length of 8192.
13993 lt_cv_sys_max_cmd_len=8192;
13996 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13997 # This has been around since 386BSD, at least. Likely further.
13998 if test -x /sbin/sysctl; then
13999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14000 elif test -x /usr/sbin/sysctl; then
14001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14002 else
14003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14005 # And add a safety zone
14006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14010 interix*)
14011 # We know the value 262144 and hardcode it with a safety zone (like BSD)
14012 lt_cv_sys_max_cmd_len=196608
14015 osf*)
14016 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14017 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14018 # nice to cause kernel panics so lets avoid the loop below.
14019 # First set a reasonable default.
14020 lt_cv_sys_max_cmd_len=16384
14022 if test -x /sbin/sysconfig; then
14023 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14024 *1*) lt_cv_sys_max_cmd_len=-1 ;;
14025 esac
14028 sco3.2v5*)
14029 lt_cv_sys_max_cmd_len=102400
14031 sysv5* | sco5v6* | sysv4.2uw2*)
14032 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14033 if test -n "$kargmax"; then
14034 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
14035 else
14036 lt_cv_sys_max_cmd_len=32768
14040 # If test is not a shell built-in, we'll probably end up computing a
14041 # maximum length that is only half of the actual maximum length, but
14042 # we can't tell.
14043 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14044 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14045 = "XX$teststring") >/dev/null 2>&1 &&
14046 new_result=`expr "X$teststring" : ".*" 2>&1` &&
14047 lt_cv_sys_max_cmd_len=$new_result &&
14048 test $i != 17 # 1/2 MB should be enough
14050 i=`expr $i + 1`
14051 teststring=$teststring$teststring
14052 done
14053 teststring=
14054 # Add a significant safety factor because C++ compilers can tack on massive
14055 # amounts of additional arguments before passing them to the linker.
14056 # It appears as though 1/2 is a usable value.
14057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14059 esac
14063 if test -n $lt_cv_sys_max_cmd_len ; then
14064 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14065 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14066 else
14067 { echo "$as_me:$LINENO: result: none" >&5
14068 echo "${ECHO_T}none" >&6; }
14074 # Check for command to grab the raw symbol name followed by C symbol from nm.
14075 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14076 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14077 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14078 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 else
14081 # These are sane defaults that work on at least a few old systems.
14082 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14084 # Character class describing NM global symbol codes.
14085 symcode='[BCDEGRST]'
14087 # Regexp to match symbols that can be accessed directly from C.
14088 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14090 # Transform an extracted symbol line into a proper C declaration
14091 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14093 # Transform an extracted symbol line into symbol name and symbol address
14094 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'"
14096 # Define system-specific variables.
14097 case $host_os in
14098 aix*)
14099 symcode='[BCDT]'
14101 cygwin* | mingw* | pw32*)
14102 symcode='[ABCDGISTW]'
14104 hpux*) # Its linker distinguishes data from code symbols
14105 if test "$host_cpu" = ia64; then
14106 symcode='[ABCDEGRST]'
14108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14109 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'"
14111 linux*)
14112 if test "$host_cpu" = ia64; then
14113 symcode='[ABCDGIRSTW]'
14114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14115 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'"
14118 irix* | nonstopux*)
14119 symcode='[BCDEGRST]'
14121 osf*)
14122 symcode='[BCDEGQRST]'
14124 solaris*)
14125 symcode='[BDRT]'
14127 sco3.2v5*)
14128 symcode='[DT]'
14130 sysv4.2uw2*)
14131 symcode='[DT]'
14133 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14134 symcode='[ABDT]'
14136 sysv4)
14137 symcode='[DFNSTU]'
14139 esac
14141 # Handle CRLF in mingw tool chain
14142 opt_cr=
14143 case $build_os in
14144 mingw*)
14145 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14147 esac
14149 # If we're using GNU nm, then use its standard symbol codes.
14150 case `$NM -V 2>&1` in
14151 *GNU* | *'with BFD'*)
14152 symcode='[ABCDGIRSTW]' ;;
14153 esac
14155 # Try without a prefix undercore, then with it.
14156 for ac_symprfx in "" "_"; do
14158 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14159 symxfrm="\\1 $ac_symprfx\\2 \\2"
14161 # Write the raw and C identifiers.
14162 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14164 # Check to see that the pipe works correctly.
14165 pipe_works=no
14167 rm -f conftest*
14168 cat > conftest.$ac_ext <<EOF
14169 #ifdef __cplusplus
14170 extern "C" {
14171 #endif
14172 char nm_test_var;
14173 void nm_test_func(){}
14174 #ifdef __cplusplus
14176 #endif
14177 int main(){nm_test_var='a';nm_test_func();return(0);}
14180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181 (eval $ac_compile) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; then
14185 # Now try to grab the symbols.
14186 nlist=conftest.nm
14187 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14188 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } && test -s "$nlist"; then
14192 # Try sorting and uniquifying the output.
14193 if sort "$nlist" | uniq > "$nlist"T; then
14194 mv -f "$nlist"T "$nlist"
14195 else
14196 rm -f "$nlist"T
14199 # Make sure that we snagged all the symbols we need.
14200 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14201 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14202 cat <<EOF > conftest.$ac_ext
14203 #ifdef __cplusplus
14204 extern "C" {
14205 #endif
14208 # Now generate the symbol file.
14209 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14211 cat <<EOF >> conftest.$ac_ext
14212 #if defined (__STDC__) && __STDC__
14213 # define lt_ptr_t void *
14214 #else
14215 # define lt_ptr_t char *
14216 # define const
14217 #endif
14219 /* The mapping between symbol names and symbols. */
14220 const struct {
14221 const char *name;
14222 lt_ptr_t address;
14224 lt_preloaded_symbols[] =
14227 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14228 cat <<\EOF >> conftest.$ac_ext
14229 {0, (lt_ptr_t) 0}
14232 #ifdef __cplusplus
14234 #endif
14236 # Now try linking the two files.
14237 mv conftest.$ac_objext conftstm.$ac_objext
14238 lt_save_LIBS="$LIBS"
14239 lt_save_CFLAGS="$CFLAGS"
14240 LIBS="conftstm.$ac_objext"
14241 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14243 (eval $ac_link) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14247 pipe_works=yes
14249 LIBS="$lt_save_LIBS"
14250 CFLAGS="$lt_save_CFLAGS"
14251 else
14252 echo "cannot find nm_test_func in $nlist" >&5
14254 else
14255 echo "cannot find nm_test_var in $nlist" >&5
14257 else
14258 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14260 else
14261 echo "$progname: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14264 rm -f conftest* conftst*
14266 # Do not use the global_symbol_pipe unless it works.
14267 if test "$pipe_works" = yes; then
14268 break
14269 else
14270 lt_cv_sys_global_symbol_pipe=
14272 done
14276 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14277 lt_cv_sys_global_symbol_to_cdecl=
14279 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14280 { echo "$as_me:$LINENO: result: failed" >&5
14281 echo "${ECHO_T}failed" >&6; }
14282 else
14283 { echo "$as_me:$LINENO: result: ok" >&5
14284 echo "${ECHO_T}ok" >&6; }
14287 { echo "$as_me:$LINENO: checking for objdir" >&5
14288 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14289 if test "${lt_cv_objdir+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 rm -f .libs 2>/dev/null
14293 mkdir .libs 2>/dev/null
14294 if test -d .libs; then
14295 lt_cv_objdir=.libs
14296 else
14297 # MS-DOS does not allow filenames that begin with a dot.
14298 lt_cv_objdir=_libs
14300 rmdir .libs 2>/dev/null
14302 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14303 echo "${ECHO_T}$lt_cv_objdir" >&6; }
14304 objdir=$lt_cv_objdir
14310 case $host_os in
14311 aix3*)
14312 # AIX sometimes has problems with the GCC collect2 program. For some
14313 # reason, if we set the COLLECT_NAMES environment variable, the problems
14314 # vanish in a puff of smoke.
14315 if test "X${COLLECT_NAMES+set}" != Xset; then
14316 COLLECT_NAMES=
14317 export COLLECT_NAMES
14320 esac
14322 # Sed substitution that helps us do robust quoting. It backslashifies
14323 # metacharacters that are still active within double-quoted strings.
14324 Xsed='sed -e 1s/^X//'
14325 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14327 # Same as above, but do not quote variable references.
14328 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14330 # Sed substitution to delay expansion of an escaped shell variable in a
14331 # double_quote_subst'ed string.
14332 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14334 # Sed substitution to avoid accidental globbing in evaled expressions
14335 no_glob_subst='s/\*/\\\*/g'
14337 # Constants:
14338 rm="rm -f"
14340 # Global variables:
14341 default_ofile=mklib
14342 can_build_shared=yes
14344 # All known linkers require a `.a' archive for static linking (except MSVC,
14345 # which needs '.lib').
14346 libext=a
14347 ltmain="$ac_aux_dir/ltmain.sh"
14348 ofile="$default_ofile"
14349 with_gnu_ld="$lt_cv_prog_gnu_ld"
14351 if test -n "$ac_tool_prefix"; then
14352 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14353 set dummy ${ac_tool_prefix}ar; ac_word=$2
14354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14356 if test "${ac_cv_prog_AR+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359 if test -n "$AR"; then
14360 ac_cv_prog_AR="$AR" # Let the user override the test.
14361 else
14362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14363 for as_dir in $PATH
14365 IFS=$as_save_IFS
14366 test -z "$as_dir" && as_dir=.
14367 for ac_exec_ext in '' $ac_executable_extensions; do
14368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14369 ac_cv_prog_AR="${ac_tool_prefix}ar"
14370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14371 break 2
14373 done
14374 done
14375 IFS=$as_save_IFS
14379 AR=$ac_cv_prog_AR
14380 if test -n "$AR"; then
14381 { echo "$as_me:$LINENO: result: $AR" >&5
14382 echo "${ECHO_T}$AR" >&6; }
14383 else
14384 { echo "$as_me:$LINENO: result: no" >&5
14385 echo "${ECHO_T}no" >&6; }
14390 if test -z "$ac_cv_prog_AR"; then
14391 ac_ct_AR=$AR
14392 # Extract the first word of "ar", so it can be a program name with args.
14393 set dummy ar; ac_word=$2
14394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14396 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 else
14399 if test -n "$ac_ct_AR"; then
14400 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14401 else
14402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403 for as_dir in $PATH
14405 IFS=$as_save_IFS
14406 test -z "$as_dir" && as_dir=.
14407 for ac_exec_ext in '' $ac_executable_extensions; do
14408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14409 ac_cv_prog_ac_ct_AR="ar"
14410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14411 break 2
14413 done
14414 done
14415 IFS=$as_save_IFS
14419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14420 if test -n "$ac_ct_AR"; then
14421 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14422 echo "${ECHO_T}$ac_ct_AR" >&6; }
14423 else
14424 { echo "$as_me:$LINENO: result: no" >&5
14425 echo "${ECHO_T}no" >&6; }
14428 if test "x$ac_ct_AR" = x; then
14429 AR="false"
14430 else
14431 case $cross_compiling:$ac_tool_warned in
14432 yes:)
14433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14434 whose name does not start with the host triplet. If you think this
14435 configuration is useful to you, please write to autoconf@gnu.org." >&5
14436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14437 whose name does not start with the host triplet. If you think this
14438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14439 ac_tool_warned=yes ;;
14440 esac
14441 AR=$ac_ct_AR
14443 else
14444 AR="$ac_cv_prog_AR"
14447 if test -n "$ac_tool_prefix"; then
14448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14452 if test "${ac_cv_prog_RANLIB+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 if test -n "$RANLIB"; then
14456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14457 else
14458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14459 for as_dir in $PATH
14461 IFS=$as_save_IFS
14462 test -z "$as_dir" && as_dir=.
14463 for ac_exec_ext in '' $ac_executable_extensions; do
14464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14467 break 2
14469 done
14470 done
14471 IFS=$as_save_IFS
14475 RANLIB=$ac_cv_prog_RANLIB
14476 if test -n "$RANLIB"; then
14477 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14478 echo "${ECHO_T}$RANLIB" >&6; }
14479 else
14480 { echo "$as_me:$LINENO: result: no" >&5
14481 echo "${ECHO_T}no" >&6; }
14486 if test -z "$ac_cv_prog_RANLIB"; then
14487 ac_ct_RANLIB=$RANLIB
14488 # Extract the first word of "ranlib", so it can be a program name with args.
14489 set dummy ranlib; ac_word=$2
14490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14492 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 else
14495 if test -n "$ac_ct_RANLIB"; then
14496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14497 else
14498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499 for as_dir in $PATH
14501 IFS=$as_save_IFS
14502 test -z "$as_dir" && as_dir=.
14503 for ac_exec_ext in '' $ac_executable_extensions; do
14504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14505 ac_cv_prog_ac_ct_RANLIB="ranlib"
14506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14507 break 2
14509 done
14510 done
14511 IFS=$as_save_IFS
14515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14516 if test -n "$ac_ct_RANLIB"; then
14517 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14518 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14519 else
14520 { echo "$as_me:$LINENO: result: no" >&5
14521 echo "${ECHO_T}no" >&6; }
14524 if test "x$ac_ct_RANLIB" = x; then
14525 RANLIB=":"
14526 else
14527 case $cross_compiling:$ac_tool_warned in
14528 yes:)
14529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14530 whose name does not start with the host triplet. If you think this
14531 configuration is useful to you, please write to autoconf@gnu.org." >&5
14532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14533 whose name does not start with the host triplet. If you think this
14534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14535 ac_tool_warned=yes ;;
14536 esac
14537 RANLIB=$ac_ct_RANLIB
14539 else
14540 RANLIB="$ac_cv_prog_RANLIB"
14543 if test -n "$ac_tool_prefix"; then
14544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14545 set dummy ${ac_tool_prefix}strip; ac_word=$2
14546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14548 if test "${ac_cv_prog_STRIP+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551 if test -n "$STRIP"; then
14552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14553 else
14554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14557 IFS=$as_save_IFS
14558 test -z "$as_dir" && as_dir=.
14559 for ac_exec_ext in '' $ac_executable_extensions; do
14560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14563 break 2
14565 done
14566 done
14567 IFS=$as_save_IFS
14571 STRIP=$ac_cv_prog_STRIP
14572 if test -n "$STRIP"; then
14573 { echo "$as_me:$LINENO: result: $STRIP" >&5
14574 echo "${ECHO_T}$STRIP" >&6; }
14575 else
14576 { echo "$as_me:$LINENO: result: no" >&5
14577 echo "${ECHO_T}no" >&6; }
14582 if test -z "$ac_cv_prog_STRIP"; then
14583 ac_ct_STRIP=$STRIP
14584 # Extract the first word of "strip", so it can be a program name with args.
14585 set dummy strip; ac_word=$2
14586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 else
14591 if test -n "$ac_ct_STRIP"; then
14592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14593 else
14594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14595 for as_dir in $PATH
14597 IFS=$as_save_IFS
14598 test -z "$as_dir" && as_dir=.
14599 for ac_exec_ext in '' $ac_executable_extensions; do
14600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14601 ac_cv_prog_ac_ct_STRIP="strip"
14602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14603 break 2
14605 done
14606 done
14607 IFS=$as_save_IFS
14611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14612 if test -n "$ac_ct_STRIP"; then
14613 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14614 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14615 else
14616 { echo "$as_me:$LINENO: result: no" >&5
14617 echo "${ECHO_T}no" >&6; }
14620 if test "x$ac_ct_STRIP" = x; then
14621 STRIP=":"
14622 else
14623 case $cross_compiling:$ac_tool_warned in
14624 yes:)
14625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14626 whose name does not start with the host triplet. If you think this
14627 configuration is useful to you, please write to autoconf@gnu.org." >&5
14628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14629 whose name does not start with the host triplet. If you think this
14630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14631 ac_tool_warned=yes ;;
14632 esac
14633 STRIP=$ac_ct_STRIP
14635 else
14636 STRIP="$ac_cv_prog_STRIP"
14640 old_CC="$CC"
14641 old_CFLAGS="$CFLAGS"
14643 # Set sane defaults for various variables
14644 test -z "$AR" && AR=ar
14645 test -z "$AR_FLAGS" && AR_FLAGS=cru
14646 test -z "$AS" && AS=as
14647 test -z "$CC" && CC=cc
14648 test -z "$LTCC" && LTCC=$CC
14649 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14650 test -z "$DLLTOOL" && DLLTOOL=dlltool
14651 test -z "$LD" && LD=ld
14652 test -z "$LN_S" && LN_S="ln -s"
14653 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14654 test -z "$NM" && NM=nm
14655 test -z "$SED" && SED=sed
14656 test -z "$OBJDUMP" && OBJDUMP=objdump
14657 test -z "$RANLIB" && RANLIB=:
14658 test -z "$STRIP" && STRIP=:
14659 test -z "$ac_objext" && ac_objext=o
14661 # Determine commands to create old-style static archives.
14662 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14663 old_postinstall_cmds='chmod 644 $oldlib'
14664 old_postuninstall_cmds=
14666 if test -n "$RANLIB"; then
14667 case $host_os in
14668 openbsd*)
14669 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14672 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14674 esac
14675 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14678 for cc_temp in $compiler""; do
14679 case $cc_temp in
14680 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14681 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14682 \-*) ;;
14683 *) break;;
14684 esac
14685 done
14686 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14689 # Only perform the check for file, if the check method requires it
14690 case $deplibs_check_method in
14691 file_magic*)
14692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14693 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14694 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698 case $MAGIC_CMD in
14699 [\\/*] | ?:[\\/]*)
14700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14703 lt_save_MAGIC_CMD="$MAGIC_CMD"
14704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14706 for ac_dir in $ac_dummy; do
14707 IFS="$lt_save_ifs"
14708 test -z "$ac_dir" && ac_dir=.
14709 if test -f $ac_dir/${ac_tool_prefix}file; then
14710 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14711 if test -n "$file_magic_test_file"; then
14712 case $deplibs_check_method in
14713 "file_magic "*)
14714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14717 $EGREP "$file_magic_regex" > /dev/null; then
14719 else
14720 cat <<EOF 1>&2
14722 *** Warning: the command libtool uses to detect shared libraries,
14723 *** $file_magic_cmd, produces output that libtool cannot recognize.
14724 *** The result is that libtool may fail to recognize shared libraries
14725 *** as such. This will affect the creation of libtool libraries that
14726 *** depend on shared libraries, but programs linked with such libtool
14727 *** libraries will work regardless of this problem. Nevertheless, you
14728 *** may want to report the problem to your system manager and/or to
14729 *** bug-libtool@gnu.org
14732 fi ;;
14733 esac
14735 break
14737 done
14738 IFS="$lt_save_ifs"
14739 MAGIC_CMD="$lt_save_MAGIC_CMD"
14741 esac
14744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14745 if test -n "$MAGIC_CMD"; then
14746 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14747 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14748 else
14749 { echo "$as_me:$LINENO: result: no" >&5
14750 echo "${ECHO_T}no" >&6; }
14753 if test -z "$lt_cv_path_MAGIC_CMD"; then
14754 if test -n "$ac_tool_prefix"; then
14755 { echo "$as_me:$LINENO: checking for file" >&5
14756 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14757 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 else
14760 case $MAGIC_CMD in
14761 [\\/*] | ?:[\\/]*)
14762 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14765 lt_save_MAGIC_CMD="$MAGIC_CMD"
14766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14767 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14768 for ac_dir in $ac_dummy; do
14769 IFS="$lt_save_ifs"
14770 test -z "$ac_dir" && ac_dir=.
14771 if test -f $ac_dir/file; then
14772 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14773 if test -n "$file_magic_test_file"; then
14774 case $deplibs_check_method in
14775 "file_magic "*)
14776 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14777 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14778 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14779 $EGREP "$file_magic_regex" > /dev/null; then
14781 else
14782 cat <<EOF 1>&2
14784 *** Warning: the command libtool uses to detect shared libraries,
14785 *** $file_magic_cmd, produces output that libtool cannot recognize.
14786 *** The result is that libtool may fail to recognize shared libraries
14787 *** as such. This will affect the creation of libtool libraries that
14788 *** depend on shared libraries, but programs linked with such libtool
14789 *** libraries will work regardless of this problem. Nevertheless, you
14790 *** may want to report the problem to your system manager and/or to
14791 *** bug-libtool@gnu.org
14794 fi ;;
14795 esac
14797 break
14799 done
14800 IFS="$lt_save_ifs"
14801 MAGIC_CMD="$lt_save_MAGIC_CMD"
14803 esac
14806 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14807 if test -n "$MAGIC_CMD"; then
14808 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14809 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14810 else
14811 { echo "$as_me:$LINENO: result: no" >&5
14812 echo "${ECHO_T}no" >&6; }
14815 else
14816 MAGIC_CMD=:
14822 esac
14824 enable_dlopen=yes
14825 enable_win32_dll=no
14827 # Check whether --enable-libtool-lock was given.
14828 if test "${enable_libtool_lock+set}" = set; then
14829 enableval=$enable_libtool_lock;
14832 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14835 # Check whether --with-pic was given.
14836 if test "${with_pic+set}" = set; then
14837 withval=$with_pic; pic_mode="$withval"
14838 else
14839 pic_mode=default
14842 test -z "$pic_mode" && pic_mode=default
14844 # Use C for the default configuration in the libtool script
14845 tagname=
14846 lt_save_CC="$CC"
14847 ac_ext=c
14848 ac_cpp='$CPP $CPPFLAGS'
14849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14854 # Source file extension for C test sources.
14855 ac_ext=c
14857 # Object file extension for compiled C test sources.
14858 objext=o
14859 objext=$objext
14861 # Code to be used in simple compile tests
14862 lt_simple_compile_test_code="int some_variable = 0;\n"
14864 # Code to be used in simple link tests
14865 lt_simple_link_test_code='int main(){return(0);}\n'
14868 # If no C compiler was specified, use CC.
14869 LTCC=${LTCC-"$CC"}
14871 # If no C compiler flags were specified, use CFLAGS.
14872 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14874 # Allow CC to be a program name with arguments.
14875 compiler=$CC
14878 # save warnings/boilerplate of simple test code
14879 ac_outfile=conftest.$ac_objext
14880 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14881 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14882 _lt_compiler_boilerplate=`cat conftest.err`
14883 $rm conftest*
14885 ac_outfile=conftest.$ac_objext
14886 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14887 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14888 _lt_linker_boilerplate=`cat conftest.err`
14889 $rm conftest*
14893 lt_prog_compiler_no_builtin_flag=
14895 if test "$GCC" = yes; then
14896 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14899 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14900 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14901 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 else
14904 lt_cv_prog_compiler_rtti_exceptions=no
14905 ac_outfile=conftest.$ac_objext
14906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14907 lt_compiler_flag="-fno-rtti -fno-exceptions"
14908 # Insert the option either (1) after the last *FLAGS variable, or
14909 # (2) before a word containing "conftest.", or (3) at the end.
14910 # Note that $ac_compile itself does not contain backslashes and begins
14911 # with a dollar sign (not a hyphen), so the echo should work correctly.
14912 # The option is referenced via a variable to avoid confusing sed.
14913 lt_compile=`echo "$ac_compile" | $SED \
14914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14916 -e 's:$: $lt_compiler_flag:'`
14917 (eval echo "\"\$as_me:14917: $lt_compile\"" >&5)
14918 (eval "$lt_compile" 2>conftest.err)
14919 ac_status=$?
14920 cat conftest.err >&5
14921 echo "$as_me:14921: \$? = $ac_status" >&5
14922 if (exit $ac_status) && test -s "$ac_outfile"; then
14923 # The compiler can only warn and ignore the option if not recognized
14924 # So say no if there are warnings other than the usual output.
14925 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14928 lt_cv_prog_compiler_rtti_exceptions=yes
14931 $rm conftest*
14934 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14935 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14937 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14938 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14939 else
14945 lt_prog_compiler_wl=
14946 lt_prog_compiler_pic=
14947 lt_prog_compiler_static=
14949 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14950 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14952 if test "$GCC" = yes; then
14953 lt_prog_compiler_wl='-Wl,'
14954 lt_prog_compiler_static='-static'
14956 case $host_os in
14957 aix*)
14958 # All AIX code is PIC.
14959 if test "$host_cpu" = ia64; then
14960 # AIX 5 now supports IA64 processor
14961 lt_prog_compiler_static='-Bstatic'
14965 amigaos*)
14966 # FIXME: we need at least 68020 code to build shared libraries, but
14967 # adding the `-m68020' flag to GCC prevents building anything better,
14968 # like `-m68040'.
14969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14972 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14973 # PIC is the default for these OSes.
14976 mingw* | pw32* | os2*)
14977 # This hack is so that the source file can tell whether it is being
14978 # built for inclusion in a dll (and should export symbols for example).
14979 lt_prog_compiler_pic='-DDLL_EXPORT'
14982 darwin* | rhapsody*)
14983 # PIC is the default on this platform
14984 # Common symbols not allowed in MH_DYLIB files
14985 lt_prog_compiler_pic='-fno-common'
14988 interix3*)
14989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14990 # Instead, we relocate shared libraries at runtime.
14993 msdosdjgpp*)
14994 # Just because we use GCC doesn't mean we suddenly get shared libraries
14995 # on systems that don't support them.
14996 lt_prog_compiler_can_build_shared=no
14997 enable_shared=no
15000 sysv4*MP*)
15001 if test -d /usr/nec; then
15002 lt_prog_compiler_pic=-Kconform_pic
15006 hpux*)
15007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15008 # not for PA HP-UX.
15009 case $host_cpu in
15010 hppa*64*|ia64*)
15011 # +Z the default
15014 lt_prog_compiler_pic='-fPIC'
15016 esac
15020 lt_prog_compiler_pic='-fPIC'
15022 esac
15023 else
15024 # PORTME Check for flag to pass linker flags through the system compiler.
15025 case $host_os in
15026 aix*)
15027 lt_prog_compiler_wl='-Wl,'
15028 if test "$host_cpu" = ia64; then
15029 # AIX 5 now supports IA64 processor
15030 lt_prog_compiler_static='-Bstatic'
15031 else
15032 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15035 darwin*)
15036 # PIC is the default on this platform
15037 # Common symbols not allowed in MH_DYLIB files
15038 case $cc_basename in
15039 xlc*)
15040 lt_prog_compiler_pic='-qnocommon'
15041 lt_prog_compiler_wl='-Wl,'
15043 esac
15046 mingw* | pw32* | os2*)
15047 # This hack is so that the source file can tell whether it is being
15048 # built for inclusion in a dll (and should export symbols for example).
15049 lt_prog_compiler_pic='-DDLL_EXPORT'
15052 hpux9* | hpux10* | hpux11*)
15053 lt_prog_compiler_wl='-Wl,'
15054 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15055 # not for PA HP-UX.
15056 case $host_cpu in
15057 hppa*64*|ia64*)
15058 # +Z the default
15061 lt_prog_compiler_pic='+Z'
15063 esac
15064 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15065 lt_prog_compiler_static='${wl}-a ${wl}archive'
15068 irix5* | irix6* | nonstopux*)
15069 lt_prog_compiler_wl='-Wl,'
15070 # PIC (with -KPIC) is the default.
15071 lt_prog_compiler_static='-non_shared'
15074 newsos6)
15075 lt_prog_compiler_pic='-KPIC'
15076 lt_prog_compiler_static='-Bstatic'
15079 linux*)
15080 case $cc_basename in
15081 icc* | ecc*)
15082 lt_prog_compiler_wl='-Wl,'
15083 lt_prog_compiler_pic='-KPIC'
15084 lt_prog_compiler_static='-static'
15086 pgcc* | pgf77* | pgf90* | pgf95*)
15087 # Portland Group compilers (*not* the Pentium gcc compiler,
15088 # which looks to be a dead project)
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_pic='-fpic'
15091 lt_prog_compiler_static='-Bstatic'
15093 ccc*)
15094 lt_prog_compiler_wl='-Wl,'
15095 # All Alpha code is PIC.
15096 lt_prog_compiler_static='-non_shared'
15098 esac
15101 osf3* | osf4* | osf5*)
15102 lt_prog_compiler_wl='-Wl,'
15103 # All OSF/1 code is PIC.
15104 lt_prog_compiler_static='-non_shared'
15107 solaris*)
15108 lt_prog_compiler_pic='-KPIC'
15109 lt_prog_compiler_static='-Bstatic'
15110 case $cc_basename in
15111 f77* | f90* | f95*)
15112 lt_prog_compiler_wl='-Qoption ld ';;
15114 lt_prog_compiler_wl='-Wl,';;
15115 esac
15118 sunos4*)
15119 lt_prog_compiler_wl='-Qoption ld '
15120 lt_prog_compiler_pic='-PIC'
15121 lt_prog_compiler_static='-Bstatic'
15124 sysv4 | sysv4.2uw2* | sysv4.3*)
15125 lt_prog_compiler_wl='-Wl,'
15126 lt_prog_compiler_pic='-KPIC'
15127 lt_prog_compiler_static='-Bstatic'
15130 sysv4*MP*)
15131 if test -d /usr/nec ;then
15132 lt_prog_compiler_pic='-Kconform_pic'
15133 lt_prog_compiler_static='-Bstatic'
15137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15138 lt_prog_compiler_wl='-Wl,'
15139 lt_prog_compiler_pic='-KPIC'
15140 lt_prog_compiler_static='-Bstatic'
15143 unicos*)
15144 lt_prog_compiler_wl='-Wl,'
15145 lt_prog_compiler_can_build_shared=no
15148 uts4*)
15149 lt_prog_compiler_pic='-pic'
15150 lt_prog_compiler_static='-Bstatic'
15154 lt_prog_compiler_can_build_shared=no
15156 esac
15159 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15160 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15163 # Check to make sure the PIC flag actually works.
15165 if test -n "$lt_prog_compiler_pic"; then
15167 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15168 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15169 if test "${lt_prog_compiler_pic_works+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171 else
15172 lt_prog_compiler_pic_works=no
15173 ac_outfile=conftest.$ac_objext
15174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15175 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15176 # Insert the option either (1) after the last *FLAGS variable, or
15177 # (2) before a word containing "conftest.", or (3) at the end.
15178 # Note that $ac_compile itself does not contain backslashes and begins
15179 # with a dollar sign (not a hyphen), so the echo should work correctly.
15180 # The option is referenced via a variable to avoid confusing sed.
15181 lt_compile=`echo "$ac_compile" | $SED \
15182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15184 -e 's:$: $lt_compiler_flag:'`
15185 (eval echo "\"\$as_me:15185: $lt_compile\"" >&5)
15186 (eval "$lt_compile" 2>conftest.err)
15187 ac_status=$?
15188 cat conftest.err >&5
15189 echo "$as_me:15189: \$? = $ac_status" >&5
15190 if (exit $ac_status) && test -s "$ac_outfile"; then
15191 # The compiler can only warn and ignore the option if not recognized
15192 # So say no if there are warnings other than the usual output.
15193 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15196 lt_prog_compiler_pic_works=yes
15199 $rm conftest*
15202 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15203 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15205 if test x"$lt_prog_compiler_pic_works" = xyes; then
15206 case $lt_prog_compiler_pic in
15207 "" | " "*) ;;
15208 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15209 esac
15210 else
15211 lt_prog_compiler_pic=
15212 lt_prog_compiler_can_build_shared=no
15216 case $host_os in
15217 # For platforms which do not support PIC, -DPIC is meaningless:
15218 *djgpp*)
15219 lt_prog_compiler_pic=
15222 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15224 esac
15227 # Check to make sure the static flag actually works.
15229 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15230 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15231 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15232 if test "${lt_prog_compiler_static_works+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235 lt_prog_compiler_static_works=no
15236 save_LDFLAGS="$LDFLAGS"
15237 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15238 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15240 # The linker can only warn and ignore the option if not recognized
15241 # So say no if there are warnings
15242 if test -s conftest.err; then
15243 # Append any errors to the config.log.
15244 cat conftest.err 1>&5
15245 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15247 if diff conftest.exp conftest.er2 >/dev/null; then
15248 lt_prog_compiler_static_works=yes
15250 else
15251 lt_prog_compiler_static_works=yes
15254 $rm conftest*
15255 LDFLAGS="$save_LDFLAGS"
15258 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15259 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15261 if test x"$lt_prog_compiler_static_works" = xyes; then
15263 else
15264 lt_prog_compiler_static=
15268 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15269 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15270 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273 lt_cv_prog_compiler_c_o=no
15274 $rm -r conftest 2>/dev/null
15275 mkdir conftest
15276 cd conftest
15277 mkdir out
15278 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15280 lt_compiler_flag="-o out/conftest2.$ac_objext"
15281 # Insert the option either (1) after the last *FLAGS variable, or
15282 # (2) before a word containing "conftest.", or (3) at the end.
15283 # Note that $ac_compile itself does not contain backslashes and begins
15284 # with a dollar sign (not a hyphen), so the echo should work correctly.
15285 lt_compile=`echo "$ac_compile" | $SED \
15286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15288 -e 's:$: $lt_compiler_flag:'`
15289 (eval echo "\"\$as_me:15289: $lt_compile\"" >&5)
15290 (eval "$lt_compile" 2>out/conftest.err)
15291 ac_status=$?
15292 cat out/conftest.err >&5
15293 echo "$as_me:15293: \$? = $ac_status" >&5
15294 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15295 then
15296 # The compiler can only warn and ignore the option if not recognized
15297 # So say no if there are warnings
15298 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15301 lt_cv_prog_compiler_c_o=yes
15304 chmod u+w . 2>&5
15305 $rm conftest*
15306 # SGI C++ compiler will create directory out/ii_files/ for
15307 # template instantiation
15308 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15309 $rm out/* && rmdir out
15310 cd ..
15311 rmdir conftest
15312 $rm conftest*
15315 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15316 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15319 hard_links="nottested"
15320 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15321 # do not overwrite the value of need_locks provided by the user
15322 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15323 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15324 hard_links=yes
15325 $rm conftest*
15326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15327 touch conftest.a
15328 ln conftest.a conftest.b 2>&5 || hard_links=no
15329 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15330 { echo "$as_me:$LINENO: result: $hard_links" >&5
15331 echo "${ECHO_T}$hard_links" >&6; }
15332 if test "$hard_links" = no; then
15333 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15334 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15335 need_locks=warn
15337 else
15338 need_locks=no
15341 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15342 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15344 runpath_var=
15345 allow_undefined_flag=
15346 enable_shared_with_static_runtimes=no
15347 archive_cmds=
15348 archive_expsym_cmds=
15349 old_archive_From_new_cmds=
15350 old_archive_from_expsyms_cmds=
15351 export_dynamic_flag_spec=
15352 whole_archive_flag_spec=
15353 thread_safe_flag_spec=
15354 hardcode_libdir_flag_spec=
15355 hardcode_libdir_flag_spec_ld=
15356 hardcode_libdir_separator=
15357 hardcode_direct=no
15358 hardcode_minus_L=no
15359 hardcode_shlibpath_var=unsupported
15360 link_all_deplibs=unknown
15361 hardcode_automatic=no
15362 module_cmds=
15363 module_expsym_cmds=
15364 always_export_symbols=no
15365 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15366 # include_expsyms should be a list of space-separated symbols to be *always*
15367 # included in the symbol list
15368 include_expsyms=
15369 # exclude_expsyms can be an extended regexp of symbols to exclude
15370 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15371 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15372 # as well as any symbol that contains `d'.
15373 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15374 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15375 # platforms (ab)use it in PIC code, but their linkers get confused if
15376 # the symbol is explicitly referenced. Since portable code cannot
15377 # rely on this symbol name, it's probably fine to never include it in
15378 # preloaded symbol tables.
15379 extract_expsyms_cmds=
15380 # Just being paranoid about ensuring that cc_basename is set.
15381 for cc_temp in $compiler""; do
15382 case $cc_temp in
15383 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15384 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15385 \-*) ;;
15386 *) break;;
15387 esac
15388 done
15389 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15391 case $host_os in
15392 cygwin* | mingw* | pw32*)
15393 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15394 # When not using gcc, we currently assume that we are using
15395 # Microsoft Visual C++.
15396 if test "$GCC" != yes; then
15397 with_gnu_ld=no
15400 interix*)
15401 # we just hope/assume this is gcc and not c89 (= MSVC++)
15402 with_gnu_ld=yes
15404 openbsd*)
15405 with_gnu_ld=no
15407 esac
15409 ld_shlibs=yes
15410 if test "$with_gnu_ld" = yes; then
15411 # If archive_cmds runs LD, not CC, wlarc should be empty
15412 wlarc='${wl}'
15414 # Set some defaults for GNU ld with shared library support. These
15415 # are reset later if shared libraries are not supported. Putting them
15416 # here allows them to be overridden if necessary.
15417 runpath_var=LD_RUN_PATH
15418 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15419 export_dynamic_flag_spec='${wl}--export-dynamic'
15420 # ancient GNU ld didn't support --whole-archive et. al.
15421 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15422 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15423 else
15424 whole_archive_flag_spec=
15426 supports_anon_versioning=no
15427 case `$LD -v 2>/dev/null` in
15428 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15429 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15430 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15431 *\ 2.11.*) ;; # other 2.11 versions
15432 *) supports_anon_versioning=yes ;;
15433 esac
15435 # See if GNU ld supports shared libraries.
15436 case $host_os in
15437 aix3* | aix4* | aix5*)
15438 # On AIX/PPC, the GNU linker is very broken
15439 if test "$host_cpu" != ia64; then
15440 ld_shlibs=no
15441 cat <<EOF 1>&2
15443 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15444 *** to be unable to reliably create shared libraries on AIX.
15445 *** Therefore, libtool is disabling shared libraries support. If you
15446 *** really care for shared libraries, you may want to modify your PATH
15447 *** so that a non-GNU linker is found, and then restart.
15453 amigaos*)
15454 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)'
15455 hardcode_libdir_flag_spec='-L$libdir'
15456 hardcode_minus_L=yes
15458 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15459 # that the semantics of dynamic libraries on AmigaOS, at least up
15460 # to version 4, is to share data among multiple programs linked
15461 # with the same dynamic library. Since this doesn't match the
15462 # behavior of shared libraries on other platforms, we can't use
15463 # them.
15464 ld_shlibs=no
15467 beos*)
15468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15469 allow_undefined_flag=unsupported
15470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15471 # support --undefined. This deserves some investigation. FIXME
15472 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473 else
15474 ld_shlibs=no
15478 cygwin* | mingw* | pw32*)
15479 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15480 # as there is no search path for DLLs.
15481 hardcode_libdir_flag_spec='-L$libdir'
15482 allow_undefined_flag=unsupported
15483 always_export_symbols=no
15484 enable_shared_with_static_runtimes=yes
15485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15487 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15489 # If the export-symbols file already is a .def file (1st line
15490 # is EXPORTS), use it as is; otherwise, prepend...
15491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15492 cp $export_symbols $output_objdir/$soname.def;
15493 else
15494 echo EXPORTS > $output_objdir/$soname.def;
15495 cat $export_symbols >> $output_objdir/$soname.def;
15497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15498 else
15499 ld_shlibs=no
15503 interix3*)
15504 hardcode_direct=no
15505 hardcode_shlibpath_var=no
15506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15507 export_dynamic_flag_spec='${wl}-E'
15508 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15509 # Instead, shared libraries are loaded at an image base (0x10000000 by
15510 # default) and relocated if they conflict, which is a slow very memory
15511 # consuming and fragmenting process. To avoid this, we pick a random,
15512 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15513 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15515 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'
15518 linux*)
15519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15520 tmp_addflag=
15521 case $cc_basename,$host_cpu in
15522 pgcc*) # Portland Group C compiler
15523 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'
15524 tmp_addflag=' $pic_flag'
15526 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15527 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'
15528 tmp_addflag=' $pic_flag -Mnomain' ;;
15529 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15530 tmp_addflag=' -i_dynamic' ;;
15531 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15532 tmp_addflag=' -i_dynamic -nofor_main' ;;
15533 ifc* | ifort*) # Intel Fortran compiler
15534 tmp_addflag=' -nofor_main' ;;
15535 esac
15536 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 if test $supports_anon_versioning = yes; then
15539 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15540 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15541 $echo "local: *; };" >> $output_objdir/$libname.ver~
15542 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15544 else
15545 ld_shlibs=no
15549 netbsd*)
15550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15551 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15552 wlarc=
15553 else
15554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15559 solaris*)
15560 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15561 ld_shlibs=no
15562 cat <<EOF 1>&2
15564 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15565 *** create shared libraries on Solaris systems. Therefore, libtool
15566 *** is disabling shared libraries support. We urge you to upgrade GNU
15567 *** binutils to release 2.9.1 or newer. Another option is to modify
15568 *** your PATH or compiler configuration so that the native linker is
15569 *** used, and then restart.
15572 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15574 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15575 else
15576 ld_shlibs=no
15580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15581 case `$LD -v 2>&1` in
15582 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15583 ld_shlibs=no
15584 cat <<_LT_EOF 1>&2
15586 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15587 *** reliably create shared libraries on SCO systems. Therefore, libtool
15588 *** is disabling shared libraries support. We urge you to upgrade GNU
15589 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15590 *** your PATH or compiler configuration so that the native linker is
15591 *** used, and then restart.
15593 _LT_EOF
15596 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15597 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15598 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15599 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15600 else
15601 ld_shlibs=no
15604 esac
15607 sunos4*)
15608 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15609 wlarc=
15610 hardcode_direct=yes
15611 hardcode_shlibpath_var=no
15615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15618 else
15619 ld_shlibs=no
15622 esac
15624 if test "$ld_shlibs" = no; then
15625 runpath_var=
15626 hardcode_libdir_flag_spec=
15627 export_dynamic_flag_spec=
15628 whole_archive_flag_spec=
15630 else
15631 # PORTME fill in a description of your system's linker (not GNU ld)
15632 case $host_os in
15633 aix3*)
15634 allow_undefined_flag=unsupported
15635 always_export_symbols=yes
15636 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'
15637 # Note: this linker hardcodes the directories in LIBPATH if there
15638 # are no directories specified by -L.
15639 hardcode_minus_L=yes
15640 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15641 # Neither direct hardcoding nor static linking is supported with a
15642 # broken collect2.
15643 hardcode_direct=unsupported
15647 aix4* | aix5*)
15648 if test "$host_cpu" = ia64; then
15649 # On IA64, the linker does run time linking by default, so we don't
15650 # have to do anything special.
15651 aix_use_runtimelinking=no
15652 exp_sym_flag='-Bexport'
15653 no_entry_flag=""
15654 else
15655 # If we're using GNU nm, then we don't want the "-C" option.
15656 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15657 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15658 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'
15659 else
15660 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'
15662 aix_use_runtimelinking=no
15664 # Test if we are trying to use run time linking or normal
15665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15666 # need to do runtime linking.
15667 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15668 for ld_flag in $LDFLAGS; do
15669 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15670 aix_use_runtimelinking=yes
15671 break
15673 done
15675 esac
15677 exp_sym_flag='-bexport'
15678 no_entry_flag='-bnoentry'
15681 # When large executables or shared objects are built, AIX ld can
15682 # have problems creating the table of contents. If linking a library
15683 # or program results in "error TOC overflow" add -mminimal-toc to
15684 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15685 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15687 archive_cmds=''
15688 hardcode_direct=yes
15689 hardcode_libdir_separator=':'
15690 link_all_deplibs=yes
15692 if test "$GCC" = yes; then
15693 case $host_os in aix4.[012]|aix4.[012].*)
15694 # We only want to do this on AIX 4.2 and lower, the check
15695 # below for broken collect2 doesn't work under 4.3+
15696 collect2name=`${CC} -print-prog-name=collect2`
15697 if test -f "$collect2name" && \
15698 strings "$collect2name" | grep resolve_lib_name >/dev/null
15699 then
15700 # We have reworked collect2
15701 hardcode_direct=yes
15702 else
15703 # We have old collect2
15704 hardcode_direct=unsupported
15705 # It fails to find uninstalled libraries when the uninstalled
15706 # path is not listed in the libpath. Setting hardcode_minus_L
15707 # to unsupported forces relinking
15708 hardcode_minus_L=yes
15709 hardcode_libdir_flag_spec='-L$libdir'
15710 hardcode_libdir_separator=
15713 esac
15714 shared_flag='-shared'
15715 if test "$aix_use_runtimelinking" = yes; then
15716 shared_flag="$shared_flag "'${wl}-G'
15718 else
15719 # not using gcc
15720 if test "$host_cpu" = ia64; then
15721 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15722 # chokes on -Wl,-G. The following line is correct:
15723 shared_flag='-G'
15724 else
15725 if test "$aix_use_runtimelinking" = yes; then
15726 shared_flag='${wl}-G'
15727 else
15728 shared_flag='${wl}-bM:SRE'
15733 # It seems that -bexpall does not export symbols beginning with
15734 # underscore (_), so it is better to generate a list of symbols to export.
15735 always_export_symbols=yes
15736 if test "$aix_use_runtimelinking" = yes; then
15737 # Warning - without using the other runtime loading flags (-brtl),
15738 # -berok will link without error, but may produce a broken library.
15739 allow_undefined_flag='-berok'
15740 # Determine the default libpath from the value encoded in an empty executable.
15741 cat >conftest.$ac_ext <<_ACEOF
15742 /* confdefs.h. */
15743 _ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15749 main ()
15753 return 0;
15755 _ACEOF
15756 rm -f conftest.$ac_objext conftest$ac_exeext
15757 if { (ac_try="$ac_link"
15758 case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_link") 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
15770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15771 { (case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774 esac
15775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_try") 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest$ac_exeext'
15781 { (case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786 (eval "$ac_try") 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15793 # Check for a 64-bit object if we didn't find anything.
15794 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; }
15795 }'`; fi
15796 else
15797 echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15803 rm -f core conftest.err conftest.$ac_objext \
15804 conftest$ac_exeext conftest.$ac_ext
15805 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15807 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15808 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"
15809 else
15810 if test "$host_cpu" = ia64; then
15811 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15812 allow_undefined_flag="-z nodefs"
15813 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"
15814 else
15815 # Determine the default libpath from the value encoded in an empty executable.
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h. */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15824 main ()
15828 return 0;
15830 _ACEOF
15831 rm -f conftest.$ac_objext conftest$ac_exeext
15832 if { (ac_try="$ac_link"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_link") 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; } &&
15855 { ac_try='test -s conftest$ac_exeext'
15856 { (case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_try") 2>&5
15862 ac_status=$?
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); }; }; then
15866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15868 # Check for a 64-bit object if we didn't find anything.
15869 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; }
15870 }'`; fi
15871 else
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15878 rm -f core conftest.err conftest.$ac_objext \
15879 conftest$ac_exeext conftest.$ac_ext
15880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15882 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15883 # Warning - without using the other run time loading flags,
15884 # -berok will link without error, but may produce a broken library.
15885 no_undefined_flag=' ${wl}-bernotok'
15886 allow_undefined_flag=' ${wl}-berok'
15887 # Exported symbols can be pulled into shared objects from archives
15888 whole_archive_flag_spec='$convenience'
15889 archive_cmds_need_lc=yes
15890 # This is similar to how AIX traditionally builds its shared libraries.
15891 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'
15896 amigaos*)
15897 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)'
15898 hardcode_libdir_flag_spec='-L$libdir'
15899 hardcode_minus_L=yes
15900 # see comment about different semantics on the GNU ld section
15901 ld_shlibs=no
15904 bsdi[45]*)
15905 export_dynamic_flag_spec=-rdynamic
15908 cygwin* | mingw* | pw32*)
15909 # When not using gcc, we currently assume that we are using
15910 # Microsoft Visual C++.
15911 # hardcode_libdir_flag_spec is actually meaningless, as there is
15912 # no search path for DLLs.
15913 hardcode_libdir_flag_spec=' '
15914 allow_undefined_flag=unsupported
15915 # Tell ltmain to make .lib files, not .a files.
15916 libext=lib
15917 # Tell ltmain to make .dll files, not .so files.
15918 shrext_cmds=".dll"
15919 # FIXME: Setting linknames here is a bad hack.
15920 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15921 # The linker will automatically build a .lib file if we build a DLL.
15922 old_archive_From_new_cmds='true'
15923 # FIXME: Should let the user specify the lib program.
15924 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15925 fix_srcfile_path='`cygpath -w "$srcfile"`'
15926 enable_shared_with_static_runtimes=yes
15929 darwin* | rhapsody*)
15930 case $host_os in
15931 rhapsody* | darwin1.[012])
15932 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15934 *) # Darwin 1.3 on
15935 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15936 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15937 else
15938 case ${MACOSX_DEPLOYMENT_TARGET} in
15939 10.[012])
15940 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15942 10.*)
15943 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15945 esac
15948 esac
15949 archive_cmds_need_lc=no
15950 hardcode_direct=no
15951 hardcode_automatic=yes
15952 hardcode_shlibpath_var=unsupported
15953 whole_archive_flag_spec=''
15954 link_all_deplibs=yes
15955 if test "$GCC" = yes ; then
15956 output_verbose_link_cmd='echo'
15957 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15958 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15959 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15960 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}'
15961 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}'
15962 else
15963 case $cc_basename in
15964 xlc*)
15965 output_verbose_link_cmd='echo'
15966 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15967 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15968 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15969 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}'
15970 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}'
15973 ld_shlibs=no
15975 esac
15979 dgux*)
15980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15981 hardcode_libdir_flag_spec='-L$libdir'
15982 hardcode_shlibpath_var=no
15985 freebsd1*)
15986 ld_shlibs=no
15989 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15990 # support. Future versions do this automatically, but an explicit c++rt0.o
15991 # does not break anything, and helps significantly (at the cost of a little
15992 # extra space).
15993 freebsd2.2*)
15994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15995 hardcode_libdir_flag_spec='-R$libdir'
15996 hardcode_direct=yes
15997 hardcode_shlibpath_var=no
16000 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16001 freebsd2*)
16002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003 hardcode_direct=yes
16004 hardcode_minus_L=yes
16005 hardcode_shlibpath_var=no
16008 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16009 freebsd* | kfreebsd*-gnu | dragonfly*)
16010 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16011 hardcode_libdir_flag_spec='-R$libdir'
16012 hardcode_direct=yes
16013 hardcode_shlibpath_var=no
16016 hpux9*)
16017 if test "$GCC" = yes; then
16018 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'
16019 else
16020 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'
16022 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16023 hardcode_libdir_separator=:
16024 hardcode_direct=yes
16026 # hardcode_minus_L: Not really in the search PATH,
16027 # but as the default location of the library.
16028 hardcode_minus_L=yes
16029 export_dynamic_flag_spec='${wl}-E'
16032 hpux10*)
16033 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16034 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16035 else
16036 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16038 if test "$with_gnu_ld" = no; then
16039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16040 hardcode_libdir_separator=:
16042 hardcode_direct=yes
16043 export_dynamic_flag_spec='${wl}-E'
16045 # hardcode_minus_L: Not really in the search PATH,
16046 # but as the default location of the library.
16047 hardcode_minus_L=yes
16051 hpux11*)
16052 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16053 case $host_cpu in
16054 hppa*64*)
16055 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16057 ia64*)
16058 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16063 esac
16064 else
16065 case $host_cpu in
16066 hppa*64*)
16067 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16069 ia64*)
16070 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16075 esac
16077 if test "$with_gnu_ld" = no; then
16078 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16079 hardcode_libdir_separator=:
16081 case $host_cpu in
16082 hppa*64*|ia64*)
16083 hardcode_libdir_flag_spec_ld='+b $libdir'
16084 hardcode_direct=no
16085 hardcode_shlibpath_var=no
16088 hardcode_direct=yes
16089 export_dynamic_flag_spec='${wl}-E'
16091 # hardcode_minus_L: Not really in the search PATH,
16092 # but as the default location of the library.
16093 hardcode_minus_L=yes
16095 esac
16099 irix5* | irix6* | nonstopux*)
16100 if test "$GCC" = yes; then
16101 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'
16102 else
16103 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'
16104 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16107 hardcode_libdir_separator=:
16108 link_all_deplibs=yes
16111 netbsd*)
16112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16114 else
16115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16117 hardcode_libdir_flag_spec='-R$libdir'
16118 hardcode_direct=yes
16119 hardcode_shlibpath_var=no
16122 newsos6)
16123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_direct=yes
16125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16126 hardcode_libdir_separator=:
16127 hardcode_shlibpath_var=no
16130 openbsd*)
16131 hardcode_direct=yes
16132 hardcode_shlibpath_var=no
16133 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16134 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16137 export_dynamic_flag_spec='${wl}-E'
16138 else
16139 case $host_os in
16140 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_libdir_flag_spec='-R$libdir'
16145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16148 esac
16152 os2*)
16153 hardcode_libdir_flag_spec='-L$libdir'
16154 hardcode_minus_L=yes
16155 allow_undefined_flag=unsupported
16156 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'
16157 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16160 osf3*)
16161 if test "$GCC" = yes; then
16162 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16163 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'
16164 else
16165 allow_undefined_flag=' -expect_unresolved \*'
16166 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'
16168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16169 hardcode_libdir_separator=:
16172 osf4* | osf5*) # as osf3* with the addition of -msym flag
16173 if test "$GCC" = yes; then
16174 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16175 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'
16176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16177 else
16178 allow_undefined_flag=' -expect_unresolved \*'
16179 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'
16180 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16181 $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'
16183 # Both c and cxx compiler support -rpath directly
16184 hardcode_libdir_flag_spec='-rpath $libdir'
16186 hardcode_libdir_separator=:
16189 solaris*)
16190 no_undefined_flag=' -z text'
16191 if test "$GCC" = yes; then
16192 wlarc='${wl}'
16193 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16195 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16196 else
16197 wlarc=''
16198 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16199 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16200 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16202 hardcode_libdir_flag_spec='-R$libdir'
16203 hardcode_shlibpath_var=no
16204 case $host_os in
16205 solaris2.[0-5] | solaris2.[0-5].*) ;;
16207 # The compiler driver will combine linker options so we
16208 # cannot just pass the convience library names through
16209 # without $wl, iff we do not link with $LD.
16210 # Luckily, gcc supports the same syntax we need for Sun Studio.
16211 # Supported since Solaris 2.6 (maybe 2.5.1?)
16212 case $wlarc in
16214 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16216 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' ;;
16217 esac ;;
16218 esac
16219 link_all_deplibs=yes
16222 sunos4*)
16223 if test "x$host_vendor" = xsequent; then
16224 # Use $CC to link under sequent, because it throws in some extra .o
16225 # files that make .init and .fini sections work.
16226 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16227 else
16228 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16230 hardcode_libdir_flag_spec='-L$libdir'
16231 hardcode_direct=yes
16232 hardcode_minus_L=yes
16233 hardcode_shlibpath_var=no
16236 sysv4)
16237 case $host_vendor in
16238 sni)
16239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240 hardcode_direct=yes # is this really true???
16242 siemens)
16243 ## LD is ld it makes a PLAMLIB
16244 ## CC just makes a GrossModule.
16245 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16246 reload_cmds='$CC -r -o $output$reload_objs'
16247 hardcode_direct=no
16249 motorola)
16250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16251 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16253 esac
16254 runpath_var='LD_RUN_PATH'
16255 hardcode_shlibpath_var=no
16258 sysv4.3*)
16259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16260 hardcode_shlibpath_var=no
16261 export_dynamic_flag_spec='-Bexport'
16264 sysv4*MP*)
16265 if test -d /usr/nec; then
16266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267 hardcode_shlibpath_var=no
16268 runpath_var=LD_RUN_PATH
16269 hardcode_runpath_var=yes
16270 ld_shlibs=yes
16274 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16275 no_undefined_flag='${wl}-z,text'
16276 archive_cmds_need_lc=no
16277 hardcode_shlibpath_var=no
16278 runpath_var='LD_RUN_PATH'
16280 if test "$GCC" = yes; then
16281 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16282 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16283 else
16284 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16285 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16289 sysv5* | sco3.2v5* | sco5v6*)
16290 # Note: We can NOT use -z defs as we might desire, because we do not
16291 # link with -lc, and that would cause any symbols used from libc to
16292 # always be unresolved, which means just about no library would
16293 # ever link correctly. If we're not using GNU ld we use -z text
16294 # though, which does catch some bad symbols but isn't as heavy-handed
16295 # as -z defs.
16296 no_undefined_flag='${wl}-z,text'
16297 allow_undefined_flag='${wl}-z,nodefs'
16298 archive_cmds_need_lc=no
16299 hardcode_shlibpath_var=no
16300 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16301 hardcode_libdir_separator=':'
16302 link_all_deplibs=yes
16303 export_dynamic_flag_spec='${wl}-Bexport'
16304 runpath_var='LD_RUN_PATH'
16306 if test "$GCC" = yes; then
16307 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16308 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16309 else
16310 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16311 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16315 uts4*)
16316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16317 hardcode_libdir_flag_spec='-L$libdir'
16318 hardcode_shlibpath_var=no
16322 ld_shlibs=no
16324 esac
16327 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16328 echo "${ECHO_T}$ld_shlibs" >&6; }
16329 test "$ld_shlibs" = no && can_build_shared=no
16332 # Do we need to explicitly link libc?
16334 case "x$archive_cmds_need_lc" in
16335 x|xyes)
16336 # Assume -lc should be added
16337 archive_cmds_need_lc=yes
16339 if test "$enable_shared" = yes && test "$GCC" = yes; then
16340 case $archive_cmds in
16341 *'~'*)
16342 # FIXME: we may have to deal with multi-command sequences.
16344 '$CC '*)
16345 # Test whether the compiler implicitly links with -lc since on some
16346 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16347 # to ld, don't add -lc before -lgcc.
16348 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16349 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16350 $rm conftest*
16351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16354 (eval $ac_compile) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); } 2>conftest.err; then
16358 soname=conftest
16359 lib=conftest
16360 libobjs=conftest.$ac_objext
16361 deplibs=
16362 wl=$lt_prog_compiler_wl
16363 pic_flag=$lt_prog_compiler_pic
16364 compiler_flags=-v
16365 linker_flags=-v
16366 verstring=
16367 output_objdir=.
16368 libname=conftest
16369 lt_save_allow_undefined_flag=$allow_undefined_flag
16370 allow_undefined_flag=
16371 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16372 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }
16376 then
16377 archive_cmds_need_lc=no
16378 else
16379 archive_cmds_need_lc=yes
16381 allow_undefined_flag=$lt_save_allow_undefined_flag
16382 else
16383 cat conftest.err 1>&5
16385 $rm conftest*
16386 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16387 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16389 esac
16392 esac
16394 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16395 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16396 library_names_spec=
16397 libname_spec='lib$name'
16398 soname_spec=
16399 shrext_cmds=".so"
16400 postinstall_cmds=
16401 postuninstall_cmds=
16402 finish_cmds=
16403 finish_eval=
16404 shlibpath_var=
16405 shlibpath_overrides_runpath=unknown
16406 version_type=none
16407 dynamic_linker="$host_os ld.so"
16408 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16409 if test "$GCC" = yes; then
16410 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16411 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16412 # if the path contains ";" then we assume it to be the separator
16413 # otherwise default to the standard path separator (i.e. ":") - it is
16414 # assumed that no part of a normal pathname contains ";" but that should
16415 # okay in the real world where ";" in dirpaths is itself problematic.
16416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16417 else
16418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16420 else
16421 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16423 need_lib_prefix=unknown
16424 hardcode_into_libs=no
16426 # when you set need_version to no, make sure it does not cause -set_version
16427 # flags to be left without arguments
16428 need_version=unknown
16430 case $host_os in
16431 aix3*)
16432 version_type=linux
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16434 shlibpath_var=LIBPATH
16436 # AIX 3 has no versioning support, so we append a major version to the name.
16437 soname_spec='${libname}${release}${shared_ext}$major'
16440 aix4* | aix5*)
16441 version_type=linux
16442 need_lib_prefix=no
16443 need_version=no
16444 hardcode_into_libs=yes
16445 if test "$host_cpu" = ia64; then
16446 # AIX 5 supports IA64
16447 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 else
16450 # With GCC up to 2.95.x, collect2 would create an import file
16451 # for dependence libraries. The import file would start with
16452 # the line `#! .'. This would cause the generated library to
16453 # depend on `.', always an invalid library. This was fixed in
16454 # development snapshots of GCC prior to 3.0.
16455 case $host_os in
16456 aix4 | aix4.[01] | aix4.[01].*)
16457 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16458 echo ' yes '
16459 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16461 else
16462 can_build_shared=no
16465 esac
16466 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16467 # soname into executable. Probably we can add versioning support to
16468 # collect2, so additional links can be useful in future.
16469 if test "$aix_use_runtimelinking" = yes; then
16470 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16471 # instead of lib<name>.a to let people know that these are not
16472 # typical AIX shared libraries.
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16474 else
16475 # We preserve .a as extension for shared libraries through AIX4.2
16476 # and later when we are not doing run time linking.
16477 library_names_spec='${libname}${release}.a $libname.a'
16478 soname_spec='${libname}${release}${shared_ext}$major'
16480 shlibpath_var=LIBPATH
16484 amigaos*)
16485 library_names_spec='$libname.ixlibrary $libname.a'
16486 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16487 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'
16490 beos*)
16491 library_names_spec='${libname}${shared_ext}'
16492 dynamic_linker="$host_os ld.so"
16493 shlibpath_var=LIBRARY_PATH
16496 bsdi[45]*)
16497 version_type=linux
16498 need_version=no
16499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500 soname_spec='${libname}${release}${shared_ext}$major'
16501 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16504 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16505 # the default ld.so.conf also contains /usr/contrib/lib and
16506 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16507 # libtool to hard-code these into programs
16510 cygwin* | mingw* | pw32*)
16511 version_type=windows
16512 shrext_cmds=".dll"
16513 need_version=no
16514 need_lib_prefix=no
16516 case $GCC,$host_os in
16517 yes,cygwin* | yes,mingw* | yes,pw32*)
16518 library_names_spec='$libname.dll.a'
16519 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16520 postinstall_cmds='base_file=`basename \${file}`~
16521 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16522 dldir=$destdir/`dirname \$dlpath`~
16523 test -d \$dldir || mkdir -p \$dldir~
16524 $install_prog $dir/$dlname \$dldir/$dlname~
16525 chmod a+x \$dldir/$dlname'
16526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16527 dlpath=$dir/\$dldll~
16528 $rm \$dlpath'
16529 shlibpath_overrides_runpath=yes
16531 case $host_os in
16532 cygwin*)
16533 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16534 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16535 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16537 mingw*)
16538 # MinGW DLLs use traditional 'lib' prefix
16539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16540 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16541 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16542 # It is most probably a Windows format PATH printed by
16543 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16544 # path with ; separators, and with drive letters. We can handle the
16545 # drive letters (cygwin fileutils understands them), so leave them,
16546 # especially as we might pass files found there to a mingw objdump,
16547 # which wouldn't understand a cygwinified path. Ahh.
16548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16549 else
16550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16553 pw32*)
16554 # pw32 DLLs use 'pw' prefix rather than 'lib'
16555 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16557 esac
16561 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16563 esac
16564 dynamic_linker='Win32 ld.exe'
16565 # FIXME: first we should search . and the directory the executable is in
16566 shlibpath_var=PATH
16569 darwin* | rhapsody*)
16570 dynamic_linker="$host_os dyld"
16571 version_type=darwin
16572 need_lib_prefix=no
16573 need_version=no
16574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16575 soname_spec='${libname}${release}${major}$shared_ext'
16576 shlibpath_overrides_runpath=yes
16577 shlibpath_var=DYLD_LIBRARY_PATH
16578 shrext_cmds='.dylib'
16579 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16580 if test "$GCC" = yes; then
16581 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"`
16582 else
16583 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16585 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16588 dgux*)
16589 version_type=linux
16590 need_lib_prefix=no
16591 need_version=no
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 shlibpath_var=LD_LIBRARY_PATH
16597 freebsd1*)
16598 dynamic_linker=no
16601 kfreebsd*-gnu)
16602 version_type=linux
16603 need_lib_prefix=no
16604 need_version=no
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 shlibpath_overrides_runpath=no
16609 hardcode_into_libs=yes
16610 dynamic_linker='GNU ld.so'
16613 freebsd* | dragonfly*)
16614 # DragonFly does not have aout. When/if they implement a new
16615 # versioning mechanism, adjust this.
16616 if test -x /usr/bin/objformat; then
16617 objformat=`/usr/bin/objformat`
16618 else
16619 case $host_os in
16620 freebsd[123]*) objformat=aout ;;
16621 *) objformat=elf ;;
16622 esac
16624 version_type=freebsd-$objformat
16625 case $version_type in
16626 freebsd-elf*)
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16628 need_version=no
16629 need_lib_prefix=no
16631 freebsd-*)
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16633 need_version=yes
16635 esac
16636 shlibpath_var=LD_LIBRARY_PATH
16637 case $host_os in
16638 freebsd2*)
16639 shlibpath_overrides_runpath=yes
16641 freebsd3.[01]* | freebsdelf3.[01]*)
16642 shlibpath_overrides_runpath=yes
16643 hardcode_into_libs=yes
16645 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16646 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16647 shlibpath_overrides_runpath=no
16648 hardcode_into_libs=yes
16650 freebsd*) # from 4.6 on
16651 shlibpath_overrides_runpath=yes
16652 hardcode_into_libs=yes
16654 esac
16657 gnu*)
16658 version_type=linux
16659 need_lib_prefix=no
16660 need_version=no
16661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 hardcode_into_libs=yes
16667 hpux9* | hpux10* | hpux11*)
16668 # Give a soname corresponding to the major version so that dld.sl refuses to
16669 # link against other versions.
16670 version_type=sunos
16671 need_lib_prefix=no
16672 need_version=no
16673 case $host_cpu in
16674 ia64*)
16675 shrext_cmds='.so'
16676 hardcode_into_libs=yes
16677 dynamic_linker="$host_os dld.so"
16678 shlibpath_var=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681 soname_spec='${libname}${release}${shared_ext}$major'
16682 if test "X$HPUX_IA64_MODE" = X32; then
16683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16684 else
16685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16689 hppa*64*)
16690 shrext_cmds='.sl'
16691 hardcode_into_libs=yes
16692 dynamic_linker="$host_os dld.sl"
16693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16696 soname_spec='${libname}${release}${shared_ext}$major'
16697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16701 shrext_cmds='.sl'
16702 dynamic_linker="$host_os dld.sl"
16703 shlibpath_var=SHLIB_PATH
16704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16706 soname_spec='${libname}${release}${shared_ext}$major'
16708 esac
16709 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16710 postinstall_cmds='chmod 555 $lib'
16713 interix3*)
16714 version_type=linux
16715 need_lib_prefix=no
16716 need_version=no
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16718 soname_spec='${libname}${release}${shared_ext}$major'
16719 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=no
16722 hardcode_into_libs=yes
16725 irix5* | irix6* | nonstopux*)
16726 case $host_os in
16727 nonstopux*) version_type=nonstopux ;;
16729 if test "$lt_cv_prog_gnu_ld" = yes; then
16730 version_type=linux
16731 else
16732 version_type=irix
16733 fi ;;
16734 esac
16735 need_lib_prefix=no
16736 need_version=no
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16739 case $host_os in
16740 irix5* | nonstopux*)
16741 libsuff= shlibsuff=
16744 case $LD in # libtool.m4 will add one of these switches to LD
16745 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16746 libsuff= shlibsuff= libmagic=32-bit;;
16747 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16748 libsuff=32 shlibsuff=N32 libmagic=N32;;
16749 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16750 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16751 *) libsuff= shlibsuff= libmagic=never-match;;
16752 esac
16754 esac
16755 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16756 shlibpath_overrides_runpath=no
16757 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16758 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16759 hardcode_into_libs=yes
16762 # No shared lib support for Linux oldld, aout, or coff.
16763 linux*oldld* | linux*aout* | linux*coff*)
16764 dynamic_linker=no
16767 # This must be Linux ELF.
16768 linux*)
16769 version_type=linux
16770 need_lib_prefix=no
16771 need_version=no
16772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16773 soname_spec='${libname}${release}${shared_ext}$major'
16774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16775 shlibpath_var=LD_LIBRARY_PATH
16776 shlibpath_overrides_runpath=no
16777 # This implies no fast_install, which is unacceptable.
16778 # Some rework will be needed to allow for fast_install
16779 # before this can be enabled.
16780 hardcode_into_libs=yes
16782 # Append ld.so.conf contents to the search path
16783 if test -f /etc/ld.so.conf; then
16784 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' ' '`
16785 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16788 # We used to test for /lib/ld.so.1 and disable shared libraries on
16789 # powerpc, because MkLinux only supported shared libraries with the
16790 # GNU dynamic linker. Since this was broken with cross compilers,
16791 # most powerpc-linux boxes support dynamic linking these days and
16792 # people can always --disable-shared, the test was removed, and we
16793 # assume the GNU/Linux dynamic linker is in use.
16794 dynamic_linker='GNU/Linux ld.so'
16797 knetbsd*-gnu)
16798 version_type=linux
16799 need_lib_prefix=no
16800 need_version=no
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 shlibpath_overrides_runpath=no
16805 hardcode_into_libs=yes
16806 dynamic_linker='GNU ld.so'
16809 netbsd*)
16810 version_type=sunos
16811 need_lib_prefix=no
16812 need_version=no
16813 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16816 dynamic_linker='NetBSD (a.out) ld.so'
16817 else
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16819 soname_spec='${libname}${release}${shared_ext}$major'
16820 dynamic_linker='NetBSD ld.elf_so'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 shlibpath_overrides_runpath=yes
16824 hardcode_into_libs=yes
16827 newsos6)
16828 version_type=linux
16829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16830 shlibpath_var=LD_LIBRARY_PATH
16831 shlibpath_overrides_runpath=yes
16834 nto-qnx*)
16835 version_type=linux
16836 need_lib_prefix=no
16837 need_version=no
16838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16839 soname_spec='${libname}${release}${shared_ext}$major'
16840 shlibpath_var=LD_LIBRARY_PATH
16841 shlibpath_overrides_runpath=yes
16844 openbsd*)
16845 version_type=sunos
16846 sys_lib_dlsearch_path_spec="/usr/lib"
16847 need_lib_prefix=no
16848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16849 case $host_os in
16850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16851 *) need_version=no ;;
16852 esac
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16855 shlibpath_var=LD_LIBRARY_PATH
16856 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16857 case $host_os in
16858 openbsd2.[89] | openbsd2.[89].*)
16859 shlibpath_overrides_runpath=no
16862 shlibpath_overrides_runpath=yes
16864 esac
16865 else
16866 shlibpath_overrides_runpath=yes
16870 os2*)
16871 libname_spec='$name'
16872 shrext_cmds=".dll"
16873 need_lib_prefix=no
16874 library_names_spec='$libname${shared_ext} $libname.a'
16875 dynamic_linker='OS/2 ld.exe'
16876 shlibpath_var=LIBPATH
16879 osf3* | osf4* | osf5*)
16880 version_type=osf
16881 need_lib_prefix=no
16882 need_version=no
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885 shlibpath_var=LD_LIBRARY_PATH
16886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16890 solaris*)
16891 version_type=linux
16892 need_lib_prefix=no
16893 need_version=no
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 shlibpath_overrides_runpath=yes
16898 hardcode_into_libs=yes
16899 # ldd complains unless libraries are executable
16900 postinstall_cmds='chmod +x $lib'
16903 sunos4*)
16904 version_type=sunos
16905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16907 shlibpath_var=LD_LIBRARY_PATH
16908 shlibpath_overrides_runpath=yes
16909 if test "$with_gnu_ld" = yes; then
16910 need_lib_prefix=no
16912 need_version=yes
16915 sysv4 | sysv4.3*)
16916 version_type=linux
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 shlibpath_var=LD_LIBRARY_PATH
16920 case $host_vendor in
16921 sni)
16922 shlibpath_overrides_runpath=no
16923 need_lib_prefix=no
16924 export_dynamic_flag_spec='${wl}-Blargedynsym'
16925 runpath_var=LD_RUN_PATH
16927 siemens)
16928 need_lib_prefix=no
16930 motorola)
16931 need_lib_prefix=no
16932 need_version=no
16933 shlibpath_overrides_runpath=no
16934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16936 esac
16939 sysv4*MP*)
16940 if test -d /usr/nec ;then
16941 version_type=linux
16942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16943 soname_spec='$libname${shared_ext}.$major'
16944 shlibpath_var=LD_LIBRARY_PATH
16948 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16949 version_type=freebsd-elf
16950 need_lib_prefix=no
16951 need_version=no
16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16953 soname_spec='${libname}${release}${shared_ext}$major'
16954 shlibpath_var=LD_LIBRARY_PATH
16955 hardcode_into_libs=yes
16956 if test "$with_gnu_ld" = yes; then
16957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16958 shlibpath_overrides_runpath=no
16959 else
16960 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16961 shlibpath_overrides_runpath=yes
16962 case $host_os in
16963 sco3.2v5*)
16964 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16966 esac
16968 sys_lib_dlsearch_path_spec='/usr/lib'
16971 uts4*)
16972 version_type=linux
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16979 dynamic_linker=no
16981 esac
16982 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16983 echo "${ECHO_T}$dynamic_linker" >&6; }
16984 test "$dynamic_linker" = no && can_build_shared=no
16986 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16987 if test "$GCC" = yes; then
16988 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16991 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16992 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16993 hardcode_action=
16994 if test -n "$hardcode_libdir_flag_spec" || \
16995 test -n "$runpath_var" || \
16996 test "X$hardcode_automatic" = "Xyes" ; then
16998 # We can hardcode non-existant directories.
16999 if test "$hardcode_direct" != no &&
17000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17001 # have to relink, otherwise we might link with an installed library
17002 # when we should be linking with a yet-to-be-installed one
17003 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17004 test "$hardcode_minus_L" != no; then
17005 # Linking always hardcodes the temporary library directory.
17006 hardcode_action=relink
17007 else
17008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17009 hardcode_action=immediate
17011 else
17012 # We cannot hardcode anything, or else we can only hardcode existing
17013 # directories.
17014 hardcode_action=unsupported
17016 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
17017 echo "${ECHO_T}$hardcode_action" >&6; }
17019 if test "$hardcode_action" = relink; then
17020 # Fast installation is not supported
17021 enable_fast_install=no
17022 elif test "$shlibpath_overrides_runpath" = yes ||
17023 test "$enable_shared" = no; then
17024 # Fast installation is not necessary
17025 enable_fast_install=needless
17028 striplib=
17029 old_striplib=
17030 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17031 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17032 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17033 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17034 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17035 { echo "$as_me:$LINENO: result: yes" >&5
17036 echo "${ECHO_T}yes" >&6; }
17037 else
17038 # FIXME - insert some real tests, host_os isn't really good enough
17039 case $host_os in
17040 darwin*)
17041 if test -n "$STRIP" ; then
17042 striplib="$STRIP -x"
17043 { echo "$as_me:$LINENO: result: yes" >&5
17044 echo "${ECHO_T}yes" >&6; }
17045 else
17046 { echo "$as_me:$LINENO: result: no" >&5
17047 echo "${ECHO_T}no" >&6; }
17051 { echo "$as_me:$LINENO: result: no" >&5
17052 echo "${ECHO_T}no" >&6; }
17054 esac
17057 if test "x$enable_dlopen" != xyes; then
17058 enable_dlopen=unknown
17059 enable_dlopen_self=unknown
17060 enable_dlopen_self_static=unknown
17061 else
17062 lt_cv_dlopen=no
17063 lt_cv_dlopen_libs=
17065 case $host_os in
17066 beos*)
17067 lt_cv_dlopen="load_add_on"
17068 lt_cv_dlopen_libs=
17069 lt_cv_dlopen_self=yes
17072 mingw* | pw32*)
17073 lt_cv_dlopen="LoadLibrary"
17074 lt_cv_dlopen_libs=
17077 cygwin*)
17078 lt_cv_dlopen="dlopen"
17079 lt_cv_dlopen_libs=
17082 darwin*)
17083 # if libdl is installed we need to link against it
17084 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 else
17089 ac_check_lib_save_LIBS=$LIBS
17090 LIBS="-ldl $LIBS"
17091 cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h. */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17098 /* Override any GCC internal prototype to avoid an error.
17099 Use char because int might match the return type of a GCC
17100 builtin and then its argument prototype would still apply. */
17101 #ifdef __cplusplus
17102 extern "C"
17103 #endif
17104 char dlopen ();
17106 main ()
17108 return dlopen ();
17110 return 0;
17112 _ACEOF
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (ac_try="$ac_link"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118 esac
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>conftest.er1
17121 ac_status=$?
17122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128 { (case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_try") 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
17147 ac_cv_lib_dl_dlopen=yes
17148 else
17149 echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17152 ac_cv_lib_dl_dlopen=no
17155 rm -f core conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17157 LIBS=$ac_check_lib_save_LIBS
17159 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17161 if test $ac_cv_lib_dl_dlopen = yes; then
17162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17163 else
17165 lt_cv_dlopen="dyld"
17166 lt_cv_dlopen_libs=
17167 lt_cv_dlopen_self=yes
17174 { echo "$as_me:$LINENO: checking for shl_load" >&5
17175 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17176 if test "${ac_cv_func_shl_load+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179 cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h. */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17185 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17187 #define shl_load innocuous_shl_load
17189 /* System header to define __stub macros and hopefully few prototypes,
17190 which can conflict with char shl_load (); below.
17191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17192 <limits.h> exists even on freestanding compilers. */
17194 #ifdef __STDC__
17195 # include <limits.h>
17196 #else
17197 # include <assert.h>
17198 #endif
17200 #undef shl_load
17202 /* Override any GCC internal prototype to avoid an error.
17203 Use char because int might match the return type of a GCC
17204 builtin and then its argument prototype would still apply. */
17205 #ifdef __cplusplus
17206 extern "C"
17207 #endif
17208 char shl_load ();
17209 /* The GNU C library defines this for functions which it implements
17210 to always fail with ENOSYS. Some functions are actually named
17211 something starting with __ and the normal name is an alias. */
17212 #if defined __stub_shl_load || defined __stub___shl_load
17213 choke me
17214 #endif
17217 main ()
17219 return shl_load ();
17221 return 0;
17223 _ACEOF
17224 rm -f conftest.$ac_objext conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>conftest.er1
17232 ac_status=$?
17233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17242 esac
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest$ac_exeext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_func_shl_load=yes
17259 else
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17263 ac_cv_func_shl_load=no
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17269 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17270 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17271 if test $ac_cv_func_shl_load = yes; then
17272 lt_cv_dlopen="shl_load"
17273 else
17274 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17275 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17276 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279 ac_check_lib_save_LIBS=$LIBS
17280 LIBS="-ldld $LIBS"
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17288 /* Override any GCC internal prototype to avoid an error.
17289 Use char because int might match the return type of a GCC
17290 builtin and then its argument prototype would still apply. */
17291 #ifdef __cplusplus
17292 extern "C"
17293 #endif
17294 char shl_load ();
17296 main ()
17298 return shl_load ();
17300 return 0;
17302 _ACEOF
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>conftest.er1
17311 ac_status=$?
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321 esac
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest$ac_exeext'
17328 { (case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17331 esac
17332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_try") 2>&5
17334 ac_status=$?
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 (exit $ac_status); }; }; then
17337 ac_cv_lib_dld_shl_load=yes
17338 else
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17342 ac_cv_lib_dld_shl_load=no
17345 rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_lib_save_LIBS
17349 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17350 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17351 if test $ac_cv_lib_dld_shl_load = yes; then
17352 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17353 else
17354 { echo "$as_me:$LINENO: checking for dlopen" >&5
17355 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17356 if test "${ac_cv_func_dlopen+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h. */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17367 #define dlopen innocuous_dlopen
17369 /* System header to define __stub macros and hopefully few prototypes,
17370 which can conflict with char dlopen (); below.
17371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372 <limits.h> exists even on freestanding compilers. */
17374 #ifdef __STDC__
17375 # include <limits.h>
17376 #else
17377 # include <assert.h>
17378 #endif
17380 #undef dlopen
17382 /* Override any GCC internal prototype to avoid an error.
17383 Use char because int might match the return type of a GCC
17384 builtin and then its argument prototype would still apply. */
17385 #ifdef __cplusplus
17386 extern "C"
17387 #endif
17388 char dlopen ();
17389 /* The GNU C library defines this for functions which it implements
17390 to always fail with ENOSYS. Some functions are actually named
17391 something starting with __ and the normal name is an alias. */
17392 #if defined __stub_dlopen || defined __stub___dlopen
17393 choke me
17394 #endif
17397 main ()
17399 return dlopen ();
17401 return 0;
17403 _ACEOF
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
17412 ac_status=$?
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } &&
17418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17419 { (case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17422 esac
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_try") 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } &&
17428 { ac_try='test -s conftest$ac_exeext'
17429 { (case "(($ac_try" in
17430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431 *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434 (eval "$ac_try") 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_func_dlopen=yes
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_cv_func_dlopen=no
17446 rm -f core conftest.err conftest.$ac_objext \
17447 conftest$ac_exeext conftest.$ac_ext
17449 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17450 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17451 if test $ac_cv_func_dlopen = yes; then
17452 lt_cv_dlopen="dlopen"
17453 else
17454 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17455 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17456 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 else
17459 ac_check_lib_save_LIBS=$LIBS
17460 LIBS="-ldl $LIBS"
17461 cat >conftest.$ac_ext <<_ACEOF
17462 /* confdefs.h. */
17463 _ACEOF
17464 cat confdefs.h >>conftest.$ac_ext
17465 cat >>conftest.$ac_ext <<_ACEOF
17466 /* end confdefs.h. */
17468 /* Override any GCC internal prototype to avoid an error.
17469 Use char because int might match the return type of a GCC
17470 builtin and then its argument prototype would still apply. */
17471 #ifdef __cplusplus
17472 extern "C"
17473 #endif
17474 char dlopen ();
17476 main ()
17478 return dlopen ();
17480 return 0;
17482 _ACEOF
17483 rm -f conftest.$ac_objext conftest$ac_exeext
17484 if { (ac_try="$ac_link"
17485 case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488 esac
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_link") 2>conftest.er1
17491 ac_status=$?
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17498 { (case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_try") 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511 esac
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 ac_cv_lib_dl_dlopen=yes
17518 else
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ac_cv_lib_dl_dlopen=no
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17527 LIBS=$ac_check_lib_save_LIBS
17529 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17531 if test $ac_cv_lib_dl_dlopen = yes; then
17532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17533 else
17534 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17535 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17536 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539 ac_check_lib_save_LIBS=$LIBS
17540 LIBS="-lsvld $LIBS"
17541 cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h. */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 char dlopen ();
17556 main ()
17558 return dlopen ();
17560 return 0;
17562 _ACEOF
17563 rm -f conftest.$ac_objext conftest$ac_exeext
17564 if { (ac_try="$ac_link"
17565 case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568 esac
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
17571 ac_status=$?
17572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
17577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591 esac
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17597 ac_cv_lib_svld_dlopen=yes
17598 else
17599 echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.$ac_ext >&5
17602 ac_cv_lib_svld_dlopen=no
17605 rm -f core conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17607 LIBS=$ac_check_lib_save_LIBS
17609 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17610 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17611 if test $ac_cv_lib_svld_dlopen = yes; then
17612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17613 else
17614 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17615 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17616 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17617 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619 ac_check_lib_save_LIBS=$LIBS
17620 LIBS="-ldld $LIBS"
17621 cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h. */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17628 /* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
17631 #ifdef __cplusplus
17632 extern "C"
17633 #endif
17634 char dld_link ();
17636 main ()
17638 return dld_link ();
17640 return 0;
17642 _ACEOF
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (ac_try="$ac_link"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_link") 2>conftest.er1
17651 ac_status=$?
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest$ac_exeext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_lib_dld_dld_link=yes
17678 else
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17682 ac_cv_lib_dld_dld_link=no
17685 rm -f core conftest.err conftest.$ac_objext \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17689 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17690 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17691 if test $ac_cv_lib_dld_dld_link = yes; then
17692 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17711 esac
17713 if test "x$lt_cv_dlopen" != xno; then
17714 enable_dlopen=yes
17715 else
17716 enable_dlopen=no
17719 case $lt_cv_dlopen in
17720 dlopen)
17721 save_CPPFLAGS="$CPPFLAGS"
17722 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17724 save_LDFLAGS="$LDFLAGS"
17725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17727 save_LIBS="$LIBS"
17728 LIBS="$lt_cv_dlopen_libs $LIBS"
17730 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17731 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17732 if test "${lt_cv_dlopen_self+set}" = set; then
17733 echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735 if test "$cross_compiling" = yes; then :
17736 lt_cv_dlopen_self=cross
17737 else
17738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17739 lt_status=$lt_dlunknown
17740 cat > conftest.$ac_ext <<EOF
17741 #line 17741 "configure"
17742 #include "confdefs.h"
17744 #if HAVE_DLFCN_H
17745 #include <dlfcn.h>
17746 #endif
17748 #include <stdio.h>
17750 #ifdef RTLD_GLOBAL
17751 # define LT_DLGLOBAL RTLD_GLOBAL
17752 #else
17753 # ifdef DL_GLOBAL
17754 # define LT_DLGLOBAL DL_GLOBAL
17755 # else
17756 # define LT_DLGLOBAL 0
17757 # endif
17758 #endif
17760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17761 find out it does not work in some platform. */
17762 #ifndef LT_DLLAZY_OR_NOW
17763 # ifdef RTLD_LAZY
17764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17765 # else
17766 # ifdef DL_LAZY
17767 # define LT_DLLAZY_OR_NOW DL_LAZY
17768 # else
17769 # ifdef RTLD_NOW
17770 # define LT_DLLAZY_OR_NOW RTLD_NOW
17771 # else
17772 # ifdef DL_NOW
17773 # define LT_DLLAZY_OR_NOW DL_NOW
17774 # else
17775 # define LT_DLLAZY_OR_NOW 0
17776 # endif
17777 # endif
17778 # endif
17779 # endif
17780 #endif
17782 #ifdef __cplusplus
17783 extern "C" void exit (int);
17784 #endif
17786 void fnord() { int i=42;}
17787 int main ()
17789 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17790 int status = $lt_dlunknown;
17792 if (self)
17794 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17795 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17796 /* dlclose (self); */
17798 else
17799 puts (dlerror ());
17801 exit (status);
17804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17805 (eval $ac_link) 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17809 (./conftest; exit; ) >&5 2>/dev/null
17810 lt_status=$?
17811 case x$lt_status in
17812 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17813 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17814 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17815 esac
17816 else :
17817 # compilation failed
17818 lt_cv_dlopen_self=no
17821 rm -fr conftest*
17825 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17826 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17828 if test "x$lt_cv_dlopen_self" = xyes; then
17829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17830 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17831 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17832 if test "${lt_cv_dlopen_self_static+set}" = set; then
17833 echo $ECHO_N "(cached) $ECHO_C" >&6
17834 else
17835 if test "$cross_compiling" = yes; then :
17836 lt_cv_dlopen_self_static=cross
17837 else
17838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17839 lt_status=$lt_dlunknown
17840 cat > conftest.$ac_ext <<EOF
17841 #line 17841 "configure"
17842 #include "confdefs.h"
17844 #if HAVE_DLFCN_H
17845 #include <dlfcn.h>
17846 #endif
17848 #include <stdio.h>
17850 #ifdef RTLD_GLOBAL
17851 # define LT_DLGLOBAL RTLD_GLOBAL
17852 #else
17853 # ifdef DL_GLOBAL
17854 # define LT_DLGLOBAL DL_GLOBAL
17855 # else
17856 # define LT_DLGLOBAL 0
17857 # endif
17858 #endif
17860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17861 find out it does not work in some platform. */
17862 #ifndef LT_DLLAZY_OR_NOW
17863 # ifdef RTLD_LAZY
17864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17865 # else
17866 # ifdef DL_LAZY
17867 # define LT_DLLAZY_OR_NOW DL_LAZY
17868 # else
17869 # ifdef RTLD_NOW
17870 # define LT_DLLAZY_OR_NOW RTLD_NOW
17871 # else
17872 # ifdef DL_NOW
17873 # define LT_DLLAZY_OR_NOW DL_NOW
17874 # else
17875 # define LT_DLLAZY_OR_NOW 0
17876 # endif
17877 # endif
17878 # endif
17879 # endif
17880 #endif
17882 #ifdef __cplusplus
17883 extern "C" void exit (int);
17884 #endif
17886 void fnord() { int i=42;}
17887 int main ()
17889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17890 int status = $lt_dlunknown;
17892 if (self)
17894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17896 /* dlclose (self); */
17898 else
17899 puts (dlerror ());
17901 exit (status);
17904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17905 (eval $ac_link) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17909 (./conftest; exit; ) >&5 2>/dev/null
17910 lt_status=$?
17911 case x$lt_status in
17912 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17913 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17914 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17915 esac
17916 else :
17917 # compilation failed
17918 lt_cv_dlopen_self_static=no
17921 rm -fr conftest*
17925 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17926 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17929 CPPFLAGS="$save_CPPFLAGS"
17930 LDFLAGS="$save_LDFLAGS"
17931 LIBS="$save_LIBS"
17933 esac
17935 case $lt_cv_dlopen_self in
17936 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17937 *) enable_dlopen_self=unknown ;;
17938 esac
17940 case $lt_cv_dlopen_self_static in
17941 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17942 *) enable_dlopen_self_static=unknown ;;
17943 esac
17947 # Report which library types will actually be built
17948 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17949 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17950 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17951 echo "${ECHO_T}$can_build_shared" >&6; }
17953 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17954 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17955 test "$can_build_shared" = "no" && enable_shared=no
17957 # On AIX, shared libraries and static libraries use the same namespace, and
17958 # are all built from PIC.
17959 case $host_os in
17960 aix3*)
17961 test "$enable_shared" = yes && enable_static=no
17962 if test -n "$RANLIB"; then
17963 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17964 postinstall_cmds='$RANLIB $lib'
17968 aix4* | aix5*)
17969 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17970 test "$enable_shared" = yes && enable_static=no
17973 esac
17974 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17975 echo "${ECHO_T}$enable_shared" >&6; }
17977 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17978 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17979 # Make sure either enable_shared or enable_static is yes.
17980 test "$enable_shared" = yes || enable_static=yes
17981 { echo "$as_me:$LINENO: result: $enable_static" >&5
17982 echo "${ECHO_T}$enable_static" >&6; }
17984 # The else clause should only fire when bootstrapping the
17985 # libtool distribution, otherwise you forgot to ship ltmain.sh
17986 # with your package, and you will get complaints that there are
17987 # no rules to generate ltmain.sh.
17988 if test -f "$ltmain"; then
17989 # See if we are running on zsh, and set the options which allow our commands through
17990 # without removal of \ escapes.
17991 if test -n "${ZSH_VERSION+set}" ; then
17992 setopt NO_GLOB_SUBST
17994 # Now quote all the things that may contain metacharacters while being
17995 # careful not to overquote the AC_SUBSTed values. We take copies of the
17996 # variables and quote the copies for generation of the libtool script.
17997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17998 SED SHELL STRIP \
17999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18001 deplibs_check_method reload_flag reload_cmds need_locks \
18002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18003 lt_cv_sys_global_symbol_to_c_name_address \
18004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18005 old_postinstall_cmds old_postuninstall_cmds \
18006 compiler \
18007 CC \
18008 LD \
18009 lt_prog_compiler_wl \
18010 lt_prog_compiler_pic \
18011 lt_prog_compiler_static \
18012 lt_prog_compiler_no_builtin_flag \
18013 export_dynamic_flag_spec \
18014 thread_safe_flag_spec \
18015 whole_archive_flag_spec \
18016 enable_shared_with_static_runtimes \
18017 old_archive_cmds \
18018 old_archive_from_new_cmds \
18019 predep_objects \
18020 postdep_objects \
18021 predeps \
18022 postdeps \
18023 compiler_lib_search_path \
18024 archive_cmds \
18025 archive_expsym_cmds \
18026 postinstall_cmds \
18027 postuninstall_cmds \
18028 old_archive_from_expsyms_cmds \
18029 allow_undefined_flag \
18030 no_undefined_flag \
18031 export_symbols_cmds \
18032 hardcode_libdir_flag_spec \
18033 hardcode_libdir_flag_spec_ld \
18034 hardcode_libdir_separator \
18035 hardcode_automatic \
18036 module_cmds \
18037 module_expsym_cmds \
18038 lt_cv_prog_compiler_c_o \
18039 exclude_expsyms \
18040 include_expsyms; do
18042 case $var in
18043 old_archive_cmds | \
18044 old_archive_from_new_cmds | \
18045 archive_cmds | \
18046 archive_expsym_cmds | \
18047 module_cmds | \
18048 module_expsym_cmds | \
18049 old_archive_from_expsyms_cmds | \
18050 export_symbols_cmds | \
18051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18052 postinstall_cmds | postuninstall_cmds | \
18053 old_postinstall_cmds | old_postuninstall_cmds | \
18054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18055 # Double-quote double-evaled strings.
18056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18061 esac
18062 done
18064 case $lt_echo in
18065 *'\$0 --fallback-echo"')
18066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18068 esac
18070 cfgfile="${ofile}T"
18071 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18072 $rm -f "$cfgfile"
18073 { echo "$as_me:$LINENO: creating $ofile" >&5
18074 echo "$as_me: creating $ofile" >&6;}
18076 cat <<__EOF__ >> "$cfgfile"
18077 #! $SHELL
18079 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18080 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18083 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18084 # Free Software Foundation, Inc.
18086 # This file is part of GNU Libtool:
18087 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18089 # This program is free software; you can redistribute it and/or modify
18090 # it under the terms of the GNU General Public License as published by
18091 # the Free Software Foundation; either version 2 of the License, or
18092 # (at your option) any later version.
18094 # This program is distributed in the hope that it will be useful, but
18095 # WITHOUT ANY WARRANTY; without even the implied warranty of
18096 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18097 # General Public License for more details.
18099 # You should have received a copy of the GNU General Public License
18100 # along with this program; if not, write to the Free Software
18101 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18103 # As a special exception to the GNU General Public License, if you
18104 # distribute this file as part of a program that contains a
18105 # configuration script generated by Autoconf, you may include it under
18106 # the same distribution terms that you use for the rest of that program.
18108 # A sed program that does not truncate output.
18109 SED=$lt_SED
18111 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18112 Xsed="$SED -e 1s/^X//"
18114 # The HP-UX ksh and POSIX shell print the target directory to stdout
18115 # if CDPATH is set.
18116 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18118 # The names of the tagged configurations supported by this script.
18119 available_tags=
18121 # ### BEGIN LIBTOOL CONFIG
18123 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18125 # Shell to use when invoking shell scripts.
18126 SHELL=$lt_SHELL
18128 # Whether or not to build shared libraries.
18129 build_libtool_libs=$enable_shared
18131 # Whether or not to build static libraries.
18132 build_old_libs=$enable_static
18134 # Whether or not to add -lc for building shared libraries.
18135 build_libtool_need_lc=$archive_cmds_need_lc
18137 # Whether or not to disallow shared libs when runtime libs are static
18138 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18140 # Whether or not to optimize for fast installation.
18141 fast_install=$enable_fast_install
18143 # The host system.
18144 host_alias=$host_alias
18145 host=$host
18146 host_os=$host_os
18148 # The build system.
18149 build_alias=$build_alias
18150 build=$build
18151 build_os=$build_os
18153 # An echo program that does not interpret backslashes.
18154 echo=$lt_echo
18156 # The archiver.
18157 AR=$lt_AR
18158 AR_FLAGS=$lt_AR_FLAGS
18160 # A C compiler.
18161 LTCC=$lt_LTCC
18163 # LTCC compiler flags.
18164 LTCFLAGS=$lt_LTCFLAGS
18166 # A language-specific compiler.
18167 CC=$lt_compiler
18169 # Is the compiler the GNU C compiler?
18170 with_gcc=$GCC
18172 # An ERE matcher.
18173 EGREP=$lt_EGREP
18175 # The linker used to build libraries.
18176 LD=$lt_LD
18178 # Whether we need hard or soft links.
18179 LN_S=$lt_LN_S
18181 # A BSD-compatible nm program.
18182 NM=$lt_NM
18184 # A symbol stripping program
18185 STRIP=$lt_STRIP
18187 # Used to examine libraries when file_magic_cmd begins "file"
18188 MAGIC_CMD=$MAGIC_CMD
18190 # Used on cygwin: DLL creation program.
18191 DLLTOOL="$DLLTOOL"
18193 # Used on cygwin: object dumper.
18194 OBJDUMP="$OBJDUMP"
18196 # Used on cygwin: assembler.
18197 AS="$AS"
18199 # The name of the directory that contains temporary libtool files.
18200 objdir=$objdir
18202 # How to create reloadable object files.
18203 reload_flag=$lt_reload_flag
18204 reload_cmds=$lt_reload_cmds
18206 # How to pass a linker flag through the compiler.
18207 wl=$lt_lt_prog_compiler_wl
18209 # Object file suffix (normally "o").
18210 objext="$ac_objext"
18212 # Old archive suffix (normally "a").
18213 libext="$libext"
18215 # Shared library suffix (normally ".so").
18216 shrext_cmds='$shrext_cmds'
18218 # Executable file suffix (normally "").
18219 exeext="$exeext"
18221 # Additional compiler flags for building library objects.
18222 pic_flag=$lt_lt_prog_compiler_pic
18223 pic_mode=$pic_mode
18225 # What is the maximum length of a command?
18226 max_cmd_len=$lt_cv_sys_max_cmd_len
18228 # Does compiler simultaneously support -c and -o options?
18229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18231 # Must we lock files when doing compilation?
18232 need_locks=$lt_need_locks
18234 # Do we need the lib prefix for modules?
18235 need_lib_prefix=$need_lib_prefix
18237 # Do we need a version for libraries?
18238 need_version=$need_version
18240 # Whether dlopen is supported.
18241 dlopen_support=$enable_dlopen
18243 # Whether dlopen of programs is supported.
18244 dlopen_self=$enable_dlopen_self
18246 # Whether dlopen of statically linked programs is supported.
18247 dlopen_self_static=$enable_dlopen_self_static
18249 # Compiler flag to prevent dynamic linking.
18250 link_static_flag=$lt_lt_prog_compiler_static
18252 # Compiler flag to turn off builtin functions.
18253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18255 # Compiler flag to allow reflexive dlopens.
18256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18258 # Compiler flag to generate shared objects directly from archives.
18259 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18261 # Compiler flag to generate thread-safe objects.
18262 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18264 # Library versioning type.
18265 version_type=$version_type
18267 # Format of library name prefix.
18268 libname_spec=$lt_libname_spec
18270 # List of archive names. First name is the real one, the rest are links.
18271 # The last name is the one that the linker finds with -lNAME.
18272 library_names_spec=$lt_library_names_spec
18274 # The coded name of the library, if different from the real name.
18275 soname_spec=$lt_soname_spec
18277 # Commands used to build and install an old-style archive.
18278 RANLIB=$lt_RANLIB
18279 old_archive_cmds=$lt_old_archive_cmds
18280 old_postinstall_cmds=$lt_old_postinstall_cmds
18281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18283 # Create an old-style archive from a shared archive.
18284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18286 # Create a temporary old-style archive to link instead of a shared archive.
18287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18289 # Commands used to build and install a shared archive.
18290 archive_cmds=$lt_archive_cmds
18291 archive_expsym_cmds=$lt_archive_expsym_cmds
18292 postinstall_cmds=$lt_postinstall_cmds
18293 postuninstall_cmds=$lt_postuninstall_cmds
18295 # Commands used to build a loadable module (assumed same as above if empty)
18296 module_cmds=$lt_module_cmds
18297 module_expsym_cmds=$lt_module_expsym_cmds
18299 # Commands to strip libraries.
18300 old_striplib=$lt_old_striplib
18301 striplib=$lt_striplib
18303 # Dependencies to place before the objects being linked to create a
18304 # shared library.
18305 predep_objects=$lt_predep_objects
18307 # Dependencies to place after the objects being linked to create a
18308 # shared library.
18309 postdep_objects=$lt_postdep_objects
18311 # Dependencies to place before the objects being linked to create a
18312 # shared library.
18313 predeps=$lt_predeps
18315 # Dependencies to place after the objects being linked to create a
18316 # shared library.
18317 postdeps=$lt_postdeps
18319 # The library search path used internally by the compiler when linking
18320 # a shared library.
18321 compiler_lib_search_path=$lt_compiler_lib_search_path
18323 # Method to check whether dependent libraries are shared objects.
18324 deplibs_check_method=$lt_deplibs_check_method
18326 # Command to use when deplibs_check_method == file_magic.
18327 file_magic_cmd=$lt_file_magic_cmd
18329 # Flag that allows shared libraries with undefined symbols to be built.
18330 allow_undefined_flag=$lt_allow_undefined_flag
18332 # Flag that forces no undefined symbols.
18333 no_undefined_flag=$lt_no_undefined_flag
18335 # Commands used to finish a libtool library installation in a directory.
18336 finish_cmds=$lt_finish_cmds
18338 # Same as above, but a single script fragment to be evaled but not shown.
18339 finish_eval=$lt_finish_eval
18341 # Take the output of nm and produce a listing of raw symbols and C names.
18342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18344 # Transform the output of nm in a proper C declaration
18345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18347 # Transform the output of nm in a C name address pair
18348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18350 # This is the shared library runtime path variable.
18351 runpath_var=$runpath_var
18353 # This is the shared library path variable.
18354 shlibpath_var=$shlibpath_var
18356 # Is shlibpath searched before the hard-coded library search path?
18357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18359 # How to hardcode a shared library path into an executable.
18360 hardcode_action=$hardcode_action
18362 # Whether we should hardcode library paths into libraries.
18363 hardcode_into_libs=$hardcode_into_libs
18365 # Flag to hardcode \$libdir into a binary during linking.
18366 # This must work even if \$libdir does not exist.
18367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18369 # If ld is used when linking, flag to hardcode \$libdir into
18370 # a binary during linking. This must work even if \$libdir does
18371 # not exist.
18372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18374 # Whether we need a single -rpath flag with a separated argument.
18375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18378 # resulting binary.
18379 hardcode_direct=$hardcode_direct
18381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18382 # resulting binary.
18383 hardcode_minus_L=$hardcode_minus_L
18385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18386 # the resulting binary.
18387 hardcode_shlibpath_var=$hardcode_shlibpath_var
18389 # Set to yes if building a shared library automatically hardcodes DIR into the library
18390 # and all subsequent libraries and executables linked against it.
18391 hardcode_automatic=$hardcode_automatic
18393 # Variables whose values should be saved in libtool wrapper scripts and
18394 # restored at relink time.
18395 variables_saved_for_relink="$variables_saved_for_relink"
18397 # Whether libtool must link a program against all its dependency libraries.
18398 link_all_deplibs=$link_all_deplibs
18400 # Compile-time system search path for libraries
18401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18403 # Run-time system search path for libraries
18404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18406 # Fix the shell variable \$srcfile for the compiler.
18407 fix_srcfile_path="$fix_srcfile_path"
18409 # Set to yes if exported symbols are required.
18410 always_export_symbols=$always_export_symbols
18412 # The commands to list exported symbols.
18413 export_symbols_cmds=$lt_export_symbols_cmds
18415 # The commands to extract the exported symbol list from a shared archive.
18416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18418 # Symbols that should not be listed in the preloaded symbols.
18419 exclude_expsyms=$lt_exclude_expsyms
18421 # Symbols that must always be exported.
18422 include_expsyms=$lt_include_expsyms
18424 # ### END LIBTOOL CONFIG
18426 __EOF__
18429 case $host_os in
18430 aix3*)
18431 cat <<\EOF >> "$cfgfile"
18433 # AIX sometimes has problems with the GCC collect2 program. For some
18434 # reason, if we set the COLLECT_NAMES environment variable, the problems
18435 # vanish in a puff of smoke.
18436 if test "X${COLLECT_NAMES+set}" != Xset; then
18437 COLLECT_NAMES=
18438 export COLLECT_NAMES
18442 esac
18444 # We use sed instead of cat because bash on DJGPP gets confused if
18445 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18446 # text mode, it properly converts lines to CR/LF. This bash problem
18447 # is reportedly fixed, but why not run on old versions too?
18448 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18450 mv -f "$cfgfile" "$ofile" || \
18451 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18452 chmod +x "$ofile"
18454 else
18455 # If there is no Makefile yet, we rely on a make rule to execute
18456 # `config.status --recheck' to rerun these tests and create the
18457 # libtool script then.
18458 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18459 if test -f "$ltmain_in"; then
18460 test -f Makefile && make "$ltmain"
18465 ac_ext=c
18466 ac_cpp='$CPP $CPPFLAGS'
18467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18471 CC="$lt_save_CC"
18474 # Check whether --with-tags was given.
18475 if test "${with_tags+set}" = set; then
18476 withval=$with_tags; tagnames="$withval"
18480 if test -f "$ltmain" && test -n "$tagnames"; then
18481 if test ! -f "${ofile}"; then
18482 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18483 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18486 if test -z "$LTCC"; then
18487 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18488 if test -z "$LTCC"; then
18489 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18490 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18491 else
18492 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18493 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18496 if test -z "$LTCFLAGS"; then
18497 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18500 # Extract list of available tagged configurations in $ofile.
18501 # Note that this assumes the entire list is on one line.
18502 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18504 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18505 for tagname in $tagnames; do
18506 IFS="$lt_save_ifs"
18507 # Check whether tagname contains only valid characters
18508 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18509 "") ;;
18510 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18511 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18512 { (exit 1); exit 1; }; }
18514 esac
18516 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18517 then
18518 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18519 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18520 { (exit 1); exit 1; }; }
18523 # Update the list of available tags.
18524 if test -n "$tagname"; then
18525 echo appending configuration tag \"$tagname\" to $ofile
18527 case $tagname in
18528 CXX)
18529 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18530 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18531 (test "X$CXX" != "Xg++"))) ; then
18532 ac_ext=cpp
18533 ac_cpp='$CXXCPP $CPPFLAGS'
18534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18541 archive_cmds_need_lc_CXX=no
18542 allow_undefined_flag_CXX=
18543 always_export_symbols_CXX=no
18544 archive_expsym_cmds_CXX=
18545 export_dynamic_flag_spec_CXX=
18546 hardcode_direct_CXX=no
18547 hardcode_libdir_flag_spec_CXX=
18548 hardcode_libdir_flag_spec_ld_CXX=
18549 hardcode_libdir_separator_CXX=
18550 hardcode_minus_L_CXX=no
18551 hardcode_shlibpath_var_CXX=unsupported
18552 hardcode_automatic_CXX=no
18553 module_cmds_CXX=
18554 module_expsym_cmds_CXX=
18555 link_all_deplibs_CXX=unknown
18556 old_archive_cmds_CXX=$old_archive_cmds
18557 no_undefined_flag_CXX=
18558 whole_archive_flag_spec_CXX=
18559 enable_shared_with_static_runtimes_CXX=no
18561 # Dependencies to place before and after the object being linked:
18562 predep_objects_CXX=
18563 postdep_objects_CXX=
18564 predeps_CXX=
18565 postdeps_CXX=
18566 compiler_lib_search_path_CXX=
18568 # Source file extension for C++ test sources.
18569 ac_ext=cpp
18571 # Object file extension for compiled C++ test sources.
18572 objext=o
18573 objext_CXX=$objext
18575 # Code to be used in simple compile tests
18576 lt_simple_compile_test_code="int some_variable = 0;\n"
18578 # Code to be used in simple link tests
18579 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18581 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18583 # If no C compiler was specified, use CC.
18584 LTCC=${LTCC-"$CC"}
18586 # If no C compiler flags were specified, use CFLAGS.
18587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18589 # Allow CC to be a program name with arguments.
18590 compiler=$CC
18593 # save warnings/boilerplate of simple test code
18594 ac_outfile=conftest.$ac_objext
18595 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18596 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18597 _lt_compiler_boilerplate=`cat conftest.err`
18598 $rm conftest*
18600 ac_outfile=conftest.$ac_objext
18601 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18602 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18603 _lt_linker_boilerplate=`cat conftest.err`
18604 $rm conftest*
18607 # Allow CC to be a program name with arguments.
18608 lt_save_CC=$CC
18609 lt_save_LD=$LD
18610 lt_save_GCC=$GCC
18611 GCC=$GXX
18612 lt_save_with_gnu_ld=$with_gnu_ld
18613 lt_save_path_LD=$lt_cv_path_LD
18614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18615 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18616 else
18617 $as_unset lt_cv_prog_gnu_ld
18619 if test -n "${lt_cv_path_LDCXX+set}"; then
18620 lt_cv_path_LD=$lt_cv_path_LDCXX
18621 else
18622 $as_unset lt_cv_path_LD
18624 test -z "${LDCXX+set}" || LD=$LDCXX
18625 CC=${CXX-"c++"}
18626 compiler=$CC
18627 compiler_CXX=$CC
18628 for cc_temp in $compiler""; do
18629 case $cc_temp in
18630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18632 \-*) ;;
18633 *) break;;
18634 esac
18635 done
18636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18639 # We don't want -fno-exception wen compiling C++ code, so set the
18640 # no_builtin_flag separately
18641 if test "$GXX" = yes; then
18642 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18643 else
18644 lt_prog_compiler_no_builtin_flag_CXX=
18647 if test "$GXX" = yes; then
18648 # Set up default GNU C++ configuration
18651 # Check whether --with-gnu-ld was given.
18652 if test "${with_gnu_ld+set}" = set; then
18653 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18654 else
18655 with_gnu_ld=no
18658 ac_prog=ld
18659 if test "$GCC" = yes; then
18660 # Check if gcc -print-prog-name=ld gives a path.
18661 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18662 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18663 case $host in
18664 *-*-mingw*)
18665 # gcc leaves a trailing carriage return which upsets mingw
18666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18669 esac
18670 case $ac_prog in
18671 # Accept absolute paths.
18672 [\\/]* | ?:[\\/]*)
18673 re_direlt='/[^/][^/]*/\.\./'
18674 # Canonicalize the pathname of ld
18675 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18676 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18677 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18678 done
18679 test -z "$LD" && LD="$ac_prog"
18682 # If it fails, then pretend we aren't using GCC.
18683 ac_prog=ld
18686 # If it is relative, then search for the first ld in PATH.
18687 with_gnu_ld=unknown
18689 esac
18690 elif test "$with_gnu_ld" = yes; then
18691 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18692 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18693 else
18694 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18695 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18697 if test "${lt_cv_path_LD+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699 else
18700 if test -z "$LD"; then
18701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18702 for ac_dir in $PATH; do
18703 IFS="$lt_save_ifs"
18704 test -z "$ac_dir" && ac_dir=.
18705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18706 lt_cv_path_LD="$ac_dir/$ac_prog"
18707 # Check to see if the program is GNU ld. I'd rather use --version,
18708 # but apparently some variants of GNU ld only accept -v.
18709 # Break only if it was the GNU/non-GNU ld that we prefer.
18710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18711 *GNU* | *'with BFD'*)
18712 test "$with_gnu_ld" != no && break
18715 test "$with_gnu_ld" != yes && break
18717 esac
18719 done
18720 IFS="$lt_save_ifs"
18721 else
18722 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18726 LD="$lt_cv_path_LD"
18727 if test -n "$LD"; then
18728 { echo "$as_me:$LINENO: result: $LD" >&5
18729 echo "${ECHO_T}$LD" >&6; }
18730 else
18731 { echo "$as_me:$LINENO: result: no" >&5
18732 echo "${ECHO_T}no" >&6; }
18734 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18735 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18736 { (exit 1); exit 1; }; }
18737 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18738 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18739 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18743 case `$LD -v 2>&1 </dev/null` in
18744 *GNU* | *'with BFD'*)
18745 lt_cv_prog_gnu_ld=yes
18748 lt_cv_prog_gnu_ld=no
18750 esac
18752 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18753 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18754 with_gnu_ld=$lt_cv_prog_gnu_ld
18758 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18759 # archiving commands below assume that GNU ld is being used.
18760 if test "$with_gnu_ld" = yes; then
18761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18762 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'
18764 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18767 # If archive_cmds runs LD, not CC, wlarc should be empty
18768 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18769 # investigate it a little bit more. (MM)
18770 wlarc='${wl}'
18772 # ancient GNU ld didn't support --whole-archive et. al.
18773 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18774 grep 'no-whole-archive' > /dev/null; then
18775 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18776 else
18777 whole_archive_flag_spec_CXX=
18779 else
18780 with_gnu_ld=no
18781 wlarc=
18783 # A generic and very simple default shared library creation
18784 # command for GNU C++ for the case where it uses the native
18785 # linker, instead of GNU ld. If possible, this setting should
18786 # overridden to take advantage of the native linker features on
18787 # the platform it is being used on.
18788 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18791 # Commands to make compiler produce verbose output that lists
18792 # what "hidden" libraries, object files and flags are used when
18793 # linking a shared library.
18794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18796 else
18797 GXX=no
18798 with_gnu_ld=no
18799 wlarc=
18802 # PORTME: fill in a description of your system's C++ link characteristics
18803 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18805 ld_shlibs_CXX=yes
18806 case $host_os in
18807 aix3*)
18808 # FIXME: insert proper C++ library support
18809 ld_shlibs_CXX=no
18811 aix4* | aix5*)
18812 if test "$host_cpu" = ia64; then
18813 # On IA64, the linker does run time linking by default, so we don't
18814 # have to do anything special.
18815 aix_use_runtimelinking=no
18816 exp_sym_flag='-Bexport'
18817 no_entry_flag=""
18818 else
18819 aix_use_runtimelinking=no
18821 # Test if we are trying to use run time linking or normal
18822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18823 # need to do runtime linking.
18824 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18825 for ld_flag in $LDFLAGS; do
18826 case $ld_flag in
18827 *-brtl*)
18828 aix_use_runtimelinking=yes
18829 break
18831 esac
18832 done
18834 esac
18836 exp_sym_flag='-bexport'
18837 no_entry_flag='-bnoentry'
18840 # When large executables or shared objects are built, AIX ld can
18841 # have problems creating the table of contents. If linking a library
18842 # or program results in "error TOC overflow" add -mminimal-toc to
18843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18846 archive_cmds_CXX=''
18847 hardcode_direct_CXX=yes
18848 hardcode_libdir_separator_CXX=':'
18849 link_all_deplibs_CXX=yes
18851 if test "$GXX" = yes; then
18852 case $host_os in aix4.[012]|aix4.[012].*)
18853 # We only want to do this on AIX 4.2 and lower, the check
18854 # below for broken collect2 doesn't work under 4.3+
18855 collect2name=`${CC} -print-prog-name=collect2`
18856 if test -f "$collect2name" && \
18857 strings "$collect2name" | grep resolve_lib_name >/dev/null
18858 then
18859 # We have reworked collect2
18860 hardcode_direct_CXX=yes
18861 else
18862 # We have old collect2
18863 hardcode_direct_CXX=unsupported
18864 # It fails to find uninstalled libraries when the uninstalled
18865 # path is not listed in the libpath. Setting hardcode_minus_L
18866 # to unsupported forces relinking
18867 hardcode_minus_L_CXX=yes
18868 hardcode_libdir_flag_spec_CXX='-L$libdir'
18869 hardcode_libdir_separator_CXX=
18872 esac
18873 shared_flag='-shared'
18874 if test "$aix_use_runtimelinking" = yes; then
18875 shared_flag="$shared_flag "'${wl}-G'
18877 else
18878 # not using gcc
18879 if test "$host_cpu" = ia64; then
18880 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18881 # chokes on -Wl,-G. The following line is correct:
18882 shared_flag='-G'
18883 else
18884 if test "$aix_use_runtimelinking" = yes; then
18885 shared_flag='${wl}-G'
18886 else
18887 shared_flag='${wl}-bM:SRE'
18892 # It seems that -bexpall does not export symbols beginning with
18893 # underscore (_), so it is better to generate a list of symbols to export.
18894 always_export_symbols_CXX=yes
18895 if test "$aix_use_runtimelinking" = yes; then
18896 # Warning - without using the other runtime loading flags (-brtl),
18897 # -berok will link without error, but may produce a broken library.
18898 allow_undefined_flag_CXX='-berok'
18899 # Determine the default libpath from the value encoded in an empty executable.
18900 cat >conftest.$ac_ext <<_ACEOF
18901 /* confdefs.h. */
18902 _ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18908 main ()
18912 return 0;
18914 _ACEOF
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18920 esac
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>conftest.er1
18923 ac_status=$?
18924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18930 { (case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_try") 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; } &&
18939 { ac_try='test -s conftest$ac_exeext'
18940 { (case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943 esac
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_try") 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
18950 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18952 # Check for a 64-bit object if we didn't find anything.
18953 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; }
18954 }'`; fi
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18962 rm -f core conftest.err conftest.$ac_objext \
18963 conftest$ac_exeext conftest.$ac_ext
18964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18966 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18968 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"
18969 else
18970 if test "$host_cpu" = ia64; then
18971 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18972 allow_undefined_flag_CXX="-z nodefs"
18973 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"
18974 else
18975 # Determine the default libpath from the value encoded in an empty executable.
18976 cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h. */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18984 main ()
18988 return 0;
18990 _ACEOF
18991 rm -f conftest.$ac_objext conftest$ac_exeext
18992 if { (ac_try="$ac_link"
18993 case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_link") 2>conftest.er1
18999 ac_status=$?
19000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
19005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19009 esac
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19012 ac_status=$?
19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; } &&
19015 { ac_try='test -s conftest$ac_exeext'
19016 { (case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_try") 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; }; then
19026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19028 # Check for a 64-bit object if we didn't find anything.
19029 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; }
19030 }'`; fi
19031 else
19032 echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19038 rm -f core conftest.err conftest.$ac_objext \
19039 conftest$ac_exeext conftest.$ac_ext
19040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19042 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19043 # Warning - without using the other run time loading flags,
19044 # -berok will link without error, but may produce a broken library.
19045 no_undefined_flag_CXX=' ${wl}-bernotok'
19046 allow_undefined_flag_CXX=' ${wl}-berok'
19047 # Exported symbols can be pulled into shared objects from archives
19048 whole_archive_flag_spec_CXX='$convenience'
19049 archive_cmds_need_lc_CXX=yes
19050 # This is similar to how AIX traditionally builds its shared libraries.
19051 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'
19056 beos*)
19057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19058 allow_undefined_flag_CXX=unsupported
19059 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19060 # support --undefined. This deserves some investigation. FIXME
19061 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19062 else
19063 ld_shlibs_CXX=no
19067 chorus*)
19068 case $cc_basename in
19070 # FIXME: insert proper C++ library support
19071 ld_shlibs_CXX=no
19073 esac
19076 cygwin* | mingw* | pw32*)
19077 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19078 # as there is no search path for DLLs.
19079 hardcode_libdir_flag_spec_CXX='-L$libdir'
19080 allow_undefined_flag_CXX=unsupported
19081 always_export_symbols_CXX=no
19082 enable_shared_with_static_runtimes_CXX=yes
19084 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19085 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'
19086 # If the export-symbols file already is a .def file (1st line
19087 # is EXPORTS), use it as is; otherwise, prepend...
19088 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19089 cp $export_symbols $output_objdir/$soname.def;
19090 else
19091 echo EXPORTS > $output_objdir/$soname.def;
19092 cat $export_symbols >> $output_objdir/$soname.def;
19094 $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'
19095 else
19096 ld_shlibs_CXX=no
19099 darwin* | rhapsody*)
19100 case $host_os in
19101 rhapsody* | darwin1.[012])
19102 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19104 *) # Darwin 1.3 on
19105 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19106 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19107 else
19108 case ${MACOSX_DEPLOYMENT_TARGET} in
19109 10.[012])
19110 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19112 10.*)
19113 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19115 esac
19118 esac
19119 archive_cmds_need_lc_CXX=no
19120 hardcode_direct_CXX=no
19121 hardcode_automatic_CXX=yes
19122 hardcode_shlibpath_var_CXX=unsupported
19123 whole_archive_flag_spec_CXX=''
19124 link_all_deplibs_CXX=yes
19126 if test "$GXX" = yes ; then
19127 lt_int_apple_cc_single_mod=no
19128 output_verbose_link_cmd='echo'
19129 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19130 lt_int_apple_cc_single_mod=yes
19132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19133 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19134 else
19135 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'
19137 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19139 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19140 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}'
19141 else
19142 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}'
19144 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}'
19145 else
19146 case $cc_basename in
19147 xlc*)
19148 output_verbose_link_cmd='echo'
19149 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'
19150 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19151 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19152 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}'
19153 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}'
19156 ld_shlibs_CXX=no
19158 esac
19162 dgux*)
19163 case $cc_basename in
19164 ec++*)
19165 # FIXME: insert proper C++ library support
19166 ld_shlibs_CXX=no
19168 ghcx*)
19169 # Green Hills C++ Compiler
19170 # FIXME: insert proper C++ library support
19171 ld_shlibs_CXX=no
19174 # FIXME: insert proper C++ library support
19175 ld_shlibs_CXX=no
19177 esac
19179 freebsd[12]*)
19180 # C++ shared libraries reported to be fairly broken before switch to ELF
19181 ld_shlibs_CXX=no
19183 freebsd-elf*)
19184 archive_cmds_need_lc_CXX=no
19186 freebsd* | kfreebsd*-gnu | dragonfly*)
19187 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19188 # conventions
19189 ld_shlibs_CXX=yes
19191 gnu*)
19193 hpux9*)
19194 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19195 hardcode_libdir_separator_CXX=:
19196 export_dynamic_flag_spec_CXX='${wl}-E'
19197 hardcode_direct_CXX=yes
19198 hardcode_minus_L_CXX=yes # Not in the search PATH,
19199 # but as the default
19200 # location of the library.
19202 case $cc_basename in
19203 CC*)
19204 # FIXME: insert proper C++ library support
19205 ld_shlibs_CXX=no
19207 aCC*)
19208 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'
19209 # Commands to make compiler produce verbose output that lists
19210 # what "hidden" libraries, object files and flags are used when
19211 # linking a shared library.
19213 # There doesn't appear to be a way to prevent this compiler from
19214 # explicitly linking system object files so we need to strip them
19215 # from the output so that they don't get included in the library
19216 # dependencies.
19217 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'
19220 if test "$GXX" = yes; then
19221 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'
19222 else
19223 # FIXME: insert proper C++ library support
19224 ld_shlibs_CXX=no
19227 esac
19229 hpux10*|hpux11*)
19230 if test $with_gnu_ld = no; then
19231 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19232 hardcode_libdir_separator_CXX=:
19234 case $host_cpu in
19235 hppa*64*|ia64*)
19236 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19239 export_dynamic_flag_spec_CXX='${wl}-E'
19241 esac
19243 case $host_cpu in
19244 hppa*64*|ia64*)
19245 hardcode_direct_CXX=no
19246 hardcode_shlibpath_var_CXX=no
19249 hardcode_direct_CXX=yes
19250 hardcode_minus_L_CXX=yes # Not in the search PATH,
19251 # but as the default
19252 # location of the library.
19254 esac
19256 case $cc_basename in
19257 CC*)
19258 # FIXME: insert proper C++ library support
19259 ld_shlibs_CXX=no
19261 aCC*)
19262 case $host_cpu in
19263 hppa*64*)
19264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19266 ia64*)
19267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19270 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19272 esac
19273 # Commands to make compiler produce verbose output that lists
19274 # what "hidden" libraries, object files and flags are used when
19275 # linking a shared library.
19277 # There doesn't appear to be a way to prevent this compiler from
19278 # explicitly linking system object files so we need to strip them
19279 # from the output so that they don't get included in the library
19280 # dependencies.
19281 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'
19284 if test "$GXX" = yes; then
19285 if test $with_gnu_ld = no; then
19286 case $host_cpu in
19287 hppa*64*)
19288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19290 ia64*)
19291 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19294 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'
19296 esac
19298 else
19299 # FIXME: insert proper C++ library support
19300 ld_shlibs_CXX=no
19303 esac
19305 interix3*)
19306 hardcode_direct_CXX=no
19307 hardcode_shlibpath_var_CXX=no
19308 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19309 export_dynamic_flag_spec_CXX='${wl}-E'
19310 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19311 # Instead, shared libraries are loaded at an image base (0x10000000 by
19312 # default) and relocated if they conflict, which is a slow very memory
19313 # consuming and fragmenting process. To avoid this, we pick a random,
19314 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19315 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19316 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'
19317 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'
19319 irix5* | irix6*)
19320 case $cc_basename in
19321 CC*)
19322 # SGI C++
19323 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'
19325 # Archives containing C++ object files must be created using
19326 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19327 # necessary to make sure instantiated templates are included
19328 # in the archive.
19329 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19332 if test "$GXX" = yes; then
19333 if test "$with_gnu_ld" = no; then
19334 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'
19335 else
19336 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'
19339 link_all_deplibs_CXX=yes
19341 esac
19342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19343 hardcode_libdir_separator_CXX=:
19345 linux*)
19346 case $cc_basename in
19347 KCC*)
19348 # Kuck and Associates, Inc. (KAI) C++ Compiler
19350 # KCC will only create a shared library if the output file
19351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19352 # to its proper name (with version) after linking.
19353 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'
19354 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'
19355 # Commands to make compiler produce verbose output that lists
19356 # what "hidden" libraries, object files and flags are used when
19357 # linking a shared library.
19359 # There doesn't appear to be a way to prevent this compiler from
19360 # explicitly linking system object files so we need to strip them
19361 # from the output so that they don't get included in the library
19362 # dependencies.
19363 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'
19365 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19368 # Archives containing C++ object files must be created using
19369 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19370 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19372 icpc*)
19373 # Intel C++
19374 with_gnu_ld=yes
19375 # version 8.0 and above of icpc choke on multiply defined symbols
19376 # if we add $predep_objects and $postdep_objects, however 7.1 and
19377 # earlier do not add the objects themselves.
19378 case `$CC -V 2>&1` in
19379 *"Version 7."*)
19380 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19381 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'
19383 *) # Version 8.0 or newer
19384 tmp_idyn=
19385 case $host_cpu in
19386 ia64*) tmp_idyn=' -i_dynamic';;
19387 esac
19388 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19389 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'
19391 esac
19392 archive_cmds_need_lc_CXX=no
19393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19397 pgCC*)
19398 # Portland Group C++ compiler
19399 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19400 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'
19402 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19404 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'
19406 cxx*)
19407 # Compaq C++
19408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19409 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'
19411 runpath_var=LD_RUN_PATH
19412 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19413 hardcode_libdir_separator_CXX=:
19415 # Commands to make compiler produce verbose output that lists
19416 # what "hidden" libraries, object files and flags are used when
19417 # linking a shared library.
19419 # There doesn't appear to be a way to prevent this compiler from
19420 # explicitly linking system object files so we need to strip them
19421 # from the output so that they don't get included in the library
19422 # dependencies.
19423 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'
19425 esac
19427 lynxos*)
19428 # FIXME: insert proper C++ library support
19429 ld_shlibs_CXX=no
19431 m88k*)
19432 # FIXME: insert proper C++ library support
19433 ld_shlibs_CXX=no
19435 mvs*)
19436 case $cc_basename in
19437 cxx*)
19438 # FIXME: insert proper C++ library support
19439 ld_shlibs_CXX=no
19442 # FIXME: insert proper C++ library support
19443 ld_shlibs_CXX=no
19445 esac
19447 netbsd*)
19448 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19449 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19450 wlarc=
19451 hardcode_libdir_flag_spec_CXX='-R$libdir'
19452 hardcode_direct_CXX=yes
19453 hardcode_shlibpath_var_CXX=no
19455 # Workaround some broken pre-1.5 toolchains
19456 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19458 openbsd2*)
19459 # C++ shared libraries are fairly broken
19460 ld_shlibs_CXX=no
19462 openbsd*)
19463 hardcode_direct_CXX=yes
19464 hardcode_shlibpath_var_CXX=no
19465 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19466 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19467 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19468 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19469 export_dynamic_flag_spec_CXX='${wl}-E'
19470 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19472 output_verbose_link_cmd='echo'
19474 osf3*)
19475 case $cc_basename in
19476 KCC*)
19477 # Kuck and Associates, Inc. (KAI) C++ Compiler
19479 # KCC will only create a shared library if the output file
19480 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19481 # to its proper name (with version) after linking.
19482 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'
19484 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19485 hardcode_libdir_separator_CXX=:
19487 # Archives containing C++ object files must be created using
19488 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19489 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19492 RCC*)
19493 # Rational C++ 2.4.1
19494 # FIXME: insert proper C++ library support
19495 ld_shlibs_CXX=no
19497 cxx*)
19498 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19499 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'
19501 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19502 hardcode_libdir_separator_CXX=:
19504 # Commands to make compiler produce verbose output that lists
19505 # what "hidden" libraries, object files and flags are used when
19506 # linking a shared library.
19508 # There doesn't appear to be a way to prevent this compiler from
19509 # explicitly linking system object files so we need to strip them
19510 # from the output so that they don't get included in the library
19511 # dependencies.
19512 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'
19515 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19516 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19517 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'
19519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19520 hardcode_libdir_separator_CXX=:
19522 # Commands to make compiler produce verbose output that lists
19523 # what "hidden" libraries, object files and flags are used when
19524 # linking a shared library.
19525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19527 else
19528 # FIXME: insert proper C++ library support
19529 ld_shlibs_CXX=no
19532 esac
19534 osf4* | osf5*)
19535 case $cc_basename in
19536 KCC*)
19537 # Kuck and Associates, Inc. (KAI) C++ Compiler
19539 # KCC will only create a shared library if the output file
19540 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19541 # to its proper name (with version) after linking.
19542 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'
19544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19545 hardcode_libdir_separator_CXX=:
19547 # Archives containing C++ object files must be created using
19548 # the KAI C++ compiler.
19549 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19551 RCC*)
19552 # Rational C++ 2.4.1
19553 # FIXME: insert proper C++ library support
19554 ld_shlibs_CXX=no
19556 cxx*)
19557 allow_undefined_flag_CXX=' -expect_unresolved \*'
19558 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'
19559 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19560 echo "-hidden">> $lib.exp~
19561 $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~
19562 $rm $lib.exp'
19564 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19565 hardcode_libdir_separator_CXX=:
19567 # Commands to make compiler produce verbose output that lists
19568 # what "hidden" libraries, object files and flags are used when
19569 # linking a shared library.
19571 # There doesn't appear to be a way to prevent this compiler from
19572 # explicitly linking system object files so we need to strip them
19573 # from the output so that they don't get included in the library
19574 # dependencies.
19575 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'
19578 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19579 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19580 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'
19582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19583 hardcode_libdir_separator_CXX=:
19585 # Commands to make compiler produce verbose output that lists
19586 # what "hidden" libraries, object files and flags are used when
19587 # linking a shared library.
19588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19590 else
19591 # FIXME: insert proper C++ library support
19592 ld_shlibs_CXX=no
19595 esac
19597 psos*)
19598 # FIXME: insert proper C++ library support
19599 ld_shlibs_CXX=no
19601 sunos4*)
19602 case $cc_basename in
19603 CC*)
19604 # Sun C++ 4.x
19605 # FIXME: insert proper C++ library support
19606 ld_shlibs_CXX=no
19608 lcc*)
19609 # Lucid
19610 # FIXME: insert proper C++ library support
19611 ld_shlibs_CXX=no
19614 # FIXME: insert proper C++ library support
19615 ld_shlibs_CXX=no
19617 esac
19619 solaris*)
19620 case $cc_basename in
19621 CC*)
19622 # Sun C++ 4.2, 5.x and Centerline C++
19623 archive_cmds_need_lc_CXX=yes
19624 no_undefined_flag_CXX=' -zdefs'
19625 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19626 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19627 $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'
19629 hardcode_libdir_flag_spec_CXX='-R$libdir'
19630 hardcode_shlibpath_var_CXX=no
19631 case $host_os in
19632 solaris2.[0-5] | solaris2.[0-5].*) ;;
19634 # The C++ compiler is used as linker so we must use $wl
19635 # flag to pass the commands to the underlying system
19636 # linker. We must also pass each convience library through
19637 # to the system linker between allextract/defaultextract.
19638 # The C++ compiler will combine linker options so we
19639 # cannot just pass the convience library names through
19640 # without $wl.
19641 # Supported since Solaris 2.6 (maybe 2.5.1?)
19642 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'
19644 esac
19645 link_all_deplibs_CXX=yes
19647 output_verbose_link_cmd='echo'
19649 # Archives containing C++ object files must be created using
19650 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19651 # necessary to make sure instantiated templates are included
19652 # in the archive.
19653 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19655 gcx*)
19656 # Green Hills C++ Compiler
19657 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19659 # The C++ compiler must be used to create the archive.
19660 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19663 # GNU C++ compiler with Solaris linker
19664 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19665 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19666 if $CC --version | grep -v '^2\.7' > /dev/null; then
19667 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19668 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19669 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19671 # Commands to make compiler produce verbose output that lists
19672 # what "hidden" libraries, object files and flags are used when
19673 # linking a shared library.
19674 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19675 else
19676 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19677 # platform.
19678 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19679 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19680 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19682 # Commands to make compiler produce verbose output that lists
19683 # what "hidden" libraries, object files and flags are used when
19684 # linking a shared library.
19685 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19688 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19691 esac
19693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19694 no_undefined_flag_CXX='${wl}-z,text'
19695 archive_cmds_need_lc_CXX=no
19696 hardcode_shlibpath_var_CXX=no
19697 runpath_var='LD_RUN_PATH'
19699 case $cc_basename in
19700 CC*)
19701 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19702 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19705 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19706 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19708 esac
19710 sysv5* | sco3.2v5* | sco5v6*)
19711 # Note: We can NOT use -z defs as we might desire, because we do not
19712 # link with -lc, and that would cause any symbols used from libc to
19713 # always be unresolved, which means just about no library would
19714 # ever link correctly. If we're not using GNU ld we use -z text
19715 # though, which does catch some bad symbols but isn't as heavy-handed
19716 # as -z defs.
19717 # For security reasons, it is highly recommended that you always
19718 # use absolute paths for naming shared libraries, and exclude the
19719 # DT_RUNPATH tag from executables and libraries. But doing so
19720 # requires that you compile everything twice, which is a pain.
19721 # So that behaviour is only enabled if SCOABSPATH is set to a
19722 # non-empty value in the environment. Most likely only useful for
19723 # creating official distributions of packages.
19724 # This is a hack until libtool officially supports absolute path
19725 # names for shared libraries.
19726 no_undefined_flag_CXX='${wl}-z,text'
19727 allow_undefined_flag_CXX='${wl}-z,nodefs'
19728 archive_cmds_need_lc_CXX=no
19729 hardcode_shlibpath_var_CXX=no
19730 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19731 hardcode_libdir_separator_CXX=':'
19732 link_all_deplibs_CXX=yes
19733 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19734 runpath_var='LD_RUN_PATH'
19736 case $cc_basename in
19737 CC*)
19738 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19739 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19742 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19743 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19745 esac
19747 tandem*)
19748 case $cc_basename in
19749 NCC*)
19750 # NonStop-UX NCC 3.20
19751 # FIXME: insert proper C++ library support
19752 ld_shlibs_CXX=no
19755 # FIXME: insert proper C++ library support
19756 ld_shlibs_CXX=no
19758 esac
19760 vxworks*)
19761 # FIXME: insert proper C++ library support
19762 ld_shlibs_CXX=no
19765 # FIXME: insert proper C++ library support
19766 ld_shlibs_CXX=no
19768 esac
19769 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19770 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19771 test "$ld_shlibs_CXX" = no && can_build_shared=no
19773 GCC_CXX="$GXX"
19774 LD_CXX="$LD"
19777 cat > conftest.$ac_ext <<EOF
19778 class Foo
19780 public:
19781 Foo (void) { a = 0; }
19782 private:
19783 int a;
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788 (eval $ac_compile) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; then
19792 # Parse the compiler output and extract the necessary
19793 # objects, libraries and library flags.
19795 # Sentinel used to keep track of whether or not we are before
19796 # the conftest object file.
19797 pre_test_object_deps_done=no
19799 # The `*' in the case matches for architectures that use `case' in
19800 # $output_verbose_cmd can trigger glob expansion during the loop
19801 # eval without this substitution.
19802 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19804 for p in `eval $output_verbose_link_cmd`; do
19805 case $p in
19807 -L* | -R* | -l*)
19808 # Some compilers place space between "-{L,R}" and the path.
19809 # Remove the space.
19810 if test $p = "-L" \
19811 || test $p = "-R"; then
19812 prev=$p
19813 continue
19814 else
19815 prev=
19818 if test "$pre_test_object_deps_done" = no; then
19819 case $p in
19820 -L* | -R*)
19821 # Internal compiler library paths should come after those
19822 # provided the user. The postdeps already come after the
19823 # user supplied libs so there is no need to process them.
19824 if test -z "$compiler_lib_search_path_CXX"; then
19825 compiler_lib_search_path_CXX="${prev}${p}"
19826 else
19827 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19830 # The "-l" case would never come before the object being
19831 # linked, so don't bother handling this case.
19832 esac
19833 else
19834 if test -z "$postdeps_CXX"; then
19835 postdeps_CXX="${prev}${p}"
19836 else
19837 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19842 *.$objext)
19843 # This assumes that the test object file only shows up
19844 # once in the compiler output.
19845 if test "$p" = "conftest.$objext"; then
19846 pre_test_object_deps_done=yes
19847 continue
19850 if test "$pre_test_object_deps_done" = no; then
19851 if test -z "$predep_objects_CXX"; then
19852 predep_objects_CXX="$p"
19853 else
19854 predep_objects_CXX="$predep_objects_CXX $p"
19856 else
19857 if test -z "$postdep_objects_CXX"; then
19858 postdep_objects_CXX="$p"
19859 else
19860 postdep_objects_CXX="$postdep_objects_CXX $p"
19865 *) ;; # Ignore the rest.
19867 esac
19868 done
19870 # Clean up.
19871 rm -f a.out a.exe
19872 else
19873 echo "libtool.m4: error: problem compiling CXX test program"
19876 $rm -f confest.$objext
19878 # PORTME: override above test on systems where it is broken
19879 case $host_os in
19880 interix3*)
19881 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19882 # hack all around it, let's just trust "g++" to DTRT.
19883 predep_objects_CXX=
19884 postdep_objects_CXX=
19885 postdeps_CXX=
19888 solaris*)
19889 case $cc_basename in
19890 CC*)
19891 # Adding this requires a known-good setup of shared libraries for
19892 # Sun compiler versions before 5.6, else PIC objects from an old
19893 # archive will be linked into the output, leading to subtle bugs.
19894 postdeps_CXX='-lCstd -lCrun'
19896 esac
19898 esac
19901 case " $postdeps_CXX " in
19902 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19903 esac
19905 lt_prog_compiler_wl_CXX=
19906 lt_prog_compiler_pic_CXX=
19907 lt_prog_compiler_static_CXX=
19909 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19910 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19912 # C++ specific cases for pic, static, wl, etc.
19913 if test "$GXX" = yes; then
19914 lt_prog_compiler_wl_CXX='-Wl,'
19915 lt_prog_compiler_static_CXX='-static'
19917 case $host_os in
19918 aix*)
19919 # All AIX code is PIC.
19920 if test "$host_cpu" = ia64; then
19921 # AIX 5 now supports IA64 processor
19922 lt_prog_compiler_static_CXX='-Bstatic'
19925 amigaos*)
19926 # FIXME: we need at least 68020 code to build shared libraries, but
19927 # adding the `-m68020' flag to GCC prevents building anything better,
19928 # like `-m68040'.
19929 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19931 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19932 # PIC is the default for these OSes.
19934 mingw* | os2* | pw32*)
19935 # This hack is so that the source file can tell whether it is being
19936 # built for inclusion in a dll (and should export symbols for example).
19937 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19939 darwin* | rhapsody*)
19940 # PIC is the default on this platform
19941 # Common symbols not allowed in MH_DYLIB files
19942 lt_prog_compiler_pic_CXX='-fno-common'
19944 *djgpp*)
19945 # DJGPP does not support shared libraries at all
19946 lt_prog_compiler_pic_CXX=
19948 interix3*)
19949 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19950 # Instead, we relocate shared libraries at runtime.
19952 sysv4*MP*)
19953 if test -d /usr/nec; then
19954 lt_prog_compiler_pic_CXX=-Kconform_pic
19957 hpux*)
19958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19959 # not for PA HP-UX.
19960 case $host_cpu in
19961 hppa*64*|ia64*)
19964 lt_prog_compiler_pic_CXX='-fPIC'
19966 esac
19969 lt_prog_compiler_pic_CXX='-fPIC'
19971 esac
19972 else
19973 case $host_os in
19974 aix4* | aix5*)
19975 # All AIX code is PIC.
19976 if test "$host_cpu" = ia64; then
19977 # AIX 5 now supports IA64 processor
19978 lt_prog_compiler_static_CXX='-Bstatic'
19979 else
19980 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19983 chorus*)
19984 case $cc_basename in
19985 cxch68*)
19986 # Green Hills C++ Compiler
19987 # _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"
19989 esac
19991 darwin*)
19992 # PIC is the default on this platform
19993 # Common symbols not allowed in MH_DYLIB files
19994 case $cc_basename in
19995 xlc*)
19996 lt_prog_compiler_pic_CXX='-qnocommon'
19997 lt_prog_compiler_wl_CXX='-Wl,'
19999 esac
20001 dgux*)
20002 case $cc_basename in
20003 ec++*)
20004 lt_prog_compiler_pic_CXX='-KPIC'
20006 ghcx*)
20007 # Green Hills C++ Compiler
20008 lt_prog_compiler_pic_CXX='-pic'
20012 esac
20014 freebsd* | kfreebsd*-gnu | dragonfly*)
20015 # FreeBSD uses GNU C++
20017 hpux9* | hpux10* | hpux11*)
20018 case $cc_basename in
20019 CC*)
20020 lt_prog_compiler_wl_CXX='-Wl,'
20021 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20022 if test "$host_cpu" != ia64; then
20023 lt_prog_compiler_pic_CXX='+Z'
20026 aCC*)
20027 lt_prog_compiler_wl_CXX='-Wl,'
20028 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20029 case $host_cpu in
20030 hppa*64*|ia64*)
20031 # +Z the default
20034 lt_prog_compiler_pic_CXX='+Z'
20036 esac
20040 esac
20042 interix*)
20043 # This is c89, which is MS Visual C++ (no shared libs)
20044 # Anyone wants to do a port?
20046 irix5* | irix6* | nonstopux*)
20047 case $cc_basename in
20048 CC*)
20049 lt_prog_compiler_wl_CXX='-Wl,'
20050 lt_prog_compiler_static_CXX='-non_shared'
20051 # CC pic flag -KPIC is the default.
20055 esac
20057 linux*)
20058 case $cc_basename in
20059 KCC*)
20060 # KAI C++ Compiler
20061 lt_prog_compiler_wl_CXX='--backend -Wl,'
20062 lt_prog_compiler_pic_CXX='-fPIC'
20064 icpc* | ecpc*)
20065 # Intel C++
20066 lt_prog_compiler_wl_CXX='-Wl,'
20067 lt_prog_compiler_pic_CXX='-KPIC'
20068 lt_prog_compiler_static_CXX='-static'
20070 pgCC*)
20071 # Portland Group C++ compiler.
20072 lt_prog_compiler_wl_CXX='-Wl,'
20073 lt_prog_compiler_pic_CXX='-fpic'
20074 lt_prog_compiler_static_CXX='-Bstatic'
20076 cxx*)
20077 # Compaq C++
20078 # Make sure the PIC flag is empty. It appears that all Alpha
20079 # Linux and Compaq Tru64 Unix objects are PIC.
20080 lt_prog_compiler_pic_CXX=
20081 lt_prog_compiler_static_CXX='-non_shared'
20085 esac
20087 lynxos*)
20089 m88k*)
20091 mvs*)
20092 case $cc_basename in
20093 cxx*)
20094 lt_prog_compiler_pic_CXX='-W c,exportall'
20098 esac
20100 netbsd*)
20102 osf3* | osf4* | osf5*)
20103 case $cc_basename in
20104 KCC*)
20105 lt_prog_compiler_wl_CXX='--backend -Wl,'
20107 RCC*)
20108 # Rational C++ 2.4.1
20109 lt_prog_compiler_pic_CXX='-pic'
20111 cxx*)
20112 # Digital/Compaq C++
20113 lt_prog_compiler_wl_CXX='-Wl,'
20114 # Make sure the PIC flag is empty. It appears that all Alpha
20115 # Linux and Compaq Tru64 Unix objects are PIC.
20116 lt_prog_compiler_pic_CXX=
20117 lt_prog_compiler_static_CXX='-non_shared'
20121 esac
20123 psos*)
20125 solaris*)
20126 case $cc_basename in
20127 CC*)
20128 # Sun C++ 4.2, 5.x and Centerline C++
20129 lt_prog_compiler_pic_CXX='-KPIC'
20130 lt_prog_compiler_static_CXX='-Bstatic'
20131 lt_prog_compiler_wl_CXX='-Qoption ld '
20133 gcx*)
20134 # Green Hills C++ Compiler
20135 lt_prog_compiler_pic_CXX='-PIC'
20139 esac
20141 sunos4*)
20142 case $cc_basename in
20143 CC*)
20144 # Sun C++ 4.x
20145 lt_prog_compiler_pic_CXX='-pic'
20146 lt_prog_compiler_static_CXX='-Bstatic'
20148 lcc*)
20149 # Lucid
20150 lt_prog_compiler_pic_CXX='-pic'
20154 esac
20156 tandem*)
20157 case $cc_basename in
20158 NCC*)
20159 # NonStop-UX NCC 3.20
20160 lt_prog_compiler_pic_CXX='-KPIC'
20164 esac
20166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20167 case $cc_basename in
20168 CC*)
20169 lt_prog_compiler_wl_CXX='-Wl,'
20170 lt_prog_compiler_pic_CXX='-KPIC'
20171 lt_prog_compiler_static_CXX='-Bstatic'
20173 esac
20175 vxworks*)
20178 lt_prog_compiler_can_build_shared_CXX=no
20180 esac
20183 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20184 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20187 # Check to make sure the PIC flag actually works.
20189 if test -n "$lt_prog_compiler_pic_CXX"; then
20191 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20192 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20193 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196 lt_prog_compiler_pic_works_CXX=no
20197 ac_outfile=conftest.$ac_objext
20198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20199 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20200 # Insert the option either (1) after the last *FLAGS variable, or
20201 # (2) before a word containing "conftest.", or (3) at the end.
20202 # Note that $ac_compile itself does not contain backslashes and begins
20203 # with a dollar sign (not a hyphen), so the echo should work correctly.
20204 # The option is referenced via a variable to avoid confusing sed.
20205 lt_compile=`echo "$ac_compile" | $SED \
20206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20208 -e 's:$: $lt_compiler_flag:'`
20209 (eval echo "\"\$as_me:20209: $lt_compile\"" >&5)
20210 (eval "$lt_compile" 2>conftest.err)
20211 ac_status=$?
20212 cat conftest.err >&5
20213 echo "$as_me:20213: \$? = $ac_status" >&5
20214 if (exit $ac_status) && test -s "$ac_outfile"; then
20215 # The compiler can only warn and ignore the option if not recognized
20216 # So say no if there are warnings other than the usual output.
20217 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20220 lt_prog_compiler_pic_works_CXX=yes
20223 $rm conftest*
20226 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20227 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20229 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20230 case $lt_prog_compiler_pic_CXX in
20231 "" | " "*) ;;
20232 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20233 esac
20234 else
20235 lt_prog_compiler_pic_CXX=
20236 lt_prog_compiler_can_build_shared_CXX=no
20240 case $host_os in
20241 # For platforms which do not support PIC, -DPIC is meaningless:
20242 *djgpp*)
20243 lt_prog_compiler_pic_CXX=
20246 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20248 esac
20251 # Check to make sure the static flag actually works.
20253 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20254 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20255 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20256 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259 lt_prog_compiler_static_works_CXX=no
20260 save_LDFLAGS="$LDFLAGS"
20261 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20262 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20264 # The linker can only warn and ignore the option if not recognized
20265 # So say no if there are warnings
20266 if test -s conftest.err; then
20267 # Append any errors to the config.log.
20268 cat conftest.err 1>&5
20269 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20271 if diff conftest.exp conftest.er2 >/dev/null; then
20272 lt_prog_compiler_static_works_CXX=yes
20274 else
20275 lt_prog_compiler_static_works_CXX=yes
20278 $rm conftest*
20279 LDFLAGS="$save_LDFLAGS"
20282 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20283 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20285 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20287 else
20288 lt_prog_compiler_static_CXX=
20292 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20293 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20294 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20296 else
20297 lt_cv_prog_compiler_c_o_CXX=no
20298 $rm -r conftest 2>/dev/null
20299 mkdir conftest
20300 cd conftest
20301 mkdir out
20302 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20304 lt_compiler_flag="-o out/conftest2.$ac_objext"
20305 # Insert the option either (1) after the last *FLAGS variable, or
20306 # (2) before a word containing "conftest.", or (3) at the end.
20307 # Note that $ac_compile itself does not contain backslashes and begins
20308 # with a dollar sign (not a hyphen), so the echo should work correctly.
20309 lt_compile=`echo "$ac_compile" | $SED \
20310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20312 -e 's:$: $lt_compiler_flag:'`
20313 (eval echo "\"\$as_me:20313: $lt_compile\"" >&5)
20314 (eval "$lt_compile" 2>out/conftest.err)
20315 ac_status=$?
20316 cat out/conftest.err >&5
20317 echo "$as_me:20317: \$? = $ac_status" >&5
20318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20319 then
20320 # The compiler can only warn and ignore the option if not recognized
20321 # So say no if there are warnings
20322 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20325 lt_cv_prog_compiler_c_o_CXX=yes
20328 chmod u+w . 2>&5
20329 $rm conftest*
20330 # SGI C++ compiler will create directory out/ii_files/ for
20331 # template instantiation
20332 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20333 $rm out/* && rmdir out
20334 cd ..
20335 rmdir conftest
20336 $rm conftest*
20339 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20340 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20343 hard_links="nottested"
20344 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20345 # do not overwrite the value of need_locks provided by the user
20346 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20347 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20348 hard_links=yes
20349 $rm conftest*
20350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20351 touch conftest.a
20352 ln conftest.a conftest.b 2>&5 || hard_links=no
20353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20354 { echo "$as_me:$LINENO: result: $hard_links" >&5
20355 echo "${ECHO_T}$hard_links" >&6; }
20356 if test "$hard_links" = no; then
20357 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20358 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20359 need_locks=warn
20361 else
20362 need_locks=no
20365 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20366 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20368 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20369 case $host_os in
20370 aix4* | aix5*)
20371 # If we're using GNU nm, then we don't want the "-C" option.
20372 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20373 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20374 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'
20375 else
20376 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'
20379 pw32*)
20380 export_symbols_cmds_CXX="$ltdll_cmds"
20382 cygwin* | mingw*)
20383 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'
20386 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20388 esac
20390 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20391 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20392 test "$ld_shlibs_CXX" = no && can_build_shared=no
20395 # Do we need to explicitly link libc?
20397 case "x$archive_cmds_need_lc_CXX" in
20398 x|xyes)
20399 # Assume -lc should be added
20400 archive_cmds_need_lc_CXX=yes
20402 if test "$enable_shared" = yes && test "$GCC" = yes; then
20403 case $archive_cmds_CXX in
20404 *'~'*)
20405 # FIXME: we may have to deal with multi-command sequences.
20407 '$CC '*)
20408 # Test whether the compiler implicitly links with -lc since on some
20409 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20410 # to ld, don't add -lc before -lgcc.
20411 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20412 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20413 $rm conftest*
20414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20417 (eval $ac_compile) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } 2>conftest.err; then
20421 soname=conftest
20422 lib=conftest
20423 libobjs=conftest.$ac_objext
20424 deplibs=
20425 wl=$lt_prog_compiler_wl_CXX
20426 pic_flag=$lt_prog_compiler_pic_CXX
20427 compiler_flags=-v
20428 linker_flags=-v
20429 verstring=
20430 output_objdir=.
20431 libname=conftest
20432 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20433 allow_undefined_flag_CXX=
20434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20435 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }
20439 then
20440 archive_cmds_need_lc_CXX=no
20441 else
20442 archive_cmds_need_lc_CXX=yes
20444 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20445 else
20446 cat conftest.err 1>&5
20448 $rm conftest*
20449 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20450 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20452 esac
20455 esac
20457 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20458 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20459 library_names_spec=
20460 libname_spec='lib$name'
20461 soname_spec=
20462 shrext_cmds=".so"
20463 postinstall_cmds=
20464 postuninstall_cmds=
20465 finish_cmds=
20466 finish_eval=
20467 shlibpath_var=
20468 shlibpath_overrides_runpath=unknown
20469 version_type=none
20470 dynamic_linker="$host_os ld.so"
20471 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20472 if test "$GCC" = yes; then
20473 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20474 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20475 # if the path contains ";" then we assume it to be the separator
20476 # otherwise default to the standard path separator (i.e. ":") - it is
20477 # assumed that no part of a normal pathname contains ";" but that should
20478 # okay in the real world where ";" in dirpaths is itself problematic.
20479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20480 else
20481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20483 else
20484 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20486 need_lib_prefix=unknown
20487 hardcode_into_libs=no
20489 # when you set need_version to no, make sure it does not cause -set_version
20490 # flags to be left without arguments
20491 need_version=unknown
20493 case $host_os in
20494 aix3*)
20495 version_type=linux
20496 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20497 shlibpath_var=LIBPATH
20499 # AIX 3 has no versioning support, so we append a major version to the name.
20500 soname_spec='${libname}${release}${shared_ext}$major'
20503 aix4* | aix5*)
20504 version_type=linux
20505 need_lib_prefix=no
20506 need_version=no
20507 hardcode_into_libs=yes
20508 if test "$host_cpu" = ia64; then
20509 # AIX 5 supports IA64
20510 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20511 shlibpath_var=LD_LIBRARY_PATH
20512 else
20513 # With GCC up to 2.95.x, collect2 would create an import file
20514 # for dependence libraries. The import file would start with
20515 # the line `#! .'. This would cause the generated library to
20516 # depend on `.', always an invalid library. This was fixed in
20517 # development snapshots of GCC prior to 3.0.
20518 case $host_os in
20519 aix4 | aix4.[01] | aix4.[01].*)
20520 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20521 echo ' yes '
20522 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20524 else
20525 can_build_shared=no
20528 esac
20529 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20530 # soname into executable. Probably we can add versioning support to
20531 # collect2, so additional links can be useful in future.
20532 if test "$aix_use_runtimelinking" = yes; then
20533 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20534 # instead of lib<name>.a to let people know that these are not
20535 # typical AIX shared libraries.
20536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537 else
20538 # We preserve .a as extension for shared libraries through AIX4.2
20539 # and later when we are not doing run time linking.
20540 library_names_spec='${libname}${release}.a $libname.a'
20541 soname_spec='${libname}${release}${shared_ext}$major'
20543 shlibpath_var=LIBPATH
20547 amigaos*)
20548 library_names_spec='$libname.ixlibrary $libname.a'
20549 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20550 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'
20553 beos*)
20554 library_names_spec='${libname}${shared_ext}'
20555 dynamic_linker="$host_os ld.so"
20556 shlibpath_var=LIBRARY_PATH
20559 bsdi[45]*)
20560 version_type=linux
20561 need_version=no
20562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20563 soname_spec='${libname}${release}${shared_ext}$major'
20564 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20565 shlibpath_var=LD_LIBRARY_PATH
20566 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20567 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20568 # the default ld.so.conf also contains /usr/contrib/lib and
20569 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20570 # libtool to hard-code these into programs
20573 cygwin* | mingw* | pw32*)
20574 version_type=windows
20575 shrext_cmds=".dll"
20576 need_version=no
20577 need_lib_prefix=no
20579 case $GCC,$host_os in
20580 yes,cygwin* | yes,mingw* | yes,pw32*)
20581 library_names_spec='$libname.dll.a'
20582 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20583 postinstall_cmds='base_file=`basename \${file}`~
20584 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20585 dldir=$destdir/`dirname \$dlpath`~
20586 test -d \$dldir || mkdir -p \$dldir~
20587 $install_prog $dir/$dlname \$dldir/$dlname~
20588 chmod a+x \$dldir/$dlname'
20589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20590 dlpath=$dir/\$dldll~
20591 $rm \$dlpath'
20592 shlibpath_overrides_runpath=yes
20594 case $host_os in
20595 cygwin*)
20596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20597 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20598 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20600 mingw*)
20601 # MinGW DLLs use traditional 'lib' prefix
20602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20604 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20605 # It is most probably a Windows format PATH printed by
20606 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20607 # path with ; separators, and with drive letters. We can handle the
20608 # drive letters (cygwin fileutils understands them), so leave them,
20609 # especially as we might pass files found there to a mingw objdump,
20610 # which wouldn't understand a cygwinified path. Ahh.
20611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20612 else
20613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20616 pw32*)
20617 # pw32 DLLs use 'pw' prefix rather than 'lib'
20618 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20620 esac
20624 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20626 esac
20627 dynamic_linker='Win32 ld.exe'
20628 # FIXME: first we should search . and the directory the executable is in
20629 shlibpath_var=PATH
20632 darwin* | rhapsody*)
20633 dynamic_linker="$host_os dyld"
20634 version_type=darwin
20635 need_lib_prefix=no
20636 need_version=no
20637 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20638 soname_spec='${libname}${release}${major}$shared_ext'
20639 shlibpath_overrides_runpath=yes
20640 shlibpath_var=DYLD_LIBRARY_PATH
20641 shrext_cmds='.dylib'
20642 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20643 if test "$GCC" = yes; then
20644 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"`
20645 else
20646 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20651 dgux*)
20652 version_type=linux
20653 need_lib_prefix=no
20654 need_version=no
20655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20656 soname_spec='${libname}${release}${shared_ext}$major'
20657 shlibpath_var=LD_LIBRARY_PATH
20660 freebsd1*)
20661 dynamic_linker=no
20664 kfreebsd*-gnu)
20665 version_type=linux
20666 need_lib_prefix=no
20667 need_version=no
20668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20669 soname_spec='${libname}${release}${shared_ext}$major'
20670 shlibpath_var=LD_LIBRARY_PATH
20671 shlibpath_overrides_runpath=no
20672 hardcode_into_libs=yes
20673 dynamic_linker='GNU ld.so'
20676 freebsd* | dragonfly*)
20677 # DragonFly does not have aout. When/if they implement a new
20678 # versioning mechanism, adjust this.
20679 if test -x /usr/bin/objformat; then
20680 objformat=`/usr/bin/objformat`
20681 else
20682 case $host_os in
20683 freebsd[123]*) objformat=aout ;;
20684 *) objformat=elf ;;
20685 esac
20687 version_type=freebsd-$objformat
20688 case $version_type in
20689 freebsd-elf*)
20690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20691 need_version=no
20692 need_lib_prefix=no
20694 freebsd-*)
20695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20696 need_version=yes
20698 esac
20699 shlibpath_var=LD_LIBRARY_PATH
20700 case $host_os in
20701 freebsd2*)
20702 shlibpath_overrides_runpath=yes
20704 freebsd3.[01]* | freebsdelf3.[01]*)
20705 shlibpath_overrides_runpath=yes
20706 hardcode_into_libs=yes
20708 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20709 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20710 shlibpath_overrides_runpath=no
20711 hardcode_into_libs=yes
20713 freebsd*) # from 4.6 on
20714 shlibpath_overrides_runpath=yes
20715 hardcode_into_libs=yes
20717 esac
20720 gnu*)
20721 version_type=linux
20722 need_lib_prefix=no
20723 need_version=no
20724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20725 soname_spec='${libname}${release}${shared_ext}$major'
20726 shlibpath_var=LD_LIBRARY_PATH
20727 hardcode_into_libs=yes
20730 hpux9* | hpux10* | hpux11*)
20731 # Give a soname corresponding to the major version so that dld.sl refuses to
20732 # link against other versions.
20733 version_type=sunos
20734 need_lib_prefix=no
20735 need_version=no
20736 case $host_cpu in
20737 ia64*)
20738 shrext_cmds='.so'
20739 hardcode_into_libs=yes
20740 dynamic_linker="$host_os dld.so"
20741 shlibpath_var=LD_LIBRARY_PATH
20742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20744 soname_spec='${libname}${release}${shared_ext}$major'
20745 if test "X$HPUX_IA64_MODE" = X32; then
20746 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20747 else
20748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20752 hppa*64*)
20753 shrext_cmds='.sl'
20754 hardcode_into_libs=yes
20755 dynamic_linker="$host_os dld.sl"
20756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20759 soname_spec='${libname}${release}${shared_ext}$major'
20760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20764 shrext_cmds='.sl'
20765 dynamic_linker="$host_os dld.sl"
20766 shlibpath_var=SHLIB_PATH
20767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20769 soname_spec='${libname}${release}${shared_ext}$major'
20771 esac
20772 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20773 postinstall_cmds='chmod 555 $lib'
20776 interix3*)
20777 version_type=linux
20778 need_lib_prefix=no
20779 need_version=no
20780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20781 soname_spec='${libname}${release}${shared_ext}$major'
20782 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20783 shlibpath_var=LD_LIBRARY_PATH
20784 shlibpath_overrides_runpath=no
20785 hardcode_into_libs=yes
20788 irix5* | irix6* | nonstopux*)
20789 case $host_os in
20790 nonstopux*) version_type=nonstopux ;;
20792 if test "$lt_cv_prog_gnu_ld" = yes; then
20793 version_type=linux
20794 else
20795 version_type=irix
20796 fi ;;
20797 esac
20798 need_lib_prefix=no
20799 need_version=no
20800 soname_spec='${libname}${release}${shared_ext}$major'
20801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20802 case $host_os in
20803 irix5* | nonstopux*)
20804 libsuff= shlibsuff=
20807 case $LD in # libtool.m4 will add one of these switches to LD
20808 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20809 libsuff= shlibsuff= libmagic=32-bit;;
20810 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20811 libsuff=32 shlibsuff=N32 libmagic=N32;;
20812 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20813 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20814 *) libsuff= shlibsuff= libmagic=never-match;;
20815 esac
20817 esac
20818 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20819 shlibpath_overrides_runpath=no
20820 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20821 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20822 hardcode_into_libs=yes
20825 # No shared lib support for Linux oldld, aout, or coff.
20826 linux*oldld* | linux*aout* | linux*coff*)
20827 dynamic_linker=no
20830 # This must be Linux ELF.
20831 linux*)
20832 version_type=linux
20833 need_lib_prefix=no
20834 need_version=no
20835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20836 soname_spec='${libname}${release}${shared_ext}$major'
20837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20838 shlibpath_var=LD_LIBRARY_PATH
20839 shlibpath_overrides_runpath=no
20840 # This implies no fast_install, which is unacceptable.
20841 # Some rework will be needed to allow for fast_install
20842 # before this can be enabled.
20843 hardcode_into_libs=yes
20845 # Append ld.so.conf contents to the search path
20846 if test -f /etc/ld.so.conf; then
20847 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' ' '`
20848 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20851 # We used to test for /lib/ld.so.1 and disable shared libraries on
20852 # powerpc, because MkLinux only supported shared libraries with the
20853 # GNU dynamic linker. Since this was broken with cross compilers,
20854 # most powerpc-linux boxes support dynamic linking these days and
20855 # people can always --disable-shared, the test was removed, and we
20856 # assume the GNU/Linux dynamic linker is in use.
20857 dynamic_linker='GNU/Linux ld.so'
20860 knetbsd*-gnu)
20861 version_type=linux
20862 need_lib_prefix=no
20863 need_version=no
20864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20865 soname_spec='${libname}${release}${shared_ext}$major'
20866 shlibpath_var=LD_LIBRARY_PATH
20867 shlibpath_overrides_runpath=no
20868 hardcode_into_libs=yes
20869 dynamic_linker='GNU ld.so'
20872 netbsd*)
20873 version_type=sunos
20874 need_lib_prefix=no
20875 need_version=no
20876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20879 dynamic_linker='NetBSD (a.out) ld.so'
20880 else
20881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20882 soname_spec='${libname}${release}${shared_ext}$major'
20883 dynamic_linker='NetBSD ld.elf_so'
20885 shlibpath_var=LD_LIBRARY_PATH
20886 shlibpath_overrides_runpath=yes
20887 hardcode_into_libs=yes
20890 newsos6)
20891 version_type=linux
20892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893 shlibpath_var=LD_LIBRARY_PATH
20894 shlibpath_overrides_runpath=yes
20897 nto-qnx*)
20898 version_type=linux
20899 need_lib_prefix=no
20900 need_version=no
20901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902 soname_spec='${libname}${release}${shared_ext}$major'
20903 shlibpath_var=LD_LIBRARY_PATH
20904 shlibpath_overrides_runpath=yes
20907 openbsd*)
20908 version_type=sunos
20909 sys_lib_dlsearch_path_spec="/usr/lib"
20910 need_lib_prefix=no
20911 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20912 case $host_os in
20913 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20914 *) need_version=no ;;
20915 esac
20916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20917 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20918 shlibpath_var=LD_LIBRARY_PATH
20919 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20920 case $host_os in
20921 openbsd2.[89] | openbsd2.[89].*)
20922 shlibpath_overrides_runpath=no
20925 shlibpath_overrides_runpath=yes
20927 esac
20928 else
20929 shlibpath_overrides_runpath=yes
20933 os2*)
20934 libname_spec='$name'
20935 shrext_cmds=".dll"
20936 need_lib_prefix=no
20937 library_names_spec='$libname${shared_ext} $libname.a'
20938 dynamic_linker='OS/2 ld.exe'
20939 shlibpath_var=LIBPATH
20942 osf3* | osf4* | osf5*)
20943 version_type=osf
20944 need_lib_prefix=no
20945 need_version=no
20946 soname_spec='${libname}${release}${shared_ext}$major'
20947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20948 shlibpath_var=LD_LIBRARY_PATH
20949 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20950 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20953 solaris*)
20954 version_type=linux
20955 need_lib_prefix=no
20956 need_version=no
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath=yes
20961 hardcode_into_libs=yes
20962 # ldd complains unless libraries are executable
20963 postinstall_cmds='chmod +x $lib'
20966 sunos4*)
20967 version_type=sunos
20968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20970 shlibpath_var=LD_LIBRARY_PATH
20971 shlibpath_overrides_runpath=yes
20972 if test "$with_gnu_ld" = yes; then
20973 need_lib_prefix=no
20975 need_version=yes
20978 sysv4 | sysv4.3*)
20979 version_type=linux
20980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20981 soname_spec='${libname}${release}${shared_ext}$major'
20982 shlibpath_var=LD_LIBRARY_PATH
20983 case $host_vendor in
20984 sni)
20985 shlibpath_overrides_runpath=no
20986 need_lib_prefix=no
20987 export_dynamic_flag_spec='${wl}-Blargedynsym'
20988 runpath_var=LD_RUN_PATH
20990 siemens)
20991 need_lib_prefix=no
20993 motorola)
20994 need_lib_prefix=no
20995 need_version=no
20996 shlibpath_overrides_runpath=no
20997 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20999 esac
21002 sysv4*MP*)
21003 if test -d /usr/nec ;then
21004 version_type=linux
21005 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21006 soname_spec='$libname${shared_ext}.$major'
21007 shlibpath_var=LD_LIBRARY_PATH
21011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21012 version_type=freebsd-elf
21013 need_lib_prefix=no
21014 need_version=no
21015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21016 soname_spec='${libname}${release}${shared_ext}$major'
21017 shlibpath_var=LD_LIBRARY_PATH
21018 hardcode_into_libs=yes
21019 if test "$with_gnu_ld" = yes; then
21020 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21021 shlibpath_overrides_runpath=no
21022 else
21023 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21024 shlibpath_overrides_runpath=yes
21025 case $host_os in
21026 sco3.2v5*)
21027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21029 esac
21031 sys_lib_dlsearch_path_spec='/usr/lib'
21034 uts4*)
21035 version_type=linux
21036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec='${libname}${release}${shared_ext}$major'
21038 shlibpath_var=LD_LIBRARY_PATH
21042 dynamic_linker=no
21044 esac
21045 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21046 echo "${ECHO_T}$dynamic_linker" >&6; }
21047 test "$dynamic_linker" = no && can_build_shared=no
21049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21050 if test "$GCC" = yes; then
21051 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21054 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21055 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21056 hardcode_action_CXX=
21057 if test -n "$hardcode_libdir_flag_spec_CXX" || \
21058 test -n "$runpath_var_CXX" || \
21059 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21061 # We can hardcode non-existant directories.
21062 if test "$hardcode_direct_CXX" != no &&
21063 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21064 # have to relink, otherwise we might link with an installed library
21065 # when we should be linking with a yet-to-be-installed one
21066 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21067 test "$hardcode_minus_L_CXX" != no; then
21068 # Linking always hardcodes the temporary library directory.
21069 hardcode_action_CXX=relink
21070 else
21071 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21072 hardcode_action_CXX=immediate
21074 else
21075 # We cannot hardcode anything, or else we can only hardcode existing
21076 # directories.
21077 hardcode_action_CXX=unsupported
21079 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21080 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21082 if test "$hardcode_action_CXX" = relink; then
21083 # Fast installation is not supported
21084 enable_fast_install=no
21085 elif test "$shlibpath_overrides_runpath" = yes ||
21086 test "$enable_shared" = no; then
21087 # Fast installation is not necessary
21088 enable_fast_install=needless
21092 # The else clause should only fire when bootstrapping the
21093 # libtool distribution, otherwise you forgot to ship ltmain.sh
21094 # with your package, and you will get complaints that there are
21095 # no rules to generate ltmain.sh.
21096 if test -f "$ltmain"; then
21097 # See if we are running on zsh, and set the options which allow our commands through
21098 # without removal of \ escapes.
21099 if test -n "${ZSH_VERSION+set}" ; then
21100 setopt NO_GLOB_SUBST
21102 # Now quote all the things that may contain metacharacters while being
21103 # careful not to overquote the AC_SUBSTed values. We take copies of the
21104 # variables and quote the copies for generation of the libtool script.
21105 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21106 SED SHELL STRIP \
21107 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21108 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21109 deplibs_check_method reload_flag reload_cmds need_locks \
21110 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21111 lt_cv_sys_global_symbol_to_c_name_address \
21112 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21113 old_postinstall_cmds old_postuninstall_cmds \
21114 compiler_CXX \
21115 CC_CXX \
21116 LD_CXX \
21117 lt_prog_compiler_wl_CXX \
21118 lt_prog_compiler_pic_CXX \
21119 lt_prog_compiler_static_CXX \
21120 lt_prog_compiler_no_builtin_flag_CXX \
21121 export_dynamic_flag_spec_CXX \
21122 thread_safe_flag_spec_CXX \
21123 whole_archive_flag_spec_CXX \
21124 enable_shared_with_static_runtimes_CXX \
21125 old_archive_cmds_CXX \
21126 old_archive_from_new_cmds_CXX \
21127 predep_objects_CXX \
21128 postdep_objects_CXX \
21129 predeps_CXX \
21130 postdeps_CXX \
21131 compiler_lib_search_path_CXX \
21132 archive_cmds_CXX \
21133 archive_expsym_cmds_CXX \
21134 postinstall_cmds_CXX \
21135 postuninstall_cmds_CXX \
21136 old_archive_from_expsyms_cmds_CXX \
21137 allow_undefined_flag_CXX \
21138 no_undefined_flag_CXX \
21139 export_symbols_cmds_CXX \
21140 hardcode_libdir_flag_spec_CXX \
21141 hardcode_libdir_flag_spec_ld_CXX \
21142 hardcode_libdir_separator_CXX \
21143 hardcode_automatic_CXX \
21144 module_cmds_CXX \
21145 module_expsym_cmds_CXX \
21146 lt_cv_prog_compiler_c_o_CXX \
21147 exclude_expsyms_CXX \
21148 include_expsyms_CXX; do
21150 case $var in
21151 old_archive_cmds_CXX | \
21152 old_archive_from_new_cmds_CXX | \
21153 archive_cmds_CXX | \
21154 archive_expsym_cmds_CXX | \
21155 module_cmds_CXX | \
21156 module_expsym_cmds_CXX | \
21157 old_archive_from_expsyms_cmds_CXX | \
21158 export_symbols_cmds_CXX | \
21159 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21160 postinstall_cmds | postuninstall_cmds | \
21161 old_postinstall_cmds | old_postuninstall_cmds | \
21162 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21163 # Double-quote double-evaled strings.
21164 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21167 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21169 esac
21170 done
21172 case $lt_echo in
21173 *'\$0 --fallback-echo"')
21174 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21176 esac
21178 cfgfile="$ofile"
21180 cat <<__EOF__ >> "$cfgfile"
21181 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21183 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21185 # Shell to use when invoking shell scripts.
21186 SHELL=$lt_SHELL
21188 # Whether or not to build shared libraries.
21189 build_libtool_libs=$enable_shared
21191 # Whether or not to build static libraries.
21192 build_old_libs=$enable_static
21194 # Whether or not to add -lc for building shared libraries.
21195 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21197 # Whether or not to disallow shared libs when runtime libs are static
21198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21200 # Whether or not to optimize for fast installation.
21201 fast_install=$enable_fast_install
21203 # The host system.
21204 host_alias=$host_alias
21205 host=$host
21206 host_os=$host_os
21208 # The build system.
21209 build_alias=$build_alias
21210 build=$build
21211 build_os=$build_os
21213 # An echo program that does not interpret backslashes.
21214 echo=$lt_echo
21216 # The archiver.
21217 AR=$lt_AR
21218 AR_FLAGS=$lt_AR_FLAGS
21220 # A C compiler.
21221 LTCC=$lt_LTCC
21223 # LTCC compiler flags.
21224 LTCFLAGS=$lt_LTCFLAGS
21226 # A language-specific compiler.
21227 CC=$lt_compiler_CXX
21229 # Is the compiler the GNU C compiler?
21230 with_gcc=$GCC_CXX
21232 # An ERE matcher.
21233 EGREP=$lt_EGREP
21235 # The linker used to build libraries.
21236 LD=$lt_LD_CXX
21238 # Whether we need hard or soft links.
21239 LN_S=$lt_LN_S
21241 # A BSD-compatible nm program.
21242 NM=$lt_NM
21244 # A symbol stripping program
21245 STRIP=$lt_STRIP
21247 # Used to examine libraries when file_magic_cmd begins "file"
21248 MAGIC_CMD=$MAGIC_CMD
21250 # Used on cygwin: DLL creation program.
21251 DLLTOOL="$DLLTOOL"
21253 # Used on cygwin: object dumper.
21254 OBJDUMP="$OBJDUMP"
21256 # Used on cygwin: assembler.
21257 AS="$AS"
21259 # The name of the directory that contains temporary libtool files.
21260 objdir=$objdir
21262 # How to create reloadable object files.
21263 reload_flag=$lt_reload_flag
21264 reload_cmds=$lt_reload_cmds
21266 # How to pass a linker flag through the compiler.
21267 wl=$lt_lt_prog_compiler_wl_CXX
21269 # Object file suffix (normally "o").
21270 objext="$ac_objext"
21272 # Old archive suffix (normally "a").
21273 libext="$libext"
21275 # Shared library suffix (normally ".so").
21276 shrext_cmds='$shrext_cmds'
21278 # Executable file suffix (normally "").
21279 exeext="$exeext"
21281 # Additional compiler flags for building library objects.
21282 pic_flag=$lt_lt_prog_compiler_pic_CXX
21283 pic_mode=$pic_mode
21285 # What is the maximum length of a command?
21286 max_cmd_len=$lt_cv_sys_max_cmd_len
21288 # Does compiler simultaneously support -c and -o options?
21289 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21291 # Must we lock files when doing compilation?
21292 need_locks=$lt_need_locks
21294 # Do we need the lib prefix for modules?
21295 need_lib_prefix=$need_lib_prefix
21297 # Do we need a version for libraries?
21298 need_version=$need_version
21300 # Whether dlopen is supported.
21301 dlopen_support=$enable_dlopen
21303 # Whether dlopen of programs is supported.
21304 dlopen_self=$enable_dlopen_self
21306 # Whether dlopen of statically linked programs is supported.
21307 dlopen_self_static=$enable_dlopen_self_static
21309 # Compiler flag to prevent dynamic linking.
21310 link_static_flag=$lt_lt_prog_compiler_static_CXX
21312 # Compiler flag to turn off builtin functions.
21313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21315 # Compiler flag to allow reflexive dlopens.
21316 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21318 # Compiler flag to generate shared objects directly from archives.
21319 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21321 # Compiler flag to generate thread-safe objects.
21322 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21324 # Library versioning type.
21325 version_type=$version_type
21327 # Format of library name prefix.
21328 libname_spec=$lt_libname_spec
21330 # List of archive names. First name is the real one, the rest are links.
21331 # The last name is the one that the linker finds with -lNAME.
21332 library_names_spec=$lt_library_names_spec
21334 # The coded name of the library, if different from the real name.
21335 soname_spec=$lt_soname_spec
21337 # Commands used to build and install an old-style archive.
21338 RANLIB=$lt_RANLIB
21339 old_archive_cmds=$lt_old_archive_cmds_CXX
21340 old_postinstall_cmds=$lt_old_postinstall_cmds
21341 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21343 # Create an old-style archive from a shared archive.
21344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21346 # Create a temporary old-style archive to link instead of a shared archive.
21347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21349 # Commands used to build and install a shared archive.
21350 archive_cmds=$lt_archive_cmds_CXX
21351 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21352 postinstall_cmds=$lt_postinstall_cmds
21353 postuninstall_cmds=$lt_postuninstall_cmds
21355 # Commands used to build a loadable module (assumed same as above if empty)
21356 module_cmds=$lt_module_cmds_CXX
21357 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21359 # Commands to strip libraries.
21360 old_striplib=$lt_old_striplib
21361 striplib=$lt_striplib
21363 # Dependencies to place before the objects being linked to create a
21364 # shared library.
21365 predep_objects=$lt_predep_objects_CXX
21367 # Dependencies to place after the objects being linked to create a
21368 # shared library.
21369 postdep_objects=$lt_postdep_objects_CXX
21371 # Dependencies to place before the objects being linked to create a
21372 # shared library.
21373 predeps=$lt_predeps_CXX
21375 # Dependencies to place after the objects being linked to create a
21376 # shared library.
21377 postdeps=$lt_postdeps_CXX
21379 # The library search path used internally by the compiler when linking
21380 # a shared library.
21381 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21383 # Method to check whether dependent libraries are shared objects.
21384 deplibs_check_method=$lt_deplibs_check_method
21386 # Command to use when deplibs_check_method == file_magic.
21387 file_magic_cmd=$lt_file_magic_cmd
21389 # Flag that allows shared libraries with undefined symbols to be built.
21390 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21392 # Flag that forces no undefined symbols.
21393 no_undefined_flag=$lt_no_undefined_flag_CXX
21395 # Commands used to finish a libtool library installation in a directory.
21396 finish_cmds=$lt_finish_cmds
21398 # Same as above, but a single script fragment to be evaled but not shown.
21399 finish_eval=$lt_finish_eval
21401 # Take the output of nm and produce a listing of raw symbols and C names.
21402 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21404 # Transform the output of nm in a proper C declaration
21405 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21407 # Transform the output of nm in a C name address pair
21408 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21410 # This is the shared library runtime path variable.
21411 runpath_var=$runpath_var
21413 # This is the shared library path variable.
21414 shlibpath_var=$shlibpath_var
21416 # Is shlibpath searched before the hard-coded library search path?
21417 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21419 # How to hardcode a shared library path into an executable.
21420 hardcode_action=$hardcode_action_CXX
21422 # Whether we should hardcode library paths into libraries.
21423 hardcode_into_libs=$hardcode_into_libs
21425 # Flag to hardcode \$libdir into a binary during linking.
21426 # This must work even if \$libdir does not exist.
21427 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21429 # If ld is used when linking, flag to hardcode \$libdir into
21430 # a binary during linking. This must work even if \$libdir does
21431 # not exist.
21432 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21434 # Whether we need a single -rpath flag with a separated argument.
21435 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21437 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21438 # resulting binary.
21439 hardcode_direct=$hardcode_direct_CXX
21441 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21442 # resulting binary.
21443 hardcode_minus_L=$hardcode_minus_L_CXX
21445 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21446 # the resulting binary.
21447 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21449 # Set to yes if building a shared library automatically hardcodes DIR into the library
21450 # and all subsequent libraries and executables linked against it.
21451 hardcode_automatic=$hardcode_automatic_CXX
21453 # Variables whose values should be saved in libtool wrapper scripts and
21454 # restored at relink time.
21455 variables_saved_for_relink="$variables_saved_for_relink"
21457 # Whether libtool must link a program against all its dependency libraries.
21458 link_all_deplibs=$link_all_deplibs_CXX
21460 # Compile-time system search path for libraries
21461 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21463 # Run-time system search path for libraries
21464 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21466 # Fix the shell variable \$srcfile for the compiler.
21467 fix_srcfile_path="$fix_srcfile_path_CXX"
21469 # Set to yes if exported symbols are required.
21470 always_export_symbols=$always_export_symbols_CXX
21472 # The commands to list exported symbols.
21473 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21475 # The commands to extract the exported symbol list from a shared archive.
21476 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21478 # Symbols that should not be listed in the preloaded symbols.
21479 exclude_expsyms=$lt_exclude_expsyms_CXX
21481 # Symbols that must always be exported.
21482 include_expsyms=$lt_include_expsyms_CXX
21484 # ### END LIBTOOL TAG CONFIG: $tagname
21486 __EOF__
21489 else
21490 # If there is no Makefile yet, we rely on a make rule to execute
21491 # `config.status --recheck' to rerun these tests and create the
21492 # libtool script then.
21493 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21494 if test -f "$ltmain_in"; then
21495 test -f Makefile && make "$ltmain"
21500 ac_ext=c
21501 ac_cpp='$CPP $CPPFLAGS'
21502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21506 CC=$lt_save_CC
21507 LDCXX=$LD
21508 LD=$lt_save_LD
21509 GCC=$lt_save_GCC
21510 with_gnu_ldcxx=$with_gnu_ld
21511 with_gnu_ld=$lt_save_with_gnu_ld
21512 lt_cv_path_LDCXX=$lt_cv_path_LD
21513 lt_cv_path_LD=$lt_save_path_LD
21514 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21515 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21517 else
21518 tagname=""
21522 F77)
21523 if test -n "$F77" && test "X$F77" != "Xno"; then
21525 ac_ext=f
21526 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21527 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21528 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21531 archive_cmds_need_lc_F77=no
21532 allow_undefined_flag_F77=
21533 always_export_symbols_F77=no
21534 archive_expsym_cmds_F77=
21535 export_dynamic_flag_spec_F77=
21536 hardcode_direct_F77=no
21537 hardcode_libdir_flag_spec_F77=
21538 hardcode_libdir_flag_spec_ld_F77=
21539 hardcode_libdir_separator_F77=
21540 hardcode_minus_L_F77=no
21541 hardcode_automatic_F77=no
21542 module_cmds_F77=
21543 module_expsym_cmds_F77=
21544 link_all_deplibs_F77=unknown
21545 old_archive_cmds_F77=$old_archive_cmds
21546 no_undefined_flag_F77=
21547 whole_archive_flag_spec_F77=
21548 enable_shared_with_static_runtimes_F77=no
21550 # Source file extension for f77 test sources.
21551 ac_ext=f
21553 # Object file extension for compiled f77 test sources.
21554 objext=o
21555 objext_F77=$objext
21557 # Code to be used in simple compile tests
21558 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21560 # Code to be used in simple link tests
21561 lt_simple_link_test_code=" program t\n end\n"
21563 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21565 # If no C compiler was specified, use CC.
21566 LTCC=${LTCC-"$CC"}
21568 # If no C compiler flags were specified, use CFLAGS.
21569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21571 # Allow CC to be a program name with arguments.
21572 compiler=$CC
21575 # save warnings/boilerplate of simple test code
21576 ac_outfile=conftest.$ac_objext
21577 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21578 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21579 _lt_compiler_boilerplate=`cat conftest.err`
21580 $rm conftest*
21582 ac_outfile=conftest.$ac_objext
21583 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21584 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21585 _lt_linker_boilerplate=`cat conftest.err`
21586 $rm conftest*
21589 # Allow CC to be a program name with arguments.
21590 lt_save_CC="$CC"
21591 CC=${F77-"f77"}
21592 compiler=$CC
21593 compiler_F77=$CC
21594 for cc_temp in $compiler""; do
21595 case $cc_temp in
21596 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21597 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21598 \-*) ;;
21599 *) break;;
21600 esac
21601 done
21602 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21605 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21606 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21607 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
21608 echo "${ECHO_T}$can_build_shared" >&6; }
21610 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21611 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21612 test "$can_build_shared" = "no" && enable_shared=no
21614 # On AIX, shared libraries and static libraries use the same namespace, and
21615 # are all built from PIC.
21616 case $host_os in
21617 aix3*)
21618 test "$enable_shared" = yes && enable_static=no
21619 if test -n "$RANLIB"; then
21620 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21621 postinstall_cmds='$RANLIB $lib'
21624 aix4* | aix5*)
21625 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21626 test "$enable_shared" = yes && enable_static=no
21629 esac
21630 { echo "$as_me:$LINENO: result: $enable_shared" >&5
21631 echo "${ECHO_T}$enable_shared" >&6; }
21633 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21634 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21635 # Make sure either enable_shared or enable_static is yes.
21636 test "$enable_shared" = yes || enable_static=yes
21637 { echo "$as_me:$LINENO: result: $enable_static" >&5
21638 echo "${ECHO_T}$enable_static" >&6; }
21640 GCC_F77="$G77"
21641 LD_F77="$LD"
21643 lt_prog_compiler_wl_F77=
21644 lt_prog_compiler_pic_F77=
21645 lt_prog_compiler_static_F77=
21647 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21648 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21650 if test "$GCC" = yes; then
21651 lt_prog_compiler_wl_F77='-Wl,'
21652 lt_prog_compiler_static_F77='-static'
21654 case $host_os in
21655 aix*)
21656 # All AIX code is PIC.
21657 if test "$host_cpu" = ia64; then
21658 # AIX 5 now supports IA64 processor
21659 lt_prog_compiler_static_F77='-Bstatic'
21663 amigaos*)
21664 # FIXME: we need at least 68020 code to build shared libraries, but
21665 # adding the `-m68020' flag to GCC prevents building anything better,
21666 # like `-m68040'.
21667 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21670 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21671 # PIC is the default for these OSes.
21674 mingw* | pw32* | os2*)
21675 # This hack is so that the source file can tell whether it is being
21676 # built for inclusion in a dll (and should export symbols for example).
21677 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21680 darwin* | rhapsody*)
21681 # PIC is the default on this platform
21682 # Common symbols not allowed in MH_DYLIB files
21683 lt_prog_compiler_pic_F77='-fno-common'
21686 interix3*)
21687 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21688 # Instead, we relocate shared libraries at runtime.
21691 msdosdjgpp*)
21692 # Just because we use GCC doesn't mean we suddenly get shared libraries
21693 # on systems that don't support them.
21694 lt_prog_compiler_can_build_shared_F77=no
21695 enable_shared=no
21698 sysv4*MP*)
21699 if test -d /usr/nec; then
21700 lt_prog_compiler_pic_F77=-Kconform_pic
21704 hpux*)
21705 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21706 # not for PA HP-UX.
21707 case $host_cpu in
21708 hppa*64*|ia64*)
21709 # +Z the default
21712 lt_prog_compiler_pic_F77='-fPIC'
21714 esac
21718 lt_prog_compiler_pic_F77='-fPIC'
21720 esac
21721 else
21722 # PORTME Check for flag to pass linker flags through the system compiler.
21723 case $host_os in
21724 aix*)
21725 lt_prog_compiler_wl_F77='-Wl,'
21726 if test "$host_cpu" = ia64; then
21727 # AIX 5 now supports IA64 processor
21728 lt_prog_compiler_static_F77='-Bstatic'
21729 else
21730 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21733 darwin*)
21734 # PIC is the default on this platform
21735 # Common symbols not allowed in MH_DYLIB files
21736 case $cc_basename in
21737 xlc*)
21738 lt_prog_compiler_pic_F77='-qnocommon'
21739 lt_prog_compiler_wl_F77='-Wl,'
21741 esac
21744 mingw* | pw32* | os2*)
21745 # This hack is so that the source file can tell whether it is being
21746 # built for inclusion in a dll (and should export symbols for example).
21747 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21750 hpux9* | hpux10* | hpux11*)
21751 lt_prog_compiler_wl_F77='-Wl,'
21752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21753 # not for PA HP-UX.
21754 case $host_cpu in
21755 hppa*64*|ia64*)
21756 # +Z the default
21759 lt_prog_compiler_pic_F77='+Z'
21761 esac
21762 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21763 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21766 irix5* | irix6* | nonstopux*)
21767 lt_prog_compiler_wl_F77='-Wl,'
21768 # PIC (with -KPIC) is the default.
21769 lt_prog_compiler_static_F77='-non_shared'
21772 newsos6)
21773 lt_prog_compiler_pic_F77='-KPIC'
21774 lt_prog_compiler_static_F77='-Bstatic'
21777 linux*)
21778 case $cc_basename in
21779 icc* | ecc*)
21780 lt_prog_compiler_wl_F77='-Wl,'
21781 lt_prog_compiler_pic_F77='-KPIC'
21782 lt_prog_compiler_static_F77='-static'
21784 pgcc* | pgf77* | pgf90* | pgf95*)
21785 # Portland Group compilers (*not* the Pentium gcc compiler,
21786 # which looks to be a dead project)
21787 lt_prog_compiler_wl_F77='-Wl,'
21788 lt_prog_compiler_pic_F77='-fpic'
21789 lt_prog_compiler_static_F77='-Bstatic'
21791 ccc*)
21792 lt_prog_compiler_wl_F77='-Wl,'
21793 # All Alpha code is PIC.
21794 lt_prog_compiler_static_F77='-non_shared'
21796 esac
21799 osf3* | osf4* | osf5*)
21800 lt_prog_compiler_wl_F77='-Wl,'
21801 # All OSF/1 code is PIC.
21802 lt_prog_compiler_static_F77='-non_shared'
21805 solaris*)
21806 lt_prog_compiler_pic_F77='-KPIC'
21807 lt_prog_compiler_static_F77='-Bstatic'
21808 case $cc_basename in
21809 f77* | f90* | f95*)
21810 lt_prog_compiler_wl_F77='-Qoption ld ';;
21812 lt_prog_compiler_wl_F77='-Wl,';;
21813 esac
21816 sunos4*)
21817 lt_prog_compiler_wl_F77='-Qoption ld '
21818 lt_prog_compiler_pic_F77='-PIC'
21819 lt_prog_compiler_static_F77='-Bstatic'
21822 sysv4 | sysv4.2uw2* | sysv4.3*)
21823 lt_prog_compiler_wl_F77='-Wl,'
21824 lt_prog_compiler_pic_F77='-KPIC'
21825 lt_prog_compiler_static_F77='-Bstatic'
21828 sysv4*MP*)
21829 if test -d /usr/nec ;then
21830 lt_prog_compiler_pic_F77='-Kconform_pic'
21831 lt_prog_compiler_static_F77='-Bstatic'
21835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21836 lt_prog_compiler_wl_F77='-Wl,'
21837 lt_prog_compiler_pic_F77='-KPIC'
21838 lt_prog_compiler_static_F77='-Bstatic'
21841 unicos*)
21842 lt_prog_compiler_wl_F77='-Wl,'
21843 lt_prog_compiler_can_build_shared_F77=no
21846 uts4*)
21847 lt_prog_compiler_pic_F77='-pic'
21848 lt_prog_compiler_static_F77='-Bstatic'
21852 lt_prog_compiler_can_build_shared_F77=no
21854 esac
21857 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21858 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21861 # Check to make sure the PIC flag actually works.
21863 if test -n "$lt_prog_compiler_pic_F77"; then
21865 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21866 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21867 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21868 echo $ECHO_N "(cached) $ECHO_C" >&6
21869 else
21870 lt_prog_compiler_pic_works_F77=no
21871 ac_outfile=conftest.$ac_objext
21872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21873 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21874 # Insert the option either (1) after the last *FLAGS variable, or
21875 # (2) before a word containing "conftest.", or (3) at the end.
21876 # Note that $ac_compile itself does not contain backslashes and begins
21877 # with a dollar sign (not a hyphen), so the echo should work correctly.
21878 # The option is referenced via a variable to avoid confusing sed.
21879 lt_compile=`echo "$ac_compile" | $SED \
21880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21882 -e 's:$: $lt_compiler_flag:'`
21883 (eval echo "\"\$as_me:21883: $lt_compile\"" >&5)
21884 (eval "$lt_compile" 2>conftest.err)
21885 ac_status=$?
21886 cat conftest.err >&5
21887 echo "$as_me:21887: \$? = $ac_status" >&5
21888 if (exit $ac_status) && test -s "$ac_outfile"; then
21889 # The compiler can only warn and ignore the option if not recognized
21890 # So say no if there are warnings other than the usual output.
21891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21894 lt_prog_compiler_pic_works_F77=yes
21897 $rm conftest*
21900 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21901 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21903 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21904 case $lt_prog_compiler_pic_F77 in
21905 "" | " "*) ;;
21906 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21907 esac
21908 else
21909 lt_prog_compiler_pic_F77=
21910 lt_prog_compiler_can_build_shared_F77=no
21914 case $host_os in
21915 # For platforms which do not support PIC, -DPIC is meaningless:
21916 *djgpp*)
21917 lt_prog_compiler_pic_F77=
21920 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21922 esac
21925 # Check to make sure the static flag actually works.
21927 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21928 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21929 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21930 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21932 else
21933 lt_prog_compiler_static_works_F77=no
21934 save_LDFLAGS="$LDFLAGS"
21935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21936 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21938 # The linker can only warn and ignore the option if not recognized
21939 # So say no if there are warnings
21940 if test -s conftest.err; then
21941 # Append any errors to the config.log.
21942 cat conftest.err 1>&5
21943 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21945 if diff conftest.exp conftest.er2 >/dev/null; then
21946 lt_prog_compiler_static_works_F77=yes
21948 else
21949 lt_prog_compiler_static_works_F77=yes
21952 $rm conftest*
21953 LDFLAGS="$save_LDFLAGS"
21956 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21957 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21959 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21961 else
21962 lt_prog_compiler_static_F77=
21966 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21967 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21968 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21969 echo $ECHO_N "(cached) $ECHO_C" >&6
21970 else
21971 lt_cv_prog_compiler_c_o_F77=no
21972 $rm -r conftest 2>/dev/null
21973 mkdir conftest
21974 cd conftest
21975 mkdir out
21976 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21978 lt_compiler_flag="-o out/conftest2.$ac_objext"
21979 # Insert the option either (1) after the last *FLAGS variable, or
21980 # (2) before a word containing "conftest.", or (3) at the end.
21981 # Note that $ac_compile itself does not contain backslashes and begins
21982 # with a dollar sign (not a hyphen), so the echo should work correctly.
21983 lt_compile=`echo "$ac_compile" | $SED \
21984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21986 -e 's:$: $lt_compiler_flag:'`
21987 (eval echo "\"\$as_me:21987: $lt_compile\"" >&5)
21988 (eval "$lt_compile" 2>out/conftest.err)
21989 ac_status=$?
21990 cat out/conftest.err >&5
21991 echo "$as_me:21991: \$? = $ac_status" >&5
21992 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21993 then
21994 # The compiler can only warn and ignore the option if not recognized
21995 # So say no if there are warnings
21996 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21997 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21998 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21999 lt_cv_prog_compiler_c_o_F77=yes
22002 chmod u+w . 2>&5
22003 $rm conftest*
22004 # SGI C++ compiler will create directory out/ii_files/ for
22005 # template instantiation
22006 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22007 $rm out/* && rmdir out
22008 cd ..
22009 rmdir conftest
22010 $rm conftest*
22013 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22014 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
22017 hard_links="nottested"
22018 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22019 # do not overwrite the value of need_locks provided by the user
22020 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22021 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22022 hard_links=yes
22023 $rm conftest*
22024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22025 touch conftest.a
22026 ln conftest.a conftest.b 2>&5 || hard_links=no
22027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22028 { echo "$as_me:$LINENO: result: $hard_links" >&5
22029 echo "${ECHO_T}$hard_links" >&6; }
22030 if test "$hard_links" = no; then
22031 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22032 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22033 need_locks=warn
22035 else
22036 need_locks=no
22039 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22040 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22042 runpath_var=
22043 allow_undefined_flag_F77=
22044 enable_shared_with_static_runtimes_F77=no
22045 archive_cmds_F77=
22046 archive_expsym_cmds_F77=
22047 old_archive_From_new_cmds_F77=
22048 old_archive_from_expsyms_cmds_F77=
22049 export_dynamic_flag_spec_F77=
22050 whole_archive_flag_spec_F77=
22051 thread_safe_flag_spec_F77=
22052 hardcode_libdir_flag_spec_F77=
22053 hardcode_libdir_flag_spec_ld_F77=
22054 hardcode_libdir_separator_F77=
22055 hardcode_direct_F77=no
22056 hardcode_minus_L_F77=no
22057 hardcode_shlibpath_var_F77=unsupported
22058 link_all_deplibs_F77=unknown
22059 hardcode_automatic_F77=no
22060 module_cmds_F77=
22061 module_expsym_cmds_F77=
22062 always_export_symbols_F77=no
22063 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22064 # include_expsyms should be a list of space-separated symbols to be *always*
22065 # included in the symbol list
22066 include_expsyms_F77=
22067 # exclude_expsyms can be an extended regexp of symbols to exclude
22068 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22069 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22070 # as well as any symbol that contains `d'.
22071 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22072 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22073 # platforms (ab)use it in PIC code, but their linkers get confused if
22074 # the symbol is explicitly referenced. Since portable code cannot
22075 # rely on this symbol name, it's probably fine to never include it in
22076 # preloaded symbol tables.
22077 extract_expsyms_cmds=
22078 # Just being paranoid about ensuring that cc_basename is set.
22079 for cc_temp in $compiler""; do
22080 case $cc_temp in
22081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22083 \-*) ;;
22084 *) break;;
22085 esac
22086 done
22087 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22089 case $host_os in
22090 cygwin* | mingw* | pw32*)
22091 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22092 # When not using gcc, we currently assume that we are using
22093 # Microsoft Visual C++.
22094 if test "$GCC" != yes; then
22095 with_gnu_ld=no
22098 interix*)
22099 # we just hope/assume this is gcc and not c89 (= MSVC++)
22100 with_gnu_ld=yes
22102 openbsd*)
22103 with_gnu_ld=no
22105 esac
22107 ld_shlibs_F77=yes
22108 if test "$with_gnu_ld" = yes; then
22109 # If archive_cmds runs LD, not CC, wlarc should be empty
22110 wlarc='${wl}'
22112 # Set some defaults for GNU ld with shared library support. These
22113 # are reset later if shared libraries are not supported. Putting them
22114 # here allows them to be overridden if necessary.
22115 runpath_var=LD_RUN_PATH
22116 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22117 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22118 # ancient GNU ld didn't support --whole-archive et. al.
22119 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22120 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22121 else
22122 whole_archive_flag_spec_F77=
22124 supports_anon_versioning=no
22125 case `$LD -v 2>/dev/null` in
22126 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22127 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22128 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22129 *\ 2.11.*) ;; # other 2.11 versions
22130 *) supports_anon_versioning=yes ;;
22131 esac
22133 # See if GNU ld supports shared libraries.
22134 case $host_os in
22135 aix3* | aix4* | aix5*)
22136 # On AIX/PPC, the GNU linker is very broken
22137 if test "$host_cpu" != ia64; then
22138 ld_shlibs_F77=no
22139 cat <<EOF 1>&2
22141 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22142 *** to be unable to reliably create shared libraries on AIX.
22143 *** Therefore, libtool is disabling shared libraries support. If you
22144 *** really care for shared libraries, you may want to modify your PATH
22145 *** so that a non-GNU linker is found, and then restart.
22151 amigaos*)
22152 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)'
22153 hardcode_libdir_flag_spec_F77='-L$libdir'
22154 hardcode_minus_L_F77=yes
22156 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22157 # that the semantics of dynamic libraries on AmigaOS, at least up
22158 # to version 4, is to share data among multiple programs linked
22159 # with the same dynamic library. Since this doesn't match the
22160 # behavior of shared libraries on other platforms, we can't use
22161 # them.
22162 ld_shlibs_F77=no
22165 beos*)
22166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22167 allow_undefined_flag_F77=unsupported
22168 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22169 # support --undefined. This deserves some investigation. FIXME
22170 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22171 else
22172 ld_shlibs_F77=no
22176 cygwin* | mingw* | pw32*)
22177 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22178 # as there is no search path for DLLs.
22179 hardcode_libdir_flag_spec_F77='-L$libdir'
22180 allow_undefined_flag_F77=unsupported
22181 always_export_symbols_F77=no
22182 enable_shared_with_static_runtimes_F77=yes
22183 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22185 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22186 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22187 # If the export-symbols file already is a .def file (1st line
22188 # is EXPORTS), use it as is; otherwise, prepend...
22189 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22190 cp $export_symbols $output_objdir/$soname.def;
22191 else
22192 echo EXPORTS > $output_objdir/$soname.def;
22193 cat $export_symbols >> $output_objdir/$soname.def;
22195 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22196 else
22197 ld_shlibs_F77=no
22201 interix3*)
22202 hardcode_direct_F77=no
22203 hardcode_shlibpath_var_F77=no
22204 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22205 export_dynamic_flag_spec_F77='${wl}-E'
22206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22207 # Instead, shared libraries are loaded at an image base (0x10000000 by
22208 # default) and relocated if they conflict, which is a slow very memory
22209 # consuming and fragmenting process. To avoid this, we pick a random,
22210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22212 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'
22213 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'
22216 linux*)
22217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22218 tmp_addflag=
22219 case $cc_basename,$host_cpu in
22220 pgcc*) # Portland Group C compiler
22221 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'
22222 tmp_addflag=' $pic_flag'
22224 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22225 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'
22226 tmp_addflag=' $pic_flag -Mnomain' ;;
22227 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22228 tmp_addflag=' -i_dynamic' ;;
22229 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22230 tmp_addflag=' -i_dynamic -nofor_main' ;;
22231 ifc* | ifort*) # Intel Fortran compiler
22232 tmp_addflag=' -nofor_main' ;;
22233 esac
22234 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22236 if test $supports_anon_versioning = yes; then
22237 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22239 $echo "local: *; };" >> $output_objdir/$libname.ver~
22240 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22242 else
22243 ld_shlibs_F77=no
22247 netbsd*)
22248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22249 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22250 wlarc=
22251 else
22252 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22253 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22257 solaris*)
22258 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22259 ld_shlibs_F77=no
22260 cat <<EOF 1>&2
22262 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22263 *** create shared libraries on Solaris systems. Therefore, libtool
22264 *** is disabling shared libraries support. We urge you to upgrade GNU
22265 *** binutils to release 2.9.1 or newer. Another option is to modify
22266 *** your PATH or compiler configuration so that the native linker is
22267 *** used, and then restart.
22270 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22271 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22272 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22273 else
22274 ld_shlibs_F77=no
22278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22279 case `$LD -v 2>&1` in
22280 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22281 ld_shlibs_F77=no
22282 cat <<_LT_EOF 1>&2
22284 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22285 *** reliably create shared libraries on SCO systems. Therefore, libtool
22286 *** is disabling shared libraries support. We urge you to upgrade GNU
22287 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22288 *** your PATH or compiler configuration so that the native linker is
22289 *** used, and then restart.
22291 _LT_EOF
22294 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22295 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22296 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22297 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22298 else
22299 ld_shlibs_F77=no
22302 esac
22305 sunos4*)
22306 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22307 wlarc=
22308 hardcode_direct_F77=yes
22309 hardcode_shlibpath_var_F77=no
22313 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22314 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22315 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22316 else
22317 ld_shlibs_F77=no
22320 esac
22322 if test "$ld_shlibs_F77" = no; then
22323 runpath_var=
22324 hardcode_libdir_flag_spec_F77=
22325 export_dynamic_flag_spec_F77=
22326 whole_archive_flag_spec_F77=
22328 else
22329 # PORTME fill in a description of your system's linker (not GNU ld)
22330 case $host_os in
22331 aix3*)
22332 allow_undefined_flag_F77=unsupported
22333 always_export_symbols_F77=yes
22334 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'
22335 # Note: this linker hardcodes the directories in LIBPATH if there
22336 # are no directories specified by -L.
22337 hardcode_minus_L_F77=yes
22338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22339 # Neither direct hardcoding nor static linking is supported with a
22340 # broken collect2.
22341 hardcode_direct_F77=unsupported
22345 aix4* | aix5*)
22346 if test "$host_cpu" = ia64; then
22347 # On IA64, the linker does run time linking by default, so we don't
22348 # have to do anything special.
22349 aix_use_runtimelinking=no
22350 exp_sym_flag='-Bexport'
22351 no_entry_flag=""
22352 else
22353 # If we're using GNU nm, then we don't want the "-C" option.
22354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22355 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22356 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'
22357 else
22358 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'
22360 aix_use_runtimelinking=no
22362 # Test if we are trying to use run time linking or normal
22363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22364 # need to do runtime linking.
22365 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22366 for ld_flag in $LDFLAGS; do
22367 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22368 aix_use_runtimelinking=yes
22369 break
22371 done
22373 esac
22375 exp_sym_flag='-bexport'
22376 no_entry_flag='-bnoentry'
22379 # When large executables or shared objects are built, AIX ld can
22380 # have problems creating the table of contents. If linking a library
22381 # or program results in "error TOC overflow" add -mminimal-toc to
22382 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22383 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22385 archive_cmds_F77=''
22386 hardcode_direct_F77=yes
22387 hardcode_libdir_separator_F77=':'
22388 link_all_deplibs_F77=yes
22390 if test "$GCC" = yes; then
22391 case $host_os in aix4.[012]|aix4.[012].*)
22392 # We only want to do this on AIX 4.2 and lower, the check
22393 # below for broken collect2 doesn't work under 4.3+
22394 collect2name=`${CC} -print-prog-name=collect2`
22395 if test -f "$collect2name" && \
22396 strings "$collect2name" | grep resolve_lib_name >/dev/null
22397 then
22398 # We have reworked collect2
22399 hardcode_direct_F77=yes
22400 else
22401 # We have old collect2
22402 hardcode_direct_F77=unsupported
22403 # It fails to find uninstalled libraries when the uninstalled
22404 # path is not listed in the libpath. Setting hardcode_minus_L
22405 # to unsupported forces relinking
22406 hardcode_minus_L_F77=yes
22407 hardcode_libdir_flag_spec_F77='-L$libdir'
22408 hardcode_libdir_separator_F77=
22411 esac
22412 shared_flag='-shared'
22413 if test "$aix_use_runtimelinking" = yes; then
22414 shared_flag="$shared_flag "'${wl}-G'
22416 else
22417 # not using gcc
22418 if test "$host_cpu" = ia64; then
22419 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22420 # chokes on -Wl,-G. The following line is correct:
22421 shared_flag='-G'
22422 else
22423 if test "$aix_use_runtimelinking" = yes; then
22424 shared_flag='${wl}-G'
22425 else
22426 shared_flag='${wl}-bM:SRE'
22431 # It seems that -bexpall does not export symbols beginning with
22432 # underscore (_), so it is better to generate a list of symbols to export.
22433 always_export_symbols_F77=yes
22434 if test "$aix_use_runtimelinking" = yes; then
22435 # Warning - without using the other runtime loading flags (-brtl),
22436 # -berok will link without error, but may produce a broken library.
22437 allow_undefined_flag_F77='-berok'
22438 # Determine the default libpath from the value encoded in an empty executable.
22439 cat >conftest.$ac_ext <<_ACEOF
22440 program main
22443 _ACEOF
22444 rm -f conftest.$ac_objext conftest$ac_exeext
22445 if { (ac_try="$ac_link"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22449 esac
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_link") 2>conftest.er1
22452 ac_status=$?
22453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } &&
22458 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22459 { (case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22462 esac
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464 (eval "$ac_try") 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; } &&
22468 { ac_try='test -s conftest$ac_exeext'
22469 { (case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_try") 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; }; then
22479 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22481 # Check for a 64-bit object if we didn't find anything.
22482 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; }
22483 }'`; fi
22484 else
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22491 rm -f core conftest.err conftest.$ac_objext \
22492 conftest$ac_exeext conftest.$ac_ext
22493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22495 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22496 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"
22497 else
22498 if test "$host_cpu" = ia64; then
22499 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22500 allow_undefined_flag_F77="-z nodefs"
22501 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"
22502 else
22503 # Determine the default libpath from the value encoded in an empty executable.
22504 cat >conftest.$ac_ext <<_ACEOF
22505 program main
22508 _ACEOF
22509 rm -f conftest.$ac_objext conftest$ac_exeext
22510 if { (ac_try="$ac_link"
22511 case "(($ac_try" in
22512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22513 *) ac_try_echo=$ac_try;;
22514 esac
22515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22516 (eval "$ac_link") 2>conftest.er1
22517 ac_status=$?
22518 grep -v '^ *+' conftest.er1 >conftest.err
22519 rm -f conftest.er1
22520 cat conftest.err >&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); } &&
22523 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22524 { (case "(($ac_try" in
22525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526 *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529 (eval "$ac_try") 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; } &&
22533 { ac_try='test -s conftest$ac_exeext'
22534 { (case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_try") 2>&5
22540 ac_status=$?
22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); }; }; then
22544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22546 # Check for a 64-bit object if we didn't find anything.
22547 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; }
22548 }'`; fi
22549 else
22550 echo "$as_me: failed program was:" >&5
22551 sed 's/^/| /' conftest.$ac_ext >&5
22556 rm -f core conftest.err conftest.$ac_objext \
22557 conftest$ac_exeext conftest.$ac_ext
22558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22560 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22561 # Warning - without using the other run time loading flags,
22562 # -berok will link without error, but may produce a broken library.
22563 no_undefined_flag_F77=' ${wl}-bernotok'
22564 allow_undefined_flag_F77=' ${wl}-berok'
22565 # Exported symbols can be pulled into shared objects from archives
22566 whole_archive_flag_spec_F77='$convenience'
22567 archive_cmds_need_lc_F77=yes
22568 # This is similar to how AIX traditionally builds its shared libraries.
22569 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'
22574 amigaos*)
22575 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)'
22576 hardcode_libdir_flag_spec_F77='-L$libdir'
22577 hardcode_minus_L_F77=yes
22578 # see comment about different semantics on the GNU ld section
22579 ld_shlibs_F77=no
22582 bsdi[45]*)
22583 export_dynamic_flag_spec_F77=-rdynamic
22586 cygwin* | mingw* | pw32*)
22587 # When not using gcc, we currently assume that we are using
22588 # Microsoft Visual C++.
22589 # hardcode_libdir_flag_spec is actually meaningless, as there is
22590 # no search path for DLLs.
22591 hardcode_libdir_flag_spec_F77=' '
22592 allow_undefined_flag_F77=unsupported
22593 # Tell ltmain to make .lib files, not .a files.
22594 libext=lib
22595 # Tell ltmain to make .dll files, not .so files.
22596 shrext_cmds=".dll"
22597 # FIXME: Setting linknames here is a bad hack.
22598 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22599 # The linker will automatically build a .lib file if we build a DLL.
22600 old_archive_From_new_cmds_F77='true'
22601 # FIXME: Should let the user specify the lib program.
22602 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22603 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22604 enable_shared_with_static_runtimes_F77=yes
22607 darwin* | rhapsody*)
22608 case $host_os in
22609 rhapsody* | darwin1.[012])
22610 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22612 *) # Darwin 1.3 on
22613 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22614 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22615 else
22616 case ${MACOSX_DEPLOYMENT_TARGET} in
22617 10.[012])
22618 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22620 10.*)
22621 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22623 esac
22626 esac
22627 archive_cmds_need_lc_F77=no
22628 hardcode_direct_F77=no
22629 hardcode_automatic_F77=yes
22630 hardcode_shlibpath_var_F77=unsupported
22631 whole_archive_flag_spec_F77=''
22632 link_all_deplibs_F77=yes
22633 if test "$GCC" = yes ; then
22634 output_verbose_link_cmd='echo'
22635 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22636 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22637 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22638 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}'
22639 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}'
22640 else
22641 case $cc_basename in
22642 xlc*)
22643 output_verbose_link_cmd='echo'
22644 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22645 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22646 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22647 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}'
22648 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}'
22651 ld_shlibs_F77=no
22653 esac
22657 dgux*)
22658 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22659 hardcode_libdir_flag_spec_F77='-L$libdir'
22660 hardcode_shlibpath_var_F77=no
22663 freebsd1*)
22664 ld_shlibs_F77=no
22667 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22668 # support. Future versions do this automatically, but an explicit c++rt0.o
22669 # does not break anything, and helps significantly (at the cost of a little
22670 # extra space).
22671 freebsd2.2*)
22672 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22673 hardcode_libdir_flag_spec_F77='-R$libdir'
22674 hardcode_direct_F77=yes
22675 hardcode_shlibpath_var_F77=no
22678 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22679 freebsd2*)
22680 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22681 hardcode_direct_F77=yes
22682 hardcode_minus_L_F77=yes
22683 hardcode_shlibpath_var_F77=no
22686 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22687 freebsd* | kfreebsd*-gnu | dragonfly*)
22688 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22689 hardcode_libdir_flag_spec_F77='-R$libdir'
22690 hardcode_direct_F77=yes
22691 hardcode_shlibpath_var_F77=no
22694 hpux9*)
22695 if test "$GCC" = yes; then
22696 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'
22697 else
22698 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'
22700 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22701 hardcode_libdir_separator_F77=:
22702 hardcode_direct_F77=yes
22704 # hardcode_minus_L: Not really in the search PATH,
22705 # but as the default location of the library.
22706 hardcode_minus_L_F77=yes
22707 export_dynamic_flag_spec_F77='${wl}-E'
22710 hpux10*)
22711 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22712 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22713 else
22714 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22716 if test "$with_gnu_ld" = no; then
22717 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22718 hardcode_libdir_separator_F77=:
22720 hardcode_direct_F77=yes
22721 export_dynamic_flag_spec_F77='${wl}-E'
22723 # hardcode_minus_L: Not really in the search PATH,
22724 # but as the default location of the library.
22725 hardcode_minus_L_F77=yes
22729 hpux11*)
22730 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22731 case $host_cpu in
22732 hppa*64*)
22733 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22735 ia64*)
22736 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22739 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22741 esac
22742 else
22743 case $host_cpu in
22744 hppa*64*)
22745 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22747 ia64*)
22748 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22751 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22753 esac
22755 if test "$with_gnu_ld" = no; then
22756 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22757 hardcode_libdir_separator_F77=:
22759 case $host_cpu in
22760 hppa*64*|ia64*)
22761 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22762 hardcode_direct_F77=no
22763 hardcode_shlibpath_var_F77=no
22766 hardcode_direct_F77=yes
22767 export_dynamic_flag_spec_F77='${wl}-E'
22769 # hardcode_minus_L: Not really in the search PATH,
22770 # but as the default location of the library.
22771 hardcode_minus_L_F77=yes
22773 esac
22777 irix5* | irix6* | nonstopux*)
22778 if test "$GCC" = yes; then
22779 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'
22780 else
22781 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'
22782 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22784 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22785 hardcode_libdir_separator_F77=:
22786 link_all_deplibs_F77=yes
22789 netbsd*)
22790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22791 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22792 else
22793 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22795 hardcode_libdir_flag_spec_F77='-R$libdir'
22796 hardcode_direct_F77=yes
22797 hardcode_shlibpath_var_F77=no
22800 newsos6)
22801 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22802 hardcode_direct_F77=yes
22803 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22804 hardcode_libdir_separator_F77=:
22805 hardcode_shlibpath_var_F77=no
22808 openbsd*)
22809 hardcode_direct_F77=yes
22810 hardcode_shlibpath_var_F77=no
22811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22812 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22813 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22814 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22815 export_dynamic_flag_spec_F77='${wl}-E'
22816 else
22817 case $host_os in
22818 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22819 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22820 hardcode_libdir_flag_spec_F77='-R$libdir'
22823 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22824 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22826 esac
22830 os2*)
22831 hardcode_libdir_flag_spec_F77='-L$libdir'
22832 hardcode_minus_L_F77=yes
22833 allow_undefined_flag_F77=unsupported
22834 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'
22835 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22838 osf3*)
22839 if test "$GCC" = yes; then
22840 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22841 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'
22842 else
22843 allow_undefined_flag_F77=' -expect_unresolved \*'
22844 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'
22846 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22847 hardcode_libdir_separator_F77=:
22850 osf4* | osf5*) # as osf3* with the addition of -msym flag
22851 if test "$GCC" = yes; then
22852 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22853 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'
22854 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22855 else
22856 allow_undefined_flag_F77=' -expect_unresolved \*'
22857 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'
22858 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~
22859 $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'
22861 # Both c and cxx compiler support -rpath directly
22862 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22864 hardcode_libdir_separator_F77=:
22867 solaris*)
22868 no_undefined_flag_F77=' -z text'
22869 if test "$GCC" = yes; then
22870 wlarc='${wl}'
22871 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22872 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22873 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22874 else
22875 wlarc=''
22876 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22877 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22878 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22880 hardcode_libdir_flag_spec_F77='-R$libdir'
22881 hardcode_shlibpath_var_F77=no
22882 case $host_os in
22883 solaris2.[0-5] | solaris2.[0-5].*) ;;
22885 # The compiler driver will combine linker options so we
22886 # cannot just pass the convience library names through
22887 # without $wl, iff we do not link with $LD.
22888 # Luckily, gcc supports the same syntax we need for Sun Studio.
22889 # Supported since Solaris 2.6 (maybe 2.5.1?)
22890 case $wlarc in
22892 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22894 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' ;;
22895 esac ;;
22896 esac
22897 link_all_deplibs_F77=yes
22900 sunos4*)
22901 if test "x$host_vendor" = xsequent; then
22902 # Use $CC to link under sequent, because it throws in some extra .o
22903 # files that make .init and .fini sections work.
22904 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22905 else
22906 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22908 hardcode_libdir_flag_spec_F77='-L$libdir'
22909 hardcode_direct_F77=yes
22910 hardcode_minus_L_F77=yes
22911 hardcode_shlibpath_var_F77=no
22914 sysv4)
22915 case $host_vendor in
22916 sni)
22917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22918 hardcode_direct_F77=yes # is this really true???
22920 siemens)
22921 ## LD is ld it makes a PLAMLIB
22922 ## CC just makes a GrossModule.
22923 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22924 reload_cmds_F77='$CC -r -o $output$reload_objs'
22925 hardcode_direct_F77=no
22927 motorola)
22928 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22929 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22931 esac
22932 runpath_var='LD_RUN_PATH'
22933 hardcode_shlibpath_var_F77=no
22936 sysv4.3*)
22937 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22938 hardcode_shlibpath_var_F77=no
22939 export_dynamic_flag_spec_F77='-Bexport'
22942 sysv4*MP*)
22943 if test -d /usr/nec; then
22944 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22945 hardcode_shlibpath_var_F77=no
22946 runpath_var=LD_RUN_PATH
22947 hardcode_runpath_var=yes
22948 ld_shlibs_F77=yes
22952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22953 no_undefined_flag_F77='${wl}-z,text'
22954 archive_cmds_need_lc_F77=no
22955 hardcode_shlibpath_var_F77=no
22956 runpath_var='LD_RUN_PATH'
22958 if test "$GCC" = yes; then
22959 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22960 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22961 else
22962 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22963 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22967 sysv5* | sco3.2v5* | sco5v6*)
22968 # Note: We can NOT use -z defs as we might desire, because we do not
22969 # link with -lc, and that would cause any symbols used from libc to
22970 # always be unresolved, which means just about no library would
22971 # ever link correctly. If we're not using GNU ld we use -z text
22972 # though, which does catch some bad symbols but isn't as heavy-handed
22973 # as -z defs.
22974 no_undefined_flag_F77='${wl}-z,text'
22975 allow_undefined_flag_F77='${wl}-z,nodefs'
22976 archive_cmds_need_lc_F77=no
22977 hardcode_shlibpath_var_F77=no
22978 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22979 hardcode_libdir_separator_F77=':'
22980 link_all_deplibs_F77=yes
22981 export_dynamic_flag_spec_F77='${wl}-Bexport'
22982 runpath_var='LD_RUN_PATH'
22984 if test "$GCC" = yes; then
22985 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22986 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22987 else
22988 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22989 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22993 uts4*)
22994 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22995 hardcode_libdir_flag_spec_F77='-L$libdir'
22996 hardcode_shlibpath_var_F77=no
23000 ld_shlibs_F77=no
23002 esac
23005 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23006 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
23007 test "$ld_shlibs_F77" = no && can_build_shared=no
23010 # Do we need to explicitly link libc?
23012 case "x$archive_cmds_need_lc_F77" in
23013 x|xyes)
23014 # Assume -lc should be added
23015 archive_cmds_need_lc_F77=yes
23017 if test "$enable_shared" = yes && test "$GCC" = yes; then
23018 case $archive_cmds_F77 in
23019 *'~'*)
23020 # FIXME: we may have to deal with multi-command sequences.
23022 '$CC '*)
23023 # Test whether the compiler implicitly links with -lc since on some
23024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23025 # to ld, don't add -lc before -lgcc.
23026 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23027 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23028 $rm conftest*
23029 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23032 (eval $ac_compile) 2>&5
23033 ac_status=$?
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); } 2>conftest.err; then
23036 soname=conftest
23037 lib=conftest
23038 libobjs=conftest.$ac_objext
23039 deplibs=
23040 wl=$lt_prog_compiler_wl_F77
23041 pic_flag=$lt_prog_compiler_pic_F77
23042 compiler_flags=-v
23043 linker_flags=-v
23044 verstring=
23045 output_objdir=.
23046 libname=conftest
23047 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23048 allow_undefined_flag_F77=
23049 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23050 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23051 ac_status=$?
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }
23054 then
23055 archive_cmds_need_lc_F77=no
23056 else
23057 archive_cmds_need_lc_F77=yes
23059 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23060 else
23061 cat conftest.err 1>&5
23063 $rm conftest*
23064 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23065 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23067 esac
23070 esac
23072 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23074 library_names_spec=
23075 libname_spec='lib$name'
23076 soname_spec=
23077 shrext_cmds=".so"
23078 postinstall_cmds=
23079 postuninstall_cmds=
23080 finish_cmds=
23081 finish_eval=
23082 shlibpath_var=
23083 shlibpath_overrides_runpath=unknown
23084 version_type=none
23085 dynamic_linker="$host_os ld.so"
23086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23087 if test "$GCC" = yes; then
23088 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23089 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23090 # if the path contains ";" then we assume it to be the separator
23091 # otherwise default to the standard path separator (i.e. ":") - it is
23092 # assumed that no part of a normal pathname contains ";" but that should
23093 # okay in the real world where ";" in dirpaths is itself problematic.
23094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23095 else
23096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23098 else
23099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23101 need_lib_prefix=unknown
23102 hardcode_into_libs=no
23104 # when you set need_version to no, make sure it does not cause -set_version
23105 # flags to be left without arguments
23106 need_version=unknown
23108 case $host_os in
23109 aix3*)
23110 version_type=linux
23111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23112 shlibpath_var=LIBPATH
23114 # AIX 3 has no versioning support, so we append a major version to the name.
23115 soname_spec='${libname}${release}${shared_ext}$major'
23118 aix4* | aix5*)
23119 version_type=linux
23120 need_lib_prefix=no
23121 need_version=no
23122 hardcode_into_libs=yes
23123 if test "$host_cpu" = ia64; then
23124 # AIX 5 supports IA64
23125 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23126 shlibpath_var=LD_LIBRARY_PATH
23127 else
23128 # With GCC up to 2.95.x, collect2 would create an import file
23129 # for dependence libraries. The import file would start with
23130 # the line `#! .'. This would cause the generated library to
23131 # depend on `.', always an invalid library. This was fixed in
23132 # development snapshots of GCC prior to 3.0.
23133 case $host_os in
23134 aix4 | aix4.[01] | aix4.[01].*)
23135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23136 echo ' yes '
23137 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23139 else
23140 can_build_shared=no
23143 esac
23144 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23145 # soname into executable. Probably we can add versioning support to
23146 # collect2, so additional links can be useful in future.
23147 if test "$aix_use_runtimelinking" = yes; then
23148 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23149 # instead of lib<name>.a to let people know that these are not
23150 # typical AIX shared libraries.
23151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23152 else
23153 # We preserve .a as extension for shared libraries through AIX4.2
23154 # and later when we are not doing run time linking.
23155 library_names_spec='${libname}${release}.a $libname.a'
23156 soname_spec='${libname}${release}${shared_ext}$major'
23158 shlibpath_var=LIBPATH
23162 amigaos*)
23163 library_names_spec='$libname.ixlibrary $libname.a'
23164 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23165 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'
23168 beos*)
23169 library_names_spec='${libname}${shared_ext}'
23170 dynamic_linker="$host_os ld.so"
23171 shlibpath_var=LIBRARY_PATH
23174 bsdi[45]*)
23175 version_type=linux
23176 need_version=no
23177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23178 soname_spec='${libname}${release}${shared_ext}$major'
23179 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23180 shlibpath_var=LD_LIBRARY_PATH
23181 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23182 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23183 # the default ld.so.conf also contains /usr/contrib/lib and
23184 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23185 # libtool to hard-code these into programs
23188 cygwin* | mingw* | pw32*)
23189 version_type=windows
23190 shrext_cmds=".dll"
23191 need_version=no
23192 need_lib_prefix=no
23194 case $GCC,$host_os in
23195 yes,cygwin* | yes,mingw* | yes,pw32*)
23196 library_names_spec='$libname.dll.a'
23197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23198 postinstall_cmds='base_file=`basename \${file}`~
23199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23200 dldir=$destdir/`dirname \$dlpath`~
23201 test -d \$dldir || mkdir -p \$dldir~
23202 $install_prog $dir/$dlname \$dldir/$dlname~
23203 chmod a+x \$dldir/$dlname'
23204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23205 dlpath=$dir/\$dldll~
23206 $rm \$dlpath'
23207 shlibpath_overrides_runpath=yes
23209 case $host_os in
23210 cygwin*)
23211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23215 mingw*)
23216 # MinGW DLLs use traditional 'lib' prefix
23217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23219 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23220 # It is most probably a Windows format PATH printed by
23221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23222 # path with ; separators, and with drive letters. We can handle the
23223 # drive letters (cygwin fileutils understands them), so leave them,
23224 # especially as we might pass files found there to a mingw objdump,
23225 # which wouldn't understand a cygwinified path. Ahh.
23226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23227 else
23228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23231 pw32*)
23232 # pw32 DLLs use 'pw' prefix rather than 'lib'
23233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23235 esac
23239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23241 esac
23242 dynamic_linker='Win32 ld.exe'
23243 # FIXME: first we should search . and the directory the executable is in
23244 shlibpath_var=PATH
23247 darwin* | rhapsody*)
23248 dynamic_linker="$host_os dyld"
23249 version_type=darwin
23250 need_lib_prefix=no
23251 need_version=no
23252 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23253 soname_spec='${libname}${release}${major}$shared_ext'
23254 shlibpath_overrides_runpath=yes
23255 shlibpath_var=DYLD_LIBRARY_PATH
23256 shrext_cmds='.dylib'
23257 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23258 if test "$GCC" = yes; then
23259 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"`
23260 else
23261 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23266 dgux*)
23267 version_type=linux
23268 need_lib_prefix=no
23269 need_version=no
23270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23271 soname_spec='${libname}${release}${shared_ext}$major'
23272 shlibpath_var=LD_LIBRARY_PATH
23275 freebsd1*)
23276 dynamic_linker=no
23279 kfreebsd*-gnu)
23280 version_type=linux
23281 need_lib_prefix=no
23282 need_version=no
23283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23284 soname_spec='${libname}${release}${shared_ext}$major'
23285 shlibpath_var=LD_LIBRARY_PATH
23286 shlibpath_overrides_runpath=no
23287 hardcode_into_libs=yes
23288 dynamic_linker='GNU ld.so'
23291 freebsd* | dragonfly*)
23292 # DragonFly does not have aout. When/if they implement a new
23293 # versioning mechanism, adjust this.
23294 if test -x /usr/bin/objformat; then
23295 objformat=`/usr/bin/objformat`
23296 else
23297 case $host_os in
23298 freebsd[123]*) objformat=aout ;;
23299 *) objformat=elf ;;
23300 esac
23302 version_type=freebsd-$objformat
23303 case $version_type in
23304 freebsd-elf*)
23305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23306 need_version=no
23307 need_lib_prefix=no
23309 freebsd-*)
23310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23311 need_version=yes
23313 esac
23314 shlibpath_var=LD_LIBRARY_PATH
23315 case $host_os in
23316 freebsd2*)
23317 shlibpath_overrides_runpath=yes
23319 freebsd3.[01]* | freebsdelf3.[01]*)
23320 shlibpath_overrides_runpath=yes
23321 hardcode_into_libs=yes
23323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23325 shlibpath_overrides_runpath=no
23326 hardcode_into_libs=yes
23328 freebsd*) # from 4.6 on
23329 shlibpath_overrides_runpath=yes
23330 hardcode_into_libs=yes
23332 esac
23335 gnu*)
23336 version_type=linux
23337 need_lib_prefix=no
23338 need_version=no
23339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23340 soname_spec='${libname}${release}${shared_ext}$major'
23341 shlibpath_var=LD_LIBRARY_PATH
23342 hardcode_into_libs=yes
23345 hpux9* | hpux10* | hpux11*)
23346 # Give a soname corresponding to the major version so that dld.sl refuses to
23347 # link against other versions.
23348 version_type=sunos
23349 need_lib_prefix=no
23350 need_version=no
23351 case $host_cpu in
23352 ia64*)
23353 shrext_cmds='.so'
23354 hardcode_into_libs=yes
23355 dynamic_linker="$host_os dld.so"
23356 shlibpath_var=LD_LIBRARY_PATH
23357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23359 soname_spec='${libname}${release}${shared_ext}$major'
23360 if test "X$HPUX_IA64_MODE" = X32; then
23361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23362 else
23363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23367 hppa*64*)
23368 shrext_cmds='.sl'
23369 hardcode_into_libs=yes
23370 dynamic_linker="$host_os dld.sl"
23371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23374 soname_spec='${libname}${release}${shared_ext}$major'
23375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23379 shrext_cmds='.sl'
23380 dynamic_linker="$host_os dld.sl"
23381 shlibpath_var=SHLIB_PATH
23382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23384 soname_spec='${libname}${release}${shared_ext}$major'
23386 esac
23387 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23388 postinstall_cmds='chmod 555 $lib'
23391 interix3*)
23392 version_type=linux
23393 need_lib_prefix=no
23394 need_version=no
23395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23396 soname_spec='${libname}${release}${shared_ext}$major'
23397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23398 shlibpath_var=LD_LIBRARY_PATH
23399 shlibpath_overrides_runpath=no
23400 hardcode_into_libs=yes
23403 irix5* | irix6* | nonstopux*)
23404 case $host_os in
23405 nonstopux*) version_type=nonstopux ;;
23407 if test "$lt_cv_prog_gnu_ld" = yes; then
23408 version_type=linux
23409 else
23410 version_type=irix
23411 fi ;;
23412 esac
23413 need_lib_prefix=no
23414 need_version=no
23415 soname_spec='${libname}${release}${shared_ext}$major'
23416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23417 case $host_os in
23418 irix5* | nonstopux*)
23419 libsuff= shlibsuff=
23422 case $LD in # libtool.m4 will add one of these switches to LD
23423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23424 libsuff= shlibsuff= libmagic=32-bit;;
23425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23426 libsuff=32 shlibsuff=N32 libmagic=N32;;
23427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23429 *) libsuff= shlibsuff= libmagic=never-match;;
23430 esac
23432 esac
23433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23434 shlibpath_overrides_runpath=no
23435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23437 hardcode_into_libs=yes
23440 # No shared lib support for Linux oldld, aout, or coff.
23441 linux*oldld* | linux*aout* | linux*coff*)
23442 dynamic_linker=no
23445 # This must be Linux ELF.
23446 linux*)
23447 version_type=linux
23448 need_lib_prefix=no
23449 need_version=no
23450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23451 soname_spec='${libname}${release}${shared_ext}$major'
23452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23453 shlibpath_var=LD_LIBRARY_PATH
23454 shlibpath_overrides_runpath=no
23455 # This implies no fast_install, which is unacceptable.
23456 # Some rework will be needed to allow for fast_install
23457 # before this can be enabled.
23458 hardcode_into_libs=yes
23460 # Append ld.so.conf contents to the search path
23461 if test -f /etc/ld.so.conf; then
23462 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' ' '`
23463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23466 # We used to test for /lib/ld.so.1 and disable shared libraries on
23467 # powerpc, because MkLinux only supported shared libraries with the
23468 # GNU dynamic linker. Since this was broken with cross compilers,
23469 # most powerpc-linux boxes support dynamic linking these days and
23470 # people can always --disable-shared, the test was removed, and we
23471 # assume the GNU/Linux dynamic linker is in use.
23472 dynamic_linker='GNU/Linux ld.so'
23475 knetbsd*-gnu)
23476 version_type=linux
23477 need_lib_prefix=no
23478 need_version=no
23479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23480 soname_spec='${libname}${release}${shared_ext}$major'
23481 shlibpath_var=LD_LIBRARY_PATH
23482 shlibpath_overrides_runpath=no
23483 hardcode_into_libs=yes
23484 dynamic_linker='GNU ld.so'
23487 netbsd*)
23488 version_type=sunos
23489 need_lib_prefix=no
23490 need_version=no
23491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23494 dynamic_linker='NetBSD (a.out) ld.so'
23495 else
23496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23497 soname_spec='${libname}${release}${shared_ext}$major'
23498 dynamic_linker='NetBSD ld.elf_so'
23500 shlibpath_var=LD_LIBRARY_PATH
23501 shlibpath_overrides_runpath=yes
23502 hardcode_into_libs=yes
23505 newsos6)
23506 version_type=linux
23507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23508 shlibpath_var=LD_LIBRARY_PATH
23509 shlibpath_overrides_runpath=yes
23512 nto-qnx*)
23513 version_type=linux
23514 need_lib_prefix=no
23515 need_version=no
23516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23517 soname_spec='${libname}${release}${shared_ext}$major'
23518 shlibpath_var=LD_LIBRARY_PATH
23519 shlibpath_overrides_runpath=yes
23522 openbsd*)
23523 version_type=sunos
23524 sys_lib_dlsearch_path_spec="/usr/lib"
23525 need_lib_prefix=no
23526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23527 case $host_os in
23528 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23529 *) need_version=no ;;
23530 esac
23531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23533 shlibpath_var=LD_LIBRARY_PATH
23534 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23535 case $host_os in
23536 openbsd2.[89] | openbsd2.[89].*)
23537 shlibpath_overrides_runpath=no
23540 shlibpath_overrides_runpath=yes
23542 esac
23543 else
23544 shlibpath_overrides_runpath=yes
23548 os2*)
23549 libname_spec='$name'
23550 shrext_cmds=".dll"
23551 need_lib_prefix=no
23552 library_names_spec='$libname${shared_ext} $libname.a'
23553 dynamic_linker='OS/2 ld.exe'
23554 shlibpath_var=LIBPATH
23557 osf3* | osf4* | osf5*)
23558 version_type=osf
23559 need_lib_prefix=no
23560 need_version=no
23561 soname_spec='${libname}${release}${shared_ext}$major'
23562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23563 shlibpath_var=LD_LIBRARY_PATH
23564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23568 solaris*)
23569 version_type=linux
23570 need_lib_prefix=no
23571 need_version=no
23572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23573 soname_spec='${libname}${release}${shared_ext}$major'
23574 shlibpath_var=LD_LIBRARY_PATH
23575 shlibpath_overrides_runpath=yes
23576 hardcode_into_libs=yes
23577 # ldd complains unless libraries are executable
23578 postinstall_cmds='chmod +x $lib'
23581 sunos4*)
23582 version_type=sunos
23583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23584 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23585 shlibpath_var=LD_LIBRARY_PATH
23586 shlibpath_overrides_runpath=yes
23587 if test "$with_gnu_ld" = yes; then
23588 need_lib_prefix=no
23590 need_version=yes
23593 sysv4 | sysv4.3*)
23594 version_type=linux
23595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23596 soname_spec='${libname}${release}${shared_ext}$major'
23597 shlibpath_var=LD_LIBRARY_PATH
23598 case $host_vendor in
23599 sni)
23600 shlibpath_overrides_runpath=no
23601 need_lib_prefix=no
23602 export_dynamic_flag_spec='${wl}-Blargedynsym'
23603 runpath_var=LD_RUN_PATH
23605 siemens)
23606 need_lib_prefix=no
23608 motorola)
23609 need_lib_prefix=no
23610 need_version=no
23611 shlibpath_overrides_runpath=no
23612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23614 esac
23617 sysv4*MP*)
23618 if test -d /usr/nec ;then
23619 version_type=linux
23620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23621 soname_spec='$libname${shared_ext}.$major'
23622 shlibpath_var=LD_LIBRARY_PATH
23626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23627 version_type=freebsd-elf
23628 need_lib_prefix=no
23629 need_version=no
23630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23631 soname_spec='${libname}${release}${shared_ext}$major'
23632 shlibpath_var=LD_LIBRARY_PATH
23633 hardcode_into_libs=yes
23634 if test "$with_gnu_ld" = yes; then
23635 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23636 shlibpath_overrides_runpath=no
23637 else
23638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23639 shlibpath_overrides_runpath=yes
23640 case $host_os in
23641 sco3.2v5*)
23642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23644 esac
23646 sys_lib_dlsearch_path_spec='/usr/lib'
23649 uts4*)
23650 version_type=linux
23651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23652 soname_spec='${libname}${release}${shared_ext}$major'
23653 shlibpath_var=LD_LIBRARY_PATH
23657 dynamic_linker=no
23659 esac
23660 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23661 echo "${ECHO_T}$dynamic_linker" >&6; }
23662 test "$dynamic_linker" = no && can_build_shared=no
23664 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23665 if test "$GCC" = yes; then
23666 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23669 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23670 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23671 hardcode_action_F77=
23672 if test -n "$hardcode_libdir_flag_spec_F77" || \
23673 test -n "$runpath_var_F77" || \
23674 test "X$hardcode_automatic_F77" = "Xyes" ; then
23676 # We can hardcode non-existant directories.
23677 if test "$hardcode_direct_F77" != no &&
23678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23679 # have to relink, otherwise we might link with an installed library
23680 # when we should be linking with a yet-to-be-installed one
23681 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23682 test "$hardcode_minus_L_F77" != no; then
23683 # Linking always hardcodes the temporary library directory.
23684 hardcode_action_F77=relink
23685 else
23686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23687 hardcode_action_F77=immediate
23689 else
23690 # We cannot hardcode anything, or else we can only hardcode existing
23691 # directories.
23692 hardcode_action_F77=unsupported
23694 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23695 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23697 if test "$hardcode_action_F77" = relink; then
23698 # Fast installation is not supported
23699 enable_fast_install=no
23700 elif test "$shlibpath_overrides_runpath" = yes ||
23701 test "$enable_shared" = no; then
23702 # Fast installation is not necessary
23703 enable_fast_install=needless
23707 # The else clause should only fire when bootstrapping the
23708 # libtool distribution, otherwise you forgot to ship ltmain.sh
23709 # with your package, and you will get complaints that there are
23710 # no rules to generate ltmain.sh.
23711 if test -f "$ltmain"; then
23712 # See if we are running on zsh, and set the options which allow our commands through
23713 # without removal of \ escapes.
23714 if test -n "${ZSH_VERSION+set}" ; then
23715 setopt NO_GLOB_SUBST
23717 # Now quote all the things that may contain metacharacters while being
23718 # careful not to overquote the AC_SUBSTed values. We take copies of the
23719 # variables and quote the copies for generation of the libtool script.
23720 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23721 SED SHELL STRIP \
23722 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23723 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23724 deplibs_check_method reload_flag reload_cmds need_locks \
23725 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23726 lt_cv_sys_global_symbol_to_c_name_address \
23727 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23728 old_postinstall_cmds old_postuninstall_cmds \
23729 compiler_F77 \
23730 CC_F77 \
23731 LD_F77 \
23732 lt_prog_compiler_wl_F77 \
23733 lt_prog_compiler_pic_F77 \
23734 lt_prog_compiler_static_F77 \
23735 lt_prog_compiler_no_builtin_flag_F77 \
23736 export_dynamic_flag_spec_F77 \
23737 thread_safe_flag_spec_F77 \
23738 whole_archive_flag_spec_F77 \
23739 enable_shared_with_static_runtimes_F77 \
23740 old_archive_cmds_F77 \
23741 old_archive_from_new_cmds_F77 \
23742 predep_objects_F77 \
23743 postdep_objects_F77 \
23744 predeps_F77 \
23745 postdeps_F77 \
23746 compiler_lib_search_path_F77 \
23747 archive_cmds_F77 \
23748 archive_expsym_cmds_F77 \
23749 postinstall_cmds_F77 \
23750 postuninstall_cmds_F77 \
23751 old_archive_from_expsyms_cmds_F77 \
23752 allow_undefined_flag_F77 \
23753 no_undefined_flag_F77 \
23754 export_symbols_cmds_F77 \
23755 hardcode_libdir_flag_spec_F77 \
23756 hardcode_libdir_flag_spec_ld_F77 \
23757 hardcode_libdir_separator_F77 \
23758 hardcode_automatic_F77 \
23759 module_cmds_F77 \
23760 module_expsym_cmds_F77 \
23761 lt_cv_prog_compiler_c_o_F77 \
23762 exclude_expsyms_F77 \
23763 include_expsyms_F77; do
23765 case $var in
23766 old_archive_cmds_F77 | \
23767 old_archive_from_new_cmds_F77 | \
23768 archive_cmds_F77 | \
23769 archive_expsym_cmds_F77 | \
23770 module_cmds_F77 | \
23771 module_expsym_cmds_F77 | \
23772 old_archive_from_expsyms_cmds_F77 | \
23773 export_symbols_cmds_F77 | \
23774 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23775 postinstall_cmds | postuninstall_cmds | \
23776 old_postinstall_cmds | old_postuninstall_cmds | \
23777 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23778 # Double-quote double-evaled strings.
23779 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23782 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23784 esac
23785 done
23787 case $lt_echo in
23788 *'\$0 --fallback-echo"')
23789 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23791 esac
23793 cfgfile="$ofile"
23795 cat <<__EOF__ >> "$cfgfile"
23796 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23798 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23800 # Shell to use when invoking shell scripts.
23801 SHELL=$lt_SHELL
23803 # Whether or not to build shared libraries.
23804 build_libtool_libs=$enable_shared
23806 # Whether or not to build static libraries.
23807 build_old_libs=$enable_static
23809 # Whether or not to add -lc for building shared libraries.
23810 build_libtool_need_lc=$archive_cmds_need_lc_F77
23812 # Whether or not to disallow shared libs when runtime libs are static
23813 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23815 # Whether or not to optimize for fast installation.
23816 fast_install=$enable_fast_install
23818 # The host system.
23819 host_alias=$host_alias
23820 host=$host
23821 host_os=$host_os
23823 # The build system.
23824 build_alias=$build_alias
23825 build=$build
23826 build_os=$build_os
23828 # An echo program that does not interpret backslashes.
23829 echo=$lt_echo
23831 # The archiver.
23832 AR=$lt_AR
23833 AR_FLAGS=$lt_AR_FLAGS
23835 # A C compiler.
23836 LTCC=$lt_LTCC
23838 # LTCC compiler flags.
23839 LTCFLAGS=$lt_LTCFLAGS
23841 # A language-specific compiler.
23842 CC=$lt_compiler_F77
23844 # Is the compiler the GNU C compiler?
23845 with_gcc=$GCC_F77
23847 # An ERE matcher.
23848 EGREP=$lt_EGREP
23850 # The linker used to build libraries.
23851 LD=$lt_LD_F77
23853 # Whether we need hard or soft links.
23854 LN_S=$lt_LN_S
23856 # A BSD-compatible nm program.
23857 NM=$lt_NM
23859 # A symbol stripping program
23860 STRIP=$lt_STRIP
23862 # Used to examine libraries when file_magic_cmd begins "file"
23863 MAGIC_CMD=$MAGIC_CMD
23865 # Used on cygwin: DLL creation program.
23866 DLLTOOL="$DLLTOOL"
23868 # Used on cygwin: object dumper.
23869 OBJDUMP="$OBJDUMP"
23871 # Used on cygwin: assembler.
23872 AS="$AS"
23874 # The name of the directory that contains temporary libtool files.
23875 objdir=$objdir
23877 # How to create reloadable object files.
23878 reload_flag=$lt_reload_flag
23879 reload_cmds=$lt_reload_cmds
23881 # How to pass a linker flag through the compiler.
23882 wl=$lt_lt_prog_compiler_wl_F77
23884 # Object file suffix (normally "o").
23885 objext="$ac_objext"
23887 # Old archive suffix (normally "a").
23888 libext="$libext"
23890 # Shared library suffix (normally ".so").
23891 shrext_cmds='$shrext_cmds'
23893 # Executable file suffix (normally "").
23894 exeext="$exeext"
23896 # Additional compiler flags for building library objects.
23897 pic_flag=$lt_lt_prog_compiler_pic_F77
23898 pic_mode=$pic_mode
23900 # What is the maximum length of a command?
23901 max_cmd_len=$lt_cv_sys_max_cmd_len
23903 # Does compiler simultaneously support -c and -o options?
23904 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23906 # Must we lock files when doing compilation?
23907 need_locks=$lt_need_locks
23909 # Do we need the lib prefix for modules?
23910 need_lib_prefix=$need_lib_prefix
23912 # Do we need a version for libraries?
23913 need_version=$need_version
23915 # Whether dlopen is supported.
23916 dlopen_support=$enable_dlopen
23918 # Whether dlopen of programs is supported.
23919 dlopen_self=$enable_dlopen_self
23921 # Whether dlopen of statically linked programs is supported.
23922 dlopen_self_static=$enable_dlopen_self_static
23924 # Compiler flag to prevent dynamic linking.
23925 link_static_flag=$lt_lt_prog_compiler_static_F77
23927 # Compiler flag to turn off builtin functions.
23928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23930 # Compiler flag to allow reflexive dlopens.
23931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23933 # Compiler flag to generate shared objects directly from archives.
23934 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23936 # Compiler flag to generate thread-safe objects.
23937 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23939 # Library versioning type.
23940 version_type=$version_type
23942 # Format of library name prefix.
23943 libname_spec=$lt_libname_spec
23945 # List of archive names. First name is the real one, the rest are links.
23946 # The last name is the one that the linker finds with -lNAME.
23947 library_names_spec=$lt_library_names_spec
23949 # The coded name of the library, if different from the real name.
23950 soname_spec=$lt_soname_spec
23952 # Commands used to build and install an old-style archive.
23953 RANLIB=$lt_RANLIB
23954 old_archive_cmds=$lt_old_archive_cmds_F77
23955 old_postinstall_cmds=$lt_old_postinstall_cmds
23956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23958 # Create an old-style archive from a shared archive.
23959 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23961 # Create a temporary old-style archive to link instead of a shared archive.
23962 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23964 # Commands used to build and install a shared archive.
23965 archive_cmds=$lt_archive_cmds_F77
23966 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23967 postinstall_cmds=$lt_postinstall_cmds
23968 postuninstall_cmds=$lt_postuninstall_cmds
23970 # Commands used to build a loadable module (assumed same as above if empty)
23971 module_cmds=$lt_module_cmds_F77
23972 module_expsym_cmds=$lt_module_expsym_cmds_F77
23974 # Commands to strip libraries.
23975 old_striplib=$lt_old_striplib
23976 striplib=$lt_striplib
23978 # Dependencies to place before the objects being linked to create a
23979 # shared library.
23980 predep_objects=$lt_predep_objects_F77
23982 # Dependencies to place after the objects being linked to create a
23983 # shared library.
23984 postdep_objects=$lt_postdep_objects_F77
23986 # Dependencies to place before the objects being linked to create a
23987 # shared library.
23988 predeps=$lt_predeps_F77
23990 # Dependencies to place after the objects being linked to create a
23991 # shared library.
23992 postdeps=$lt_postdeps_F77
23994 # The library search path used internally by the compiler when linking
23995 # a shared library.
23996 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23998 # Method to check whether dependent libraries are shared objects.
23999 deplibs_check_method=$lt_deplibs_check_method
24001 # Command to use when deplibs_check_method == file_magic.
24002 file_magic_cmd=$lt_file_magic_cmd
24004 # Flag that allows shared libraries with undefined symbols to be built.
24005 allow_undefined_flag=$lt_allow_undefined_flag_F77
24007 # Flag that forces no undefined symbols.
24008 no_undefined_flag=$lt_no_undefined_flag_F77
24010 # Commands used to finish a libtool library installation in a directory.
24011 finish_cmds=$lt_finish_cmds
24013 # Same as above, but a single script fragment to be evaled but not shown.
24014 finish_eval=$lt_finish_eval
24016 # Take the output of nm and produce a listing of raw symbols and C names.
24017 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24019 # Transform the output of nm in a proper C declaration
24020 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24022 # Transform the output of nm in a C name address pair
24023 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24025 # This is the shared library runtime path variable.
24026 runpath_var=$runpath_var
24028 # This is the shared library path variable.
24029 shlibpath_var=$shlibpath_var
24031 # Is shlibpath searched before the hard-coded library search path?
24032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24034 # How to hardcode a shared library path into an executable.
24035 hardcode_action=$hardcode_action_F77
24037 # Whether we should hardcode library paths into libraries.
24038 hardcode_into_libs=$hardcode_into_libs
24040 # Flag to hardcode \$libdir into a binary during linking.
24041 # This must work even if \$libdir does not exist.
24042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24044 # If ld is used when linking, flag to hardcode \$libdir into
24045 # a binary during linking. This must work even if \$libdir does
24046 # not exist.
24047 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24049 # Whether we need a single -rpath flag with a separated argument.
24050 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24052 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24053 # resulting binary.
24054 hardcode_direct=$hardcode_direct_F77
24056 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24057 # resulting binary.
24058 hardcode_minus_L=$hardcode_minus_L_F77
24060 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24061 # the resulting binary.
24062 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24064 # Set to yes if building a shared library automatically hardcodes DIR into the library
24065 # and all subsequent libraries and executables linked against it.
24066 hardcode_automatic=$hardcode_automatic_F77
24068 # Variables whose values should be saved in libtool wrapper scripts and
24069 # restored at relink time.
24070 variables_saved_for_relink="$variables_saved_for_relink"
24072 # Whether libtool must link a program against all its dependency libraries.
24073 link_all_deplibs=$link_all_deplibs_F77
24075 # Compile-time system search path for libraries
24076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24078 # Run-time system search path for libraries
24079 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24081 # Fix the shell variable \$srcfile for the compiler.
24082 fix_srcfile_path="$fix_srcfile_path_F77"
24084 # Set to yes if exported symbols are required.
24085 always_export_symbols=$always_export_symbols_F77
24087 # The commands to list exported symbols.
24088 export_symbols_cmds=$lt_export_symbols_cmds_F77
24090 # The commands to extract the exported symbol list from a shared archive.
24091 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24093 # Symbols that should not be listed in the preloaded symbols.
24094 exclude_expsyms=$lt_exclude_expsyms_F77
24096 # Symbols that must always be exported.
24097 include_expsyms=$lt_include_expsyms_F77
24099 # ### END LIBTOOL TAG CONFIG: $tagname
24101 __EOF__
24104 else
24105 # If there is no Makefile yet, we rely on a make rule to execute
24106 # `config.status --recheck' to rerun these tests and create the
24107 # libtool script then.
24108 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24109 if test -f "$ltmain_in"; then
24110 test -f Makefile && make "$ltmain"
24115 ac_ext=c
24116 ac_cpp='$CPP $CPPFLAGS'
24117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24121 CC="$lt_save_CC"
24123 else
24124 tagname=""
24128 GCJ)
24129 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24130 ac_ext=c
24131 ac_cpp='$CPP $CPPFLAGS'
24132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24137 # Source file extension for Java test sources.
24138 ac_ext=java
24140 # Object file extension for compiled Java test sources.
24141 objext=o
24142 objext_GCJ=$objext
24144 # Code to be used in simple compile tests
24145 lt_simple_compile_test_code="class foo {}\n"
24147 # Code to be used in simple link tests
24148 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24150 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24152 # If no C compiler was specified, use CC.
24153 LTCC=${LTCC-"$CC"}
24155 # If no C compiler flags were specified, use CFLAGS.
24156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24158 # Allow CC to be a program name with arguments.
24159 compiler=$CC
24162 # save warnings/boilerplate of simple test code
24163 ac_outfile=conftest.$ac_objext
24164 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24166 _lt_compiler_boilerplate=`cat conftest.err`
24167 $rm conftest*
24169 ac_outfile=conftest.$ac_objext
24170 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24172 _lt_linker_boilerplate=`cat conftest.err`
24173 $rm conftest*
24176 # Allow CC to be a program name with arguments.
24177 lt_save_CC="$CC"
24178 CC=${GCJ-"gcj"}
24179 compiler=$CC
24180 compiler_GCJ=$CC
24181 for cc_temp in $compiler""; do
24182 case $cc_temp in
24183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24185 \-*) ;;
24186 *) break;;
24187 esac
24188 done
24189 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24192 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24193 archive_cmds_need_lc_GCJ=no
24195 old_archive_cmds_GCJ=$old_archive_cmds
24198 lt_prog_compiler_no_builtin_flag_GCJ=
24200 if test "$GCC" = yes; then
24201 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24204 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24205 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24206 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24207 echo $ECHO_N "(cached) $ECHO_C" >&6
24208 else
24209 lt_cv_prog_compiler_rtti_exceptions=no
24210 ac_outfile=conftest.$ac_objext
24211 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24212 lt_compiler_flag="-fno-rtti -fno-exceptions"
24213 # Insert the option either (1) after the last *FLAGS variable, or
24214 # (2) before a word containing "conftest.", or (3) at the end.
24215 # Note that $ac_compile itself does not contain backslashes and begins
24216 # with a dollar sign (not a hyphen), so the echo should work correctly.
24217 # The option is referenced via a variable to avoid confusing sed.
24218 lt_compile=`echo "$ac_compile" | $SED \
24219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24221 -e 's:$: $lt_compiler_flag:'`
24222 (eval echo "\"\$as_me:24222: $lt_compile\"" >&5)
24223 (eval "$lt_compile" 2>conftest.err)
24224 ac_status=$?
24225 cat conftest.err >&5
24226 echo "$as_me:24226: \$? = $ac_status" >&5
24227 if (exit $ac_status) && test -s "$ac_outfile"; then
24228 # The compiler can only warn and ignore the option if not recognized
24229 # So say no if there are warnings other than the usual output.
24230 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24233 lt_cv_prog_compiler_rtti_exceptions=yes
24236 $rm conftest*
24239 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24240 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24242 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24243 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24244 else
24250 lt_prog_compiler_wl_GCJ=
24251 lt_prog_compiler_pic_GCJ=
24252 lt_prog_compiler_static_GCJ=
24254 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24255 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24257 if test "$GCC" = yes; then
24258 lt_prog_compiler_wl_GCJ='-Wl,'
24259 lt_prog_compiler_static_GCJ='-static'
24261 case $host_os in
24262 aix*)
24263 # All AIX code is PIC.
24264 if test "$host_cpu" = ia64; then
24265 # AIX 5 now supports IA64 processor
24266 lt_prog_compiler_static_GCJ='-Bstatic'
24270 amigaos*)
24271 # FIXME: we need at least 68020 code to build shared libraries, but
24272 # adding the `-m68020' flag to GCC prevents building anything better,
24273 # like `-m68040'.
24274 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24277 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24278 # PIC is the default for these OSes.
24281 mingw* | pw32* | os2*)
24282 # This hack is so that the source file can tell whether it is being
24283 # built for inclusion in a dll (and should export symbols for example).
24284 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24287 darwin* | rhapsody*)
24288 # PIC is the default on this platform
24289 # Common symbols not allowed in MH_DYLIB files
24290 lt_prog_compiler_pic_GCJ='-fno-common'
24293 interix3*)
24294 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24295 # Instead, we relocate shared libraries at runtime.
24298 msdosdjgpp*)
24299 # Just because we use GCC doesn't mean we suddenly get shared libraries
24300 # on systems that don't support them.
24301 lt_prog_compiler_can_build_shared_GCJ=no
24302 enable_shared=no
24305 sysv4*MP*)
24306 if test -d /usr/nec; then
24307 lt_prog_compiler_pic_GCJ=-Kconform_pic
24311 hpux*)
24312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24313 # not for PA HP-UX.
24314 case $host_cpu in
24315 hppa*64*|ia64*)
24316 # +Z the default
24319 lt_prog_compiler_pic_GCJ='-fPIC'
24321 esac
24325 lt_prog_compiler_pic_GCJ='-fPIC'
24327 esac
24328 else
24329 # PORTME Check for flag to pass linker flags through the system compiler.
24330 case $host_os in
24331 aix*)
24332 lt_prog_compiler_wl_GCJ='-Wl,'
24333 if test "$host_cpu" = ia64; then
24334 # AIX 5 now supports IA64 processor
24335 lt_prog_compiler_static_GCJ='-Bstatic'
24336 else
24337 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24340 darwin*)
24341 # PIC is the default on this platform
24342 # Common symbols not allowed in MH_DYLIB files
24343 case $cc_basename in
24344 xlc*)
24345 lt_prog_compiler_pic_GCJ='-qnocommon'
24346 lt_prog_compiler_wl_GCJ='-Wl,'
24348 esac
24351 mingw* | pw32* | os2*)
24352 # This hack is so that the source file can tell whether it is being
24353 # built for inclusion in a dll (and should export symbols for example).
24354 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24357 hpux9* | hpux10* | hpux11*)
24358 lt_prog_compiler_wl_GCJ='-Wl,'
24359 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24360 # not for PA HP-UX.
24361 case $host_cpu in
24362 hppa*64*|ia64*)
24363 # +Z the default
24366 lt_prog_compiler_pic_GCJ='+Z'
24368 esac
24369 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24370 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24373 irix5* | irix6* | nonstopux*)
24374 lt_prog_compiler_wl_GCJ='-Wl,'
24375 # PIC (with -KPIC) is the default.
24376 lt_prog_compiler_static_GCJ='-non_shared'
24379 newsos6)
24380 lt_prog_compiler_pic_GCJ='-KPIC'
24381 lt_prog_compiler_static_GCJ='-Bstatic'
24384 linux*)
24385 case $cc_basename in
24386 icc* | ecc*)
24387 lt_prog_compiler_wl_GCJ='-Wl,'
24388 lt_prog_compiler_pic_GCJ='-KPIC'
24389 lt_prog_compiler_static_GCJ='-static'
24391 pgcc* | pgf77* | pgf90* | pgf95*)
24392 # Portland Group compilers (*not* the Pentium gcc compiler,
24393 # which looks to be a dead project)
24394 lt_prog_compiler_wl_GCJ='-Wl,'
24395 lt_prog_compiler_pic_GCJ='-fpic'
24396 lt_prog_compiler_static_GCJ='-Bstatic'
24398 ccc*)
24399 lt_prog_compiler_wl_GCJ='-Wl,'
24400 # All Alpha code is PIC.
24401 lt_prog_compiler_static_GCJ='-non_shared'
24403 esac
24406 osf3* | osf4* | osf5*)
24407 lt_prog_compiler_wl_GCJ='-Wl,'
24408 # All OSF/1 code is PIC.
24409 lt_prog_compiler_static_GCJ='-non_shared'
24412 solaris*)
24413 lt_prog_compiler_pic_GCJ='-KPIC'
24414 lt_prog_compiler_static_GCJ='-Bstatic'
24415 case $cc_basename in
24416 f77* | f90* | f95*)
24417 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24419 lt_prog_compiler_wl_GCJ='-Wl,';;
24420 esac
24423 sunos4*)
24424 lt_prog_compiler_wl_GCJ='-Qoption ld '
24425 lt_prog_compiler_pic_GCJ='-PIC'
24426 lt_prog_compiler_static_GCJ='-Bstatic'
24429 sysv4 | sysv4.2uw2* | sysv4.3*)
24430 lt_prog_compiler_wl_GCJ='-Wl,'
24431 lt_prog_compiler_pic_GCJ='-KPIC'
24432 lt_prog_compiler_static_GCJ='-Bstatic'
24435 sysv4*MP*)
24436 if test -d /usr/nec ;then
24437 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24438 lt_prog_compiler_static_GCJ='-Bstatic'
24442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24443 lt_prog_compiler_wl_GCJ='-Wl,'
24444 lt_prog_compiler_pic_GCJ='-KPIC'
24445 lt_prog_compiler_static_GCJ='-Bstatic'
24448 unicos*)
24449 lt_prog_compiler_wl_GCJ='-Wl,'
24450 lt_prog_compiler_can_build_shared_GCJ=no
24453 uts4*)
24454 lt_prog_compiler_pic_GCJ='-pic'
24455 lt_prog_compiler_static_GCJ='-Bstatic'
24459 lt_prog_compiler_can_build_shared_GCJ=no
24461 esac
24464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24465 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24468 # Check to make sure the PIC flag actually works.
24470 if test -n "$lt_prog_compiler_pic_GCJ"; then
24472 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24474 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24476 else
24477 lt_prog_compiler_pic_works_GCJ=no
24478 ac_outfile=conftest.$ac_objext
24479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24480 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24481 # Insert the option either (1) after the last *FLAGS variable, or
24482 # (2) before a word containing "conftest.", or (3) at the end.
24483 # Note that $ac_compile itself does not contain backslashes and begins
24484 # with a dollar sign (not a hyphen), so the echo should work correctly.
24485 # The option is referenced via a variable to avoid confusing sed.
24486 lt_compile=`echo "$ac_compile" | $SED \
24487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24489 -e 's:$: $lt_compiler_flag:'`
24490 (eval echo "\"\$as_me:24490: $lt_compile\"" >&5)
24491 (eval "$lt_compile" 2>conftest.err)
24492 ac_status=$?
24493 cat conftest.err >&5
24494 echo "$as_me:24494: \$? = $ac_status" >&5
24495 if (exit $ac_status) && test -s "$ac_outfile"; then
24496 # The compiler can only warn and ignore the option if not recognized
24497 # So say no if there are warnings other than the usual output.
24498 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24500 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24501 lt_prog_compiler_pic_works_GCJ=yes
24504 $rm conftest*
24507 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24508 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24510 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24511 case $lt_prog_compiler_pic_GCJ in
24512 "" | " "*) ;;
24513 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24514 esac
24515 else
24516 lt_prog_compiler_pic_GCJ=
24517 lt_prog_compiler_can_build_shared_GCJ=no
24521 case $host_os in
24522 # For platforms which do not support PIC, -DPIC is meaningless:
24523 *djgpp*)
24524 lt_prog_compiler_pic_GCJ=
24527 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24529 esac
24532 # Check to make sure the static flag actually works.
24534 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24535 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24536 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24537 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24538 echo $ECHO_N "(cached) $ECHO_C" >&6
24539 else
24540 lt_prog_compiler_static_works_GCJ=no
24541 save_LDFLAGS="$LDFLAGS"
24542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24543 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24545 # The linker can only warn and ignore the option if not recognized
24546 # So say no if there are warnings
24547 if test -s conftest.err; then
24548 # Append any errors to the config.log.
24549 cat conftest.err 1>&5
24550 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24552 if diff conftest.exp conftest.er2 >/dev/null; then
24553 lt_prog_compiler_static_works_GCJ=yes
24555 else
24556 lt_prog_compiler_static_works_GCJ=yes
24559 $rm conftest*
24560 LDFLAGS="$save_LDFLAGS"
24563 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24564 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24566 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24568 else
24569 lt_prog_compiler_static_GCJ=
24573 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24574 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24575 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24578 lt_cv_prog_compiler_c_o_GCJ=no
24579 $rm -r conftest 2>/dev/null
24580 mkdir conftest
24581 cd conftest
24582 mkdir out
24583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24585 lt_compiler_flag="-o out/conftest2.$ac_objext"
24586 # Insert the option either (1) after the last *FLAGS variable, or
24587 # (2) before a word containing "conftest.", or (3) at the end.
24588 # Note that $ac_compile itself does not contain backslashes and begins
24589 # with a dollar sign (not a hyphen), so the echo should work correctly.
24590 lt_compile=`echo "$ac_compile" | $SED \
24591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24593 -e 's:$: $lt_compiler_flag:'`
24594 (eval echo "\"\$as_me:24594: $lt_compile\"" >&5)
24595 (eval "$lt_compile" 2>out/conftest.err)
24596 ac_status=$?
24597 cat out/conftest.err >&5
24598 echo "$as_me:24598: \$? = $ac_status" >&5
24599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24600 then
24601 # The compiler can only warn and ignore the option if not recognized
24602 # So say no if there are warnings
24603 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24606 lt_cv_prog_compiler_c_o_GCJ=yes
24609 chmod u+w . 2>&5
24610 $rm conftest*
24611 # SGI C++ compiler will create directory out/ii_files/ for
24612 # template instantiation
24613 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24614 $rm out/* && rmdir out
24615 cd ..
24616 rmdir conftest
24617 $rm conftest*
24620 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24624 hard_links="nottested"
24625 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24626 # do not overwrite the value of need_locks provided by the user
24627 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24629 hard_links=yes
24630 $rm conftest*
24631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24632 touch conftest.a
24633 ln conftest.a conftest.b 2>&5 || hard_links=no
24634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24635 { echo "$as_me:$LINENO: result: $hard_links" >&5
24636 echo "${ECHO_T}$hard_links" >&6; }
24637 if test "$hard_links" = no; then
24638 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24640 need_locks=warn
24642 else
24643 need_locks=no
24646 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24649 runpath_var=
24650 allow_undefined_flag_GCJ=
24651 enable_shared_with_static_runtimes_GCJ=no
24652 archive_cmds_GCJ=
24653 archive_expsym_cmds_GCJ=
24654 old_archive_From_new_cmds_GCJ=
24655 old_archive_from_expsyms_cmds_GCJ=
24656 export_dynamic_flag_spec_GCJ=
24657 whole_archive_flag_spec_GCJ=
24658 thread_safe_flag_spec_GCJ=
24659 hardcode_libdir_flag_spec_GCJ=
24660 hardcode_libdir_flag_spec_ld_GCJ=
24661 hardcode_libdir_separator_GCJ=
24662 hardcode_direct_GCJ=no
24663 hardcode_minus_L_GCJ=no
24664 hardcode_shlibpath_var_GCJ=unsupported
24665 link_all_deplibs_GCJ=unknown
24666 hardcode_automatic_GCJ=no
24667 module_cmds_GCJ=
24668 module_expsym_cmds_GCJ=
24669 always_export_symbols_GCJ=no
24670 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24671 # include_expsyms should be a list of space-separated symbols to be *always*
24672 # included in the symbol list
24673 include_expsyms_GCJ=
24674 # exclude_expsyms can be an extended regexp of symbols to exclude
24675 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24676 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24677 # as well as any symbol that contains `d'.
24678 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24679 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24680 # platforms (ab)use it in PIC code, but their linkers get confused if
24681 # the symbol is explicitly referenced. Since portable code cannot
24682 # rely on this symbol name, it's probably fine to never include it in
24683 # preloaded symbol tables.
24684 extract_expsyms_cmds=
24685 # Just being paranoid about ensuring that cc_basename is set.
24686 for cc_temp in $compiler""; do
24687 case $cc_temp in
24688 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24689 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24690 \-*) ;;
24691 *) break;;
24692 esac
24693 done
24694 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24696 case $host_os in
24697 cygwin* | mingw* | pw32*)
24698 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24699 # When not using gcc, we currently assume that we are using
24700 # Microsoft Visual C++.
24701 if test "$GCC" != yes; then
24702 with_gnu_ld=no
24705 interix*)
24706 # we just hope/assume this is gcc and not c89 (= MSVC++)
24707 with_gnu_ld=yes
24709 openbsd*)
24710 with_gnu_ld=no
24712 esac
24714 ld_shlibs_GCJ=yes
24715 if test "$with_gnu_ld" = yes; then
24716 # If archive_cmds runs LD, not CC, wlarc should be empty
24717 wlarc='${wl}'
24719 # Set some defaults for GNU ld with shared library support. These
24720 # are reset later if shared libraries are not supported. Putting them
24721 # here allows them to be overridden if necessary.
24722 runpath_var=LD_RUN_PATH
24723 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24724 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24725 # ancient GNU ld didn't support --whole-archive et. al.
24726 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24727 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24728 else
24729 whole_archive_flag_spec_GCJ=
24731 supports_anon_versioning=no
24732 case `$LD -v 2>/dev/null` in
24733 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24736 *\ 2.11.*) ;; # other 2.11 versions
24737 *) supports_anon_versioning=yes ;;
24738 esac
24740 # See if GNU ld supports shared libraries.
24741 case $host_os in
24742 aix3* | aix4* | aix5*)
24743 # On AIX/PPC, the GNU linker is very broken
24744 if test "$host_cpu" != ia64; then
24745 ld_shlibs_GCJ=no
24746 cat <<EOF 1>&2
24748 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24749 *** to be unable to reliably create shared libraries on AIX.
24750 *** Therefore, libtool is disabling shared libraries support. If you
24751 *** really care for shared libraries, you may want to modify your PATH
24752 *** so that a non-GNU linker is found, and then restart.
24758 amigaos*)
24759 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)'
24760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24761 hardcode_minus_L_GCJ=yes
24763 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24764 # that the semantics of dynamic libraries on AmigaOS, at least up
24765 # to version 4, is to share data among multiple programs linked
24766 # with the same dynamic library. Since this doesn't match the
24767 # behavior of shared libraries on other platforms, we can't use
24768 # them.
24769 ld_shlibs_GCJ=no
24772 beos*)
24773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24774 allow_undefined_flag_GCJ=unsupported
24775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24776 # support --undefined. This deserves some investigation. FIXME
24777 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24778 else
24779 ld_shlibs_GCJ=no
24783 cygwin* | mingw* | pw32*)
24784 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24785 # as there is no search path for DLLs.
24786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24787 allow_undefined_flag_GCJ=unsupported
24788 always_export_symbols_GCJ=no
24789 enable_shared_with_static_runtimes_GCJ=yes
24790 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24792 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24793 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24794 # If the export-symbols file already is a .def file (1st line
24795 # is EXPORTS), use it as is; otherwise, prepend...
24796 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24797 cp $export_symbols $output_objdir/$soname.def;
24798 else
24799 echo EXPORTS > $output_objdir/$soname.def;
24800 cat $export_symbols >> $output_objdir/$soname.def;
24802 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24803 else
24804 ld_shlibs_GCJ=no
24808 interix3*)
24809 hardcode_direct_GCJ=no
24810 hardcode_shlibpath_var_GCJ=no
24811 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24812 export_dynamic_flag_spec_GCJ='${wl}-E'
24813 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24814 # Instead, shared libraries are loaded at an image base (0x10000000 by
24815 # default) and relocated if they conflict, which is a slow very memory
24816 # consuming and fragmenting process. To avoid this, we pick a random,
24817 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24818 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24819 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'
24820 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'
24823 linux*)
24824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24825 tmp_addflag=
24826 case $cc_basename,$host_cpu in
24827 pgcc*) # Portland Group C compiler
24828 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'
24829 tmp_addflag=' $pic_flag'
24831 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24832 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'
24833 tmp_addflag=' $pic_flag -Mnomain' ;;
24834 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24835 tmp_addflag=' -i_dynamic' ;;
24836 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24837 tmp_addflag=' -i_dynamic -nofor_main' ;;
24838 ifc* | ifort*) # Intel Fortran compiler
24839 tmp_addflag=' -nofor_main' ;;
24840 esac
24841 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24843 if test $supports_anon_versioning = yes; then
24844 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24845 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24846 $echo "local: *; };" >> $output_objdir/$libname.ver~
24847 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24849 else
24850 ld_shlibs_GCJ=no
24854 netbsd*)
24855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24856 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24857 wlarc=
24858 else
24859 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24860 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24864 solaris*)
24865 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24866 ld_shlibs_GCJ=no
24867 cat <<EOF 1>&2
24869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24870 *** create shared libraries on Solaris systems. Therefore, libtool
24871 *** is disabling shared libraries support. We urge you to upgrade GNU
24872 *** binutils to release 2.9.1 or newer. Another option is to modify
24873 *** your PATH or compiler configuration so that the native linker is
24874 *** used, and then restart.
24877 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24878 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24879 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24880 else
24881 ld_shlibs_GCJ=no
24885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24886 case `$LD -v 2>&1` in
24887 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24888 ld_shlibs_GCJ=no
24889 cat <<_LT_EOF 1>&2
24891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24892 *** reliably create shared libraries on SCO systems. Therefore, libtool
24893 *** is disabling shared libraries support. We urge you to upgrade GNU
24894 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24895 *** your PATH or compiler configuration so that the native linker is
24896 *** used, and then restart.
24898 _LT_EOF
24901 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24902 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24903 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24904 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24905 else
24906 ld_shlibs_GCJ=no
24909 esac
24912 sunos4*)
24913 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24914 wlarc=
24915 hardcode_direct_GCJ=yes
24916 hardcode_shlibpath_var_GCJ=no
24920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24923 else
24924 ld_shlibs_GCJ=no
24927 esac
24929 if test "$ld_shlibs_GCJ" = no; then
24930 runpath_var=
24931 hardcode_libdir_flag_spec_GCJ=
24932 export_dynamic_flag_spec_GCJ=
24933 whole_archive_flag_spec_GCJ=
24935 else
24936 # PORTME fill in a description of your system's linker (not GNU ld)
24937 case $host_os in
24938 aix3*)
24939 allow_undefined_flag_GCJ=unsupported
24940 always_export_symbols_GCJ=yes
24941 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'
24942 # Note: this linker hardcodes the directories in LIBPATH if there
24943 # are no directories specified by -L.
24944 hardcode_minus_L_GCJ=yes
24945 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24946 # Neither direct hardcoding nor static linking is supported with a
24947 # broken collect2.
24948 hardcode_direct_GCJ=unsupported
24952 aix4* | aix5*)
24953 if test "$host_cpu" = ia64; then
24954 # On IA64, the linker does run time linking by default, so we don't
24955 # have to do anything special.
24956 aix_use_runtimelinking=no
24957 exp_sym_flag='-Bexport'
24958 no_entry_flag=""
24959 else
24960 # If we're using GNU nm, then we don't want the "-C" option.
24961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24963 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'
24964 else
24965 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'
24967 aix_use_runtimelinking=no
24969 # Test if we are trying to use run time linking or normal
24970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24971 # need to do runtime linking.
24972 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24973 for ld_flag in $LDFLAGS; do
24974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24975 aix_use_runtimelinking=yes
24976 break
24978 done
24980 esac
24982 exp_sym_flag='-bexport'
24983 no_entry_flag='-bnoentry'
24986 # When large executables or shared objects are built, AIX ld can
24987 # have problems creating the table of contents. If linking a library
24988 # or program results in "error TOC overflow" add -mminimal-toc to
24989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24992 archive_cmds_GCJ=''
24993 hardcode_direct_GCJ=yes
24994 hardcode_libdir_separator_GCJ=':'
24995 link_all_deplibs_GCJ=yes
24997 if test "$GCC" = yes; then
24998 case $host_os in aix4.[012]|aix4.[012].*)
24999 # We only want to do this on AIX 4.2 and lower, the check
25000 # below for broken collect2 doesn't work under 4.3+
25001 collect2name=`${CC} -print-prog-name=collect2`
25002 if test -f "$collect2name" && \
25003 strings "$collect2name" | grep resolve_lib_name >/dev/null
25004 then
25005 # We have reworked collect2
25006 hardcode_direct_GCJ=yes
25007 else
25008 # We have old collect2
25009 hardcode_direct_GCJ=unsupported
25010 # It fails to find uninstalled libraries when the uninstalled
25011 # path is not listed in the libpath. Setting hardcode_minus_L
25012 # to unsupported forces relinking
25013 hardcode_minus_L_GCJ=yes
25014 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25015 hardcode_libdir_separator_GCJ=
25018 esac
25019 shared_flag='-shared'
25020 if test "$aix_use_runtimelinking" = yes; then
25021 shared_flag="$shared_flag "'${wl}-G'
25023 else
25024 # not using gcc
25025 if test "$host_cpu" = ia64; then
25026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25027 # chokes on -Wl,-G. The following line is correct:
25028 shared_flag='-G'
25029 else
25030 if test "$aix_use_runtimelinking" = yes; then
25031 shared_flag='${wl}-G'
25032 else
25033 shared_flag='${wl}-bM:SRE'
25038 # It seems that -bexpall does not export symbols beginning with
25039 # underscore (_), so it is better to generate a list of symbols to export.
25040 always_export_symbols_GCJ=yes
25041 if test "$aix_use_runtimelinking" = yes; then
25042 # Warning - without using the other runtime loading flags (-brtl),
25043 # -berok will link without error, but may produce a broken library.
25044 allow_undefined_flag_GCJ='-berok'
25045 # Determine the default libpath from the value encoded in an empty executable.
25046 cat >conftest.$ac_ext <<_ACEOF
25047 /* confdefs.h. */
25048 _ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h. */
25054 main ()
25058 return 0;
25060 _ACEOF
25061 rm -f conftest.$ac_objext conftest$ac_exeext
25062 if { (ac_try="$ac_link"
25063 case "(($ac_try" in
25064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065 *) ac_try_echo=$ac_try;;
25066 esac
25067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25068 (eval "$ac_link") 2>conftest.er1
25069 ac_status=$?
25070 grep -v '^ *+' conftest.er1 >conftest.err
25071 rm -f conftest.er1
25072 cat conftest.err >&5
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); } &&
25075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25076 { (case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25079 esac
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081 (eval "$ac_try") 2>&5
25082 ac_status=$?
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); }; } &&
25085 { ac_try='test -s conftest$ac_exeext'
25086 { (case "(($ac_try" in
25087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088 *) ac_try_echo=$ac_try;;
25089 esac
25090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25091 (eval "$ac_try") 2>&5
25092 ac_status=$?
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); }; }; then
25096 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25098 # Check for a 64-bit object if we didn't find anything.
25099 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; }
25100 }'`; fi
25101 else
25102 echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25108 rm -f core conftest.err conftest.$ac_objext \
25109 conftest$ac_exeext conftest.$ac_ext
25110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25112 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25113 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"
25114 else
25115 if test "$host_cpu" = ia64; then
25116 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25117 allow_undefined_flag_GCJ="-z nodefs"
25118 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"
25119 else
25120 # Determine the default libpath from the value encoded in an empty executable.
25121 cat >conftest.$ac_ext <<_ACEOF
25122 /* confdefs.h. */
25123 _ACEOF
25124 cat confdefs.h >>conftest.$ac_ext
25125 cat >>conftest.$ac_ext <<_ACEOF
25126 /* end confdefs.h. */
25129 main ()
25133 return 0;
25135 _ACEOF
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (ac_try="$ac_link"
25138 case "(($ac_try" in
25139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140 *) ac_try_echo=$ac_try;;
25141 esac
25142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143 (eval "$ac_link") 2>conftest.er1
25144 ac_status=$?
25145 grep -v '^ *+' conftest.er1 >conftest.err
25146 rm -f conftest.er1
25147 cat conftest.err >&5
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } &&
25150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25151 { (case "(($ac_try" in
25152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25153 *) ac_try_echo=$ac_try;;
25154 esac
25155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25156 (eval "$ac_try") 2>&5
25157 ac_status=$?
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); }; } &&
25160 { ac_try='test -s conftest$ac_exeext'
25161 { (case "(($ac_try" in
25162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163 *) ac_try_echo=$ac_try;;
25164 esac
25165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166 (eval "$ac_try") 2>&5
25167 ac_status=$?
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); }; }; then
25171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25173 # Check for a 64-bit object if we didn't find anything.
25174 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; }
25175 }'`; fi
25176 else
25177 echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25183 rm -f core conftest.err conftest.$ac_objext \
25184 conftest$ac_exeext conftest.$ac_ext
25185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25187 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25188 # Warning - without using the other run time loading flags,
25189 # -berok will link without error, but may produce a broken library.
25190 no_undefined_flag_GCJ=' ${wl}-bernotok'
25191 allow_undefined_flag_GCJ=' ${wl}-berok'
25192 # Exported symbols can be pulled into shared objects from archives
25193 whole_archive_flag_spec_GCJ='$convenience'
25194 archive_cmds_need_lc_GCJ=yes
25195 # This is similar to how AIX traditionally builds its shared libraries.
25196 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'
25201 amigaos*)
25202 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)'
25203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25204 hardcode_minus_L_GCJ=yes
25205 # see comment about different semantics on the GNU ld section
25206 ld_shlibs_GCJ=no
25209 bsdi[45]*)
25210 export_dynamic_flag_spec_GCJ=-rdynamic
25213 cygwin* | mingw* | pw32*)
25214 # When not using gcc, we currently assume that we are using
25215 # Microsoft Visual C++.
25216 # hardcode_libdir_flag_spec is actually meaningless, as there is
25217 # no search path for DLLs.
25218 hardcode_libdir_flag_spec_GCJ=' '
25219 allow_undefined_flag_GCJ=unsupported
25220 # Tell ltmain to make .lib files, not .a files.
25221 libext=lib
25222 # Tell ltmain to make .dll files, not .so files.
25223 shrext_cmds=".dll"
25224 # FIXME: Setting linknames here is a bad hack.
25225 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25226 # The linker will automatically build a .lib file if we build a DLL.
25227 old_archive_From_new_cmds_GCJ='true'
25228 # FIXME: Should let the user specify the lib program.
25229 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25230 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25231 enable_shared_with_static_runtimes_GCJ=yes
25234 darwin* | rhapsody*)
25235 case $host_os in
25236 rhapsody* | darwin1.[012])
25237 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25239 *) # Darwin 1.3 on
25240 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25241 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25242 else
25243 case ${MACOSX_DEPLOYMENT_TARGET} in
25244 10.[012])
25245 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25247 10.*)
25248 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25250 esac
25253 esac
25254 archive_cmds_need_lc_GCJ=no
25255 hardcode_direct_GCJ=no
25256 hardcode_automatic_GCJ=yes
25257 hardcode_shlibpath_var_GCJ=unsupported
25258 whole_archive_flag_spec_GCJ=''
25259 link_all_deplibs_GCJ=yes
25260 if test "$GCC" = yes ; then
25261 output_verbose_link_cmd='echo'
25262 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25263 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25264 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25265 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}'
25266 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}'
25267 else
25268 case $cc_basename in
25269 xlc*)
25270 output_verbose_link_cmd='echo'
25271 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25272 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25273 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25274 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}'
25275 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}'
25278 ld_shlibs_GCJ=no
25280 esac
25284 dgux*)
25285 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25287 hardcode_shlibpath_var_GCJ=no
25290 freebsd1*)
25291 ld_shlibs_GCJ=no
25294 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25295 # support. Future versions do this automatically, but an explicit c++rt0.o
25296 # does not break anything, and helps significantly (at the cost of a little
25297 # extra space).
25298 freebsd2.2*)
25299 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25300 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25301 hardcode_direct_GCJ=yes
25302 hardcode_shlibpath_var_GCJ=no
25305 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25306 freebsd2*)
25307 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25308 hardcode_direct_GCJ=yes
25309 hardcode_minus_L_GCJ=yes
25310 hardcode_shlibpath_var_GCJ=no
25313 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25314 freebsd* | kfreebsd*-gnu | dragonfly*)
25315 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25316 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25317 hardcode_direct_GCJ=yes
25318 hardcode_shlibpath_var_GCJ=no
25321 hpux9*)
25322 if test "$GCC" = yes; then
25323 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'
25324 else
25325 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'
25327 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25328 hardcode_libdir_separator_GCJ=:
25329 hardcode_direct_GCJ=yes
25331 # hardcode_minus_L: Not really in the search PATH,
25332 # but as the default location of the library.
25333 hardcode_minus_L_GCJ=yes
25334 export_dynamic_flag_spec_GCJ='${wl}-E'
25337 hpux10*)
25338 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25339 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25340 else
25341 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25343 if test "$with_gnu_ld" = no; then
25344 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25345 hardcode_libdir_separator_GCJ=:
25347 hardcode_direct_GCJ=yes
25348 export_dynamic_flag_spec_GCJ='${wl}-E'
25350 # hardcode_minus_L: Not really in the search PATH,
25351 # but as the default location of the library.
25352 hardcode_minus_L_GCJ=yes
25356 hpux11*)
25357 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25358 case $host_cpu in
25359 hppa*64*)
25360 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25362 ia64*)
25363 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25366 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25368 esac
25369 else
25370 case $host_cpu in
25371 hppa*64*)
25372 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25374 ia64*)
25375 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25378 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25380 esac
25382 if test "$with_gnu_ld" = no; then
25383 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25384 hardcode_libdir_separator_GCJ=:
25386 case $host_cpu in
25387 hppa*64*|ia64*)
25388 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25389 hardcode_direct_GCJ=no
25390 hardcode_shlibpath_var_GCJ=no
25393 hardcode_direct_GCJ=yes
25394 export_dynamic_flag_spec_GCJ='${wl}-E'
25396 # hardcode_minus_L: Not really in the search PATH,
25397 # but as the default location of the library.
25398 hardcode_minus_L_GCJ=yes
25400 esac
25404 irix5* | irix6* | nonstopux*)
25405 if test "$GCC" = yes; then
25406 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'
25407 else
25408 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'
25409 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25411 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25412 hardcode_libdir_separator_GCJ=:
25413 link_all_deplibs_GCJ=yes
25416 netbsd*)
25417 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25418 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25419 else
25420 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25422 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25423 hardcode_direct_GCJ=yes
25424 hardcode_shlibpath_var_GCJ=no
25427 newsos6)
25428 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25429 hardcode_direct_GCJ=yes
25430 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25431 hardcode_libdir_separator_GCJ=:
25432 hardcode_shlibpath_var_GCJ=no
25435 openbsd*)
25436 hardcode_direct_GCJ=yes
25437 hardcode_shlibpath_var_GCJ=no
25438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25439 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25440 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25441 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25442 export_dynamic_flag_spec_GCJ='${wl}-E'
25443 else
25444 case $host_os in
25445 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25446 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25447 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25450 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25453 esac
25457 os2*)
25458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25459 hardcode_minus_L_GCJ=yes
25460 allow_undefined_flag_GCJ=unsupported
25461 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'
25462 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25465 osf3*)
25466 if test "$GCC" = yes; then
25467 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25468 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'
25469 else
25470 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25471 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'
25473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25474 hardcode_libdir_separator_GCJ=:
25477 osf4* | osf5*) # as osf3* with the addition of -msym flag
25478 if test "$GCC" = yes; then
25479 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25480 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'
25481 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25482 else
25483 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25484 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'
25485 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~
25486 $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'
25488 # Both c and cxx compiler support -rpath directly
25489 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25491 hardcode_libdir_separator_GCJ=:
25494 solaris*)
25495 no_undefined_flag_GCJ=' -z text'
25496 if test "$GCC" = yes; then
25497 wlarc='${wl}'
25498 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25499 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25500 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25501 else
25502 wlarc=''
25503 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25504 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25505 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25507 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25508 hardcode_shlibpath_var_GCJ=no
25509 case $host_os in
25510 solaris2.[0-5] | solaris2.[0-5].*) ;;
25512 # The compiler driver will combine linker options so we
25513 # cannot just pass the convience library names through
25514 # without $wl, iff we do not link with $LD.
25515 # Luckily, gcc supports the same syntax we need for Sun Studio.
25516 # Supported since Solaris 2.6 (maybe 2.5.1?)
25517 case $wlarc in
25519 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25521 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' ;;
25522 esac ;;
25523 esac
25524 link_all_deplibs_GCJ=yes
25527 sunos4*)
25528 if test "x$host_vendor" = xsequent; then
25529 # Use $CC to link under sequent, because it throws in some extra .o
25530 # files that make .init and .fini sections work.
25531 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25532 else
25533 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25536 hardcode_direct_GCJ=yes
25537 hardcode_minus_L_GCJ=yes
25538 hardcode_shlibpath_var_GCJ=no
25541 sysv4)
25542 case $host_vendor in
25543 sni)
25544 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25545 hardcode_direct_GCJ=yes # is this really true???
25547 siemens)
25548 ## LD is ld it makes a PLAMLIB
25549 ## CC just makes a GrossModule.
25550 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25551 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25552 hardcode_direct_GCJ=no
25554 motorola)
25555 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25556 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25558 esac
25559 runpath_var='LD_RUN_PATH'
25560 hardcode_shlibpath_var_GCJ=no
25563 sysv4.3*)
25564 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25565 hardcode_shlibpath_var_GCJ=no
25566 export_dynamic_flag_spec_GCJ='-Bexport'
25569 sysv4*MP*)
25570 if test -d /usr/nec; then
25571 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25572 hardcode_shlibpath_var_GCJ=no
25573 runpath_var=LD_RUN_PATH
25574 hardcode_runpath_var=yes
25575 ld_shlibs_GCJ=yes
25579 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25580 no_undefined_flag_GCJ='${wl}-z,text'
25581 archive_cmds_need_lc_GCJ=no
25582 hardcode_shlibpath_var_GCJ=no
25583 runpath_var='LD_RUN_PATH'
25585 if test "$GCC" = yes; then
25586 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25587 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25588 else
25589 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25590 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25594 sysv5* | sco3.2v5* | sco5v6*)
25595 # Note: We can NOT use -z defs as we might desire, because we do not
25596 # link with -lc, and that would cause any symbols used from libc to
25597 # always be unresolved, which means just about no library would
25598 # ever link correctly. If we're not using GNU ld we use -z text
25599 # though, which does catch some bad symbols but isn't as heavy-handed
25600 # as -z defs.
25601 no_undefined_flag_GCJ='${wl}-z,text'
25602 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25603 archive_cmds_need_lc_GCJ=no
25604 hardcode_shlibpath_var_GCJ=no
25605 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25606 hardcode_libdir_separator_GCJ=':'
25607 link_all_deplibs_GCJ=yes
25608 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25609 runpath_var='LD_RUN_PATH'
25611 if test "$GCC" = yes; then
25612 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25613 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25614 else
25615 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25616 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25620 uts4*)
25621 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25623 hardcode_shlibpath_var_GCJ=no
25627 ld_shlibs_GCJ=no
25629 esac
25632 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25633 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25634 test "$ld_shlibs_GCJ" = no && can_build_shared=no
25637 # Do we need to explicitly link libc?
25639 case "x$archive_cmds_need_lc_GCJ" in
25640 x|xyes)
25641 # Assume -lc should be added
25642 archive_cmds_need_lc_GCJ=yes
25644 if test "$enable_shared" = yes && test "$GCC" = yes; then
25645 case $archive_cmds_GCJ in
25646 *'~'*)
25647 # FIXME: we may have to deal with multi-command sequences.
25649 '$CC '*)
25650 # Test whether the compiler implicitly links with -lc since on some
25651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25652 # to ld, don't add -lc before -lgcc.
25653 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25655 $rm conftest*
25656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25659 (eval $ac_compile) 2>&5
25660 ac_status=$?
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } 2>conftest.err; then
25663 soname=conftest
25664 lib=conftest
25665 libobjs=conftest.$ac_objext
25666 deplibs=
25667 wl=$lt_prog_compiler_wl_GCJ
25668 pic_flag=$lt_prog_compiler_pic_GCJ
25669 compiler_flags=-v
25670 linker_flags=-v
25671 verstring=
25672 output_objdir=.
25673 libname=conftest
25674 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25675 allow_undefined_flag_GCJ=
25676 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25677 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25678 ac_status=$?
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); }
25681 then
25682 archive_cmds_need_lc_GCJ=no
25683 else
25684 archive_cmds_need_lc_GCJ=yes
25686 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25687 else
25688 cat conftest.err 1>&5
25690 $rm conftest*
25691 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25692 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25694 esac
25697 esac
25699 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25700 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25701 library_names_spec=
25702 libname_spec='lib$name'
25703 soname_spec=
25704 shrext_cmds=".so"
25705 postinstall_cmds=
25706 postuninstall_cmds=
25707 finish_cmds=
25708 finish_eval=
25709 shlibpath_var=
25710 shlibpath_overrides_runpath=unknown
25711 version_type=none
25712 dynamic_linker="$host_os ld.so"
25713 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25714 if test "$GCC" = yes; then
25715 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25716 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25717 # if the path contains ";" then we assume it to be the separator
25718 # otherwise default to the standard path separator (i.e. ":") - it is
25719 # assumed that no part of a normal pathname contains ";" but that should
25720 # okay in the real world where ";" in dirpaths is itself problematic.
25721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25722 else
25723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25725 else
25726 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25728 need_lib_prefix=unknown
25729 hardcode_into_libs=no
25731 # when you set need_version to no, make sure it does not cause -set_version
25732 # flags to be left without arguments
25733 need_version=unknown
25735 case $host_os in
25736 aix3*)
25737 version_type=linux
25738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25739 shlibpath_var=LIBPATH
25741 # AIX 3 has no versioning support, so we append a major version to the name.
25742 soname_spec='${libname}${release}${shared_ext}$major'
25745 aix4* | aix5*)
25746 version_type=linux
25747 need_lib_prefix=no
25748 need_version=no
25749 hardcode_into_libs=yes
25750 if test "$host_cpu" = ia64; then
25751 # AIX 5 supports IA64
25752 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25753 shlibpath_var=LD_LIBRARY_PATH
25754 else
25755 # With GCC up to 2.95.x, collect2 would create an import file
25756 # for dependence libraries. The import file would start with
25757 # the line `#! .'. This would cause the generated library to
25758 # depend on `.', always an invalid library. This was fixed in
25759 # development snapshots of GCC prior to 3.0.
25760 case $host_os in
25761 aix4 | aix4.[01] | aix4.[01].*)
25762 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25763 echo ' yes '
25764 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25766 else
25767 can_build_shared=no
25770 esac
25771 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25772 # soname into executable. Probably we can add versioning support to
25773 # collect2, so additional links can be useful in future.
25774 if test "$aix_use_runtimelinking" = yes; then
25775 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25776 # instead of lib<name>.a to let people know that these are not
25777 # typical AIX shared libraries.
25778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25779 else
25780 # We preserve .a as extension for shared libraries through AIX4.2
25781 # and later when we are not doing run time linking.
25782 library_names_spec='${libname}${release}.a $libname.a'
25783 soname_spec='${libname}${release}${shared_ext}$major'
25785 shlibpath_var=LIBPATH
25789 amigaos*)
25790 library_names_spec='$libname.ixlibrary $libname.a'
25791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25792 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'
25795 beos*)
25796 library_names_spec='${libname}${shared_ext}'
25797 dynamic_linker="$host_os ld.so"
25798 shlibpath_var=LIBRARY_PATH
25801 bsdi[45]*)
25802 version_type=linux
25803 need_version=no
25804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25805 soname_spec='${libname}${release}${shared_ext}$major'
25806 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25807 shlibpath_var=LD_LIBRARY_PATH
25808 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25809 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25810 # the default ld.so.conf also contains /usr/contrib/lib and
25811 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25812 # libtool to hard-code these into programs
25815 cygwin* | mingw* | pw32*)
25816 version_type=windows
25817 shrext_cmds=".dll"
25818 need_version=no
25819 need_lib_prefix=no
25821 case $GCC,$host_os in
25822 yes,cygwin* | yes,mingw* | yes,pw32*)
25823 library_names_spec='$libname.dll.a'
25824 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25825 postinstall_cmds='base_file=`basename \${file}`~
25826 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25827 dldir=$destdir/`dirname \$dlpath`~
25828 test -d \$dldir || mkdir -p \$dldir~
25829 $install_prog $dir/$dlname \$dldir/$dlname~
25830 chmod a+x \$dldir/$dlname'
25831 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25832 dlpath=$dir/\$dldll~
25833 $rm \$dlpath'
25834 shlibpath_overrides_runpath=yes
25836 case $host_os in
25837 cygwin*)
25838 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25839 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25840 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25842 mingw*)
25843 # MinGW DLLs use traditional 'lib' prefix
25844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25845 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25846 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25847 # It is most probably a Windows format PATH printed by
25848 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25849 # path with ; separators, and with drive letters. We can handle the
25850 # drive letters (cygwin fileutils understands them), so leave them,
25851 # especially as we might pass files found there to a mingw objdump,
25852 # which wouldn't understand a cygwinified path. Ahh.
25853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25854 else
25855 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25858 pw32*)
25859 # pw32 DLLs use 'pw' prefix rather than 'lib'
25860 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25862 esac
25866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25868 esac
25869 dynamic_linker='Win32 ld.exe'
25870 # FIXME: first we should search . and the directory the executable is in
25871 shlibpath_var=PATH
25874 darwin* | rhapsody*)
25875 dynamic_linker="$host_os dyld"
25876 version_type=darwin
25877 need_lib_prefix=no
25878 need_version=no
25879 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25880 soname_spec='${libname}${release}${major}$shared_ext'
25881 shlibpath_overrides_runpath=yes
25882 shlibpath_var=DYLD_LIBRARY_PATH
25883 shrext_cmds='.dylib'
25884 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25885 if test "$GCC" = yes; then
25886 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"`
25887 else
25888 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25890 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25893 dgux*)
25894 version_type=linux
25895 need_lib_prefix=no
25896 need_version=no
25897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25898 soname_spec='${libname}${release}${shared_ext}$major'
25899 shlibpath_var=LD_LIBRARY_PATH
25902 freebsd1*)
25903 dynamic_linker=no
25906 kfreebsd*-gnu)
25907 version_type=linux
25908 need_lib_prefix=no
25909 need_version=no
25910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25911 soname_spec='${libname}${release}${shared_ext}$major'
25912 shlibpath_var=LD_LIBRARY_PATH
25913 shlibpath_overrides_runpath=no
25914 hardcode_into_libs=yes
25915 dynamic_linker='GNU ld.so'
25918 freebsd* | dragonfly*)
25919 # DragonFly does not have aout. When/if they implement a new
25920 # versioning mechanism, adjust this.
25921 if test -x /usr/bin/objformat; then
25922 objformat=`/usr/bin/objformat`
25923 else
25924 case $host_os in
25925 freebsd[123]*) objformat=aout ;;
25926 *) objformat=elf ;;
25927 esac
25929 version_type=freebsd-$objformat
25930 case $version_type in
25931 freebsd-elf*)
25932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25933 need_version=no
25934 need_lib_prefix=no
25936 freebsd-*)
25937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25938 need_version=yes
25940 esac
25941 shlibpath_var=LD_LIBRARY_PATH
25942 case $host_os in
25943 freebsd2*)
25944 shlibpath_overrides_runpath=yes
25946 freebsd3.[01]* | freebsdelf3.[01]*)
25947 shlibpath_overrides_runpath=yes
25948 hardcode_into_libs=yes
25950 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25951 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25952 shlibpath_overrides_runpath=no
25953 hardcode_into_libs=yes
25955 freebsd*) # from 4.6 on
25956 shlibpath_overrides_runpath=yes
25957 hardcode_into_libs=yes
25959 esac
25962 gnu*)
25963 version_type=linux
25964 need_lib_prefix=no
25965 need_version=no
25966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25967 soname_spec='${libname}${release}${shared_ext}$major'
25968 shlibpath_var=LD_LIBRARY_PATH
25969 hardcode_into_libs=yes
25972 hpux9* | hpux10* | hpux11*)
25973 # Give a soname corresponding to the major version so that dld.sl refuses to
25974 # link against other versions.
25975 version_type=sunos
25976 need_lib_prefix=no
25977 need_version=no
25978 case $host_cpu in
25979 ia64*)
25980 shrext_cmds='.so'
25981 hardcode_into_libs=yes
25982 dynamic_linker="$host_os dld.so"
25983 shlibpath_var=LD_LIBRARY_PATH
25984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25986 soname_spec='${libname}${release}${shared_ext}$major'
25987 if test "X$HPUX_IA64_MODE" = X32; then
25988 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25989 else
25990 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25994 hppa*64*)
25995 shrext_cmds='.sl'
25996 hardcode_into_libs=yes
25997 dynamic_linker="$host_os dld.sl"
25998 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26001 soname_spec='${libname}${release}${shared_ext}$major'
26002 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26006 shrext_cmds='.sl'
26007 dynamic_linker="$host_os dld.sl"
26008 shlibpath_var=SHLIB_PATH
26009 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26011 soname_spec='${libname}${release}${shared_ext}$major'
26013 esac
26014 # HP-UX runs *really* slowly unless shared libraries are mode 555.
26015 postinstall_cmds='chmod 555 $lib'
26018 interix3*)
26019 version_type=linux
26020 need_lib_prefix=no
26021 need_version=no
26022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26023 soname_spec='${libname}${release}${shared_ext}$major'
26024 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26025 shlibpath_var=LD_LIBRARY_PATH
26026 shlibpath_overrides_runpath=no
26027 hardcode_into_libs=yes
26030 irix5* | irix6* | nonstopux*)
26031 case $host_os in
26032 nonstopux*) version_type=nonstopux ;;
26034 if test "$lt_cv_prog_gnu_ld" = yes; then
26035 version_type=linux
26036 else
26037 version_type=irix
26038 fi ;;
26039 esac
26040 need_lib_prefix=no
26041 need_version=no
26042 soname_spec='${libname}${release}${shared_ext}$major'
26043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26044 case $host_os in
26045 irix5* | nonstopux*)
26046 libsuff= shlibsuff=
26049 case $LD in # libtool.m4 will add one of these switches to LD
26050 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26051 libsuff= shlibsuff= libmagic=32-bit;;
26052 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26053 libsuff=32 shlibsuff=N32 libmagic=N32;;
26054 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26055 libsuff=64 shlibsuff=64 libmagic=64-bit;;
26056 *) libsuff= shlibsuff= libmagic=never-match;;
26057 esac
26059 esac
26060 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26061 shlibpath_overrides_runpath=no
26062 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26063 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26064 hardcode_into_libs=yes
26067 # No shared lib support for Linux oldld, aout, or coff.
26068 linux*oldld* | linux*aout* | linux*coff*)
26069 dynamic_linker=no
26072 # This must be Linux ELF.
26073 linux*)
26074 version_type=linux
26075 need_lib_prefix=no
26076 need_version=no
26077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26078 soname_spec='${libname}${release}${shared_ext}$major'
26079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26080 shlibpath_var=LD_LIBRARY_PATH
26081 shlibpath_overrides_runpath=no
26082 # This implies no fast_install, which is unacceptable.
26083 # Some rework will be needed to allow for fast_install
26084 # before this can be enabled.
26085 hardcode_into_libs=yes
26087 # Append ld.so.conf contents to the search path
26088 if test -f /etc/ld.so.conf; then
26089 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' ' '`
26090 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26093 # We used to test for /lib/ld.so.1 and disable shared libraries on
26094 # powerpc, because MkLinux only supported shared libraries with the
26095 # GNU dynamic linker. Since this was broken with cross compilers,
26096 # most powerpc-linux boxes support dynamic linking these days and
26097 # people can always --disable-shared, the test was removed, and we
26098 # assume the GNU/Linux dynamic linker is in use.
26099 dynamic_linker='GNU/Linux ld.so'
26102 knetbsd*-gnu)
26103 version_type=linux
26104 need_lib_prefix=no
26105 need_version=no
26106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26107 soname_spec='${libname}${release}${shared_ext}$major'
26108 shlibpath_var=LD_LIBRARY_PATH
26109 shlibpath_overrides_runpath=no
26110 hardcode_into_libs=yes
26111 dynamic_linker='GNU ld.so'
26114 netbsd*)
26115 version_type=sunos
26116 need_lib_prefix=no
26117 need_version=no
26118 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26121 dynamic_linker='NetBSD (a.out) ld.so'
26122 else
26123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26124 soname_spec='${libname}${release}${shared_ext}$major'
26125 dynamic_linker='NetBSD ld.elf_so'
26127 shlibpath_var=LD_LIBRARY_PATH
26128 shlibpath_overrides_runpath=yes
26129 hardcode_into_libs=yes
26132 newsos6)
26133 version_type=linux
26134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26135 shlibpath_var=LD_LIBRARY_PATH
26136 shlibpath_overrides_runpath=yes
26139 nto-qnx*)
26140 version_type=linux
26141 need_lib_prefix=no
26142 need_version=no
26143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26144 soname_spec='${libname}${release}${shared_ext}$major'
26145 shlibpath_var=LD_LIBRARY_PATH
26146 shlibpath_overrides_runpath=yes
26149 openbsd*)
26150 version_type=sunos
26151 sys_lib_dlsearch_path_spec="/usr/lib"
26152 need_lib_prefix=no
26153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26154 case $host_os in
26155 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26156 *) need_version=no ;;
26157 esac
26158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26160 shlibpath_var=LD_LIBRARY_PATH
26161 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26162 case $host_os in
26163 openbsd2.[89] | openbsd2.[89].*)
26164 shlibpath_overrides_runpath=no
26167 shlibpath_overrides_runpath=yes
26169 esac
26170 else
26171 shlibpath_overrides_runpath=yes
26175 os2*)
26176 libname_spec='$name'
26177 shrext_cmds=".dll"
26178 need_lib_prefix=no
26179 library_names_spec='$libname${shared_ext} $libname.a'
26180 dynamic_linker='OS/2 ld.exe'
26181 shlibpath_var=LIBPATH
26184 osf3* | osf4* | osf5*)
26185 version_type=osf
26186 need_lib_prefix=no
26187 need_version=no
26188 soname_spec='${libname}${release}${shared_ext}$major'
26189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26190 shlibpath_var=LD_LIBRARY_PATH
26191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26195 solaris*)
26196 version_type=linux
26197 need_lib_prefix=no
26198 need_version=no
26199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26200 soname_spec='${libname}${release}${shared_ext}$major'
26201 shlibpath_var=LD_LIBRARY_PATH
26202 shlibpath_overrides_runpath=yes
26203 hardcode_into_libs=yes
26204 # ldd complains unless libraries are executable
26205 postinstall_cmds='chmod +x $lib'
26208 sunos4*)
26209 version_type=sunos
26210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26212 shlibpath_var=LD_LIBRARY_PATH
26213 shlibpath_overrides_runpath=yes
26214 if test "$with_gnu_ld" = yes; then
26215 need_lib_prefix=no
26217 need_version=yes
26220 sysv4 | sysv4.3*)
26221 version_type=linux
26222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26223 soname_spec='${libname}${release}${shared_ext}$major'
26224 shlibpath_var=LD_LIBRARY_PATH
26225 case $host_vendor in
26226 sni)
26227 shlibpath_overrides_runpath=no
26228 need_lib_prefix=no
26229 export_dynamic_flag_spec='${wl}-Blargedynsym'
26230 runpath_var=LD_RUN_PATH
26232 siemens)
26233 need_lib_prefix=no
26235 motorola)
26236 need_lib_prefix=no
26237 need_version=no
26238 shlibpath_overrides_runpath=no
26239 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26241 esac
26244 sysv4*MP*)
26245 if test -d /usr/nec ;then
26246 version_type=linux
26247 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26248 soname_spec='$libname${shared_ext}.$major'
26249 shlibpath_var=LD_LIBRARY_PATH
26253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26254 version_type=freebsd-elf
26255 need_lib_prefix=no
26256 need_version=no
26257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26258 soname_spec='${libname}${release}${shared_ext}$major'
26259 shlibpath_var=LD_LIBRARY_PATH
26260 hardcode_into_libs=yes
26261 if test "$with_gnu_ld" = yes; then
26262 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26263 shlibpath_overrides_runpath=no
26264 else
26265 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26266 shlibpath_overrides_runpath=yes
26267 case $host_os in
26268 sco3.2v5*)
26269 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26271 esac
26273 sys_lib_dlsearch_path_spec='/usr/lib'
26276 uts4*)
26277 version_type=linux
26278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26279 soname_spec='${libname}${release}${shared_ext}$major'
26280 shlibpath_var=LD_LIBRARY_PATH
26284 dynamic_linker=no
26286 esac
26287 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26288 echo "${ECHO_T}$dynamic_linker" >&6; }
26289 test "$dynamic_linker" = no && can_build_shared=no
26291 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26292 if test "$GCC" = yes; then
26293 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26296 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26297 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26298 hardcode_action_GCJ=
26299 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26300 test -n "$runpath_var_GCJ" || \
26301 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26303 # We can hardcode non-existant directories.
26304 if test "$hardcode_direct_GCJ" != no &&
26305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26306 # have to relink, otherwise we might link with an installed library
26307 # when we should be linking with a yet-to-be-installed one
26308 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26309 test "$hardcode_minus_L_GCJ" != no; then
26310 # Linking always hardcodes the temporary library directory.
26311 hardcode_action_GCJ=relink
26312 else
26313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26314 hardcode_action_GCJ=immediate
26316 else
26317 # We cannot hardcode anything, or else we can only hardcode existing
26318 # directories.
26319 hardcode_action_GCJ=unsupported
26321 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26322 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26324 if test "$hardcode_action_GCJ" = relink; then
26325 # Fast installation is not supported
26326 enable_fast_install=no
26327 elif test "$shlibpath_overrides_runpath" = yes ||
26328 test "$enable_shared" = no; then
26329 # Fast installation is not necessary
26330 enable_fast_install=needless
26334 # The else clause should only fire when bootstrapping the
26335 # libtool distribution, otherwise you forgot to ship ltmain.sh
26336 # with your package, and you will get complaints that there are
26337 # no rules to generate ltmain.sh.
26338 if test -f "$ltmain"; then
26339 # See if we are running on zsh, and set the options which allow our commands through
26340 # without removal of \ escapes.
26341 if test -n "${ZSH_VERSION+set}" ; then
26342 setopt NO_GLOB_SUBST
26344 # Now quote all the things that may contain metacharacters while being
26345 # careful not to overquote the AC_SUBSTed values. We take copies of the
26346 # variables and quote the copies for generation of the libtool script.
26347 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26348 SED SHELL STRIP \
26349 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26350 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26351 deplibs_check_method reload_flag reload_cmds need_locks \
26352 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26353 lt_cv_sys_global_symbol_to_c_name_address \
26354 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26355 old_postinstall_cmds old_postuninstall_cmds \
26356 compiler_GCJ \
26357 CC_GCJ \
26358 LD_GCJ \
26359 lt_prog_compiler_wl_GCJ \
26360 lt_prog_compiler_pic_GCJ \
26361 lt_prog_compiler_static_GCJ \
26362 lt_prog_compiler_no_builtin_flag_GCJ \
26363 export_dynamic_flag_spec_GCJ \
26364 thread_safe_flag_spec_GCJ \
26365 whole_archive_flag_spec_GCJ \
26366 enable_shared_with_static_runtimes_GCJ \
26367 old_archive_cmds_GCJ \
26368 old_archive_from_new_cmds_GCJ \
26369 predep_objects_GCJ \
26370 postdep_objects_GCJ \
26371 predeps_GCJ \
26372 postdeps_GCJ \
26373 compiler_lib_search_path_GCJ \
26374 archive_cmds_GCJ \
26375 archive_expsym_cmds_GCJ \
26376 postinstall_cmds_GCJ \
26377 postuninstall_cmds_GCJ \
26378 old_archive_from_expsyms_cmds_GCJ \
26379 allow_undefined_flag_GCJ \
26380 no_undefined_flag_GCJ \
26381 export_symbols_cmds_GCJ \
26382 hardcode_libdir_flag_spec_GCJ \
26383 hardcode_libdir_flag_spec_ld_GCJ \
26384 hardcode_libdir_separator_GCJ \
26385 hardcode_automatic_GCJ \
26386 module_cmds_GCJ \
26387 module_expsym_cmds_GCJ \
26388 lt_cv_prog_compiler_c_o_GCJ \
26389 exclude_expsyms_GCJ \
26390 include_expsyms_GCJ; do
26392 case $var in
26393 old_archive_cmds_GCJ | \
26394 old_archive_from_new_cmds_GCJ | \
26395 archive_cmds_GCJ | \
26396 archive_expsym_cmds_GCJ | \
26397 module_cmds_GCJ | \
26398 module_expsym_cmds_GCJ | \
26399 old_archive_from_expsyms_cmds_GCJ | \
26400 export_symbols_cmds_GCJ | \
26401 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26402 postinstall_cmds | postuninstall_cmds | \
26403 old_postinstall_cmds | old_postuninstall_cmds | \
26404 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26405 # Double-quote double-evaled strings.
26406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26411 esac
26412 done
26414 case $lt_echo in
26415 *'\$0 --fallback-echo"')
26416 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26418 esac
26420 cfgfile="$ofile"
26422 cat <<__EOF__ >> "$cfgfile"
26423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26427 # Shell to use when invoking shell scripts.
26428 SHELL=$lt_SHELL
26430 # Whether or not to build shared libraries.
26431 build_libtool_libs=$enable_shared
26433 # Whether or not to build static libraries.
26434 build_old_libs=$enable_static
26436 # Whether or not to add -lc for building shared libraries.
26437 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26439 # Whether or not to disallow shared libs when runtime libs are static
26440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26442 # Whether or not to optimize for fast installation.
26443 fast_install=$enable_fast_install
26445 # The host system.
26446 host_alias=$host_alias
26447 host=$host
26448 host_os=$host_os
26450 # The build system.
26451 build_alias=$build_alias
26452 build=$build
26453 build_os=$build_os
26455 # An echo program that does not interpret backslashes.
26456 echo=$lt_echo
26458 # The archiver.
26459 AR=$lt_AR
26460 AR_FLAGS=$lt_AR_FLAGS
26462 # A C compiler.
26463 LTCC=$lt_LTCC
26465 # LTCC compiler flags.
26466 LTCFLAGS=$lt_LTCFLAGS
26468 # A language-specific compiler.
26469 CC=$lt_compiler_GCJ
26471 # Is the compiler the GNU C compiler?
26472 with_gcc=$GCC_GCJ
26474 # An ERE matcher.
26475 EGREP=$lt_EGREP
26477 # The linker used to build libraries.
26478 LD=$lt_LD_GCJ
26480 # Whether we need hard or soft links.
26481 LN_S=$lt_LN_S
26483 # A BSD-compatible nm program.
26484 NM=$lt_NM
26486 # A symbol stripping program
26487 STRIP=$lt_STRIP
26489 # Used to examine libraries when file_magic_cmd begins "file"
26490 MAGIC_CMD=$MAGIC_CMD
26492 # Used on cygwin: DLL creation program.
26493 DLLTOOL="$DLLTOOL"
26495 # Used on cygwin: object dumper.
26496 OBJDUMP="$OBJDUMP"
26498 # Used on cygwin: assembler.
26499 AS="$AS"
26501 # The name of the directory that contains temporary libtool files.
26502 objdir=$objdir
26504 # How to create reloadable object files.
26505 reload_flag=$lt_reload_flag
26506 reload_cmds=$lt_reload_cmds
26508 # How to pass a linker flag through the compiler.
26509 wl=$lt_lt_prog_compiler_wl_GCJ
26511 # Object file suffix (normally "o").
26512 objext="$ac_objext"
26514 # Old archive suffix (normally "a").
26515 libext="$libext"
26517 # Shared library suffix (normally ".so").
26518 shrext_cmds='$shrext_cmds'
26520 # Executable file suffix (normally "").
26521 exeext="$exeext"
26523 # Additional compiler flags for building library objects.
26524 pic_flag=$lt_lt_prog_compiler_pic_GCJ
26525 pic_mode=$pic_mode
26527 # What is the maximum length of a command?
26528 max_cmd_len=$lt_cv_sys_max_cmd_len
26530 # Does compiler simultaneously support -c and -o options?
26531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26533 # Must we lock files when doing compilation?
26534 need_locks=$lt_need_locks
26536 # Do we need the lib prefix for modules?
26537 need_lib_prefix=$need_lib_prefix
26539 # Do we need a version for libraries?
26540 need_version=$need_version
26542 # Whether dlopen is supported.
26543 dlopen_support=$enable_dlopen
26545 # Whether dlopen of programs is supported.
26546 dlopen_self=$enable_dlopen_self
26548 # Whether dlopen of statically linked programs is supported.
26549 dlopen_self_static=$enable_dlopen_self_static
26551 # Compiler flag to prevent dynamic linking.
26552 link_static_flag=$lt_lt_prog_compiler_static_GCJ
26554 # Compiler flag to turn off builtin functions.
26555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26557 # Compiler flag to allow reflexive dlopens.
26558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26560 # Compiler flag to generate shared objects directly from archives.
26561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26563 # Compiler flag to generate thread-safe objects.
26564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26566 # Library versioning type.
26567 version_type=$version_type
26569 # Format of library name prefix.
26570 libname_spec=$lt_libname_spec
26572 # List of archive names. First name is the real one, the rest are links.
26573 # The last name is the one that the linker finds with -lNAME.
26574 library_names_spec=$lt_library_names_spec
26576 # The coded name of the library, if different from the real name.
26577 soname_spec=$lt_soname_spec
26579 # Commands used to build and install an old-style archive.
26580 RANLIB=$lt_RANLIB
26581 old_archive_cmds=$lt_old_archive_cmds_GCJ
26582 old_postinstall_cmds=$lt_old_postinstall_cmds
26583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26585 # Create an old-style archive from a shared archive.
26586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26588 # Create a temporary old-style archive to link instead of a shared archive.
26589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26591 # Commands used to build and install a shared archive.
26592 archive_cmds=$lt_archive_cmds_GCJ
26593 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26594 postinstall_cmds=$lt_postinstall_cmds
26595 postuninstall_cmds=$lt_postuninstall_cmds
26597 # Commands used to build a loadable module (assumed same as above if empty)
26598 module_cmds=$lt_module_cmds_GCJ
26599 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26601 # Commands to strip libraries.
26602 old_striplib=$lt_old_striplib
26603 striplib=$lt_striplib
26605 # Dependencies to place before the objects being linked to create a
26606 # shared library.
26607 predep_objects=$lt_predep_objects_GCJ
26609 # Dependencies to place after the objects being linked to create a
26610 # shared library.
26611 postdep_objects=$lt_postdep_objects_GCJ
26613 # Dependencies to place before the objects being linked to create a
26614 # shared library.
26615 predeps=$lt_predeps_GCJ
26617 # Dependencies to place after the objects being linked to create a
26618 # shared library.
26619 postdeps=$lt_postdeps_GCJ
26621 # The library search path used internally by the compiler when linking
26622 # a shared library.
26623 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26625 # Method to check whether dependent libraries are shared objects.
26626 deplibs_check_method=$lt_deplibs_check_method
26628 # Command to use when deplibs_check_method == file_magic.
26629 file_magic_cmd=$lt_file_magic_cmd
26631 # Flag that allows shared libraries with undefined symbols to be built.
26632 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26634 # Flag that forces no undefined symbols.
26635 no_undefined_flag=$lt_no_undefined_flag_GCJ
26637 # Commands used to finish a libtool library installation in a directory.
26638 finish_cmds=$lt_finish_cmds
26640 # Same as above, but a single script fragment to be evaled but not shown.
26641 finish_eval=$lt_finish_eval
26643 # Take the output of nm and produce a listing of raw symbols and C names.
26644 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26646 # Transform the output of nm in a proper C declaration
26647 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26649 # Transform the output of nm in a C name address pair
26650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26652 # This is the shared library runtime path variable.
26653 runpath_var=$runpath_var
26655 # This is the shared library path variable.
26656 shlibpath_var=$shlibpath_var
26658 # Is shlibpath searched before the hard-coded library search path?
26659 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26661 # How to hardcode a shared library path into an executable.
26662 hardcode_action=$hardcode_action_GCJ
26664 # Whether we should hardcode library paths into libraries.
26665 hardcode_into_libs=$hardcode_into_libs
26667 # Flag to hardcode \$libdir into a binary during linking.
26668 # This must work even if \$libdir does not exist.
26669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26671 # If ld is used when linking, flag to hardcode \$libdir into
26672 # a binary during linking. This must work even if \$libdir does
26673 # not exist.
26674 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26676 # Whether we need a single -rpath flag with a separated argument.
26677 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26679 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26680 # resulting binary.
26681 hardcode_direct=$hardcode_direct_GCJ
26683 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26684 # resulting binary.
26685 hardcode_minus_L=$hardcode_minus_L_GCJ
26687 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26688 # the resulting binary.
26689 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26691 # Set to yes if building a shared library automatically hardcodes DIR into the library
26692 # and all subsequent libraries and executables linked against it.
26693 hardcode_automatic=$hardcode_automatic_GCJ
26695 # Variables whose values should be saved in libtool wrapper scripts and
26696 # restored at relink time.
26697 variables_saved_for_relink="$variables_saved_for_relink"
26699 # Whether libtool must link a program against all its dependency libraries.
26700 link_all_deplibs=$link_all_deplibs_GCJ
26702 # Compile-time system search path for libraries
26703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26705 # Run-time system search path for libraries
26706 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26708 # Fix the shell variable \$srcfile for the compiler.
26709 fix_srcfile_path="$fix_srcfile_path_GCJ"
26711 # Set to yes if exported symbols are required.
26712 always_export_symbols=$always_export_symbols_GCJ
26714 # The commands to list exported symbols.
26715 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26717 # The commands to extract the exported symbol list from a shared archive.
26718 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26720 # Symbols that should not be listed in the preloaded symbols.
26721 exclude_expsyms=$lt_exclude_expsyms_GCJ
26723 # Symbols that must always be exported.
26724 include_expsyms=$lt_include_expsyms_GCJ
26726 # ### END LIBTOOL TAG CONFIG: $tagname
26728 __EOF__
26731 else
26732 # If there is no Makefile yet, we rely on a make rule to execute
26733 # `config.status --recheck' to rerun these tests and create the
26734 # libtool script then.
26735 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26736 if test -f "$ltmain_in"; then
26737 test -f Makefile && make "$ltmain"
26742 ac_ext=c
26743 ac_cpp='$CPP $CPPFLAGS'
26744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26748 CC="$lt_save_CC"
26750 else
26751 tagname=""
26756 ac_ext=c
26757 ac_cpp='$CPP $CPPFLAGS'
26758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26763 # Source file extension for RC test sources.
26764 ac_ext=rc
26766 # Object file extension for compiled RC test sources.
26767 objext=o
26768 objext_RC=$objext
26770 # Code to be used in simple compile tests
26771 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26773 # Code to be used in simple link tests
26774 lt_simple_link_test_code="$lt_simple_compile_test_code"
26776 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26778 # If no C compiler was specified, use CC.
26779 LTCC=${LTCC-"$CC"}
26781 # If no C compiler flags were specified, use CFLAGS.
26782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26784 # Allow CC to be a program name with arguments.
26785 compiler=$CC
26788 # save warnings/boilerplate of simple test code
26789 ac_outfile=conftest.$ac_objext
26790 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26792 _lt_compiler_boilerplate=`cat conftest.err`
26793 $rm conftest*
26795 ac_outfile=conftest.$ac_objext
26796 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26798 _lt_linker_boilerplate=`cat conftest.err`
26799 $rm conftest*
26802 # Allow CC to be a program name with arguments.
26803 lt_save_CC="$CC"
26804 CC=${RC-"windres"}
26805 compiler=$CC
26806 compiler_RC=$CC
26807 for cc_temp in $compiler""; do
26808 case $cc_temp in
26809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26811 \-*) ;;
26812 *) break;;
26813 esac
26814 done
26815 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26817 lt_cv_prog_compiler_c_o_RC=yes
26819 # The else clause should only fire when bootstrapping the
26820 # libtool distribution, otherwise you forgot to ship ltmain.sh
26821 # with your package, and you will get complaints that there are
26822 # no rules to generate ltmain.sh.
26823 if test -f "$ltmain"; then
26824 # See if we are running on zsh, and set the options which allow our commands through
26825 # without removal of \ escapes.
26826 if test -n "${ZSH_VERSION+set}" ; then
26827 setopt NO_GLOB_SUBST
26829 # Now quote all the things that may contain metacharacters while being
26830 # careful not to overquote the AC_SUBSTed values. We take copies of the
26831 # variables and quote the copies for generation of the libtool script.
26832 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26833 SED SHELL STRIP \
26834 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26835 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26836 deplibs_check_method reload_flag reload_cmds need_locks \
26837 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26838 lt_cv_sys_global_symbol_to_c_name_address \
26839 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26840 old_postinstall_cmds old_postuninstall_cmds \
26841 compiler_RC \
26842 CC_RC \
26843 LD_RC \
26844 lt_prog_compiler_wl_RC \
26845 lt_prog_compiler_pic_RC \
26846 lt_prog_compiler_static_RC \
26847 lt_prog_compiler_no_builtin_flag_RC \
26848 export_dynamic_flag_spec_RC \
26849 thread_safe_flag_spec_RC \
26850 whole_archive_flag_spec_RC \
26851 enable_shared_with_static_runtimes_RC \
26852 old_archive_cmds_RC \
26853 old_archive_from_new_cmds_RC \
26854 predep_objects_RC \
26855 postdep_objects_RC \
26856 predeps_RC \
26857 postdeps_RC \
26858 compiler_lib_search_path_RC \
26859 archive_cmds_RC \
26860 archive_expsym_cmds_RC \
26861 postinstall_cmds_RC \
26862 postuninstall_cmds_RC \
26863 old_archive_from_expsyms_cmds_RC \
26864 allow_undefined_flag_RC \
26865 no_undefined_flag_RC \
26866 export_symbols_cmds_RC \
26867 hardcode_libdir_flag_spec_RC \
26868 hardcode_libdir_flag_spec_ld_RC \
26869 hardcode_libdir_separator_RC \
26870 hardcode_automatic_RC \
26871 module_cmds_RC \
26872 module_expsym_cmds_RC \
26873 lt_cv_prog_compiler_c_o_RC \
26874 exclude_expsyms_RC \
26875 include_expsyms_RC; do
26877 case $var in
26878 old_archive_cmds_RC | \
26879 old_archive_from_new_cmds_RC | \
26880 archive_cmds_RC | \
26881 archive_expsym_cmds_RC | \
26882 module_cmds_RC | \
26883 module_expsym_cmds_RC | \
26884 old_archive_from_expsyms_cmds_RC | \
26885 export_symbols_cmds_RC | \
26886 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26887 postinstall_cmds | postuninstall_cmds | \
26888 old_postinstall_cmds | old_postuninstall_cmds | \
26889 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26890 # Double-quote double-evaled strings.
26891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26894 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26896 esac
26897 done
26899 case $lt_echo in
26900 *'\$0 --fallback-echo"')
26901 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26903 esac
26905 cfgfile="$ofile"
26907 cat <<__EOF__ >> "$cfgfile"
26908 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26910 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26912 # Shell to use when invoking shell scripts.
26913 SHELL=$lt_SHELL
26915 # Whether or not to build shared libraries.
26916 build_libtool_libs=$enable_shared
26918 # Whether or not to build static libraries.
26919 build_old_libs=$enable_static
26921 # Whether or not to add -lc for building shared libraries.
26922 build_libtool_need_lc=$archive_cmds_need_lc_RC
26924 # Whether or not to disallow shared libs when runtime libs are static
26925 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26927 # Whether or not to optimize for fast installation.
26928 fast_install=$enable_fast_install
26930 # The host system.
26931 host_alias=$host_alias
26932 host=$host
26933 host_os=$host_os
26935 # The build system.
26936 build_alias=$build_alias
26937 build=$build
26938 build_os=$build_os
26940 # An echo program that does not interpret backslashes.
26941 echo=$lt_echo
26943 # The archiver.
26944 AR=$lt_AR
26945 AR_FLAGS=$lt_AR_FLAGS
26947 # A C compiler.
26948 LTCC=$lt_LTCC
26950 # LTCC compiler flags.
26951 LTCFLAGS=$lt_LTCFLAGS
26953 # A language-specific compiler.
26954 CC=$lt_compiler_RC
26956 # Is the compiler the GNU C compiler?
26957 with_gcc=$GCC_RC
26959 # An ERE matcher.
26960 EGREP=$lt_EGREP
26962 # The linker used to build libraries.
26963 LD=$lt_LD_RC
26965 # Whether we need hard or soft links.
26966 LN_S=$lt_LN_S
26968 # A BSD-compatible nm program.
26969 NM=$lt_NM
26971 # A symbol stripping program
26972 STRIP=$lt_STRIP
26974 # Used to examine libraries when file_magic_cmd begins "file"
26975 MAGIC_CMD=$MAGIC_CMD
26977 # Used on cygwin: DLL creation program.
26978 DLLTOOL="$DLLTOOL"
26980 # Used on cygwin: object dumper.
26981 OBJDUMP="$OBJDUMP"
26983 # Used on cygwin: assembler.
26984 AS="$AS"
26986 # The name of the directory that contains temporary libtool files.
26987 objdir=$objdir
26989 # How to create reloadable object files.
26990 reload_flag=$lt_reload_flag
26991 reload_cmds=$lt_reload_cmds
26993 # How to pass a linker flag through the compiler.
26994 wl=$lt_lt_prog_compiler_wl_RC
26996 # Object file suffix (normally "o").
26997 objext="$ac_objext"
26999 # Old archive suffix (normally "a").
27000 libext="$libext"
27002 # Shared library suffix (normally ".so").
27003 shrext_cmds='$shrext_cmds'
27005 # Executable file suffix (normally "").
27006 exeext="$exeext"
27008 # Additional compiler flags for building library objects.
27009 pic_flag=$lt_lt_prog_compiler_pic_RC
27010 pic_mode=$pic_mode
27012 # What is the maximum length of a command?
27013 max_cmd_len=$lt_cv_sys_max_cmd_len
27015 # Does compiler simultaneously support -c and -o options?
27016 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
27018 # Must we lock files when doing compilation?
27019 need_locks=$lt_need_locks
27021 # Do we need the lib prefix for modules?
27022 need_lib_prefix=$need_lib_prefix
27024 # Do we need a version for libraries?
27025 need_version=$need_version
27027 # Whether dlopen is supported.
27028 dlopen_support=$enable_dlopen
27030 # Whether dlopen of programs is supported.
27031 dlopen_self=$enable_dlopen_self
27033 # Whether dlopen of statically linked programs is supported.
27034 dlopen_self_static=$enable_dlopen_self_static
27036 # Compiler flag to prevent dynamic linking.
27037 link_static_flag=$lt_lt_prog_compiler_static_RC
27039 # Compiler flag to turn off builtin functions.
27040 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
27042 # Compiler flag to allow reflexive dlopens.
27043 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
27045 # Compiler flag to generate shared objects directly from archives.
27046 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
27048 # Compiler flag to generate thread-safe objects.
27049 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
27051 # Library versioning type.
27052 version_type=$version_type
27054 # Format of library name prefix.
27055 libname_spec=$lt_libname_spec
27057 # List of archive names. First name is the real one, the rest are links.
27058 # The last name is the one that the linker finds with -lNAME.
27059 library_names_spec=$lt_library_names_spec
27061 # The coded name of the library, if different from the real name.
27062 soname_spec=$lt_soname_spec
27064 # Commands used to build and install an old-style archive.
27065 RANLIB=$lt_RANLIB
27066 old_archive_cmds=$lt_old_archive_cmds_RC
27067 old_postinstall_cmds=$lt_old_postinstall_cmds
27068 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27070 # Create an old-style archive from a shared archive.
27071 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27073 # Create a temporary old-style archive to link instead of a shared archive.
27074 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27076 # Commands used to build and install a shared archive.
27077 archive_cmds=$lt_archive_cmds_RC
27078 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27079 postinstall_cmds=$lt_postinstall_cmds
27080 postuninstall_cmds=$lt_postuninstall_cmds
27082 # Commands used to build a loadable module (assumed same as above if empty)
27083 module_cmds=$lt_module_cmds_RC
27084 module_expsym_cmds=$lt_module_expsym_cmds_RC
27086 # Commands to strip libraries.
27087 old_striplib=$lt_old_striplib
27088 striplib=$lt_striplib
27090 # Dependencies to place before the objects being linked to create a
27091 # shared library.
27092 predep_objects=$lt_predep_objects_RC
27094 # Dependencies to place after the objects being linked to create a
27095 # shared library.
27096 postdep_objects=$lt_postdep_objects_RC
27098 # Dependencies to place before the objects being linked to create a
27099 # shared library.
27100 predeps=$lt_predeps_RC
27102 # Dependencies to place after the objects being linked to create a
27103 # shared library.
27104 postdeps=$lt_postdeps_RC
27106 # The library search path used internally by the compiler when linking
27107 # a shared library.
27108 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27110 # Method to check whether dependent libraries are shared objects.
27111 deplibs_check_method=$lt_deplibs_check_method
27113 # Command to use when deplibs_check_method == file_magic.
27114 file_magic_cmd=$lt_file_magic_cmd
27116 # Flag that allows shared libraries with undefined symbols to be built.
27117 allow_undefined_flag=$lt_allow_undefined_flag_RC
27119 # Flag that forces no undefined symbols.
27120 no_undefined_flag=$lt_no_undefined_flag_RC
27122 # Commands used to finish a libtool library installation in a directory.
27123 finish_cmds=$lt_finish_cmds
27125 # Same as above, but a single script fragment to be evaled but not shown.
27126 finish_eval=$lt_finish_eval
27128 # Take the output of nm and produce a listing of raw symbols and C names.
27129 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27131 # Transform the output of nm in a proper C declaration
27132 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27134 # Transform the output of nm in a C name address pair
27135 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27137 # This is the shared library runtime path variable.
27138 runpath_var=$runpath_var
27140 # This is the shared library path variable.
27141 shlibpath_var=$shlibpath_var
27143 # Is shlibpath searched before the hard-coded library search path?
27144 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27146 # How to hardcode a shared library path into an executable.
27147 hardcode_action=$hardcode_action_RC
27149 # Whether we should hardcode library paths into libraries.
27150 hardcode_into_libs=$hardcode_into_libs
27152 # Flag to hardcode \$libdir into a binary during linking.
27153 # This must work even if \$libdir does not exist.
27154 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27156 # If ld is used when linking, flag to hardcode \$libdir into
27157 # a binary during linking. This must work even if \$libdir does
27158 # not exist.
27159 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27161 # Whether we need a single -rpath flag with a separated argument.
27162 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27164 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27165 # resulting binary.
27166 hardcode_direct=$hardcode_direct_RC
27168 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27169 # resulting binary.
27170 hardcode_minus_L=$hardcode_minus_L_RC
27172 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27173 # the resulting binary.
27174 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27176 # Set to yes if building a shared library automatically hardcodes DIR into the library
27177 # and all subsequent libraries and executables linked against it.
27178 hardcode_automatic=$hardcode_automatic_RC
27180 # Variables whose values should be saved in libtool wrapper scripts and
27181 # restored at relink time.
27182 variables_saved_for_relink="$variables_saved_for_relink"
27184 # Whether libtool must link a program against all its dependency libraries.
27185 link_all_deplibs=$link_all_deplibs_RC
27187 # Compile-time system search path for libraries
27188 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27190 # Run-time system search path for libraries
27191 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27193 # Fix the shell variable \$srcfile for the compiler.
27194 fix_srcfile_path="$fix_srcfile_path_RC"
27196 # Set to yes if exported symbols are required.
27197 always_export_symbols=$always_export_symbols_RC
27199 # The commands to list exported symbols.
27200 export_symbols_cmds=$lt_export_symbols_cmds_RC
27202 # The commands to extract the exported symbol list from a shared archive.
27203 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27205 # Symbols that should not be listed in the preloaded symbols.
27206 exclude_expsyms=$lt_exclude_expsyms_RC
27208 # Symbols that must always be exported.
27209 include_expsyms=$lt_include_expsyms_RC
27211 # ### END LIBTOOL TAG CONFIG: $tagname
27213 __EOF__
27216 else
27217 # If there is no Makefile yet, we rely on a make rule to execute
27218 # `config.status --recheck' to rerun these tests and create the
27219 # libtool script then.
27220 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27221 if test -f "$ltmain_in"; then
27222 test -f Makefile && make "$ltmain"
27227 ac_ext=c
27228 ac_cpp='$CPP $CPPFLAGS'
27229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27233 CC="$lt_save_CC"
27238 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27239 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27240 { (exit 1); exit 1; }; }
27242 esac
27244 # Append the new tag name to the list of available tags.
27245 if test -n "$tagname" ; then
27246 available_tags="$available_tags $tagname"
27249 done
27250 IFS="$lt_save_ifs"
27252 # Now substitute the updated list of available tags.
27253 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27254 mv "${ofile}T" "$ofile"
27255 chmod +x "$ofile"
27256 else
27257 rm -f "${ofile}T"
27258 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27259 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27260 { (exit 1); exit 1; }; }
27266 # This can be used to rebuild libtool when needed
27267 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27269 # Always use our own libtool.
27270 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27272 # Prevent multiple expansion
27294 if test "$lt_cv_dlopen_self" = "yes" ; then
27296 cat >>confdefs.h <<\_ACEOF
27297 #define CAN_DLOPEN_SELF 1
27298 _ACEOF
27303 if test "$WITH_LLVMGCCDIR" = "default" ; then
27304 LLVMGCC="llvm-gcc${EXEEXT}"
27305 LLVMGXX="llvm-g++${EXEEXT}"
27306 LLVMGCCCOMMAND="$LLVMGCC"
27307 LLVMGXXCOMMAND="$LLVMGXX"
27308 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27310 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27312 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27313 set dummy $LLVMGCC; ac_word=$2
27314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27316 if test "${ac_cv_path_LLVMGCC+set}" = set; then
27317 echo $ECHO_N "(cached) $ECHO_C" >&6
27318 else
27319 case $LLVMGCC in
27320 [\\/]* | ?:[\\/]*)
27321 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27325 for as_dir in $PATH
27327 IFS=$as_save_IFS
27328 test -z "$as_dir" && as_dir=.
27329 for ac_exec_ext in '' $ac_executable_extensions; do
27330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27331 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27333 break 2
27335 done
27336 done
27337 IFS=$as_save_IFS
27340 esac
27342 LLVMGCC=$ac_cv_path_LLVMGCC
27343 if test -n "$LLVMGCC"; then
27344 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27345 echo "${ECHO_T}$LLVMGCC" >&6; }
27346 else
27347 { echo "$as_me:$LINENO: result: no" >&5
27348 echo "${ECHO_T}no" >&6; }
27352 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27353 set dummy $LLVMGXX; ac_word=$2
27354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27356 if test "${ac_cv_path_LLVMGXX+set}" = set; then
27357 echo $ECHO_N "(cached) $ECHO_C" >&6
27358 else
27359 case $LLVMGXX in
27360 [\\/]* | ?:[\\/]*)
27361 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27365 for as_dir in $PATH
27367 IFS=$as_save_IFS
27368 test -z "$as_dir" && as_dir=.
27369 for ac_exec_ext in '' $ac_executable_extensions; do
27370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27371 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27373 break 2
27375 done
27376 done
27377 IFS=$as_save_IFS
27380 esac
27382 LLVMGXX=$ac_cv_path_LLVMGXX
27383 if test -n "$LLVMGXX"; then
27384 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27385 echo "${ECHO_T}$LLVMGXX" >&6; }
27386 else
27387 { echo "$as_me:$LINENO: result: no" >&5
27388 echo "${ECHO_T}no" >&6; }
27392 else
27393 if test -z "$LLVMGCC"; then
27394 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27395 LLVMGCCCOMMAND="$LLVMGCC"
27397 if test -z "$LLVMGXX"; then
27398 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27399 LLVMGXXCOMMAND="$LLVMGXX"
27402 LLVMGCC=$LLVMGCC
27404 LLVMGXX=$LLVMGXX
27406 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27408 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27413 { echo "$as_me:$LINENO: checking tool compatibility" >&5
27414 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27416 ICC=no
27417 IXX=no
27418 case $CC in
27419 icc*|icpc*)
27420 ICC=yes
27421 IXX=yes
27425 esac
27427 if test "$GCC" != "yes" && test "$ICC" != "yes"
27428 then
27429 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27430 echo "$as_me: error: gcc|icc required but not found" >&2;}
27431 { (exit 1); exit 1; }; }
27434 if test "$GXX" != "yes" && test "$IXX" != "yes"
27435 then
27436 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27437 echo "$as_me: error: g++|icc required but not found" >&2;}
27438 { (exit 1); exit 1; }; }
27441 if test "$GCC" = "yes"
27442 then
27443 cat >conftest.$ac_ext <<_ACEOF
27444 #if !defined(__GNUC__) || __GNUC__ < 3
27445 #error Unsupported GCC version
27446 #endif
27448 _ACEOF
27449 rm -f conftest.$ac_objext
27450 if { (ac_try="$ac_compile"
27451 case "(($ac_try" in
27452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27453 *) ac_try_echo=$ac_try;;
27454 esac
27455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27456 (eval "$ac_compile") 2>conftest.er1
27457 ac_status=$?
27458 grep -v '^ *+' conftest.er1 >conftest.err
27459 rm -f conftest.er1
27460 cat conftest.err >&5
27461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27462 (exit $ac_status); } &&
27463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27464 { (case "(($ac_try" in
27465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27466 *) ac_try_echo=$ac_try;;
27467 esac
27468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27469 (eval "$ac_try") 2>&5
27470 ac_status=$?
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; } &&
27473 { ac_try='test -s conftest.$ac_objext'
27474 { (case "(($ac_try" in
27475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476 *) ac_try_echo=$ac_try;;
27477 esac
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479 (eval "$ac_try") 2>&5
27480 ac_status=$?
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; }; then
27484 else
27485 echo "$as_me: failed program was:" >&5
27486 sed 's/^/| /' conftest.$ac_ext >&5
27488 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
27489 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27490 { (exit 1); exit 1; }; }
27493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27496 if test -z "$llvm_cv_gnu_make_command"
27497 then
27498 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27499 echo "$as_me: error: GNU Make required but not found" >&2;}
27500 { (exit 1); exit 1; }; }
27503 { echo "$as_me:$LINENO: result: ok" >&5
27504 echo "${ECHO_T}ok" >&6; }
27506 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
27507 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
27508 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
27510 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
27512 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
27513 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
27517 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
27518 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27519 if test "${ac_cv_lib_m_sin+set}" = set; then
27520 echo $ECHO_N "(cached) $ECHO_C" >&6
27521 else
27522 ac_check_lib_save_LIBS=$LIBS
27523 LIBS="-lm $LIBS"
27524 cat >conftest.$ac_ext <<_ACEOF
27525 /* confdefs.h. */
27526 _ACEOF
27527 cat confdefs.h >>conftest.$ac_ext
27528 cat >>conftest.$ac_ext <<_ACEOF
27529 /* end confdefs.h. */
27531 /* Override any GCC internal prototype to avoid an error.
27532 Use char because int might match the return type of a GCC
27533 builtin and then its argument prototype would still apply. */
27534 #ifdef __cplusplus
27535 extern "C"
27536 #endif
27537 char sin ();
27539 main ()
27541 return sin ();
27543 return 0;
27545 _ACEOF
27546 rm -f conftest.$ac_objext conftest$ac_exeext
27547 if { (ac_try="$ac_link"
27548 case "(($ac_try" in
27549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550 *) ac_try_echo=$ac_try;;
27551 esac
27552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553 (eval "$ac_link") 2>conftest.er1
27554 ac_status=$?
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
27560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27561 { (case "(($ac_try" in
27562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563 *) ac_try_echo=$ac_try;;
27564 esac
27565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566 (eval "$ac_try") 2>&5
27567 ac_status=$?
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); }; } &&
27570 { ac_try='test -s conftest$ac_exeext'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27574 esac
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; }; then
27580 ac_cv_lib_m_sin=yes
27581 else
27582 echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27585 ac_cv_lib_m_sin=no
27588 rm -f core conftest.err conftest.$ac_objext \
27589 conftest$ac_exeext conftest.$ac_ext
27590 LIBS=$ac_check_lib_save_LIBS
27592 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27593 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27594 if test $ac_cv_lib_m_sin = yes; then
27595 cat >>confdefs.h <<_ACEOF
27596 #define HAVE_LIBM 1
27597 _ACEOF
27599 LIBS="-lm $LIBS"
27603 if test "$llvm_cv_os_type" = "MingW" ; then
27605 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27606 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27607 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27608 echo $ECHO_N "(cached) $ECHO_C" >&6
27609 else
27610 ac_check_lib_save_LIBS=$LIBS
27611 LIBS="-limagehlp $LIBS"
27612 cat >conftest.$ac_ext <<_ACEOF
27613 /* confdefs.h. */
27614 _ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h. */
27621 main ()
27623 return main ();
27625 return 0;
27627 _ACEOF
27628 rm -f conftest.$ac_objext conftest$ac_exeext
27629 if { (ac_try="$ac_link"
27630 case "(($ac_try" in
27631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632 *) ac_try_echo=$ac_try;;
27633 esac
27634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27635 (eval "$ac_link") 2>conftest.er1
27636 ac_status=$?
27637 grep -v '^ *+' conftest.er1 >conftest.err
27638 rm -f conftest.er1
27639 cat conftest.err >&5
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); } &&
27642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27643 { (case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27646 esac
27647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648 (eval "$ac_try") 2>&5
27649 ac_status=$?
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; } &&
27652 { ac_try='test -s conftest$ac_exeext'
27653 { (case "(($ac_try" in
27654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655 *) ac_try_echo=$ac_try;;
27656 esac
27657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658 (eval "$ac_try") 2>&5
27659 ac_status=$?
27660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); }; }; then
27662 ac_cv_lib_imagehlp_main=yes
27663 else
27664 echo "$as_me: failed program was:" >&5
27665 sed 's/^/| /' conftest.$ac_ext >&5
27667 ac_cv_lib_imagehlp_main=no
27670 rm -f core conftest.err conftest.$ac_objext \
27671 conftest$ac_exeext conftest.$ac_ext
27672 LIBS=$ac_check_lib_save_LIBS
27674 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27675 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27676 if test $ac_cv_lib_imagehlp_main = yes; then
27677 cat >>confdefs.h <<_ACEOF
27678 #define HAVE_LIBIMAGEHLP 1
27679 _ACEOF
27681 LIBS="-limagehlp $LIBS"
27686 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27687 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27688 if test "${ac_cv_lib_psapi_main+set}" = set; then
27689 echo $ECHO_N "(cached) $ECHO_C" >&6
27690 else
27691 ac_check_lib_save_LIBS=$LIBS
27692 LIBS="-lpsapi $LIBS"
27693 cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h. */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h. */
27702 main ()
27704 return main ();
27706 return 0;
27708 _ACEOF
27709 rm -f conftest.$ac_objext conftest$ac_exeext
27710 if { (ac_try="$ac_link"
27711 case "(($ac_try" in
27712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27713 *) ac_try_echo=$ac_try;;
27714 esac
27715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27716 (eval "$ac_link") 2>conftest.er1
27717 ac_status=$?
27718 grep -v '^ *+' conftest.er1 >conftest.err
27719 rm -f conftest.er1
27720 cat conftest.err >&5
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); } &&
27723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27724 { (case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27727 esac
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729 (eval "$ac_try") 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; } &&
27733 { ac_try='test -s conftest$ac_exeext'
27734 { (case "(($ac_try" in
27735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736 *) ac_try_echo=$ac_try;;
27737 esac
27738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739 (eval "$ac_try") 2>&5
27740 ac_status=$?
27741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); }; }; then
27743 ac_cv_lib_psapi_main=yes
27744 else
27745 echo "$as_me: failed program was:" >&5
27746 sed 's/^/| /' conftest.$ac_ext >&5
27748 ac_cv_lib_psapi_main=no
27751 rm -f core conftest.err conftest.$ac_objext \
27752 conftest$ac_exeext conftest.$ac_ext
27753 LIBS=$ac_check_lib_save_LIBS
27755 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27756 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27757 if test $ac_cv_lib_psapi_main = yes; then
27758 cat >>confdefs.h <<_ACEOF
27759 #define HAVE_LIBPSAPI 1
27760 _ACEOF
27762 LIBS="-lpsapi $LIBS"
27768 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27769 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27770 if test "${ac_cv_search_dlopen+set}" = set; then
27771 echo $ECHO_N "(cached) $ECHO_C" >&6
27772 else
27773 ac_func_search_save_LIBS=$LIBS
27774 cat >conftest.$ac_ext <<_ACEOF
27775 /* confdefs.h. */
27776 _ACEOF
27777 cat confdefs.h >>conftest.$ac_ext
27778 cat >>conftest.$ac_ext <<_ACEOF
27779 /* end confdefs.h. */
27781 /* Override any GCC internal prototype to avoid an error.
27782 Use char because int might match the return type of a GCC
27783 builtin and then its argument prototype would still apply. */
27784 #ifdef __cplusplus
27785 extern "C"
27786 #endif
27787 char dlopen ();
27789 main ()
27791 return dlopen ();
27793 return 0;
27795 _ACEOF
27796 for ac_lib in '' dl; do
27797 if test -z "$ac_lib"; then
27798 ac_res="none required"
27799 else
27800 ac_res=-l$ac_lib
27801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27803 rm -f conftest.$ac_objext conftest$ac_exeext
27804 if { (ac_try="$ac_link"
27805 case "(($ac_try" in
27806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807 *) ac_try_echo=$ac_try;;
27808 esac
27809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810 (eval "$ac_link") 2>conftest.er1
27811 ac_status=$?
27812 grep -v '^ *+' conftest.er1 >conftest.err
27813 rm -f conftest.er1
27814 cat conftest.err >&5
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); } &&
27817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27818 { (case "(($ac_try" in
27819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820 *) ac_try_echo=$ac_try;;
27821 esac
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823 (eval "$ac_try") 2>&5
27824 ac_status=$?
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; } &&
27827 { ac_try='test -s conftest$ac_exeext'
27828 { (case "(($ac_try" in
27829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830 *) ac_try_echo=$ac_try;;
27831 esac
27832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27833 (eval "$ac_try") 2>&5
27834 ac_status=$?
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); }; }; then
27837 ac_cv_search_dlopen=$ac_res
27838 else
27839 echo "$as_me: failed program was:" >&5
27840 sed 's/^/| /' conftest.$ac_ext >&5
27845 rm -f core conftest.err conftest.$ac_objext \
27846 conftest$ac_exeext
27847 if test "${ac_cv_search_dlopen+set}" = set; then
27848 break
27850 done
27851 if test "${ac_cv_search_dlopen+set}" = set; then
27853 else
27854 ac_cv_search_dlopen=no
27856 rm conftest.$ac_ext
27857 LIBS=$ac_func_search_save_LIBS
27859 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27860 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27861 ac_res=$ac_cv_search_dlopen
27862 if test "$ac_res" != no; then
27863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27865 cat >>confdefs.h <<\_ACEOF
27866 #define HAVE_DLOPEN 1
27867 _ACEOF
27869 else
27870 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27871 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27875 if test "$llvm_cv_enable_libffi" = "yes" ; then
27876 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27877 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27878 if test "${ac_cv_search_ffi_call+set}" = set; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881 ac_func_search_save_LIBS=$LIBS
27882 cat >conftest.$ac_ext <<_ACEOF
27883 /* confdefs.h. */
27884 _ACEOF
27885 cat confdefs.h >>conftest.$ac_ext
27886 cat >>conftest.$ac_ext <<_ACEOF
27887 /* end confdefs.h. */
27889 /* Override any GCC internal prototype to avoid an error.
27890 Use char because int might match the return type of a GCC
27891 builtin and then its argument prototype would still apply. */
27892 #ifdef __cplusplus
27893 extern "C"
27894 #endif
27895 char ffi_call ();
27897 main ()
27899 return ffi_call ();
27901 return 0;
27903 _ACEOF
27904 for ac_lib in '' ffi; do
27905 if test -z "$ac_lib"; then
27906 ac_res="none required"
27907 else
27908 ac_res=-l$ac_lib
27909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27911 rm -f conftest.$ac_objext conftest$ac_exeext
27912 if { (ac_try="$ac_link"
27913 case "(($ac_try" in
27914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915 *) ac_try_echo=$ac_try;;
27916 esac
27917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918 (eval "$ac_link") 2>conftest.er1
27919 ac_status=$?
27920 grep -v '^ *+' conftest.er1 >conftest.err
27921 rm -f conftest.er1
27922 cat conftest.err >&5
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } &&
27925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27926 { (case "(($ac_try" in
27927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928 *) ac_try_echo=$ac_try;;
27929 esac
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931 (eval "$ac_try") 2>&5
27932 ac_status=$?
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); }; } &&
27935 { ac_try='test -s conftest$ac_exeext'
27936 { (case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27939 esac
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_try") 2>&5
27942 ac_status=$?
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; }; then
27945 ac_cv_search_ffi_call=$ac_res
27946 else
27947 echo "$as_me: failed program was:" >&5
27948 sed 's/^/| /' conftest.$ac_ext >&5
27953 rm -f core conftest.err conftest.$ac_objext \
27954 conftest$ac_exeext
27955 if test "${ac_cv_search_ffi_call+set}" = set; then
27956 break
27958 done
27959 if test "${ac_cv_search_ffi_call+set}" = set; then
27961 else
27962 ac_cv_search_ffi_call=no
27964 rm conftest.$ac_ext
27965 LIBS=$ac_func_search_save_LIBS
27967 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27968 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27969 ac_res=$ac_cv_search_ffi_call
27970 if test "$ac_res" != no; then
27971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27973 cat >>confdefs.h <<\_ACEOF
27974 #define HAVE_FFI_CALL 1
27975 _ACEOF
27977 else
27978 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27979 echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27984 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27985 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27986 if test "${ac_cv_search_mallinfo+set}" = set; then
27987 echo $ECHO_N "(cached) $ECHO_C" >&6
27988 else
27989 ac_func_search_save_LIBS=$LIBS
27990 cat >conftest.$ac_ext <<_ACEOF
27991 /* confdefs.h. */
27992 _ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h. */
27997 /* Override any GCC internal prototype to avoid an error.
27998 Use char because int might match the return type of a GCC
27999 builtin and then its argument prototype would still apply. */
28000 #ifdef __cplusplus
28001 extern "C"
28002 #endif
28003 char mallinfo ();
28005 main ()
28007 return mallinfo ();
28009 return 0;
28011 _ACEOF
28012 for ac_lib in '' malloc; do
28013 if test -z "$ac_lib"; then
28014 ac_res="none required"
28015 else
28016 ac_res=-l$ac_lib
28017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28019 rm -f conftest.$ac_objext conftest$ac_exeext
28020 if { (ac_try="$ac_link"
28021 case "(($ac_try" in
28022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023 *) ac_try_echo=$ac_try;;
28024 esac
28025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026 (eval "$ac_link") 2>conftest.er1
28027 ac_status=$?
28028 grep -v '^ *+' conftest.er1 >conftest.err
28029 rm -f conftest.er1
28030 cat conftest.err >&5
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); } &&
28033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28034 { (case "(($ac_try" in
28035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28036 *) ac_try_echo=$ac_try;;
28037 esac
28038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28039 (eval "$ac_try") 2>&5
28040 ac_status=$?
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; } &&
28043 { ac_try='test -s conftest$ac_exeext'
28044 { (case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_try") 2>&5
28050 ac_status=$?
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); }; }; then
28053 ac_cv_search_mallinfo=$ac_res
28054 else
28055 echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28061 rm -f core conftest.err conftest.$ac_objext \
28062 conftest$ac_exeext
28063 if test "${ac_cv_search_mallinfo+set}" = set; then
28064 break
28066 done
28067 if test "${ac_cv_search_mallinfo+set}" = set; then
28069 else
28070 ac_cv_search_mallinfo=no
28072 rm conftest.$ac_ext
28073 LIBS=$ac_func_search_save_LIBS
28075 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28076 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28077 ac_res=$ac_cv_search_mallinfo
28078 if test "$ac_res" != no; then
28079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28081 cat >>confdefs.h <<\_ACEOF
28082 #define HAVE_MALLINFO 1
28083 _ACEOF
28088 if test "$ENABLE_THREADS" -eq 1 ; then
28090 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28091 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28092 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095 ac_check_lib_save_LIBS=$LIBS
28096 LIBS="-lpthread $LIBS"
28097 cat >conftest.$ac_ext <<_ACEOF
28098 /* confdefs.h. */
28099 _ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h. */
28104 /* Override any GCC internal prototype to avoid an error.
28105 Use char because int might match the return type of a GCC
28106 builtin and then its argument prototype would still apply. */
28107 #ifdef __cplusplus
28108 extern "C"
28109 #endif
28110 char pthread_mutex_init ();
28112 main ()
28114 return pthread_mutex_init ();
28116 return 0;
28118 _ACEOF
28119 rm -f conftest.$ac_objext conftest$ac_exeext
28120 if { (ac_try="$ac_link"
28121 case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28124 esac
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126 (eval "$ac_link") 2>conftest.er1
28127 ac_status=$?
28128 grep -v '^ *+' conftest.er1 >conftest.err
28129 rm -f conftest.er1
28130 cat conftest.err >&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); } &&
28133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28134 { (case "(($ac_try" in
28135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136 *) ac_try_echo=$ac_try;;
28137 esac
28138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139 (eval "$ac_try") 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
28144 { (case "(($ac_try" in
28145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146 *) ac_try_echo=$ac_try;;
28147 esac
28148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149 (eval "$ac_try") 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; }; then
28153 ac_cv_lib_pthread_pthread_mutex_init=yes
28154 else
28155 echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28158 ac_cv_lib_pthread_pthread_mutex_init=no
28161 rm -f core conftest.err conftest.$ac_objext \
28162 conftest$ac_exeext conftest.$ac_ext
28163 LIBS=$ac_check_lib_save_LIBS
28165 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28166 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28167 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28168 cat >>confdefs.h <<_ACEOF
28169 #define HAVE_LIBPTHREAD 1
28170 _ACEOF
28172 LIBS="-lpthread $LIBS"
28176 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28177 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28178 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28179 echo $ECHO_N "(cached) $ECHO_C" >&6
28180 else
28181 ac_func_search_save_LIBS=$LIBS
28182 cat >conftest.$ac_ext <<_ACEOF
28183 /* confdefs.h. */
28184 _ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h. */
28189 /* Override any GCC internal prototype to avoid an error.
28190 Use char because int might match the return type of a GCC
28191 builtin and then its argument prototype would still apply. */
28192 #ifdef __cplusplus
28193 extern "C"
28194 #endif
28195 char pthread_mutex_lock ();
28197 main ()
28199 return pthread_mutex_lock ();
28201 return 0;
28203 _ACEOF
28204 for ac_lib in '' pthread; do
28205 if test -z "$ac_lib"; then
28206 ac_res="none required"
28207 else
28208 ac_res=-l$ac_lib
28209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28211 rm -f conftest.$ac_objext conftest$ac_exeext
28212 if { (ac_try="$ac_link"
28213 case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_link") 2>conftest.er1
28219 ac_status=$?
28220 grep -v '^ *+' conftest.er1 >conftest.err
28221 rm -f conftest.er1
28222 cat conftest.err >&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } &&
28225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28226 { (case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28229 esac
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231 (eval "$ac_try") 2>&5
28232 ac_status=$?
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; } &&
28235 { ac_try='test -s conftest$ac_exeext'
28236 { (case "(($ac_try" in
28237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238 *) ac_try_echo=$ac_try;;
28239 esac
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241 (eval "$ac_try") 2>&5
28242 ac_status=$?
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28245 ac_cv_search_pthread_mutex_lock=$ac_res
28246 else
28247 echo "$as_me: failed program was:" >&5
28248 sed 's/^/| /' conftest.$ac_ext >&5
28253 rm -f core conftest.err conftest.$ac_objext \
28254 conftest$ac_exeext
28255 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28256 break
28258 done
28259 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28261 else
28262 ac_cv_search_pthread_mutex_lock=no
28264 rm conftest.$ac_ext
28265 LIBS=$ac_func_search_save_LIBS
28267 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28268 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28269 ac_res=$ac_cv_search_pthread_mutex_lock
28270 if test "$ac_res" != no; then
28271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28273 cat >>confdefs.h <<\_ACEOF
28274 #define HAVE_PTHREAD_MUTEX_LOCK 1
28275 _ACEOF
28279 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28280 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28281 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28283 else
28284 ac_func_search_save_LIBS=$LIBS
28285 cat >conftest.$ac_ext <<_ACEOF
28286 /* confdefs.h. */
28287 _ACEOF
28288 cat confdefs.h >>conftest.$ac_ext
28289 cat >>conftest.$ac_ext <<_ACEOF
28290 /* end confdefs.h. */
28292 /* Override any GCC internal prototype to avoid an error.
28293 Use char because int might match the return type of a GCC
28294 builtin and then its argument prototype would still apply. */
28295 #ifdef __cplusplus
28296 extern "C"
28297 #endif
28298 char pthread_rwlock_init ();
28300 main ()
28302 return pthread_rwlock_init ();
28304 return 0;
28306 _ACEOF
28307 for ac_lib in '' pthread; do
28308 if test -z "$ac_lib"; then
28309 ac_res="none required"
28310 else
28311 ac_res=-l$ac_lib
28312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28314 rm -f conftest.$ac_objext conftest$ac_exeext
28315 if { (ac_try="$ac_link"
28316 case "(($ac_try" in
28317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28318 *) ac_try_echo=$ac_try;;
28319 esac
28320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28321 (eval "$ac_link") 2>conftest.er1
28322 ac_status=$?
28323 grep -v '^ *+' conftest.er1 >conftest.err
28324 rm -f conftest.er1
28325 cat conftest.err >&5
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); } &&
28328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28329 { (case "(($ac_try" in
28330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28331 *) ac_try_echo=$ac_try;;
28332 esac
28333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28334 (eval "$ac_try") 2>&5
28335 ac_status=$?
28336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28337 (exit $ac_status); }; } &&
28338 { ac_try='test -s conftest$ac_exeext'
28339 { (case "(($ac_try" in
28340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28341 *) ac_try_echo=$ac_try;;
28342 esac
28343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28344 (eval "$ac_try") 2>&5
28345 ac_status=$?
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347 (exit $ac_status); }; }; then
28348 ac_cv_search_pthread_rwlock_init=$ac_res
28349 else
28350 echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28356 rm -f core conftest.err conftest.$ac_objext \
28357 conftest$ac_exeext
28358 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28359 break
28361 done
28362 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28364 else
28365 ac_cv_search_pthread_rwlock_init=no
28367 rm conftest.$ac_ext
28368 LIBS=$ac_func_search_save_LIBS
28370 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28371 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28372 ac_res=$ac_cv_search_pthread_rwlock_init
28373 if test "$ac_res" != no; then
28374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28376 cat >>confdefs.h <<\_ACEOF
28377 #define HAVE_PTHREAD_RWLOCK_INIT 1
28378 _ACEOF
28382 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28383 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28384 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28386 else
28387 ac_func_search_save_LIBS=$LIBS
28388 cat >conftest.$ac_ext <<_ACEOF
28389 /* confdefs.h. */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h. */
28395 /* Override any GCC internal prototype to avoid an error.
28396 Use char because int might match the return type of a GCC
28397 builtin and then its argument prototype would still apply. */
28398 #ifdef __cplusplus
28399 extern "C"
28400 #endif
28401 char pthread_getspecific ();
28403 main ()
28405 return pthread_getspecific ();
28407 return 0;
28409 _ACEOF
28410 for ac_lib in '' pthread; do
28411 if test -z "$ac_lib"; then
28412 ac_res="none required"
28413 else
28414 ac_res=-l$ac_lib
28415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28417 rm -f conftest.$ac_objext conftest$ac_exeext
28418 if { (ac_try="$ac_link"
28419 case "(($ac_try" in
28420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421 *) ac_try_echo=$ac_try;;
28422 esac
28423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424 (eval "$ac_link") 2>conftest.er1
28425 ac_status=$?
28426 grep -v '^ *+' conftest.er1 >conftest.err
28427 rm -f conftest.er1
28428 cat conftest.err >&5
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } &&
28431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
28438 ac_status=$?
28439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28440 (exit $ac_status); }; } &&
28441 { ac_try='test -s conftest$ac_exeext'
28442 { (case "(($ac_try" in
28443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28444 *) ac_try_echo=$ac_try;;
28445 esac
28446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28447 (eval "$ac_try") 2>&5
28448 ac_status=$?
28449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450 (exit $ac_status); }; }; then
28451 ac_cv_search_pthread_getspecific=$ac_res
28452 else
28453 echo "$as_me: failed program was:" >&5
28454 sed 's/^/| /' conftest.$ac_ext >&5
28459 rm -f core conftest.err conftest.$ac_objext \
28460 conftest$ac_exeext
28461 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28462 break
28464 done
28465 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28467 else
28468 ac_cv_search_pthread_getspecific=no
28470 rm conftest.$ac_ext
28471 LIBS=$ac_func_search_save_LIBS
28473 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28474 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28475 ac_res=$ac_cv_search_pthread_getspecific
28476 if test "$ac_res" != no; then
28477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28479 cat >>confdefs.h <<\_ACEOF
28480 #define HAVE_PTHREAD_GETSPECIFIC 1
28481 _ACEOF
28488 # Check whether --with-udis86 was given.
28489 if test "${with_udis86+set}" = set; then
28490 withval=$with_udis86;
28491 USE_UDIS86=1
28493 case "$withval" in
28494 /usr/lib|yes) ;;
28495 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28496 esac
28498 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28499 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28500 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
28502 else
28503 ac_check_lib_save_LIBS=$LIBS
28504 LIBS="-ludis86 $LIBS"
28505 cat >conftest.$ac_ext <<_ACEOF
28506 /* confdefs.h. */
28507 _ACEOF
28508 cat confdefs.h >>conftest.$ac_ext
28509 cat >>conftest.$ac_ext <<_ACEOF
28510 /* end confdefs.h. */
28512 /* Override any GCC internal prototype to avoid an error.
28513 Use char because int might match the return type of a GCC
28514 builtin and then its argument prototype would still apply. */
28515 #ifdef __cplusplus
28516 extern "C"
28517 #endif
28518 char ud_init ();
28520 main ()
28522 return ud_init ();
28524 return 0;
28526 _ACEOF
28527 rm -f conftest.$ac_objext conftest$ac_exeext
28528 if { (ac_try="$ac_link"
28529 case "(($ac_try" in
28530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28531 *) ac_try_echo=$ac_try;;
28532 esac
28533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28534 (eval "$ac_link") 2>conftest.er1
28535 ac_status=$?
28536 grep -v '^ *+' conftest.er1 >conftest.err
28537 rm -f conftest.er1
28538 cat conftest.err >&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); } &&
28541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28542 { (case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28545 esac
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_try") 2>&5
28548 ac_status=$?
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; } &&
28551 { ac_try='test -s conftest$ac_exeext'
28552 { (case "(($ac_try" in
28553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28554 *) ac_try_echo=$ac_try;;
28555 esac
28556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28557 (eval "$ac_try") 2>&5
28558 ac_status=$?
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); }; }; then
28561 ac_cv_lib_udis86_ud_init=yes
28562 else
28563 echo "$as_me: failed program was:" >&5
28564 sed 's/^/| /' conftest.$ac_ext >&5
28566 ac_cv_lib_udis86_ud_init=no
28569 rm -f core conftest.err conftest.$ac_objext \
28570 conftest$ac_exeext conftest.$ac_ext
28571 LIBS=$ac_check_lib_save_LIBS
28573 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28574 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28575 if test $ac_cv_lib_udis86_ud_init = yes; then
28576 cat >>confdefs.h <<_ACEOF
28577 #define HAVE_LIBUDIS86 1
28578 _ACEOF
28580 LIBS="-ludis86 $LIBS"
28582 else
28584 echo "Error! You need to have libudis86 around."
28585 exit -1
28590 else
28591 USE_UDIS86=0
28596 cat >>confdefs.h <<_ACEOF
28597 #define USE_UDIS86 $USE_UDIS86
28598 _ACEOF
28602 # Check whether --with-oprofile was given.
28603 if test "${with_oprofile+set}" = set; then
28604 withval=$with_oprofile;
28605 USE_OPROFILE=1
28607 case "$withval" in
28608 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28609 no) llvm_cv_oppath=
28610 USE_OPROFILE=0
28612 *) llvm_cv_oppath="${withval}/lib/oprofile"
28613 CPPFLAGS="-I${withval}/include";;
28614 esac
28615 if test -n "$llvm_cv_oppath" ; then
28616 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28617 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
28618 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
28619 if test "${ac_cv_search_bfd_init+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28621 else
28622 ac_func_search_save_LIBS=$LIBS
28623 cat >conftest.$ac_ext <<_ACEOF
28624 /* confdefs.h. */
28625 _ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h. */
28630 /* Override any GCC internal prototype to avoid an error.
28631 Use char because int might match the return type of a GCC
28632 builtin and then its argument prototype would still apply. */
28633 #ifdef __cplusplus
28634 extern "C"
28635 #endif
28636 char bfd_init ();
28638 main ()
28640 return bfd_init ();
28642 return 0;
28644 _ACEOF
28645 for ac_lib in '' bfd; do
28646 if test -z "$ac_lib"; then
28647 ac_res="none required"
28648 else
28649 ac_res=-l$ac_lib
28650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28652 rm -f conftest.$ac_objext conftest$ac_exeext
28653 if { (ac_try="$ac_link"
28654 case "(($ac_try" in
28655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28656 *) ac_try_echo=$ac_try;;
28657 esac
28658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28659 (eval "$ac_link") 2>conftest.er1
28660 ac_status=$?
28661 grep -v '^ *+' conftest.er1 >conftest.err
28662 rm -f conftest.er1
28663 cat conftest.err >&5
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); } &&
28666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28667 { (case "(($ac_try" in
28668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 *) ac_try_echo=$ac_try;;
28670 esac
28671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672 (eval "$ac_try") 2>&5
28673 ac_status=$?
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); }; } &&
28676 { ac_try='test -s conftest$ac_exeext'
28677 { (case "(($ac_try" in
28678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679 *) ac_try_echo=$ac_try;;
28680 esac
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682 (eval "$ac_try") 2>&5
28683 ac_status=$?
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28686 ac_cv_search_bfd_init=$ac_res
28687 else
28688 echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28694 rm -f core conftest.err conftest.$ac_objext \
28695 conftest$ac_exeext
28696 if test "${ac_cv_search_bfd_init+set}" = set; then
28697 break
28699 done
28700 if test "${ac_cv_search_bfd_init+set}" = set; then
28702 else
28703 ac_cv_search_bfd_init=no
28705 rm conftest.$ac_ext
28706 LIBS=$ac_func_search_save_LIBS
28708 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
28709 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
28710 ac_res=$ac_cv_search_bfd_init
28711 if test "$ac_res" != no; then
28712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28716 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28717 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28718 if test "${ac_cv_search_op_open_agent+set}" = set; then
28719 echo $ECHO_N "(cached) $ECHO_C" >&6
28720 else
28721 ac_func_search_save_LIBS=$LIBS
28722 cat >conftest.$ac_ext <<_ACEOF
28723 /* confdefs.h. */
28724 _ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h. */
28729 /* Override any GCC internal prototype to avoid an error.
28730 Use char because int might match the return type of a GCC
28731 builtin and then its argument prototype would still apply. */
28732 #ifdef __cplusplus
28733 extern "C"
28734 #endif
28735 char op_open_agent ();
28737 main ()
28739 return op_open_agent ();
28741 return 0;
28743 _ACEOF
28744 for ac_lib in '' opagent; do
28745 if test -z "$ac_lib"; then
28746 ac_res="none required"
28747 else
28748 ac_res=-l$ac_lib
28749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28751 rm -f conftest.$ac_objext conftest$ac_exeext
28752 if { (ac_try="$ac_link"
28753 case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28756 esac
28757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_link") 2>conftest.er1
28759 ac_status=$?
28760 grep -v '^ *+' conftest.er1 >conftest.err
28761 rm -f conftest.er1
28762 cat conftest.err >&5
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); } &&
28765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28766 { (case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28769 esac
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_try") 2>&5
28772 ac_status=$?
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); }; } &&
28775 { ac_try='test -s conftest$ac_exeext'
28776 { (case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28779 esac
28780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28781 (eval "$ac_try") 2>&5
28782 ac_status=$?
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); }; }; then
28785 ac_cv_search_op_open_agent=$ac_res
28786 else
28787 echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28793 rm -f core conftest.err conftest.$ac_objext \
28794 conftest$ac_exeext
28795 if test "${ac_cv_search_op_open_agent+set}" = set; then
28796 break
28798 done
28799 if test "${ac_cv_search_op_open_agent+set}" = set; then
28801 else
28802 ac_cv_search_op_open_agent=no
28804 rm conftest.$ac_ext
28805 LIBS=$ac_func_search_save_LIBS
28807 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28808 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28809 ac_res=$ac_cv_search_op_open_agent
28810 if test "$ac_res" != no; then
28811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28813 else
28815 echo "Error! You need to have libopagent around."
28816 exit -1
28820 if test "${ac_cv_header_opagent_h+set}" = set; then
28821 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28822 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28823 if test "${ac_cv_header_opagent_h+set}" = set; then
28824 echo $ECHO_N "(cached) $ECHO_C" >&6
28826 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28827 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28828 else
28829 # Is the header compilable?
28830 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
28831 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28832 cat >conftest.$ac_ext <<_ACEOF
28833 /* confdefs.h. */
28834 _ACEOF
28835 cat confdefs.h >>conftest.$ac_ext
28836 cat >>conftest.$ac_ext <<_ACEOF
28837 /* end confdefs.h. */
28838 $ac_includes_default
28839 #include <opagent.h>
28840 _ACEOF
28841 rm -f conftest.$ac_objext
28842 if { (ac_try="$ac_compile"
28843 case "(($ac_try" in
28844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28845 *) ac_try_echo=$ac_try;;
28846 esac
28847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28848 (eval "$ac_compile") 2>conftest.er1
28849 ac_status=$?
28850 grep -v '^ *+' conftest.er1 >conftest.err
28851 rm -f conftest.er1
28852 cat conftest.err >&5
28853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 (exit $ac_status); } &&
28855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28856 { (case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28859 esac
28860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861 (eval "$ac_try") 2>&5
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); }; } &&
28865 { ac_try='test -s conftest.$ac_objext'
28866 { (case "(($ac_try" in
28867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868 *) ac_try_echo=$ac_try;;
28869 esac
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871 (eval "$ac_try") 2>&5
28872 ac_status=$?
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); }; }; then
28875 ac_header_compiler=yes
28876 else
28877 echo "$as_me: failed program was:" >&5
28878 sed 's/^/| /' conftest.$ac_ext >&5
28880 ac_header_compiler=no
28883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28885 echo "${ECHO_T}$ac_header_compiler" >&6; }
28887 # Is the header present?
28888 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
28889 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28890 cat >conftest.$ac_ext <<_ACEOF
28891 /* confdefs.h. */
28892 _ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h. */
28896 #include <opagent.h>
28897 _ACEOF
28898 if { (ac_try="$ac_cpp conftest.$ac_ext"
28899 case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28902 esac
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28905 ac_status=$?
28906 grep -v '^ *+' conftest.er1 >conftest.err
28907 rm -f conftest.er1
28908 cat conftest.err >&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); } >/dev/null; then
28911 if test -s conftest.err; then
28912 ac_cpp_err=$ac_c_preproc_warn_flag
28913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28914 else
28915 ac_cpp_err=
28917 else
28918 ac_cpp_err=yes
28920 if test -z "$ac_cpp_err"; then
28921 ac_header_preproc=yes
28922 else
28923 echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28926 ac_header_preproc=no
28929 rm -f conftest.err conftest.$ac_ext
28930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28931 echo "${ECHO_T}$ac_header_preproc" >&6; }
28933 # So? What about this header?
28934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28935 yes:no: )
28936 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28937 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28938 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28939 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28940 ac_header_preproc=yes
28942 no:yes:* )
28943 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28944 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28945 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28946 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28947 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28948 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28949 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28950 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28951 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28952 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28953 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28954 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28955 ( cat <<\_ASBOX
28956 ## ----------------------------------- ##
28957 ## Report this to llvmbugs@cs.uiuc.edu ##
28958 ## ----------------------------------- ##
28959 _ASBOX
28960 ) | sed "s/^/$as_me: WARNING: /" >&2
28962 esac
28963 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28964 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28965 if test "${ac_cv_header_opagent_h+set}" = set; then
28966 echo $ECHO_N "(cached) $ECHO_C" >&6
28967 else
28968 ac_cv_header_opagent_h=$ac_header_preproc
28970 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28971 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28974 if test $ac_cv_header_opagent_h = yes; then
28976 else
28978 echo "Error! You need to have opagent.h around."
28979 exit -1
28986 else
28988 USE_OPROFILE=0
28994 cat >>confdefs.h <<_ACEOF
28995 #define USE_OPROFILE $USE_OPROFILE
28996 _ACEOF
29005 ac_header_dirent=no
29006 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29007 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29008 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29009 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29011 echo $ECHO_N "(cached) $ECHO_C" >&6
29012 else
29013 cat >conftest.$ac_ext <<_ACEOF
29014 /* confdefs.h. */
29015 _ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h. */
29019 #include <sys/types.h>
29020 #include <$ac_hdr>
29023 main ()
29025 if ((DIR *) 0)
29026 return 0;
29028 return 0;
29030 _ACEOF
29031 rm -f conftest.$ac_objext
29032 if { (ac_try="$ac_compile"
29033 case "(($ac_try" in
29034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035 *) ac_try_echo=$ac_try;;
29036 esac
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038 (eval "$ac_compile") 2>conftest.er1
29039 ac_status=$?
29040 grep -v '^ *+' conftest.er1 >conftest.err
29041 rm -f conftest.er1
29042 cat conftest.err >&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044 (exit $ac_status); } &&
29045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29046 { (case "(($ac_try" in
29047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048 *) ac_try_echo=$ac_try;;
29049 esac
29050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29051 (eval "$ac_try") 2>&5
29052 ac_status=$?
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; } &&
29055 { ac_try='test -s conftest.$ac_objext'
29056 { (case "(($ac_try" in
29057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058 *) ac_try_echo=$ac_try;;
29059 esac
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061 (eval "$ac_try") 2>&5
29062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; }; then
29065 eval "$as_ac_Header=yes"
29066 else
29067 echo "$as_me: failed program was:" >&5
29068 sed 's/^/| /' conftest.$ac_ext >&5
29070 eval "$as_ac_Header=no"
29073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29075 ac_res=`eval echo '${'$as_ac_Header'}'`
29076 { echo "$as_me:$LINENO: result: $ac_res" >&5
29077 echo "${ECHO_T}$ac_res" >&6; }
29078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29079 cat >>confdefs.h <<_ACEOF
29080 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29081 _ACEOF
29083 ac_header_dirent=$ac_hdr; break
29086 done
29087 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29088 if test $ac_header_dirent = dirent.h; then
29089 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29090 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29091 if test "${ac_cv_search_opendir+set}" = set; then
29092 echo $ECHO_N "(cached) $ECHO_C" >&6
29093 else
29094 ac_func_search_save_LIBS=$LIBS
29095 cat >conftest.$ac_ext <<_ACEOF
29096 /* confdefs.h. */
29097 _ACEOF
29098 cat confdefs.h >>conftest.$ac_ext
29099 cat >>conftest.$ac_ext <<_ACEOF
29100 /* end confdefs.h. */
29102 /* Override any GCC internal prototype to avoid an error.
29103 Use char because int might match the return type of a GCC
29104 builtin and then its argument prototype would still apply. */
29105 #ifdef __cplusplus
29106 extern "C"
29107 #endif
29108 char opendir ();
29110 main ()
29112 return opendir ();
29114 return 0;
29116 _ACEOF
29117 for ac_lib in '' dir; do
29118 if test -z "$ac_lib"; then
29119 ac_res="none required"
29120 else
29121 ac_res=-l$ac_lib
29122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29124 rm -f conftest.$ac_objext conftest$ac_exeext
29125 if { (ac_try="$ac_link"
29126 case "(($ac_try" in
29127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128 *) ac_try_echo=$ac_try;;
29129 esac
29130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_link") 2>conftest.er1
29132 ac_status=$?
29133 grep -v '^ *+' conftest.er1 >conftest.err
29134 rm -f conftest.er1
29135 cat conftest.err >&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); } &&
29138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29139 { (case "(($ac_try" in
29140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29141 *) ac_try_echo=$ac_try;;
29142 esac
29143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29144 (eval "$ac_try") 2>&5
29145 ac_status=$?
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); }; } &&
29148 { ac_try='test -s conftest$ac_exeext'
29149 { (case "(($ac_try" in
29150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29151 *) ac_try_echo=$ac_try;;
29152 esac
29153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29154 (eval "$ac_try") 2>&5
29155 ac_status=$?
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); }; }; then
29158 ac_cv_search_opendir=$ac_res
29159 else
29160 echo "$as_me: failed program was:" >&5
29161 sed 's/^/| /' conftest.$ac_ext >&5
29166 rm -f core conftest.err conftest.$ac_objext \
29167 conftest$ac_exeext
29168 if test "${ac_cv_search_opendir+set}" = set; then
29169 break
29171 done
29172 if test "${ac_cv_search_opendir+set}" = set; then
29174 else
29175 ac_cv_search_opendir=no
29177 rm conftest.$ac_ext
29178 LIBS=$ac_func_search_save_LIBS
29180 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29181 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29182 ac_res=$ac_cv_search_opendir
29183 if test "$ac_res" != no; then
29184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29188 else
29189 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29190 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29191 if test "${ac_cv_search_opendir+set}" = set; then
29192 echo $ECHO_N "(cached) $ECHO_C" >&6
29193 else
29194 ac_func_search_save_LIBS=$LIBS
29195 cat >conftest.$ac_ext <<_ACEOF
29196 /* confdefs.h. */
29197 _ACEOF
29198 cat confdefs.h >>conftest.$ac_ext
29199 cat >>conftest.$ac_ext <<_ACEOF
29200 /* end confdefs.h. */
29202 /* Override any GCC internal prototype to avoid an error.
29203 Use char because int might match the return type of a GCC
29204 builtin and then its argument prototype would still apply. */
29205 #ifdef __cplusplus
29206 extern "C"
29207 #endif
29208 char opendir ();
29210 main ()
29212 return opendir ();
29214 return 0;
29216 _ACEOF
29217 for ac_lib in '' x; do
29218 if test -z "$ac_lib"; then
29219 ac_res="none required"
29220 else
29221 ac_res=-l$ac_lib
29222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29224 rm -f conftest.$ac_objext conftest$ac_exeext
29225 if { (ac_try="$ac_link"
29226 case "(($ac_try" in
29227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228 *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231 (eval "$ac_link") 2>conftest.er1
29232 ac_status=$?
29233 grep -v '^ *+' conftest.er1 >conftest.err
29234 rm -f conftest.er1
29235 cat conftest.err >&5
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); } &&
29238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29239 { (case "(($ac_try" in
29240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241 *) ac_try_echo=$ac_try;;
29242 esac
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244 (eval "$ac_try") 2>&5
29245 ac_status=$?
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; } &&
29248 { ac_try='test -s conftest$ac_exeext'
29249 { (case "(($ac_try" in
29250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251 *) ac_try_echo=$ac_try;;
29252 esac
29253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254 (eval "$ac_try") 2>&5
29255 ac_status=$?
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; }; then
29258 ac_cv_search_opendir=$ac_res
29259 else
29260 echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29266 rm -f core conftest.err conftest.$ac_objext \
29267 conftest$ac_exeext
29268 if test "${ac_cv_search_opendir+set}" = set; then
29269 break
29271 done
29272 if test "${ac_cv_search_opendir+set}" = set; then
29274 else
29275 ac_cv_search_opendir=no
29277 rm conftest.$ac_ext
29278 LIBS=$ac_func_search_save_LIBS
29280 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29281 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29282 ac_res=$ac_cv_search_opendir
29283 if test "$ac_res" != no; then
29284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29290 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29291 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29292 if test "${ac_cv_header_mmap_anon+set}" = set; then
29293 echo $ECHO_N "(cached) $ECHO_C" >&6
29294 else
29295 ac_ext=c
29296 ac_cpp='$CPP $CPPFLAGS'
29297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29301 cat >conftest.$ac_ext <<_ACEOF
29302 /* confdefs.h. */
29303 _ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h. */
29307 #include <sys/mman.h>
29308 #include <unistd.h>
29309 #include <fcntl.h>
29311 main ()
29313 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29315 return 0;
29317 _ACEOF
29318 rm -f conftest.$ac_objext
29319 if { (ac_try="$ac_compile"
29320 case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29323 esac
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_compile") 2>conftest.er1
29326 ac_status=$?
29327 grep -v '^ *+' conftest.er1 >conftest.err
29328 rm -f conftest.er1
29329 cat conftest.err >&5
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); } &&
29332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29333 { (case "(($ac_try" in
29334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335 *) ac_try_echo=$ac_try;;
29336 esac
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338 (eval "$ac_try") 2>&5
29339 ac_status=$?
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } &&
29342 { ac_try='test -s conftest.$ac_objext'
29343 { (case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29346 esac
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_try") 2>&5
29349 ac_status=$?
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; }; then
29352 ac_cv_header_mmap_anon=yes
29353 else
29354 echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29357 ac_cv_header_mmap_anon=no
29360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29361 ac_ext=c
29362 ac_cpp='$CPP $CPPFLAGS'
29363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29369 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29370 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29371 if test "$ac_cv_header_mmap_anon" = yes; then
29373 cat >>confdefs.h <<\_ACEOF
29374 #define HAVE_MMAP_ANONYMOUS 1
29375 _ACEOF
29379 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29380 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29381 if test "${ac_cv_header_stat_broken+set}" = set; then
29382 echo $ECHO_N "(cached) $ECHO_C" >&6
29383 else
29384 cat >conftest.$ac_ext <<_ACEOF
29385 /* confdefs.h. */
29386 _ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h. */
29390 #include <sys/types.h>
29391 #include <sys/stat.h>
29393 #if defined S_ISBLK && defined S_IFDIR
29394 # if S_ISBLK (S_IFDIR)
29395 You lose.
29396 # endif
29397 #endif
29399 #if defined S_ISBLK && defined S_IFCHR
29400 # if S_ISBLK (S_IFCHR)
29401 You lose.
29402 # endif
29403 #endif
29405 #if defined S_ISLNK && defined S_IFREG
29406 # if S_ISLNK (S_IFREG)
29407 You lose.
29408 # endif
29409 #endif
29411 #if defined S_ISSOCK && defined S_IFREG
29412 # if S_ISSOCK (S_IFREG)
29413 You lose.
29414 # endif
29415 #endif
29417 _ACEOF
29418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29419 $EGREP "You lose" >/dev/null 2>&1; then
29420 ac_cv_header_stat_broken=yes
29421 else
29422 ac_cv_header_stat_broken=no
29424 rm -f conftest*
29427 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29428 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29429 if test $ac_cv_header_stat_broken = yes; then
29431 cat >>confdefs.h <<\_ACEOF
29432 #define STAT_MACROS_BROKEN 1
29433 _ACEOF
29437 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29438 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29439 if test "${ac_cv_header_stdc+set}" = set; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
29441 else
29442 cat >conftest.$ac_ext <<_ACEOF
29443 /* confdefs.h. */
29444 _ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h. */
29448 #include <stdlib.h>
29449 #include <stdarg.h>
29450 #include <string.h>
29451 #include <float.h>
29454 main ()
29458 return 0;
29460 _ACEOF
29461 rm -f conftest.$ac_objext
29462 if { (ac_try="$ac_compile"
29463 case "(($ac_try" in
29464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465 *) ac_try_echo=$ac_try;;
29466 esac
29467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468 (eval "$ac_compile") 2>conftest.er1
29469 ac_status=$?
29470 grep -v '^ *+' conftest.er1 >conftest.err
29471 rm -f conftest.er1
29472 cat conftest.err >&5
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); } &&
29475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29476 { (case "(($ac_try" in
29477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478 *) ac_try_echo=$ac_try;;
29479 esac
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481 (eval "$ac_try") 2>&5
29482 ac_status=$?
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; } &&
29485 { ac_try='test -s conftest.$ac_objext'
29486 { (case "(($ac_try" in
29487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29488 *) ac_try_echo=$ac_try;;
29489 esac
29490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29491 (eval "$ac_try") 2>&5
29492 ac_status=$?
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); }; }; then
29495 ac_cv_header_stdc=yes
29496 else
29497 echo "$as_me: failed program was:" >&5
29498 sed 's/^/| /' conftest.$ac_ext >&5
29500 ac_cv_header_stdc=no
29503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29505 if test $ac_cv_header_stdc = yes; then
29506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29507 cat >conftest.$ac_ext <<_ACEOF
29508 /* confdefs.h. */
29509 _ACEOF
29510 cat confdefs.h >>conftest.$ac_ext
29511 cat >>conftest.$ac_ext <<_ACEOF
29512 /* end confdefs.h. */
29513 #include <string.h>
29515 _ACEOF
29516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29517 $EGREP "memchr" >/dev/null 2>&1; then
29519 else
29520 ac_cv_header_stdc=no
29522 rm -f conftest*
29526 if test $ac_cv_header_stdc = yes; then
29527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29528 cat >conftest.$ac_ext <<_ACEOF
29529 /* confdefs.h. */
29530 _ACEOF
29531 cat confdefs.h >>conftest.$ac_ext
29532 cat >>conftest.$ac_ext <<_ACEOF
29533 /* end confdefs.h. */
29534 #include <stdlib.h>
29536 _ACEOF
29537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29538 $EGREP "free" >/dev/null 2>&1; then
29540 else
29541 ac_cv_header_stdc=no
29543 rm -f conftest*
29547 if test $ac_cv_header_stdc = yes; then
29548 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29549 if test "$cross_compiling" = yes; then
29551 else
29552 cat >conftest.$ac_ext <<_ACEOF
29553 /* confdefs.h. */
29554 _ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h. */
29558 #include <ctype.h>
29559 #include <stdlib.h>
29560 #if ((' ' & 0x0FF) == 0x020)
29561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29563 #else
29564 # define ISLOWER(c) \
29565 (('a' <= (c) && (c) <= 'i') \
29566 || ('j' <= (c) && (c) <= 'r') \
29567 || ('s' <= (c) && (c) <= 'z'))
29568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29569 #endif
29571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29573 main ()
29575 int i;
29576 for (i = 0; i < 256; i++)
29577 if (XOR (islower (i), ISLOWER (i))
29578 || toupper (i) != TOUPPER (i))
29579 return 2;
29580 return 0;
29582 _ACEOF
29583 rm -f conftest$ac_exeext
29584 if { (ac_try="$ac_link"
29585 case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29588 esac
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_link") 2>&5
29591 ac_status=$?
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29594 { (case "(($ac_try" in
29595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596 *) ac_try_echo=$ac_try;;
29597 esac
29598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599 (eval "$ac_try") 2>&5
29600 ac_status=$?
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; }; then
29604 else
29605 echo "$as_me: program exited with status $ac_status" >&5
29606 echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29609 ( exit $ac_status )
29610 ac_cv_header_stdc=no
29612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29618 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29619 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29620 if test $ac_cv_header_stdc = yes; then
29622 cat >>confdefs.h <<\_ACEOF
29623 #define STDC_HEADERS 1
29624 _ACEOF
29628 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29629 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29630 if test "${ac_cv_header_sys_wait_h+set}" = set; then
29631 echo $ECHO_N "(cached) $ECHO_C" >&6
29632 else
29633 cat >conftest.$ac_ext <<_ACEOF
29634 /* confdefs.h. */
29635 _ACEOF
29636 cat confdefs.h >>conftest.$ac_ext
29637 cat >>conftest.$ac_ext <<_ACEOF
29638 /* end confdefs.h. */
29639 #include <sys/types.h>
29640 #include <sys/wait.h>
29641 #ifndef WEXITSTATUS
29642 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29643 #endif
29644 #ifndef WIFEXITED
29645 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29646 #endif
29649 main ()
29651 int s;
29652 wait (&s);
29653 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29655 return 0;
29657 _ACEOF
29658 rm -f conftest.$ac_objext
29659 if { (ac_try="$ac_compile"
29660 case "(($ac_try" in
29661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29662 *) ac_try_echo=$ac_try;;
29663 esac
29664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29665 (eval "$ac_compile") 2>conftest.er1
29666 ac_status=$?
29667 grep -v '^ *+' conftest.er1 >conftest.err
29668 rm -f conftest.er1
29669 cat conftest.err >&5
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); } &&
29672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29673 { (case "(($ac_try" in
29674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29675 *) ac_try_echo=$ac_try;;
29676 esac
29677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29678 (eval "$ac_try") 2>&5
29679 ac_status=$?
29680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681 (exit $ac_status); }; } &&
29682 { ac_try='test -s conftest.$ac_objext'
29683 { (case "(($ac_try" in
29684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 *) ac_try_echo=$ac_try;;
29686 esac
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688 (eval "$ac_try") 2>&5
29689 ac_status=$?
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); }; }; then
29692 ac_cv_header_sys_wait_h=yes
29693 else
29694 echo "$as_me: failed program was:" >&5
29695 sed 's/^/| /' conftest.$ac_ext >&5
29697 ac_cv_header_sys_wait_h=no
29700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29702 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29703 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29704 if test $ac_cv_header_sys_wait_h = yes; then
29706 cat >>confdefs.h <<\_ACEOF
29707 #define HAVE_SYS_WAIT_H 1
29708 _ACEOF
29712 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29713 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29714 if test "${ac_cv_header_time+set}" = set; then
29715 echo $ECHO_N "(cached) $ECHO_C" >&6
29716 else
29717 cat >conftest.$ac_ext <<_ACEOF
29718 /* confdefs.h. */
29719 _ACEOF
29720 cat confdefs.h >>conftest.$ac_ext
29721 cat >>conftest.$ac_ext <<_ACEOF
29722 /* end confdefs.h. */
29723 #include <sys/types.h>
29724 #include <sys/time.h>
29725 #include <time.h>
29728 main ()
29730 if ((struct tm *) 0)
29731 return 0;
29733 return 0;
29735 _ACEOF
29736 rm -f conftest.$ac_objext
29737 if { (ac_try="$ac_compile"
29738 case "(($ac_try" in
29739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740 *) ac_try_echo=$ac_try;;
29741 esac
29742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743 (eval "$ac_compile") 2>conftest.er1
29744 ac_status=$?
29745 grep -v '^ *+' conftest.er1 >conftest.err
29746 rm -f conftest.er1
29747 cat conftest.err >&5
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); } &&
29750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29751 { (case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29754 esac
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_try") 2>&5
29757 ac_status=$?
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; } &&
29760 { ac_try='test -s conftest.$ac_objext'
29761 { (case "(($ac_try" in
29762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29763 *) ac_try_echo=$ac_try;;
29764 esac
29765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29766 (eval "$ac_try") 2>&5
29767 ac_status=$?
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769 (exit $ac_status); }; }; then
29770 ac_cv_header_time=yes
29771 else
29772 echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29775 ac_cv_header_time=no
29778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29780 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29781 echo "${ECHO_T}$ac_cv_header_time" >&6; }
29782 if test $ac_cv_header_time = yes; then
29784 cat >>confdefs.h <<\_ACEOF
29785 #define TIME_WITH_SYS_TIME 1
29786 _ACEOF
29797 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29806 ac_res=`eval echo '${'$as_ac_Header'}'`
29807 { echo "$as_me:$LINENO: result: $ac_res" >&5
29808 echo "${ECHO_T}$ac_res" >&6; }
29809 else
29810 # Is the header compilable?
29811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29813 cat >conftest.$ac_ext <<_ACEOF
29814 /* confdefs.h. */
29815 _ACEOF
29816 cat confdefs.h >>conftest.$ac_ext
29817 cat >>conftest.$ac_ext <<_ACEOF
29818 /* end confdefs.h. */
29819 $ac_includes_default
29820 #include <$ac_header>
29821 _ACEOF
29822 rm -f conftest.$ac_objext
29823 if { (ac_try="$ac_compile"
29824 case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_compile") 2>conftest.er1
29830 ac_status=$?
29831 grep -v '^ *+' conftest.er1 >conftest.err
29832 rm -f conftest.er1
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } &&
29836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29837 { (case "(($ac_try" in
29838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839 *) ac_try_echo=$ac_try;;
29840 esac
29841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842 (eval "$ac_try") 2>&5
29843 ac_status=$?
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; } &&
29846 { ac_try='test -s conftest.$ac_objext'
29847 { (case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29850 esac
29851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_try") 2>&5
29853 ac_status=$?
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; }; then
29856 ac_header_compiler=yes
29857 else
29858 echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29861 ac_header_compiler=no
29864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29866 echo "${ECHO_T}$ac_header_compiler" >&6; }
29868 # Is the header present?
29869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29871 cat >conftest.$ac_ext <<_ACEOF
29872 /* confdefs.h. */
29873 _ACEOF
29874 cat confdefs.h >>conftest.$ac_ext
29875 cat >>conftest.$ac_ext <<_ACEOF
29876 /* end confdefs.h. */
29877 #include <$ac_header>
29878 _ACEOF
29879 if { (ac_try="$ac_cpp conftest.$ac_ext"
29880 case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29886 ac_status=$?
29887 grep -v '^ *+' conftest.er1 >conftest.err
29888 rm -f conftest.er1
29889 cat conftest.err >&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } >/dev/null; then
29892 if test -s conftest.err; then
29893 ac_cpp_err=$ac_c_preproc_warn_flag
29894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29895 else
29896 ac_cpp_err=
29898 else
29899 ac_cpp_err=yes
29901 if test -z "$ac_cpp_err"; then
29902 ac_header_preproc=yes
29903 else
29904 echo "$as_me: failed program was:" >&5
29905 sed 's/^/| /' conftest.$ac_ext >&5
29907 ac_header_preproc=no
29910 rm -f conftest.err conftest.$ac_ext
29911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29912 echo "${ECHO_T}$ac_header_preproc" >&6; }
29914 # So? What about this header?
29915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29916 yes:no: )
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29921 ac_header_preproc=yes
29923 no:yes:* )
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29936 ( cat <<\_ASBOX
29937 ## ----------------------------------- ##
29938 ## Report this to llvmbugs@cs.uiuc.edu ##
29939 ## ----------------------------------- ##
29940 _ASBOX
29941 ) | sed "s/^/$as_me: WARNING: /" >&2
29943 esac
29944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29947 echo $ECHO_N "(cached) $ECHO_C" >&6
29948 else
29949 eval "$as_ac_Header=\$ac_header_preproc"
29951 ac_res=`eval echo '${'$as_ac_Header'}'`
29952 { echo "$as_me:$LINENO: result: $ac_res" >&5
29953 echo "${ECHO_T}$ac_res" >&6; }
29956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29957 cat >>confdefs.h <<_ACEOF
29958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29959 _ACEOF
29963 done
29971 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
29973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29978 echo $ECHO_N "(cached) $ECHO_C" >&6
29980 ac_res=`eval echo '${'$as_ac_Header'}'`
29981 { echo "$as_me:$LINENO: result: $ac_res" >&5
29982 echo "${ECHO_T}$ac_res" >&6; }
29983 else
29984 # Is the header compilable?
29985 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29987 cat >conftest.$ac_ext <<_ACEOF
29988 /* confdefs.h. */
29989 _ACEOF
29990 cat confdefs.h >>conftest.$ac_ext
29991 cat >>conftest.$ac_ext <<_ACEOF
29992 /* end confdefs.h. */
29993 $ac_includes_default
29994 #include <$ac_header>
29995 _ACEOF
29996 rm -f conftest.$ac_objext
29997 if { (ac_try="$ac_compile"
29998 case "(($ac_try" in
29999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000 *) ac_try_echo=$ac_try;;
30001 esac
30002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003 (eval "$ac_compile") 2>conftest.er1
30004 ac_status=$?
30005 grep -v '^ *+' conftest.er1 >conftest.err
30006 rm -f conftest.er1
30007 cat conftest.err >&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); } &&
30010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30011 { (case "(($ac_try" in
30012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013 *) ac_try_echo=$ac_try;;
30014 esac
30015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016 (eval "$ac_try") 2>&5
30017 ac_status=$?
30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019 (exit $ac_status); }; } &&
30020 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
30027 ac_status=$?
30028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029 (exit $ac_status); }; }; then
30030 ac_header_compiler=yes
30031 else
30032 echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30035 ac_header_compiler=no
30038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30040 echo "${ECHO_T}$ac_header_compiler" >&6; }
30042 # Is the header present?
30043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30045 cat >conftest.$ac_ext <<_ACEOF
30046 /* confdefs.h. */
30047 _ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h. */
30051 #include <$ac_header>
30052 _ACEOF
30053 if { (ac_try="$ac_cpp conftest.$ac_ext"
30054 case "(($ac_try" in
30055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30056 *) ac_try_echo=$ac_try;;
30057 esac
30058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30060 ac_status=$?
30061 grep -v '^ *+' conftest.er1 >conftest.err
30062 rm -f conftest.er1
30063 cat conftest.err >&5
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); } >/dev/null; then
30066 if test -s conftest.err; then
30067 ac_cpp_err=$ac_c_preproc_warn_flag
30068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30069 else
30070 ac_cpp_err=
30072 else
30073 ac_cpp_err=yes
30075 if test -z "$ac_cpp_err"; then
30076 ac_header_preproc=yes
30077 else
30078 echo "$as_me: failed program was:" >&5
30079 sed 's/^/| /' conftest.$ac_ext >&5
30081 ac_header_preproc=no
30084 rm -f conftest.err conftest.$ac_ext
30085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30086 echo "${ECHO_T}$ac_header_preproc" >&6; }
30088 # So? What about this header?
30089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30090 yes:no: )
30091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30094 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30095 ac_header_preproc=yes
30097 no:yes:* )
30098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30099 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30101 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30103 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30105 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30109 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30110 ( cat <<\_ASBOX
30111 ## ----------------------------------- ##
30112 ## Report this to llvmbugs@cs.uiuc.edu ##
30113 ## ----------------------------------- ##
30114 _ASBOX
30115 ) | sed "s/^/$as_me: WARNING: /" >&2
30117 esac
30118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30121 echo $ECHO_N "(cached) $ECHO_C" >&6
30122 else
30123 eval "$as_ac_Header=\$ac_header_preproc"
30125 ac_res=`eval echo '${'$as_ac_Header'}'`
30126 { echo "$as_me:$LINENO: result: $ac_res" >&5
30127 echo "${ECHO_T}$ac_res" >&6; }
30130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30131 cat >>confdefs.h <<_ACEOF
30132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30133 _ACEOF
30137 done
30141 for ac_header in utime.h windows.h
30143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30148 echo $ECHO_N "(cached) $ECHO_C" >&6
30150 ac_res=`eval echo '${'$as_ac_Header'}'`
30151 { echo "$as_me:$LINENO: result: $ac_res" >&5
30152 echo "${ECHO_T}$ac_res" >&6; }
30153 else
30154 # Is the header compilable?
30155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30157 cat >conftest.$ac_ext <<_ACEOF
30158 /* confdefs.h. */
30159 _ACEOF
30160 cat confdefs.h >>conftest.$ac_ext
30161 cat >>conftest.$ac_ext <<_ACEOF
30162 /* end confdefs.h. */
30163 $ac_includes_default
30164 #include <$ac_header>
30165 _ACEOF
30166 rm -f conftest.$ac_objext
30167 if { (ac_try="$ac_compile"
30168 case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_compile") 2>conftest.er1
30174 ac_status=$?
30175 grep -v '^ *+' conftest.er1 >conftest.err
30176 rm -f conftest.er1
30177 cat conftest.err >&5
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); } &&
30180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30181 { (case "(($ac_try" in
30182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183 *) ac_try_echo=$ac_try;;
30184 esac
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186 (eval "$ac_try") 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest.$ac_objext'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30194 esac
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
30197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
30200 ac_header_compiler=yes
30201 else
30202 echo "$as_me: failed program was:" >&5
30203 sed 's/^/| /' conftest.$ac_ext >&5
30205 ac_header_compiler=no
30208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30210 echo "${ECHO_T}$ac_header_compiler" >&6; }
30212 # Is the header present?
30213 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30214 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30215 cat >conftest.$ac_ext <<_ACEOF
30216 /* confdefs.h. */
30217 _ACEOF
30218 cat confdefs.h >>conftest.$ac_ext
30219 cat >>conftest.$ac_ext <<_ACEOF
30220 /* end confdefs.h. */
30221 #include <$ac_header>
30222 _ACEOF
30223 if { (ac_try="$ac_cpp conftest.$ac_ext"
30224 case "(($ac_try" in
30225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226 *) ac_try_echo=$ac_try;;
30227 esac
30228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30230 ac_status=$?
30231 grep -v '^ *+' conftest.er1 >conftest.err
30232 rm -f conftest.er1
30233 cat conftest.err >&5
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); } >/dev/null; then
30236 if test -s conftest.err; then
30237 ac_cpp_err=$ac_c_preproc_warn_flag
30238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30239 else
30240 ac_cpp_err=
30242 else
30243 ac_cpp_err=yes
30245 if test -z "$ac_cpp_err"; then
30246 ac_header_preproc=yes
30247 else
30248 echo "$as_me: failed program was:" >&5
30249 sed 's/^/| /' conftest.$ac_ext >&5
30251 ac_header_preproc=no
30254 rm -f conftest.err conftest.$ac_ext
30255 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30256 echo "${ECHO_T}$ac_header_preproc" >&6; }
30258 # So? What about this header?
30259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30260 yes:no: )
30261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30265 ac_header_preproc=yes
30267 no:yes:* )
30268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30280 ( cat <<\_ASBOX
30281 ## ----------------------------------- ##
30282 ## Report this to llvmbugs@cs.uiuc.edu ##
30283 ## ----------------------------------- ##
30284 _ASBOX
30285 ) | sed "s/^/$as_me: WARNING: /" >&2
30287 esac
30288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30291 echo $ECHO_N "(cached) $ECHO_C" >&6
30292 else
30293 eval "$as_ac_Header=\$ac_header_preproc"
30295 ac_res=`eval echo '${'$as_ac_Header'}'`
30296 { echo "$as_me:$LINENO: result: $ac_res" >&5
30297 echo "${ECHO_T}$ac_res" >&6; }
30300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30301 cat >>confdefs.h <<_ACEOF
30302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30303 _ACEOF
30307 done
30313 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
30315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30320 echo $ECHO_N "(cached) $ECHO_C" >&6
30322 ac_res=`eval echo '${'$as_ac_Header'}'`
30323 { echo "$as_me:$LINENO: result: $ac_res" >&5
30324 echo "${ECHO_T}$ac_res" >&6; }
30325 else
30326 # Is the header compilable?
30327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30329 cat >conftest.$ac_ext <<_ACEOF
30330 /* confdefs.h. */
30331 _ACEOF
30332 cat confdefs.h >>conftest.$ac_ext
30333 cat >>conftest.$ac_ext <<_ACEOF
30334 /* end confdefs.h. */
30335 $ac_includes_default
30336 #include <$ac_header>
30337 _ACEOF
30338 rm -f conftest.$ac_objext
30339 if { (ac_try="$ac_compile"
30340 case "(($ac_try" in
30341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342 *) ac_try_echo=$ac_try;;
30343 esac
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345 (eval "$ac_compile") 2>conftest.er1
30346 ac_status=$?
30347 grep -v '^ *+' conftest.er1 >conftest.err
30348 rm -f conftest.er1
30349 cat conftest.err >&5
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } &&
30352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30353 { (case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30356 esac
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_try") 2>&5
30359 ac_status=$?
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; } &&
30362 { ac_try='test -s conftest.$ac_objext'
30363 { (case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30366 esac
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_try") 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
30372 ac_header_compiler=yes
30373 else
30374 echo "$as_me: failed program was:" >&5
30375 sed 's/^/| /' conftest.$ac_ext >&5
30377 ac_header_compiler=no
30380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30381 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30382 echo "${ECHO_T}$ac_header_compiler" >&6; }
30384 # Is the header present?
30385 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30387 cat >conftest.$ac_ext <<_ACEOF
30388 /* confdefs.h. */
30389 _ACEOF
30390 cat confdefs.h >>conftest.$ac_ext
30391 cat >>conftest.$ac_ext <<_ACEOF
30392 /* end confdefs.h. */
30393 #include <$ac_header>
30394 _ACEOF
30395 if { (ac_try="$ac_cpp conftest.$ac_ext"
30396 case "(($ac_try" in
30397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398 *) ac_try_echo=$ac_try;;
30399 esac
30400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30402 ac_status=$?
30403 grep -v '^ *+' conftest.er1 >conftest.err
30404 rm -f conftest.er1
30405 cat conftest.err >&5
30406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407 (exit $ac_status); } >/dev/null; then
30408 if test -s conftest.err; then
30409 ac_cpp_err=$ac_c_preproc_warn_flag
30410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30411 else
30412 ac_cpp_err=
30414 else
30415 ac_cpp_err=yes
30417 if test -z "$ac_cpp_err"; then
30418 ac_header_preproc=yes
30419 else
30420 echo "$as_me: failed program was:" >&5
30421 sed 's/^/| /' conftest.$ac_ext >&5
30423 ac_header_preproc=no
30426 rm -f conftest.err conftest.$ac_ext
30427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30428 echo "${ECHO_T}$ac_header_preproc" >&6; }
30430 # So? What about this header?
30431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30432 yes:no: )
30433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30437 ac_header_preproc=yes
30439 no:yes:* )
30440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30452 ( cat <<\_ASBOX
30453 ## ----------------------------------- ##
30454 ## Report this to llvmbugs@cs.uiuc.edu ##
30455 ## ----------------------------------- ##
30456 _ASBOX
30457 ) | sed "s/^/$as_me: WARNING: /" >&2
30459 esac
30460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30463 echo $ECHO_N "(cached) $ECHO_C" >&6
30464 else
30465 eval "$as_ac_Header=\$ac_header_preproc"
30467 ac_res=`eval echo '${'$as_ac_Header'}'`
30468 { echo "$as_me:$LINENO: result: $ac_res" >&5
30469 echo "${ECHO_T}$ac_res" >&6; }
30472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30473 cat >>confdefs.h <<_ACEOF
30474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30475 _ACEOF
30479 done
30485 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
30487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30492 echo $ECHO_N "(cached) $ECHO_C" >&6
30494 ac_res=`eval echo '${'$as_ac_Header'}'`
30495 { echo "$as_me:$LINENO: result: $ac_res" >&5
30496 echo "${ECHO_T}$ac_res" >&6; }
30497 else
30498 # Is the header compilable?
30499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30501 cat >conftest.$ac_ext <<_ACEOF
30502 /* confdefs.h. */
30503 _ACEOF
30504 cat confdefs.h >>conftest.$ac_ext
30505 cat >>conftest.$ac_ext <<_ACEOF
30506 /* end confdefs.h. */
30507 $ac_includes_default
30508 #include <$ac_header>
30509 _ACEOF
30510 rm -f conftest.$ac_objext
30511 if { (ac_try="$ac_compile"
30512 case "(($ac_try" in
30513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514 *) ac_try_echo=$ac_try;;
30515 esac
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517 (eval "$ac_compile") 2>conftest.er1
30518 ac_status=$?
30519 grep -v '^ *+' conftest.er1 >conftest.err
30520 rm -f conftest.er1
30521 cat conftest.err >&5
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); } &&
30524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30525 { (case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30528 esac
30529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_try") 2>&5
30531 ac_status=$?
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; } &&
30534 { ac_try='test -s conftest.$ac_objext'
30535 { (case "(($ac_try" in
30536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537 *) ac_try_echo=$ac_try;;
30538 esac
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540 (eval "$ac_try") 2>&5
30541 ac_status=$?
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; }; then
30544 ac_header_compiler=yes
30545 else
30546 echo "$as_me: failed program was:" >&5
30547 sed 's/^/| /' conftest.$ac_ext >&5
30549 ac_header_compiler=no
30552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30554 echo "${ECHO_T}$ac_header_compiler" >&6; }
30556 # Is the header present?
30557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30559 cat >conftest.$ac_ext <<_ACEOF
30560 /* confdefs.h. */
30561 _ACEOF
30562 cat confdefs.h >>conftest.$ac_ext
30563 cat >>conftest.$ac_ext <<_ACEOF
30564 /* end confdefs.h. */
30565 #include <$ac_header>
30566 _ACEOF
30567 if { (ac_try="$ac_cpp conftest.$ac_ext"
30568 case "(($ac_try" in
30569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30570 *) ac_try_echo=$ac_try;;
30571 esac
30572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30574 ac_status=$?
30575 grep -v '^ *+' conftest.er1 >conftest.err
30576 rm -f conftest.er1
30577 cat conftest.err >&5
30578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579 (exit $ac_status); } >/dev/null; then
30580 if test -s conftest.err; then
30581 ac_cpp_err=$ac_c_preproc_warn_flag
30582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30583 else
30584 ac_cpp_err=
30586 else
30587 ac_cpp_err=yes
30589 if test -z "$ac_cpp_err"; then
30590 ac_header_preproc=yes
30591 else
30592 echo "$as_me: failed program was:" >&5
30593 sed 's/^/| /' conftest.$ac_ext >&5
30595 ac_header_preproc=no
30598 rm -f conftest.err conftest.$ac_ext
30599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30600 echo "${ECHO_T}$ac_header_preproc" >&6; }
30602 # So? What about this header?
30603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30604 yes:no: )
30605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30609 ac_header_preproc=yes
30611 no:yes:* )
30612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30624 ( cat <<\_ASBOX
30625 ## ----------------------------------- ##
30626 ## Report this to llvmbugs@cs.uiuc.edu ##
30627 ## ----------------------------------- ##
30628 _ASBOX
30629 ) | sed "s/^/$as_me: WARNING: /" >&2
30631 esac
30632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30636 else
30637 eval "$as_ac_Header=\$ac_header_preproc"
30639 ac_res=`eval echo '${'$as_ac_Header'}'`
30640 { echo "$as_me:$LINENO: result: $ac_res" >&5
30641 echo "${ECHO_T}$ac_res" >&6; }
30644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30645 cat >>confdefs.h <<_ACEOF
30646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30647 _ACEOF
30651 done
30653 if test "$ENABLE_THREADS" -eq 1 ; then
30655 for ac_header in pthread.h
30657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30662 echo $ECHO_N "(cached) $ECHO_C" >&6
30664 ac_res=`eval echo '${'$as_ac_Header'}'`
30665 { echo "$as_me:$LINENO: result: $ac_res" >&5
30666 echo "${ECHO_T}$ac_res" >&6; }
30667 else
30668 # Is the header compilable?
30669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30671 cat >conftest.$ac_ext <<_ACEOF
30672 /* confdefs.h. */
30673 _ACEOF
30674 cat confdefs.h >>conftest.$ac_ext
30675 cat >>conftest.$ac_ext <<_ACEOF
30676 /* end confdefs.h. */
30677 $ac_includes_default
30678 #include <$ac_header>
30679 _ACEOF
30680 rm -f conftest.$ac_objext
30681 if { (ac_try="$ac_compile"
30682 case "(($ac_try" in
30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30685 esac
30686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_compile") 2>conftest.er1
30688 ac_status=$?
30689 grep -v '^ *+' conftest.er1 >conftest.err
30690 rm -f conftest.er1
30691 cat conftest.err >&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } &&
30694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30695 { (case "(($ac_try" in
30696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697 *) ac_try_echo=$ac_try;;
30698 esac
30699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700 (eval "$ac_try") 2>&5
30701 ac_status=$?
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); }; } &&
30704 { ac_try='test -s conftest.$ac_objext'
30705 { (case "(($ac_try" in
30706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30707 *) ac_try_echo=$ac_try;;
30708 esac
30709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30710 (eval "$ac_try") 2>&5
30711 ac_status=$?
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; }; then
30714 ac_header_compiler=yes
30715 else
30716 echo "$as_me: failed program was:" >&5
30717 sed 's/^/| /' conftest.$ac_ext >&5
30719 ac_header_compiler=no
30722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30724 echo "${ECHO_T}$ac_header_compiler" >&6; }
30726 # Is the header present?
30727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30729 cat >conftest.$ac_ext <<_ACEOF
30730 /* confdefs.h. */
30731 _ACEOF
30732 cat confdefs.h >>conftest.$ac_ext
30733 cat >>conftest.$ac_ext <<_ACEOF
30734 /* end confdefs.h. */
30735 #include <$ac_header>
30736 _ACEOF
30737 if { (ac_try="$ac_cpp conftest.$ac_ext"
30738 case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30741 esac
30742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30744 ac_status=$?
30745 grep -v '^ *+' conftest.er1 >conftest.err
30746 rm -f conftest.er1
30747 cat conftest.err >&5
30748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30749 (exit $ac_status); } >/dev/null; then
30750 if test -s conftest.err; then
30751 ac_cpp_err=$ac_c_preproc_warn_flag
30752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30753 else
30754 ac_cpp_err=
30756 else
30757 ac_cpp_err=yes
30759 if test -z "$ac_cpp_err"; then
30760 ac_header_preproc=yes
30761 else
30762 echo "$as_me: failed program was:" >&5
30763 sed 's/^/| /' conftest.$ac_ext >&5
30765 ac_header_preproc=no
30768 rm -f conftest.err conftest.$ac_ext
30769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30770 echo "${ECHO_T}$ac_header_preproc" >&6; }
30772 # So? What about this header?
30773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30774 yes:no: )
30775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30779 ac_header_preproc=yes
30781 no:yes:* )
30782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30794 ( cat <<\_ASBOX
30795 ## ----------------------------------- ##
30796 ## Report this to llvmbugs@cs.uiuc.edu ##
30797 ## ----------------------------------- ##
30798 _ASBOX
30799 ) | sed "s/^/$as_me: WARNING: /" >&2
30801 esac
30802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30805 echo $ECHO_N "(cached) $ECHO_C" >&6
30806 else
30807 eval "$as_ac_Header=\$ac_header_preproc"
30809 ac_res=`eval echo '${'$as_ac_Header'}'`
30810 { echo "$as_me:$LINENO: result: $ac_res" >&5
30811 echo "${ECHO_T}$ac_res" >&6; }
30814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30815 cat >>confdefs.h <<_ACEOF
30816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30817 _ACEOF
30818 HAVE_PTHREAD=1
30820 else
30821 HAVE_PTHREAD=0
30825 done
30827 else
30828 HAVE_PTHREAD=0
30832 if test "$llvm_cv_enable_libffi" = "yes" ; then
30835 for ac_header in ffi.h ffi/ffi.h
30837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30842 echo $ECHO_N "(cached) $ECHO_C" >&6
30844 ac_res=`eval echo '${'$as_ac_Header'}'`
30845 { echo "$as_me:$LINENO: result: $ac_res" >&5
30846 echo "${ECHO_T}$ac_res" >&6; }
30847 else
30848 # Is the header compilable?
30849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30851 cat >conftest.$ac_ext <<_ACEOF
30852 /* confdefs.h. */
30853 _ACEOF
30854 cat confdefs.h >>conftest.$ac_ext
30855 cat >>conftest.$ac_ext <<_ACEOF
30856 /* end confdefs.h. */
30857 $ac_includes_default
30858 #include <$ac_header>
30859 _ACEOF
30860 rm -f conftest.$ac_objext
30861 if { (ac_try="$ac_compile"
30862 case "(($ac_try" in
30863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864 *) ac_try_echo=$ac_try;;
30865 esac
30866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867 (eval "$ac_compile") 2>conftest.er1
30868 ac_status=$?
30869 grep -v '^ *+' conftest.er1 >conftest.err
30870 rm -f conftest.er1
30871 cat conftest.err >&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); } &&
30874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30875 { (case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30878 esac
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_try") 2>&5
30881 ac_status=$?
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; } &&
30884 { ac_try='test -s conftest.$ac_objext'
30885 { (case "(($ac_try" in
30886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887 *) ac_try_echo=$ac_try;;
30888 esac
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890 (eval "$ac_try") 2>&5
30891 ac_status=$?
30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30893 (exit $ac_status); }; }; then
30894 ac_header_compiler=yes
30895 else
30896 echo "$as_me: failed program was:" >&5
30897 sed 's/^/| /' conftest.$ac_ext >&5
30899 ac_header_compiler=no
30902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30904 echo "${ECHO_T}$ac_header_compiler" >&6; }
30906 # Is the header present?
30907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30909 cat >conftest.$ac_ext <<_ACEOF
30910 /* confdefs.h. */
30911 _ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h. */
30915 #include <$ac_header>
30916 _ACEOF
30917 if { (ac_try="$ac_cpp conftest.$ac_ext"
30918 case "(($ac_try" in
30919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30920 *) ac_try_echo=$ac_try;;
30921 esac
30922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30924 ac_status=$?
30925 grep -v '^ *+' conftest.er1 >conftest.err
30926 rm -f conftest.er1
30927 cat conftest.err >&5
30928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30929 (exit $ac_status); } >/dev/null; then
30930 if test -s conftest.err; then
30931 ac_cpp_err=$ac_c_preproc_warn_flag
30932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30933 else
30934 ac_cpp_err=
30936 else
30937 ac_cpp_err=yes
30939 if test -z "$ac_cpp_err"; then
30940 ac_header_preproc=yes
30941 else
30942 echo "$as_me: failed program was:" >&5
30943 sed 's/^/| /' conftest.$ac_ext >&5
30945 ac_header_preproc=no
30948 rm -f conftest.err conftest.$ac_ext
30949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30950 echo "${ECHO_T}$ac_header_preproc" >&6; }
30952 # So? What about this header?
30953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30954 yes:no: )
30955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30959 ac_header_preproc=yes
30961 no:yes:* )
30962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30965 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30969 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30974 ( cat <<\_ASBOX
30975 ## ----------------------------------- ##
30976 ## Report this to llvmbugs@cs.uiuc.edu ##
30977 ## ----------------------------------- ##
30978 _ASBOX
30979 ) | sed "s/^/$as_me: WARNING: /" >&2
30981 esac
30982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30985 echo $ECHO_N "(cached) $ECHO_C" >&6
30986 else
30987 eval "$as_ac_Header=\$ac_header_preproc"
30989 ac_res=`eval echo '${'$as_ac_Header'}'`
30990 { echo "$as_me:$LINENO: result: $ac_res" >&5
30991 echo "${ECHO_T}$ac_res" >&6; }
30994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30995 cat >>confdefs.h <<_ACEOF
30996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30997 _ACEOF
31001 done
31007 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31008 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31009 if test "${ac_cv_huge_val_sanity+set}" = set; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
31011 else
31013 ac_ext=cpp
31014 ac_cpp='$CXXCPP $CPPFLAGS'
31015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31019 CXXFLAGS=-pedantic
31020 if test "$cross_compiling" = yes; then
31021 ac_cv_huge_val_sanity=yes
31022 else
31023 cat >conftest.$ac_ext <<_ACEOF
31024 /* confdefs.h. */
31025 _ACEOF
31026 cat confdefs.h >>conftest.$ac_ext
31027 cat >>conftest.$ac_ext <<_ACEOF
31028 /* end confdefs.h. */
31029 #include <math.h>
31031 main ()
31033 double x = HUGE_VAL; return x != x;
31035 return 0;
31037 _ACEOF
31038 rm -f conftest$ac_exeext
31039 if { (ac_try="$ac_link"
31040 case "(($ac_try" in
31041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31042 *) ac_try_echo=$ac_try;;
31043 esac
31044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31045 (eval "$ac_link") 2>&5
31046 ac_status=$?
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31049 { (case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31052 esac
31053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_try") 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; }; then
31058 ac_cv_huge_val_sanity=yes
31059 else
31060 echo "$as_me: program exited with status $ac_status" >&5
31061 echo "$as_me: failed program was:" >&5
31062 sed 's/^/| /' conftest.$ac_ext >&5
31064 ( exit $ac_status )
31065 ac_cv_huge_val_sanity=no
31067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31071 ac_ext=c
31072 ac_cpp='$CPP $CPPFLAGS'
31073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31079 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31080 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31081 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31084 { echo "$as_me:$LINENO: checking for pid_t" >&5
31085 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31086 if test "${ac_cv_type_pid_t+set}" = set; then
31087 echo $ECHO_N "(cached) $ECHO_C" >&6
31088 else
31089 cat >conftest.$ac_ext <<_ACEOF
31090 /* confdefs.h. */
31091 _ACEOF
31092 cat confdefs.h >>conftest.$ac_ext
31093 cat >>conftest.$ac_ext <<_ACEOF
31094 /* end confdefs.h. */
31095 $ac_includes_default
31096 typedef pid_t ac__type_new_;
31098 main ()
31100 if ((ac__type_new_ *) 0)
31101 return 0;
31102 if (sizeof (ac__type_new_))
31103 return 0;
31105 return 0;
31107 _ACEOF
31108 rm -f conftest.$ac_objext
31109 if { (ac_try="$ac_compile"
31110 case "(($ac_try" in
31111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31112 *) ac_try_echo=$ac_try;;
31113 esac
31114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31115 (eval "$ac_compile") 2>conftest.er1
31116 ac_status=$?
31117 grep -v '^ *+' conftest.er1 >conftest.err
31118 rm -f conftest.er1
31119 cat conftest.err >&5
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); } &&
31122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31123 { (case "(($ac_try" in
31124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31125 *) ac_try_echo=$ac_try;;
31126 esac
31127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31128 (eval "$ac_try") 2>&5
31129 ac_status=$?
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131 (exit $ac_status); }; } &&
31132 { ac_try='test -s conftest.$ac_objext'
31133 { (case "(($ac_try" in
31134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135 *) ac_try_echo=$ac_try;;
31136 esac
31137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138 (eval "$ac_try") 2>&5
31139 ac_status=$?
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); }; }; then
31142 ac_cv_type_pid_t=yes
31143 else
31144 echo "$as_me: failed program was:" >&5
31145 sed 's/^/| /' conftest.$ac_ext >&5
31147 ac_cv_type_pid_t=no
31150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31152 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31153 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31154 if test $ac_cv_type_pid_t = yes; then
31156 else
31158 cat >>confdefs.h <<_ACEOF
31159 #define pid_t int
31160 _ACEOF
31164 { echo "$as_me:$LINENO: checking for size_t" >&5
31165 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31166 if test "${ac_cv_type_size_t+set}" = set; then
31167 echo $ECHO_N "(cached) $ECHO_C" >&6
31168 else
31169 cat >conftest.$ac_ext <<_ACEOF
31170 /* confdefs.h. */
31171 _ACEOF
31172 cat confdefs.h >>conftest.$ac_ext
31173 cat >>conftest.$ac_ext <<_ACEOF
31174 /* end confdefs.h. */
31175 $ac_includes_default
31176 typedef size_t ac__type_new_;
31178 main ()
31180 if ((ac__type_new_ *) 0)
31181 return 0;
31182 if (sizeof (ac__type_new_))
31183 return 0;
31185 return 0;
31187 _ACEOF
31188 rm -f conftest.$ac_objext
31189 if { (ac_try="$ac_compile"
31190 case "(($ac_try" in
31191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192 *) ac_try_echo=$ac_try;;
31193 esac
31194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195 (eval "$ac_compile") 2>conftest.er1
31196 ac_status=$?
31197 grep -v '^ *+' conftest.er1 >conftest.err
31198 rm -f conftest.er1
31199 cat conftest.err >&5
31200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201 (exit $ac_status); } &&
31202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31203 { (case "(($ac_try" in
31204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205 *) ac_try_echo=$ac_try;;
31206 esac
31207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208 (eval "$ac_try") 2>&5
31209 ac_status=$?
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); }; } &&
31212 { ac_try='test -s conftest.$ac_objext'
31213 { (case "(($ac_try" in
31214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31215 *) ac_try_echo=$ac_try;;
31216 esac
31217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31218 (eval "$ac_try") 2>&5
31219 ac_status=$?
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); }; }; then
31222 ac_cv_type_size_t=yes
31223 else
31224 echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31227 ac_cv_type_size_t=no
31230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31232 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31233 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31234 if test $ac_cv_type_size_t = yes; then
31236 else
31238 cat >>confdefs.h <<_ACEOF
31239 #define size_t unsigned int
31240 _ACEOF
31244 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31245 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31246 if test "${ac_cv_type_signal+set}" = set; then
31247 echo $ECHO_N "(cached) $ECHO_C" >&6
31248 else
31249 cat >conftest.$ac_ext <<_ACEOF
31250 /* confdefs.h. */
31251 _ACEOF
31252 cat confdefs.h >>conftest.$ac_ext
31253 cat >>conftest.$ac_ext <<_ACEOF
31254 /* end confdefs.h. */
31255 #include <sys/types.h>
31256 #include <signal.h>
31259 main ()
31261 return *(signal (0, 0)) (0) == 1;
31263 return 0;
31265 _ACEOF
31266 rm -f conftest.$ac_objext
31267 if { (ac_try="$ac_compile"
31268 case "(($ac_try" in
31269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270 *) ac_try_echo=$ac_try;;
31271 esac
31272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273 (eval "$ac_compile") 2>conftest.er1
31274 ac_status=$?
31275 grep -v '^ *+' conftest.er1 >conftest.err
31276 rm -f conftest.er1
31277 cat conftest.err >&5
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); } &&
31280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31281 { (case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31284 esac
31285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286 (eval "$ac_try") 2>&5
31287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; } &&
31290 { ac_try='test -s conftest.$ac_objext'
31291 { (case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31294 esac
31295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_try") 2>&5
31297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
31300 ac_cv_type_signal=int
31301 else
31302 echo "$as_me: failed program was:" >&5
31303 sed 's/^/| /' conftest.$ac_ext >&5
31305 ac_cv_type_signal=void
31308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31310 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31311 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31313 cat >>confdefs.h <<_ACEOF
31314 #define RETSIGTYPE $ac_cv_type_signal
31315 _ACEOF
31318 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31319 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31320 if test "${ac_cv_struct_tm+set}" = set; then
31321 echo $ECHO_N "(cached) $ECHO_C" >&6
31322 else
31323 cat >conftest.$ac_ext <<_ACEOF
31324 /* confdefs.h. */
31325 _ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h. */
31329 #include <sys/types.h>
31330 #include <time.h>
31333 main ()
31335 struct tm *tp; tp->tm_sec;
31337 return 0;
31339 _ACEOF
31340 rm -f conftest.$ac_objext
31341 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31348 ac_status=$?
31349 grep -v '^ *+' conftest.er1 >conftest.err
31350 rm -f conftest.er1
31351 cat conftest.err >&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } &&
31354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31355 { (case "(($ac_try" in
31356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357 *) ac_try_echo=$ac_try;;
31358 esac
31359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360 (eval "$ac_try") 2>&5
31361 ac_status=$?
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; } &&
31364 { ac_try='test -s conftest.$ac_objext'
31365 { (case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31368 esac
31369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_try") 2>&5
31371 ac_status=$?
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
31374 ac_cv_struct_tm=time.h
31375 else
31376 echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.$ac_ext >&5
31379 ac_cv_struct_tm=sys/time.h
31382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31384 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31385 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31386 if test $ac_cv_struct_tm = sys/time.h; then
31388 cat >>confdefs.h <<\_ACEOF
31389 #define TM_IN_SYS_TIME 1
31390 _ACEOF
31394 { echo "$as_me:$LINENO: checking for int64_t" >&5
31395 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31396 if test "${ac_cv_type_int64_t+set}" = set; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31398 else
31399 cat >conftest.$ac_ext <<_ACEOF
31400 /* confdefs.h. */
31401 _ACEOF
31402 cat confdefs.h >>conftest.$ac_ext
31403 cat >>conftest.$ac_ext <<_ACEOF
31404 /* end confdefs.h. */
31405 $ac_includes_default
31406 typedef int64_t ac__type_new_;
31408 main ()
31410 if ((ac__type_new_ *) 0)
31411 return 0;
31412 if (sizeof (ac__type_new_))
31413 return 0;
31415 return 0;
31417 _ACEOF
31418 rm -f conftest.$ac_objext
31419 if { (ac_try="$ac_compile"
31420 case "(($ac_try" in
31421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422 *) ac_try_echo=$ac_try;;
31423 esac
31424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425 (eval "$ac_compile") 2>conftest.er1
31426 ac_status=$?
31427 grep -v '^ *+' conftest.er1 >conftest.err
31428 rm -f conftest.er1
31429 cat conftest.err >&5
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); } &&
31432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31433 { (case "(($ac_try" in
31434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31435 *) ac_try_echo=$ac_try;;
31436 esac
31437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31438 (eval "$ac_try") 2>&5
31439 ac_status=$?
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); }; } &&
31442 { ac_try='test -s conftest.$ac_objext'
31443 { (case "(($ac_try" in
31444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31445 *) ac_try_echo=$ac_try;;
31446 esac
31447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31448 (eval "$ac_try") 2>&5
31449 ac_status=$?
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); }; }; then
31452 ac_cv_type_int64_t=yes
31453 else
31454 echo "$as_me: failed program was:" >&5
31455 sed 's/^/| /' conftest.$ac_ext >&5
31457 ac_cv_type_int64_t=no
31460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31462 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31463 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31464 if test $ac_cv_type_int64_t = yes; then
31466 cat >>confdefs.h <<_ACEOF
31467 #define HAVE_INT64_T 1
31468 _ACEOF
31471 else
31472 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31473 echo "$as_me: error: Type int64_t required but not found" >&2;}
31474 { (exit 1); exit 1; }; }
31477 { echo "$as_me:$LINENO: checking for uint64_t" >&5
31478 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31479 if test "${ac_cv_type_uint64_t+set}" = set; then
31480 echo $ECHO_N "(cached) $ECHO_C" >&6
31481 else
31482 cat >conftest.$ac_ext <<_ACEOF
31483 /* confdefs.h. */
31484 _ACEOF
31485 cat confdefs.h >>conftest.$ac_ext
31486 cat >>conftest.$ac_ext <<_ACEOF
31487 /* end confdefs.h. */
31488 $ac_includes_default
31489 typedef uint64_t ac__type_new_;
31491 main ()
31493 if ((ac__type_new_ *) 0)
31494 return 0;
31495 if (sizeof (ac__type_new_))
31496 return 0;
31498 return 0;
31500 _ACEOF
31501 rm -f conftest.$ac_objext
31502 if { (ac_try="$ac_compile"
31503 case "(($ac_try" in
31504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505 *) ac_try_echo=$ac_try;;
31506 esac
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508 (eval "$ac_compile") 2>conftest.er1
31509 ac_status=$?
31510 grep -v '^ *+' conftest.er1 >conftest.err
31511 rm -f conftest.er1
31512 cat conftest.err >&5
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); } &&
31515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31516 { (case "(($ac_try" in
31517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518 *) ac_try_echo=$ac_try;;
31519 esac
31520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521 (eval "$ac_try") 2>&5
31522 ac_status=$?
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); }; } &&
31525 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
31535 ac_cv_type_uint64_t=yes
31536 else
31537 echo "$as_me: failed program was:" >&5
31538 sed 's/^/| /' conftest.$ac_ext >&5
31540 ac_cv_type_uint64_t=no
31543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31545 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31546 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31547 if test $ac_cv_type_uint64_t = yes; then
31549 cat >>confdefs.h <<_ACEOF
31550 #define HAVE_UINT64_T 1
31551 _ACEOF
31554 else
31555 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31556 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31557 if test "${ac_cv_type_u_int64_t+set}" = set; then
31558 echo $ECHO_N "(cached) $ECHO_C" >&6
31559 else
31560 cat >conftest.$ac_ext <<_ACEOF
31561 /* confdefs.h. */
31562 _ACEOF
31563 cat confdefs.h >>conftest.$ac_ext
31564 cat >>conftest.$ac_ext <<_ACEOF
31565 /* end confdefs.h. */
31566 $ac_includes_default
31567 typedef u_int64_t ac__type_new_;
31569 main ()
31571 if ((ac__type_new_ *) 0)
31572 return 0;
31573 if (sizeof (ac__type_new_))
31574 return 0;
31576 return 0;
31578 _ACEOF
31579 rm -f conftest.$ac_objext
31580 if { (ac_try="$ac_compile"
31581 case "(($ac_try" in
31582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31583 *) ac_try_echo=$ac_try;;
31584 esac
31585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31586 (eval "$ac_compile") 2>conftest.er1
31587 ac_status=$?
31588 grep -v '^ *+' conftest.er1 >conftest.err
31589 rm -f conftest.er1
31590 cat conftest.err >&5
31591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592 (exit $ac_status); } &&
31593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31594 { (case "(($ac_try" in
31595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31596 *) ac_try_echo=$ac_try;;
31597 esac
31598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31599 (eval "$ac_try") 2>&5
31600 ac_status=$?
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); }; } &&
31603 { ac_try='test -s conftest.$ac_objext'
31604 { (case "(($ac_try" in
31605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31606 *) ac_try_echo=$ac_try;;
31607 esac
31608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31609 (eval "$ac_try") 2>&5
31610 ac_status=$?
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); }; }; then
31613 ac_cv_type_u_int64_t=yes
31614 else
31615 echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31618 ac_cv_type_u_int64_t=no
31621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31623 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31624 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31625 if test $ac_cv_type_u_int64_t = yes; then
31627 cat >>confdefs.h <<_ACEOF
31628 #define HAVE_U_INT64_T 1
31629 _ACEOF
31632 else
31633 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31634 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31635 { (exit 1); exit 1; }; }
31649 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31655 echo $ECHO_N "(cached) $ECHO_C" >&6
31656 else
31657 cat >conftest.$ac_ext <<_ACEOF
31658 /* confdefs.h. */
31659 _ACEOF
31660 cat confdefs.h >>conftest.$ac_ext
31661 cat >>conftest.$ac_ext <<_ACEOF
31662 /* end confdefs.h. */
31663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31665 #define $ac_func innocuous_$ac_func
31667 /* System header to define __stub macros and hopefully few prototypes,
31668 which can conflict with char $ac_func (); below.
31669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31670 <limits.h> exists even on freestanding compilers. */
31672 #ifdef __STDC__
31673 # include <limits.h>
31674 #else
31675 # include <assert.h>
31676 #endif
31678 #undef $ac_func
31680 /* Override any GCC internal prototype to avoid an error.
31681 Use char because int might match the return type of a GCC
31682 builtin and then its argument prototype would still apply. */
31683 #ifdef __cplusplus
31684 extern "C"
31685 #endif
31686 char $ac_func ();
31687 /* The GNU C library defines this for functions which it implements
31688 to always fail with ENOSYS. Some functions are actually named
31689 something starting with __ and the normal name is an alias. */
31690 #if defined __stub_$ac_func || defined __stub___$ac_func
31691 choke me
31692 #endif
31695 main ()
31697 return $ac_func ();
31699 return 0;
31701 _ACEOF
31702 rm -f conftest.$ac_objext conftest$ac_exeext
31703 if { (ac_try="$ac_link"
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_link") 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_c_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_exeext'
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 eval "$as_ac_var=yes"
31737 else
31738 echo "$as_me: failed program was:" >&5
31739 sed 's/^/| /' conftest.$ac_ext >&5
31741 eval "$as_ac_var=no"
31744 rm -f core conftest.err conftest.$ac_objext \
31745 conftest$ac_exeext conftest.$ac_ext
31747 ac_res=`eval echo '${'$as_ac_var'}'`
31748 { echo "$as_me:$LINENO: result: $ac_res" >&5
31749 echo "${ECHO_T}$ac_res" >&6; }
31750 if test `eval echo '${'$as_ac_var'}'` = yes; then
31751 cat >>confdefs.h <<_ACEOF
31752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31753 _ACEOF
31756 done
31762 for ac_func in powf fmodf strtof round
31764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31768 echo $ECHO_N "(cached) $ECHO_C" >&6
31769 else
31770 cat >conftest.$ac_ext <<_ACEOF
31771 /* confdefs.h. */
31772 _ACEOF
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h. */
31776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31778 #define $ac_func innocuous_$ac_func
31780 /* System header to define __stub macros and hopefully few prototypes,
31781 which can conflict with char $ac_func (); below.
31782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31783 <limits.h> exists even on freestanding compilers. */
31785 #ifdef __STDC__
31786 # include <limits.h>
31787 #else
31788 # include <assert.h>
31789 #endif
31791 #undef $ac_func
31793 /* Override any GCC internal prototype to avoid an error.
31794 Use char because int might match the return type of a GCC
31795 builtin and then its argument prototype would still apply. */
31796 #ifdef __cplusplus
31797 extern "C"
31798 #endif
31799 char $ac_func ();
31800 /* The GNU C library defines this for functions which it implements
31801 to always fail with ENOSYS. Some functions are actually named
31802 something starting with __ and the normal name is an alias. */
31803 #if defined __stub_$ac_func || defined __stub___$ac_func
31804 choke me
31805 #endif
31808 main ()
31810 return $ac_func ();
31812 return 0;
31814 _ACEOF
31815 rm -f conftest.$ac_objext conftest$ac_exeext
31816 if { (ac_try="$ac_link"
31817 case "(($ac_try" in
31818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31819 *) ac_try_echo=$ac_try;;
31820 esac
31821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31822 (eval "$ac_link") 2>conftest.er1
31823 ac_status=$?
31824 grep -v '^ *+' conftest.er1 >conftest.err
31825 rm -f conftest.er1
31826 cat conftest.err >&5
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); } &&
31829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31830 { (case "(($ac_try" in
31831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832 *) ac_try_echo=$ac_try;;
31833 esac
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835 (eval "$ac_try") 2>&5
31836 ac_status=$?
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; } &&
31839 { ac_try='test -s conftest$ac_exeext'
31840 { (case "(($ac_try" in
31841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31842 *) ac_try_echo=$ac_try;;
31843 esac
31844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31845 (eval "$ac_try") 2>&5
31846 ac_status=$?
31847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); }; }; then
31849 eval "$as_ac_var=yes"
31850 else
31851 echo "$as_me: failed program was:" >&5
31852 sed 's/^/| /' conftest.$ac_ext >&5
31854 eval "$as_ac_var=no"
31857 rm -f core conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
31860 ac_res=`eval echo '${'$as_ac_var'}'`
31861 { echo "$as_me:$LINENO: result: $ac_res" >&5
31862 echo "${ECHO_T}$ac_res" >&6; }
31863 if test `eval echo '${'$as_ac_var'}'` = yes; then
31864 cat >>confdefs.h <<_ACEOF
31865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31866 _ACEOF
31869 done
31876 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31882 echo $ECHO_N "(cached) $ECHO_C" >&6
31883 else
31884 cat >conftest.$ac_ext <<_ACEOF
31885 /* confdefs.h. */
31886 _ACEOF
31887 cat confdefs.h >>conftest.$ac_ext
31888 cat >>conftest.$ac_ext <<_ACEOF
31889 /* end confdefs.h. */
31890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31892 #define $ac_func innocuous_$ac_func
31894 /* System header to define __stub macros and hopefully few prototypes,
31895 which can conflict with char $ac_func (); below.
31896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31897 <limits.h> exists even on freestanding compilers. */
31899 #ifdef __STDC__
31900 # include <limits.h>
31901 #else
31902 # include <assert.h>
31903 #endif
31905 #undef $ac_func
31907 /* Override any GCC internal prototype to avoid an error.
31908 Use char because int might match the return type of a GCC
31909 builtin and then its argument prototype would still apply. */
31910 #ifdef __cplusplus
31911 extern "C"
31912 #endif
31913 char $ac_func ();
31914 /* The GNU C library defines this for functions which it implements
31915 to always fail with ENOSYS. Some functions are actually named
31916 something starting with __ and the normal name is an alias. */
31917 #if defined __stub_$ac_func || defined __stub___$ac_func
31918 choke me
31919 #endif
31922 main ()
31924 return $ac_func ();
31926 return 0;
31928 _ACEOF
31929 rm -f conftest.$ac_objext conftest$ac_exeext
31930 if { (ac_try="$ac_link"
31931 case "(($ac_try" in
31932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31933 *) ac_try_echo=$ac_try;;
31934 esac
31935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31936 (eval "$ac_link") 2>conftest.er1
31937 ac_status=$?
31938 grep -v '^ *+' conftest.er1 >conftest.err
31939 rm -f conftest.er1
31940 cat conftest.err >&5
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); } &&
31943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31944 { (case "(($ac_try" in
31945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31946 *) ac_try_echo=$ac_try;;
31947 esac
31948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31949 (eval "$ac_try") 2>&5
31950 ac_status=$?
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); }; } &&
31953 { ac_try='test -s conftest$ac_exeext'
31954 { (case "(($ac_try" in
31955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31956 *) ac_try_echo=$ac_try;;
31957 esac
31958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31959 (eval "$ac_try") 2>&5
31960 ac_status=$?
31961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31962 (exit $ac_status); }; }; then
31963 eval "$as_ac_var=yes"
31964 else
31965 echo "$as_me: failed program was:" >&5
31966 sed 's/^/| /' conftest.$ac_ext >&5
31968 eval "$as_ac_var=no"
31971 rm -f core conftest.err conftest.$ac_objext \
31972 conftest$ac_exeext conftest.$ac_ext
31974 ac_res=`eval echo '${'$as_ac_var'}'`
31975 { echo "$as_me:$LINENO: result: $ac_res" >&5
31976 echo "${ECHO_T}$ac_res" >&6; }
31977 if test `eval echo '${'$as_ac_var'}'` = yes; then
31978 cat >>confdefs.h <<_ACEOF
31979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31980 _ACEOF
31983 done
31988 for ac_func in isatty mkdtemp mkstemp
31990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31994 echo $ECHO_N "(cached) $ECHO_C" >&6
31995 else
31996 cat >conftest.$ac_ext <<_ACEOF
31997 /* confdefs.h. */
31998 _ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h. */
32002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32004 #define $ac_func innocuous_$ac_func
32006 /* System header to define __stub macros and hopefully few prototypes,
32007 which can conflict with char $ac_func (); below.
32008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32009 <limits.h> exists even on freestanding compilers. */
32011 #ifdef __STDC__
32012 # include <limits.h>
32013 #else
32014 # include <assert.h>
32015 #endif
32017 #undef $ac_func
32019 /* Override any GCC internal prototype to avoid an error.
32020 Use char because int might match the return type of a GCC
32021 builtin and then its argument prototype would still apply. */
32022 #ifdef __cplusplus
32023 extern "C"
32024 #endif
32025 char $ac_func ();
32026 /* The GNU C library defines this for functions which it implements
32027 to always fail with ENOSYS. Some functions are actually named
32028 something starting with __ and the normal name is an alias. */
32029 #if defined __stub_$ac_func || defined __stub___$ac_func
32030 choke me
32031 #endif
32034 main ()
32036 return $ac_func ();
32038 return 0;
32040 _ACEOF
32041 rm -f conftest.$ac_objext conftest$ac_exeext
32042 if { (ac_try="$ac_link"
32043 case "(($ac_try" in
32044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32045 *) ac_try_echo=$ac_try;;
32046 esac
32047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32048 (eval "$ac_link") 2>conftest.er1
32049 ac_status=$?
32050 grep -v '^ *+' conftest.er1 >conftest.err
32051 rm -f conftest.er1
32052 cat conftest.err >&5
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); } &&
32055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32056 { (case "(($ac_try" in
32057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058 *) ac_try_echo=$ac_try;;
32059 esac
32060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061 (eval "$ac_try") 2>&5
32062 ac_status=$?
32063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064 (exit $ac_status); }; } &&
32065 { ac_try='test -s conftest$ac_exeext'
32066 { (case "(($ac_try" in
32067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32068 *) ac_try_echo=$ac_try;;
32069 esac
32070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32071 (eval "$ac_try") 2>&5
32072 ac_status=$?
32073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074 (exit $ac_status); }; }; then
32075 eval "$as_ac_var=yes"
32076 else
32077 echo "$as_me: failed program was:" >&5
32078 sed 's/^/| /' conftest.$ac_ext >&5
32080 eval "$as_ac_var=no"
32083 rm -f core conftest.err conftest.$ac_objext \
32084 conftest$ac_exeext conftest.$ac_ext
32086 ac_res=`eval echo '${'$as_ac_var'}'`
32087 { echo "$as_me:$LINENO: result: $ac_res" >&5
32088 echo "${ECHO_T}$ac_res" >&6; }
32089 if test `eval echo '${'$as_ac_var'}'` = yes; then
32090 cat >>confdefs.h <<_ACEOF
32091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32092 _ACEOF
32095 done
32102 for ac_func in mktemp realpath sbrk setrlimit strdup
32104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32108 echo $ECHO_N "(cached) $ECHO_C" >&6
32109 else
32110 cat >conftest.$ac_ext <<_ACEOF
32111 /* confdefs.h. */
32112 _ACEOF
32113 cat confdefs.h >>conftest.$ac_ext
32114 cat >>conftest.$ac_ext <<_ACEOF
32115 /* end confdefs.h. */
32116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32118 #define $ac_func innocuous_$ac_func
32120 /* System header to define __stub macros and hopefully few prototypes,
32121 which can conflict with char $ac_func (); below.
32122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32123 <limits.h> exists even on freestanding compilers. */
32125 #ifdef __STDC__
32126 # include <limits.h>
32127 #else
32128 # include <assert.h>
32129 #endif
32131 #undef $ac_func
32133 /* Override any GCC internal prototype to avoid an error.
32134 Use char because int might match the return type of a GCC
32135 builtin and then its argument prototype would still apply. */
32136 #ifdef __cplusplus
32137 extern "C"
32138 #endif
32139 char $ac_func ();
32140 /* The GNU C library defines this for functions which it implements
32141 to always fail with ENOSYS. Some functions are actually named
32142 something starting with __ and the normal name is an alias. */
32143 #if defined __stub_$ac_func || defined __stub___$ac_func
32144 choke me
32145 #endif
32148 main ()
32150 return $ac_func ();
32152 return 0;
32154 _ACEOF
32155 rm -f conftest.$ac_objext conftest$ac_exeext
32156 if { (ac_try="$ac_link"
32157 case "(($ac_try" in
32158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32159 *) ac_try_echo=$ac_try;;
32160 esac
32161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32162 (eval "$ac_link") 2>conftest.er1
32163 ac_status=$?
32164 grep -v '^ *+' conftest.er1 >conftest.err
32165 rm -f conftest.er1
32166 cat conftest.err >&5
32167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168 (exit $ac_status); } &&
32169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
32176 ac_status=$?
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); }; } &&
32179 { ac_try='test -s conftest$ac_exeext'
32180 { (case "(($ac_try" in
32181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32182 *) ac_try_echo=$ac_try;;
32183 esac
32184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32185 (eval "$ac_try") 2>&5
32186 ac_status=$?
32187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188 (exit $ac_status); }; }; then
32189 eval "$as_ac_var=yes"
32190 else
32191 echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32194 eval "$as_ac_var=no"
32197 rm -f core conftest.err conftest.$ac_objext \
32198 conftest$ac_exeext conftest.$ac_ext
32200 ac_res=`eval echo '${'$as_ac_var'}'`
32201 { echo "$as_me:$LINENO: result: $ac_res" >&5
32202 echo "${ECHO_T}$ac_res" >&6; }
32203 if test `eval echo '${'$as_ac_var'}'` = yes; then
32204 cat >>confdefs.h <<_ACEOF
32205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32206 _ACEOF
32209 done
32215 for ac_func in strerror strerror_r strerror_s setenv
32217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32221 echo $ECHO_N "(cached) $ECHO_C" >&6
32222 else
32223 cat >conftest.$ac_ext <<_ACEOF
32224 /* confdefs.h. */
32225 _ACEOF
32226 cat confdefs.h >>conftest.$ac_ext
32227 cat >>conftest.$ac_ext <<_ACEOF
32228 /* end confdefs.h. */
32229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32231 #define $ac_func innocuous_$ac_func
32233 /* System header to define __stub macros and hopefully few prototypes,
32234 which can conflict with char $ac_func (); below.
32235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32236 <limits.h> exists even on freestanding compilers. */
32238 #ifdef __STDC__
32239 # include <limits.h>
32240 #else
32241 # include <assert.h>
32242 #endif
32244 #undef $ac_func
32246 /* Override any GCC internal prototype to avoid an error.
32247 Use char because int might match the return type of a GCC
32248 builtin and then its argument prototype would still apply. */
32249 #ifdef __cplusplus
32250 extern "C"
32251 #endif
32252 char $ac_func ();
32253 /* The GNU C library defines this for functions which it implements
32254 to always fail with ENOSYS. Some functions are actually named
32255 something starting with __ and the normal name is an alias. */
32256 #if defined __stub_$ac_func || defined __stub___$ac_func
32257 choke me
32258 #endif
32261 main ()
32263 return $ac_func ();
32265 return 0;
32267 _ACEOF
32268 rm -f conftest.$ac_objext conftest$ac_exeext
32269 if { (ac_try="$ac_link"
32270 case "(($ac_try" in
32271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272 *) ac_try_echo=$ac_try;;
32273 esac
32274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275 (eval "$ac_link") 2>conftest.er1
32276 ac_status=$?
32277 grep -v '^ *+' conftest.er1 >conftest.err
32278 rm -f conftest.er1
32279 cat conftest.err >&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); } &&
32282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32283 { (case "(($ac_try" in
32284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285 *) ac_try_echo=$ac_try;;
32286 esac
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288 (eval "$ac_try") 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; } &&
32292 { ac_try='test -s conftest$ac_exeext'
32293 { (case "(($ac_try" in
32294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295 *) ac_try_echo=$ac_try;;
32296 esac
32297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298 (eval "$ac_try") 2>&5
32299 ac_status=$?
32300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); }; }; then
32302 eval "$as_ac_var=yes"
32303 else
32304 echo "$as_me: failed program was:" >&5
32305 sed 's/^/| /' conftest.$ac_ext >&5
32307 eval "$as_ac_var=no"
32310 rm -f core conftest.err conftest.$ac_objext \
32311 conftest$ac_exeext conftest.$ac_ext
32313 ac_res=`eval echo '${'$as_ac_var'}'`
32314 { echo "$as_me:$LINENO: result: $ac_res" >&5
32315 echo "${ECHO_T}$ac_res" >&6; }
32316 if test `eval echo '${'$as_ac_var'}'` = yes; then
32317 cat >>confdefs.h <<_ACEOF
32318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32319 _ACEOF
32322 done
32328 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32334 echo $ECHO_N "(cached) $ECHO_C" >&6
32335 else
32336 cat >conftest.$ac_ext <<_ACEOF
32337 /* confdefs.h. */
32338 _ACEOF
32339 cat confdefs.h >>conftest.$ac_ext
32340 cat >>conftest.$ac_ext <<_ACEOF
32341 /* end confdefs.h. */
32342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32344 #define $ac_func innocuous_$ac_func
32346 /* System header to define __stub macros and hopefully few prototypes,
32347 which can conflict with char $ac_func (); below.
32348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32349 <limits.h> exists even on freestanding compilers. */
32351 #ifdef __STDC__
32352 # include <limits.h>
32353 #else
32354 # include <assert.h>
32355 #endif
32357 #undef $ac_func
32359 /* Override any GCC internal prototype to avoid an error.
32360 Use char because int might match the return type of a GCC
32361 builtin and then its argument prototype would still apply. */
32362 #ifdef __cplusplus
32363 extern "C"
32364 #endif
32365 char $ac_func ();
32366 /* The GNU C library defines this for functions which it implements
32367 to always fail with ENOSYS. Some functions are actually named
32368 something starting with __ and the normal name is an alias. */
32369 #if defined __stub_$ac_func || defined __stub___$ac_func
32370 choke me
32371 #endif
32374 main ()
32376 return $ac_func ();
32378 return 0;
32380 _ACEOF
32381 rm -f conftest.$ac_objext conftest$ac_exeext
32382 if { (ac_try="$ac_link"
32383 case "(($ac_try" in
32384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385 *) ac_try_echo=$ac_try;;
32386 esac
32387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32388 (eval "$ac_link") 2>conftest.er1
32389 ac_status=$?
32390 grep -v '^ *+' conftest.er1 >conftest.err
32391 rm -f conftest.er1
32392 cat conftest.err >&5
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); } &&
32395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32396 { (case "(($ac_try" in
32397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32398 *) ac_try_echo=$ac_try;;
32399 esac
32400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32401 (eval "$ac_try") 2>&5
32402 ac_status=$?
32403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 (exit $ac_status); }; } &&
32405 { ac_try='test -s conftest$ac_exeext'
32406 { (case "(($ac_try" in
32407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32408 *) ac_try_echo=$ac_try;;
32409 esac
32410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32411 (eval "$ac_try") 2>&5
32412 ac_status=$?
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); }; }; then
32415 eval "$as_ac_var=yes"
32416 else
32417 echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32420 eval "$as_ac_var=no"
32423 rm -f core conftest.err conftest.$ac_objext \
32424 conftest$ac_exeext conftest.$ac_ext
32426 ac_res=`eval echo '${'$as_ac_var'}'`
32427 { echo "$as_me:$LINENO: result: $ac_res" >&5
32428 echo "${ECHO_T}$ac_res" >&6; }
32429 if test `eval echo '${'$as_ac_var'}'` = yes; then
32430 cat >>confdefs.h <<_ACEOF
32431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32432 _ACEOF
32435 done
32441 for ac_func in setjmp longjmp sigsetjmp siglongjmp
32443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32447 echo $ECHO_N "(cached) $ECHO_C" >&6
32448 else
32449 cat >conftest.$ac_ext <<_ACEOF
32450 /* confdefs.h. */
32451 _ACEOF
32452 cat confdefs.h >>conftest.$ac_ext
32453 cat >>conftest.$ac_ext <<_ACEOF
32454 /* end confdefs.h. */
32455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32457 #define $ac_func innocuous_$ac_func
32459 /* System header to define __stub macros and hopefully few prototypes,
32460 which can conflict with char $ac_func (); below.
32461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32462 <limits.h> exists even on freestanding compilers. */
32464 #ifdef __STDC__
32465 # include <limits.h>
32466 #else
32467 # include <assert.h>
32468 #endif
32470 #undef $ac_func
32472 /* Override any GCC internal prototype to avoid an error.
32473 Use char because int might match the return type of a GCC
32474 builtin and then its argument prototype would still apply. */
32475 #ifdef __cplusplus
32476 extern "C"
32477 #endif
32478 char $ac_func ();
32479 /* The GNU C library defines this for functions which it implements
32480 to always fail with ENOSYS. Some functions are actually named
32481 something starting with __ and the normal name is an alias. */
32482 #if defined __stub_$ac_func || defined __stub___$ac_func
32483 choke me
32484 #endif
32487 main ()
32489 return $ac_func ();
32491 return 0;
32493 _ACEOF
32494 rm -f conftest.$ac_objext conftest$ac_exeext
32495 if { (ac_try="$ac_link"
32496 case "(($ac_try" in
32497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32498 *) ac_try_echo=$ac_try;;
32499 esac
32500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32501 (eval "$ac_link") 2>conftest.er1
32502 ac_status=$?
32503 grep -v '^ *+' conftest.er1 >conftest.err
32504 rm -f conftest.er1
32505 cat conftest.err >&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); } &&
32508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32509 { (case "(($ac_try" in
32510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32511 *) ac_try_echo=$ac_try;;
32512 esac
32513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32514 (eval "$ac_try") 2>&5
32515 ac_status=$?
32516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32517 (exit $ac_status); }; } &&
32518 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
32525 ac_status=$?
32526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527 (exit $ac_status); }; }; then
32528 eval "$as_ac_var=yes"
32529 else
32530 echo "$as_me: failed program was:" >&5
32531 sed 's/^/| /' conftest.$ac_ext >&5
32533 eval "$as_ac_var=no"
32536 rm -f core conftest.err conftest.$ac_objext \
32537 conftest$ac_exeext conftest.$ac_ext
32539 ac_res=`eval echo '${'$as_ac_var'}'`
32540 { echo "$as_me:$LINENO: result: $ac_res" >&5
32541 echo "${ECHO_T}$ac_res" >&6; }
32542 if test `eval echo '${'$as_ac_var'}'` = yes; then
32543 cat >>confdefs.h <<_ACEOF
32544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32545 _ACEOF
32548 done
32550 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32551 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32552 if test "${llvm_cv_c_printf_a+set}" = set; then
32553 echo $ECHO_N "(cached) $ECHO_C" >&6
32554 else
32555 ac_ext=c
32556 ac_cpp='$CPP $CPPFLAGS'
32557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561 if test "$cross_compiling" = yes; then
32562 llvmac_cv_c_printf_a=no
32563 else
32564 cat >conftest.$ac_ext <<_ACEOF
32566 /* confdefs.h. */
32567 _ACEOF
32568 cat confdefs.h >>conftest.$ac_ext
32569 cat >>conftest.$ac_ext <<_ACEOF
32570 /* end confdefs.h. */
32572 #include <stdio.h>
32573 #include <stdlib.h>
32576 main ()
32579 volatile double A, B;
32580 char Buffer[100];
32581 A = 1;
32582 A /= 10.0;
32583 sprintf(Buffer, "%a", A);
32584 B = atof(Buffer);
32585 if (A != B)
32586 return (1);
32587 if (A != 0x1.999999999999ap-4)
32588 return (1);
32589 return (0);
32591 return 0;
32593 _ACEOF
32594 rm -f conftest$ac_exeext
32595 if { (ac_try="$ac_link"
32596 case "(($ac_try" in
32597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598 *) ac_try_echo=$ac_try;;
32599 esac
32600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601 (eval "$ac_link") 2>&5
32602 ac_status=$?
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }; then
32614 llvm_cv_c_printf_a=yes
32615 else
32616 echo "$as_me: program exited with status $ac_status" >&5
32617 echo "$as_me: failed program was:" >&5
32618 sed 's/^/| /' conftest.$ac_ext >&5
32620 ( exit $ac_status )
32621 llvmac_cv_c_printf_a=no
32623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32627 ac_ext=c
32628 ac_cpp='$CPP $CPPFLAGS'
32629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32634 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32635 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32636 if test "$llvm_cv_c_printf_a" = "yes"; then
32638 cat >>confdefs.h <<\_ACEOF
32639 #define HAVE_PRINTF_A 1
32640 _ACEOF
32644 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32645 # for constant arguments. Useless!
32646 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
32647 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32648 if test "${ac_cv_working_alloca_h+set}" = set; then
32649 echo $ECHO_N "(cached) $ECHO_C" >&6
32650 else
32651 cat >conftest.$ac_ext <<_ACEOF
32652 /* confdefs.h. */
32653 _ACEOF
32654 cat confdefs.h >>conftest.$ac_ext
32655 cat >>conftest.$ac_ext <<_ACEOF
32656 /* end confdefs.h. */
32657 #include <alloca.h>
32659 main ()
32661 char *p = (char *) alloca (2 * sizeof (int));
32662 if (p) return 0;
32664 return 0;
32666 _ACEOF
32667 rm -f conftest.$ac_objext conftest$ac_exeext
32668 if { (ac_try="$ac_link"
32669 case "(($ac_try" in
32670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32671 *) ac_try_echo=$ac_try;;
32672 esac
32673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32674 (eval "$ac_link") 2>conftest.er1
32675 ac_status=$?
32676 grep -v '^ *+' conftest.er1 >conftest.err
32677 rm -f conftest.er1
32678 cat conftest.err >&5
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); } &&
32681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32682 { (case "(($ac_try" in
32683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684 *) ac_try_echo=$ac_try;;
32685 esac
32686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32687 (eval "$ac_try") 2>&5
32688 ac_status=$?
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); }; } &&
32691 { ac_try='test -s conftest$ac_exeext'
32692 { (case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32695 esac
32696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_try") 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; }; then
32701 ac_cv_working_alloca_h=yes
32702 else
32703 echo "$as_me: failed program was:" >&5
32704 sed 's/^/| /' conftest.$ac_ext >&5
32706 ac_cv_working_alloca_h=no
32709 rm -f core conftest.err conftest.$ac_objext \
32710 conftest$ac_exeext conftest.$ac_ext
32712 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32713 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32714 if test $ac_cv_working_alloca_h = yes; then
32716 cat >>confdefs.h <<\_ACEOF
32717 #define HAVE_ALLOCA_H 1
32718 _ACEOF
32722 { echo "$as_me:$LINENO: checking for alloca" >&5
32723 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32724 if test "${ac_cv_func_alloca_works+set}" = set; then
32725 echo $ECHO_N "(cached) $ECHO_C" >&6
32726 else
32727 cat >conftest.$ac_ext <<_ACEOF
32728 /* confdefs.h. */
32729 _ACEOF
32730 cat confdefs.h >>conftest.$ac_ext
32731 cat >>conftest.$ac_ext <<_ACEOF
32732 /* end confdefs.h. */
32733 #ifdef __GNUC__
32734 # define alloca __builtin_alloca
32735 #else
32736 # ifdef _MSC_VER
32737 # include <malloc.h>
32738 # define alloca _alloca
32739 # else
32740 # if HAVE_ALLOCA_H
32741 # include <alloca.h>
32742 # else
32743 # ifdef _AIX
32744 #pragma alloca
32745 # else
32746 # ifndef alloca /* predefined by HP cc +Olibcalls */
32747 char *alloca ();
32748 # endif
32749 # endif
32750 # endif
32751 # endif
32752 #endif
32755 main ()
32757 char *p = (char *) alloca (1);
32758 if (p) return 0;
32760 return 0;
32762 _ACEOF
32763 rm -f conftest.$ac_objext conftest$ac_exeext
32764 if { (ac_try="$ac_link"
32765 case "(($ac_try" in
32766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32767 *) ac_try_echo=$ac_try;;
32768 esac
32769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32770 (eval "$ac_link") 2>conftest.er1
32771 ac_status=$?
32772 grep -v '^ *+' conftest.er1 >conftest.err
32773 rm -f conftest.er1
32774 cat conftest.err >&5
32775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776 (exit $ac_status); } &&
32777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32778 { (case "(($ac_try" in
32779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780 *) ac_try_echo=$ac_try;;
32781 esac
32782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783 (eval "$ac_try") 2>&5
32784 ac_status=$?
32785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786 (exit $ac_status); }; } &&
32787 { ac_try='test -s conftest$ac_exeext'
32788 { (case "(($ac_try" in
32789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32790 *) ac_try_echo=$ac_try;;
32791 esac
32792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32793 (eval "$ac_try") 2>&5
32794 ac_status=$?
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); }; }; then
32797 ac_cv_func_alloca_works=yes
32798 else
32799 echo "$as_me: failed program was:" >&5
32800 sed 's/^/| /' conftest.$ac_ext >&5
32802 ac_cv_func_alloca_works=no
32805 rm -f core conftest.err conftest.$ac_objext \
32806 conftest$ac_exeext conftest.$ac_ext
32808 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32809 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32811 if test $ac_cv_func_alloca_works = yes; then
32813 cat >>confdefs.h <<\_ACEOF
32814 #define HAVE_ALLOCA 1
32815 _ACEOF
32817 else
32818 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32819 # that cause trouble. Some versions do not even contain alloca or
32820 # contain a buggy version. If you still want to use their alloca,
32821 # use ar to extract alloca.o from them instead of compiling alloca.c.
32823 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32825 cat >>confdefs.h <<\_ACEOF
32826 #define C_ALLOCA 1
32827 _ACEOF
32830 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32831 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32832 if test "${ac_cv_os_cray+set}" = set; then
32833 echo $ECHO_N "(cached) $ECHO_C" >&6
32834 else
32835 cat >conftest.$ac_ext <<_ACEOF
32836 /* confdefs.h. */
32837 _ACEOF
32838 cat confdefs.h >>conftest.$ac_ext
32839 cat >>conftest.$ac_ext <<_ACEOF
32840 /* end confdefs.h. */
32841 #if defined CRAY && ! defined CRAY2
32842 webecray
32843 #else
32844 wenotbecray
32845 #endif
32847 _ACEOF
32848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32849 $EGREP "webecray" >/dev/null 2>&1; then
32850 ac_cv_os_cray=yes
32851 else
32852 ac_cv_os_cray=no
32854 rm -f conftest*
32857 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32858 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32859 if test $ac_cv_os_cray = yes; then
32860 for ac_func in _getb67 GETB67 getb67; do
32861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32865 echo $ECHO_N "(cached) $ECHO_C" >&6
32866 else
32867 cat >conftest.$ac_ext <<_ACEOF
32868 /* confdefs.h. */
32869 _ACEOF
32870 cat confdefs.h >>conftest.$ac_ext
32871 cat >>conftest.$ac_ext <<_ACEOF
32872 /* end confdefs.h. */
32873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32875 #define $ac_func innocuous_$ac_func
32877 /* System header to define __stub macros and hopefully few prototypes,
32878 which can conflict with char $ac_func (); below.
32879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32880 <limits.h> exists even on freestanding compilers. */
32882 #ifdef __STDC__
32883 # include <limits.h>
32884 #else
32885 # include <assert.h>
32886 #endif
32888 #undef $ac_func
32890 /* Override any GCC internal prototype to avoid an error.
32891 Use char because int might match the return type of a GCC
32892 builtin and then its argument prototype would still apply. */
32893 #ifdef __cplusplus
32894 extern "C"
32895 #endif
32896 char $ac_func ();
32897 /* The GNU C library defines this for functions which it implements
32898 to always fail with ENOSYS. Some functions are actually named
32899 something starting with __ and the normal name is an alias. */
32900 #if defined __stub_$ac_func || defined __stub___$ac_func
32901 choke me
32902 #endif
32905 main ()
32907 return $ac_func ();
32909 return 0;
32911 _ACEOF
32912 rm -f conftest.$ac_objext conftest$ac_exeext
32913 if { (ac_try="$ac_link"
32914 case "(($ac_try" in
32915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916 *) ac_try_echo=$ac_try;;
32917 esac
32918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919 (eval "$ac_link") 2>conftest.er1
32920 ac_status=$?
32921 grep -v '^ *+' conftest.er1 >conftest.err
32922 rm -f conftest.er1
32923 cat conftest.err >&5
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 (exit $ac_status); } &&
32926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32927 { (case "(($ac_try" in
32928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929 *) ac_try_echo=$ac_try;;
32930 esac
32931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932 (eval "$ac_try") 2>&5
32933 ac_status=$?
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); }; } &&
32936 { ac_try='test -s conftest$ac_exeext'
32937 { (case "(($ac_try" in
32938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32939 *) ac_try_echo=$ac_try;;
32940 esac
32941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32942 (eval "$ac_try") 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; }; then
32946 eval "$as_ac_var=yes"
32947 else
32948 echo "$as_me: failed program was:" >&5
32949 sed 's/^/| /' conftest.$ac_ext >&5
32951 eval "$as_ac_var=no"
32954 rm -f core conftest.err conftest.$ac_objext \
32955 conftest$ac_exeext conftest.$ac_ext
32957 ac_res=`eval echo '${'$as_ac_var'}'`
32958 { echo "$as_me:$LINENO: result: $ac_res" >&5
32959 echo "${ECHO_T}$ac_res" >&6; }
32960 if test `eval echo '${'$as_ac_var'}'` = yes; then
32962 cat >>confdefs.h <<_ACEOF
32963 #define CRAY_STACKSEG_END $ac_func
32964 _ACEOF
32966 break
32969 done
32972 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32973 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32974 if test "${ac_cv_c_stack_direction+set}" = set; then
32975 echo $ECHO_N "(cached) $ECHO_C" >&6
32976 else
32977 if test "$cross_compiling" = yes; then
32978 ac_cv_c_stack_direction=0
32979 else
32980 cat >conftest.$ac_ext <<_ACEOF
32981 /* confdefs.h. */
32982 _ACEOF
32983 cat confdefs.h >>conftest.$ac_ext
32984 cat >>conftest.$ac_ext <<_ACEOF
32985 /* end confdefs.h. */
32986 $ac_includes_default
32988 find_stack_direction ()
32990 static char *addr = 0;
32991 auto char dummy;
32992 if (addr == 0)
32994 addr = &dummy;
32995 return find_stack_direction ();
32997 else
32998 return (&dummy > addr) ? 1 : -1;
33002 main ()
33004 return find_stack_direction () < 0;
33006 _ACEOF
33007 rm -f conftest$ac_exeext
33008 if { (ac_try="$ac_link"
33009 case "(($ac_try" in
33010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33011 *) ac_try_echo=$ac_try;;
33012 esac
33013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33014 (eval "$ac_link") 2>&5
33015 ac_status=$?
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33018 { (case "(($ac_try" in
33019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020 *) ac_try_echo=$ac_try;;
33021 esac
33022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023 (eval "$ac_try") 2>&5
33024 ac_status=$?
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; }; then
33027 ac_cv_c_stack_direction=1
33028 else
33029 echo "$as_me: program exited with status $ac_status" >&5
33030 echo "$as_me: failed program was:" >&5
33031 sed 's/^/| /' conftest.$ac_ext >&5
33033 ( exit $ac_status )
33034 ac_cv_c_stack_direction=-1
33036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33041 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33042 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33044 cat >>confdefs.h <<_ACEOF
33045 #define STACK_DIRECTION $ac_cv_c_stack_direction
33046 _ACEOF
33052 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33053 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33054 if test "${ac_cv_func_rand48+set}" = set; then
33055 echo $ECHO_N "(cached) $ECHO_C" >&6
33056 else
33057 ac_ext=cpp
33058 ac_cpp='$CXXCPP $CPPFLAGS'
33059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33063 cat >conftest.$ac_ext <<_ACEOF
33064 /* confdefs.h. */
33065 _ACEOF
33066 cat confdefs.h >>conftest.$ac_ext
33067 cat >>conftest.$ac_ext <<_ACEOF
33068 /* end confdefs.h. */
33069 #include <stdlib.h>
33071 main ()
33073 srand48(0);lrand48();drand48();
33075 return 0;
33077 _ACEOF
33078 rm -f conftest.$ac_objext
33079 if { (ac_try="$ac_compile"
33080 case "(($ac_try" in
33081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33082 *) ac_try_echo=$ac_try;;
33083 esac
33084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33085 (eval "$ac_compile") 2>conftest.er1
33086 ac_status=$?
33087 grep -v '^ *+' conftest.er1 >conftest.err
33088 rm -f conftest.er1
33089 cat conftest.err >&5
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); } &&
33092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33093 { (case "(($ac_try" in
33094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095 *) ac_try_echo=$ac_try;;
33096 esac
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098 (eval "$ac_try") 2>&5
33099 ac_status=$?
33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101 (exit $ac_status); }; } &&
33102 { ac_try='test -s conftest.$ac_objext'
33103 { (case "(($ac_try" in
33104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105 *) ac_try_echo=$ac_try;;
33106 esac
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108 (eval "$ac_try") 2>&5
33109 ac_status=$?
33110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; }; then
33112 ac_cv_func_rand48=yes
33113 else
33114 echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33117 ac_cv_func_rand48=no
33120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33121 ac_ext=c
33122 ac_cpp='$CPP $CPPFLAGS'
33123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33128 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33129 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33131 if test "$ac_cv_func_rand48" = "yes" ; then
33133 cat >>confdefs.h <<\_ACEOF
33134 #define HAVE_RAND48 1
33135 _ACEOF
33140 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33141 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33142 if test "${ac_cv_cxx_namespaces+set}" = set; then
33143 echo $ECHO_N "(cached) $ECHO_C" >&6
33144 else
33145 ac_ext=cpp
33146 ac_cpp='$CXXCPP $CPPFLAGS'
33147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33151 cat >conftest.$ac_ext <<_ACEOF
33152 /* confdefs.h. */
33153 _ACEOF
33154 cat confdefs.h >>conftest.$ac_ext
33155 cat >>conftest.$ac_ext <<_ACEOF
33156 /* end confdefs.h. */
33157 namespace Outer { namespace Inner { int i = 0; }}
33159 main ()
33161 using namespace Outer::Inner; return i;
33163 return 0;
33165 _ACEOF
33166 rm -f conftest.$ac_objext
33167 if { (ac_try="$ac_compile"
33168 case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33171 esac
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_compile") 2>conftest.er1
33174 ac_status=$?
33175 grep -v '^ *+' conftest.er1 >conftest.err
33176 rm -f conftest.er1
33177 cat conftest.err >&5
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); } &&
33180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33181 { (case "(($ac_try" in
33182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33183 *) ac_try_echo=$ac_try;;
33184 esac
33185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33186 (eval "$ac_try") 2>&5
33187 ac_status=$?
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33189 (exit $ac_status); }; } &&
33190 { ac_try='test -s conftest.$ac_objext'
33191 { (case "(($ac_try" in
33192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193 *) ac_try_echo=$ac_try;;
33194 esac
33195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196 (eval "$ac_try") 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; }; then
33200 ac_cv_cxx_namespaces=yes
33201 else
33202 echo "$as_me: failed program was:" >&5
33203 sed 's/^/| /' conftest.$ac_ext >&5
33205 ac_cv_cxx_namespaces=no
33208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33209 ac_ext=c
33210 ac_cpp='$CPP $CPPFLAGS'
33211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33217 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33218 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33219 if test "$ac_cv_cxx_namespaces" = yes; then
33221 cat >>confdefs.h <<\_ACEOF
33222 #define HAVE_NAMESPACES
33223 _ACEOF
33227 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33228 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33229 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33230 echo $ECHO_N "(cached) $ECHO_C" >&6
33231 else
33233 ac_ext=cpp
33234 ac_cpp='$CXXCPP $CPPFLAGS'
33235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33239 cat >conftest.$ac_ext <<_ACEOF
33240 /* confdefs.h. */
33241 _ACEOF
33242 cat confdefs.h >>conftest.$ac_ext
33243 cat >>conftest.$ac_ext <<_ACEOF
33244 /* end confdefs.h. */
33245 #include <iterator>
33246 #ifdef HAVE_NAMESPACES
33247 using namespace std;
33248 #endif
33250 main ()
33252 iterator<int,int,int> t; return 0;
33254 return 0;
33256 _ACEOF
33257 rm -f conftest.$ac_objext
33258 if { (ac_try="$ac_compile"
33259 case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33262 esac
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_compile") 2>conftest.er1
33265 ac_status=$?
33266 grep -v '^ *+' conftest.er1 >conftest.err
33267 rm -f conftest.er1
33268 cat conftest.err >&5
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); } &&
33271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272 { (case "(($ac_try" in
33273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274 *) ac_try_echo=$ac_try;;
33275 esac
33276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_try") 2>&5
33278 ac_status=$?
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; } &&
33281 { ac_try='test -s conftest.$ac_objext'
33282 { (case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33285 esac
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_try") 2>&5
33288 ac_status=$?
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; }; then
33291 ac_cv_cxx_have_std_iterator=yes
33292 else
33293 echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33296 ac_cv_cxx_have_std_iterator=no
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300 ac_ext=c
33301 ac_cpp='$CPP $CPPFLAGS'
33302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33308 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33309 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33310 if test "$ac_cv_cxx_have_std_iterator" = yes
33311 then
33313 cat >>confdefs.h <<\_ACEOF
33314 #define HAVE_STD_ITERATOR 1
33315 _ACEOF
33317 else
33319 cat >>confdefs.h <<\_ACEOF
33320 #define HAVE_STD_ITERATOR 0
33321 _ACEOF
33325 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33326 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33327 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33328 echo $ECHO_N "(cached) $ECHO_C" >&6
33329 else
33331 ac_ext=cpp
33332 ac_cpp='$CXXCPP $CPPFLAGS'
33333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33337 cat >conftest.$ac_ext <<_ACEOF
33338 /* confdefs.h. */
33339 _ACEOF
33340 cat confdefs.h >>conftest.$ac_ext
33341 cat >>conftest.$ac_ext <<_ACEOF
33342 /* end confdefs.h. */
33343 #include <iterator>
33344 #ifdef HAVE_NAMESPACES
33345 using namespace std;
33346 #endif
33348 main ()
33350 bidirectional_iterator<int,int> t; return 0;
33352 return 0;
33354 _ACEOF
33355 rm -f conftest.$ac_objext
33356 if { (ac_try="$ac_compile"
33357 case "(($ac_try" in
33358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359 *) ac_try_echo=$ac_try;;
33360 esac
33361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362 (eval "$ac_compile") 2>conftest.er1
33363 ac_status=$?
33364 grep -v '^ *+' conftest.er1 >conftest.err
33365 rm -f conftest.er1
33366 cat conftest.err >&5
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); } &&
33369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33370 { (case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33373 esac
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_try") 2>&5
33376 ac_status=$?
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); }; } &&
33379 { ac_try='test -s conftest.$ac_objext'
33380 { (case "(($ac_try" in
33381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33382 *) ac_try_echo=$ac_try;;
33383 esac
33384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33385 (eval "$ac_try") 2>&5
33386 ac_status=$?
33387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388 (exit $ac_status); }; }; then
33389 ac_cv_cxx_have_bi_iterator=yes
33390 else
33391 echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33394 ac_cv_cxx_have_bi_iterator=no
33397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33398 ac_ext=c
33399 ac_cpp='$CPP $CPPFLAGS'
33400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33406 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33407 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33408 if test "$ac_cv_cxx_have_bi_iterator" = yes
33409 then
33411 cat >>confdefs.h <<\_ACEOF
33412 #define HAVE_BI_ITERATOR 1
33413 _ACEOF
33415 else
33417 cat >>confdefs.h <<\_ACEOF
33418 #define HAVE_BI_ITERATOR 0
33419 _ACEOF
33423 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33424 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33425 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33426 echo $ECHO_N "(cached) $ECHO_C" >&6
33427 else
33429 ac_ext=cpp
33430 ac_cpp='$CXXCPP $CPPFLAGS'
33431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33435 cat >conftest.$ac_ext <<_ACEOF
33436 /* confdefs.h. */
33437 _ACEOF
33438 cat confdefs.h >>conftest.$ac_ext
33439 cat >>conftest.$ac_ext <<_ACEOF
33440 /* end confdefs.h. */
33441 #include <iterator>
33442 #ifdef HAVE_NAMESPACES
33443 using namespace std;
33444 #endif
33446 main ()
33448 forward_iterator<int,int> t; return 0;
33450 return 0;
33452 _ACEOF
33453 rm -f conftest.$ac_objext
33454 if { (ac_try="$ac_compile"
33455 case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33458 esac
33459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_compile") 2>conftest.er1
33461 ac_status=$?
33462 grep -v '^ *+' conftest.er1 >conftest.err
33463 rm -f conftest.er1
33464 cat conftest.err >&5
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); } &&
33467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33468 { (case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33471 esac
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_try") 2>&5
33474 ac_status=$?
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); }; } &&
33477 { ac_try='test -s conftest.$ac_objext'
33478 { (case "(($ac_try" in
33479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480 *) ac_try_echo=$ac_try;;
33481 esac
33482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483 (eval "$ac_try") 2>&5
33484 ac_status=$?
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; }; then
33487 ac_cv_cxx_have_fwd_iterator=yes
33488 else
33489 echo "$as_me: failed program was:" >&5
33490 sed 's/^/| /' conftest.$ac_ext >&5
33492 ac_cv_cxx_have_fwd_iterator=no
33495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33496 ac_ext=c
33497 ac_cpp='$CPP $CPPFLAGS'
33498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33504 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33505 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33506 if test "$ac_cv_cxx_have_fwd_iterator" = yes
33507 then
33509 cat >>confdefs.h <<\_ACEOF
33510 #define HAVE_FWD_ITERATOR 1
33511 _ACEOF
33513 else
33515 cat >>confdefs.h <<\_ACEOF
33516 #define HAVE_FWD_ITERATOR 0
33517 _ACEOF
33522 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33523 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33524 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33525 echo $ECHO_N "(cached) $ECHO_C" >&6
33526 else
33527 ac_ext=cpp
33528 ac_cpp='$CXXCPP $CPPFLAGS'
33529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33533 cat >conftest.$ac_ext <<_ACEOF
33534 /* confdefs.h. */
33535 _ACEOF
33536 cat confdefs.h >>conftest.$ac_ext
33537 cat >>conftest.$ac_ext <<_ACEOF
33538 /* end confdefs.h. */
33539 #include <math.h>
33541 main ()
33543 float f; isnan(f);
33545 return 0;
33547 _ACEOF
33548 rm -f conftest.$ac_objext
33549 if { (ac_try="$ac_compile"
33550 case "(($ac_try" in
33551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33552 *) ac_try_echo=$ac_try;;
33553 esac
33554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33555 (eval "$ac_compile") 2>conftest.er1
33556 ac_status=$?
33557 grep -v '^ *+' conftest.er1 >conftest.err
33558 rm -f conftest.er1
33559 cat conftest.err >&5
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); } &&
33562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33563 { (case "(($ac_try" in
33564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33565 *) ac_try_echo=$ac_try;;
33566 esac
33567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33568 (eval "$ac_try") 2>&5
33569 ac_status=$?
33570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571 (exit $ac_status); }; } &&
33572 { ac_try='test -s conftest.$ac_objext'
33573 { (case "(($ac_try" in
33574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33575 *) ac_try_echo=$ac_try;;
33576 esac
33577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33578 (eval "$ac_try") 2>&5
33579 ac_status=$?
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); }; }; then
33582 ac_cv_func_isnan_in_math_h=yes
33583 else
33584 echo "$as_me: failed program was:" >&5
33585 sed 's/^/| /' conftest.$ac_ext >&5
33587 ac_cv_func_isnan_in_math_h=no
33590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33591 ac_ext=c
33592 ac_cpp='$CPP $CPPFLAGS'
33593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33598 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33599 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33602 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33604 cat >>confdefs.h <<\_ACEOF
33605 #define HAVE_ISNAN_IN_MATH_H 1
33606 _ACEOF
33610 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33611 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33612 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33613 echo $ECHO_N "(cached) $ECHO_C" >&6
33614 else
33615 ac_ext=cpp
33616 ac_cpp='$CXXCPP $CPPFLAGS'
33617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33621 cat >conftest.$ac_ext <<_ACEOF
33622 /* confdefs.h. */
33623 _ACEOF
33624 cat confdefs.h >>conftest.$ac_ext
33625 cat >>conftest.$ac_ext <<_ACEOF
33626 /* end confdefs.h. */
33627 #include <cmath>
33629 main ()
33631 float f; isnan(f);
33633 return 0;
33635 _ACEOF
33636 rm -f conftest.$ac_objext
33637 if { (ac_try="$ac_compile"
33638 case "(($ac_try" in
33639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33640 *) ac_try_echo=$ac_try;;
33641 esac
33642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33643 (eval "$ac_compile") 2>conftest.er1
33644 ac_status=$?
33645 grep -v '^ *+' conftest.er1 >conftest.err
33646 rm -f conftest.er1
33647 cat conftest.err >&5
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); } &&
33650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33651 { (case "(($ac_try" in
33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653 *) ac_try_echo=$ac_try;;
33654 esac
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656 (eval "$ac_try") 2>&5
33657 ac_status=$?
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); }; } &&
33660 { ac_try='test -s conftest.$ac_objext'
33661 { (case "(($ac_try" in
33662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33663 *) ac_try_echo=$ac_try;;
33664 esac
33665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33666 (eval "$ac_try") 2>&5
33667 ac_status=$?
33668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669 (exit $ac_status); }; }; then
33670 ac_cv_func_isnan_in_cmath=yes
33671 else
33672 echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33675 ac_cv_func_isnan_in_cmath=no
33678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33679 ac_ext=c
33680 ac_cpp='$CPP $CPPFLAGS'
33681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33686 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33687 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33689 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33691 cat >>confdefs.h <<\_ACEOF
33692 #define HAVE_ISNAN_IN_CMATH 1
33693 _ACEOF
33697 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33698 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33699 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33700 echo $ECHO_N "(cached) $ECHO_C" >&6
33701 else
33702 ac_ext=cpp
33703 ac_cpp='$CXXCPP $CPPFLAGS'
33704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33708 cat >conftest.$ac_ext <<_ACEOF
33709 /* confdefs.h. */
33710 _ACEOF
33711 cat confdefs.h >>conftest.$ac_ext
33712 cat >>conftest.$ac_ext <<_ACEOF
33713 /* end confdefs.h. */
33714 #include <cmath>
33716 main ()
33718 float f; std::isnan(f);
33720 return 0;
33722 _ACEOF
33723 rm -f conftest.$ac_objext
33724 if { (ac_try="$ac_compile"
33725 case "(($ac_try" in
33726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33727 *) ac_try_echo=$ac_try;;
33728 esac
33729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33730 (eval "$ac_compile") 2>conftest.er1
33731 ac_status=$?
33732 grep -v '^ *+' conftest.er1 >conftest.err
33733 rm -f conftest.er1
33734 cat conftest.err >&5
33735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736 (exit $ac_status); } &&
33737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33738 { (case "(($ac_try" in
33739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33740 *) ac_try_echo=$ac_try;;
33741 esac
33742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33743 (eval "$ac_try") 2>&5
33744 ac_status=$?
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); }; } &&
33747 { ac_try='test -s conftest.$ac_objext'
33748 { (case "(($ac_try" in
33749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33750 *) ac_try_echo=$ac_try;;
33751 esac
33752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33753 (eval "$ac_try") 2>&5
33754 ac_status=$?
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); }; }; then
33757 ac_cv_func_std_isnan_in_cmath=yes
33758 else
33759 echo "$as_me: failed program was:" >&5
33760 sed 's/^/| /' conftest.$ac_ext >&5
33762 ac_cv_func_std_isnan_in_cmath=no
33765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33766 ac_ext=c
33767 ac_cpp='$CPP $CPPFLAGS'
33768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33773 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33774 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33776 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33778 cat >>confdefs.h <<\_ACEOF
33779 #define HAVE_STD_ISNAN_IN_CMATH 1
33780 _ACEOF
33785 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33786 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33787 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33788 echo $ECHO_N "(cached) $ECHO_C" >&6
33789 else
33790 ac_ext=cpp
33791 ac_cpp='$CXXCPP $CPPFLAGS'
33792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33796 cat >conftest.$ac_ext <<_ACEOF
33797 /* confdefs.h. */
33798 _ACEOF
33799 cat confdefs.h >>conftest.$ac_ext
33800 cat >>conftest.$ac_ext <<_ACEOF
33801 /* end confdefs.h. */
33802 #include <math.h>
33804 main ()
33806 float f; isinf(f);
33808 return 0;
33810 _ACEOF
33811 rm -f conftest.$ac_objext
33812 if { (ac_try="$ac_compile"
33813 case "(($ac_try" in
33814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815 *) ac_try_echo=$ac_try;;
33816 esac
33817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818 (eval "$ac_compile") 2>conftest.er1
33819 ac_status=$?
33820 grep -v '^ *+' conftest.er1 >conftest.err
33821 rm -f conftest.er1
33822 cat conftest.err >&5
33823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 (exit $ac_status); } &&
33825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33826 { (case "(($ac_try" in
33827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33828 *) ac_try_echo=$ac_try;;
33829 esac
33830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33831 (eval "$ac_try") 2>&5
33832 ac_status=$?
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33834 (exit $ac_status); }; } &&
33835 { ac_try='test -s conftest.$ac_objext'
33836 { (case "(($ac_try" in
33837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33838 *) ac_try_echo=$ac_try;;
33839 esac
33840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33841 (eval "$ac_try") 2>&5
33842 ac_status=$?
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); }; }; then
33845 ac_cv_func_isinf_in_math_h=yes
33846 else
33847 echo "$as_me: failed program was:" >&5
33848 sed 's/^/| /' conftest.$ac_ext >&5
33850 ac_cv_func_isinf_in_math_h=no
33853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33854 ac_ext=c
33855 ac_cpp='$CPP $CPPFLAGS'
33856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33861 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33862 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33864 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33866 cat >>confdefs.h <<\_ACEOF
33867 #define HAVE_ISINF_IN_MATH_H 1
33868 _ACEOF
33872 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33873 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33874 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33876 else
33877 ac_ext=cpp
33878 ac_cpp='$CXXCPP $CPPFLAGS'
33879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33883 cat >conftest.$ac_ext <<_ACEOF
33884 /* confdefs.h. */
33885 _ACEOF
33886 cat confdefs.h >>conftest.$ac_ext
33887 cat >>conftest.$ac_ext <<_ACEOF
33888 /* end confdefs.h. */
33889 #include <cmath>
33891 main ()
33893 float f; isinf(f);
33895 return 0;
33897 _ACEOF
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902 *) ac_try_echo=$ac_try;;
33903 esac
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905 (eval "$ac_compile") 2>conftest.er1
33906 ac_status=$?
33907 grep -v '^ *+' conftest.er1 >conftest.err
33908 rm -f conftest.er1
33909 cat conftest.err >&5
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); } &&
33912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33913 { (case "(($ac_try" in
33914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33915 *) ac_try_echo=$ac_try;;
33916 esac
33917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33918 (eval "$ac_try") 2>&5
33919 ac_status=$?
33920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921 (exit $ac_status); }; } &&
33922 { ac_try='test -s conftest.$ac_objext'
33923 { (case "(($ac_try" in
33924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33925 *) ac_try_echo=$ac_try;;
33926 esac
33927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33928 (eval "$ac_try") 2>&5
33929 ac_status=$?
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); }; }; then
33932 ac_cv_func_isinf_in_cmath=yes
33933 else
33934 echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33937 ac_cv_func_isinf_in_cmath=no
33940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33941 ac_ext=c
33942 ac_cpp='$CPP $CPPFLAGS'
33943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33948 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33949 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
33951 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
33953 cat >>confdefs.h <<\_ACEOF
33954 #define HAVE_ISINF_IN_CMATH 1
33955 _ACEOF
33959 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33960 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
33961 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33962 echo $ECHO_N "(cached) $ECHO_C" >&6
33963 else
33964 ac_ext=cpp
33965 ac_cpp='$CXXCPP $CPPFLAGS'
33966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33970 cat >conftest.$ac_ext <<_ACEOF
33971 /* confdefs.h. */
33972 _ACEOF
33973 cat confdefs.h >>conftest.$ac_ext
33974 cat >>conftest.$ac_ext <<_ACEOF
33975 /* end confdefs.h. */
33976 #include <cmath>
33978 main ()
33980 float f; std::isinf(f)}
33982 return 0;
33984 _ACEOF
33985 rm -f conftest.$ac_objext
33986 if { (ac_try="$ac_compile"
33987 case "(($ac_try" in
33988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33989 *) ac_try_echo=$ac_try;;
33990 esac
33991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33992 (eval "$ac_compile") 2>conftest.er1
33993 ac_status=$?
33994 grep -v '^ *+' conftest.er1 >conftest.err
33995 rm -f conftest.er1
33996 cat conftest.err >&5
33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 (exit $ac_status); } &&
33999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34000 { (case "(($ac_try" in
34001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34002 *) ac_try_echo=$ac_try;;
34003 esac
34004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34005 (eval "$ac_try") 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; } &&
34009 { ac_try='test -s conftest.$ac_objext'
34010 { (case "(($ac_try" in
34011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34012 *) ac_try_echo=$ac_try;;
34013 esac
34014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34015 (eval "$ac_try") 2>&5
34016 ac_status=$?
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); }; }; then
34019 ac_cv_func_std_isinf_in_cmath=yes
34020 else
34021 echo "$as_me: failed program was:" >&5
34022 sed 's/^/| /' conftest.$ac_ext >&5
34024 ac_cv_func_std_isinf_in_cmath=no
34027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34028 ac_ext=c
34029 ac_cpp='$CPP $CPPFLAGS'
34030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34035 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34036 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34038 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34040 cat >>confdefs.h <<\_ACEOF
34041 #define HAVE_STD_ISINF_IN_CMATH 1
34042 _ACEOF
34046 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34047 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34048 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34049 echo $ECHO_N "(cached) $ECHO_C" >&6
34050 else
34051 ac_ext=cpp
34052 ac_cpp='$CXXCPP $CPPFLAGS'
34053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34057 cat >conftest.$ac_ext <<_ACEOF
34058 /* confdefs.h. */
34059 _ACEOF
34060 cat confdefs.h >>conftest.$ac_ext
34061 cat >>conftest.$ac_ext <<_ACEOF
34062 /* end confdefs.h. */
34063 #include <ieeefp.h>
34065 main ()
34067 float f; finite(f);
34069 return 0;
34071 _ACEOF
34072 rm -f conftest.$ac_objext
34073 if { (ac_try="$ac_compile"
34074 case "(($ac_try" in
34075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076 *) ac_try_echo=$ac_try;;
34077 esac
34078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34079 (eval "$ac_compile") 2>conftest.er1
34080 ac_status=$?
34081 grep -v '^ *+' conftest.er1 >conftest.err
34082 rm -f conftest.er1
34083 cat conftest.err >&5
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); } &&
34086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34087 { (case "(($ac_try" in
34088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34089 *) ac_try_echo=$ac_try;;
34090 esac
34091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34092 (eval "$ac_try") 2>&5
34093 ac_status=$?
34094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095 (exit $ac_status); }; } &&
34096 { ac_try='test -s conftest.$ac_objext'
34097 { (case "(($ac_try" in
34098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34099 *) ac_try_echo=$ac_try;;
34100 esac
34101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34102 (eval "$ac_try") 2>&5
34103 ac_status=$?
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); }; }; then
34106 ac_cv_func_finite_in_ieeefp_h=yes
34107 else
34108 echo "$as_me: failed program was:" >&5
34109 sed 's/^/| /' conftest.$ac_ext >&5
34111 ac_cv_func_finite_in_ieeefp_h=no
34114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34115 ac_ext=c
34116 ac_cpp='$CPP $CPPFLAGS'
34117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34122 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34123 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34125 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34127 cat >>confdefs.h <<\_ACEOF
34128 #define HAVE_FINITE_IN_IEEEFP_H 1
34129 _ACEOF
34135 if test "$llvm_cv_platform_type" = "Unix" ; then
34138 for ac_header in stdlib.h unistd.h
34140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34145 echo $ECHO_N "(cached) $ECHO_C" >&6
34147 ac_res=`eval echo '${'$as_ac_Header'}'`
34148 { echo "$as_me:$LINENO: result: $ac_res" >&5
34149 echo "${ECHO_T}$ac_res" >&6; }
34150 else
34151 # Is the header compilable?
34152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
34153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34154 cat >conftest.$ac_ext <<_ACEOF
34155 /* confdefs.h. */
34156 _ACEOF
34157 cat confdefs.h >>conftest.$ac_ext
34158 cat >>conftest.$ac_ext <<_ACEOF
34159 /* end confdefs.h. */
34160 $ac_includes_default
34161 #include <$ac_header>
34162 _ACEOF
34163 rm -f conftest.$ac_objext
34164 if { (ac_try="$ac_compile"
34165 case "(($ac_try" in
34166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167 *) ac_try_echo=$ac_try;;
34168 esac
34169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170 (eval "$ac_compile") 2>conftest.er1
34171 ac_status=$?
34172 grep -v '^ *+' conftest.er1 >conftest.err
34173 rm -f conftest.er1
34174 cat conftest.err >&5
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34176 (exit $ac_status); } &&
34177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34178 { (case "(($ac_try" in
34179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34180 *) ac_try_echo=$ac_try;;
34181 esac
34182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183 (eval "$ac_try") 2>&5
34184 ac_status=$?
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; } &&
34187 { ac_try='test -s conftest.$ac_objext'
34188 { (case "(($ac_try" in
34189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34190 *) ac_try_echo=$ac_try;;
34191 esac
34192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34193 (eval "$ac_try") 2>&5
34194 ac_status=$?
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; }; then
34197 ac_header_compiler=yes
34198 else
34199 echo "$as_me: failed program was:" >&5
34200 sed 's/^/| /' conftest.$ac_ext >&5
34202 ac_header_compiler=no
34205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34207 echo "${ECHO_T}$ac_header_compiler" >&6; }
34209 # Is the header present?
34210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
34211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34212 cat >conftest.$ac_ext <<_ACEOF
34213 /* confdefs.h. */
34214 _ACEOF
34215 cat confdefs.h >>conftest.$ac_ext
34216 cat >>conftest.$ac_ext <<_ACEOF
34217 /* end confdefs.h. */
34218 #include <$ac_header>
34219 _ACEOF
34220 if { (ac_try="$ac_cpp conftest.$ac_ext"
34221 case "(($ac_try" in
34222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34223 *) ac_try_echo=$ac_try;;
34224 esac
34225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34227 ac_status=$?
34228 grep -v '^ *+' conftest.er1 >conftest.err
34229 rm -f conftest.er1
34230 cat conftest.err >&5
34231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232 (exit $ac_status); } >/dev/null; then
34233 if test -s conftest.err; then
34234 ac_cpp_err=$ac_c_preproc_warn_flag
34235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34236 else
34237 ac_cpp_err=
34239 else
34240 ac_cpp_err=yes
34242 if test -z "$ac_cpp_err"; then
34243 ac_header_preproc=yes
34244 else
34245 echo "$as_me: failed program was:" >&5
34246 sed 's/^/| /' conftest.$ac_ext >&5
34248 ac_header_preproc=no
34251 rm -f conftest.err conftest.$ac_ext
34252 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34253 echo "${ECHO_T}$ac_header_preproc" >&6; }
34255 # So? What about this header?
34256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34257 yes:no: )
34258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34259 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34262 ac_header_preproc=yes
34264 no:yes:* )
34265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34266 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34268 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34270 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34272 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34276 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34277 ( cat <<\_ASBOX
34278 ## ----------------------------------- ##
34279 ## Report this to llvmbugs@cs.uiuc.edu ##
34280 ## ----------------------------------- ##
34281 _ASBOX
34282 ) | sed "s/^/$as_me: WARNING: /" >&2
34284 esac
34285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34288 echo $ECHO_N "(cached) $ECHO_C" >&6
34289 else
34290 eval "$as_ac_Header=\$ac_header_preproc"
34292 ac_res=`eval echo '${'$as_ac_Header'}'`
34293 { echo "$as_me:$LINENO: result: $ac_res" >&5
34294 echo "${ECHO_T}$ac_res" >&6; }
34297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34298 cat >>confdefs.h <<_ACEOF
34299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34300 _ACEOF
34304 done
34307 for ac_func in getpagesize
34309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34313 echo $ECHO_N "(cached) $ECHO_C" >&6
34314 else
34315 cat >conftest.$ac_ext <<_ACEOF
34316 /* confdefs.h. */
34317 _ACEOF
34318 cat confdefs.h >>conftest.$ac_ext
34319 cat >>conftest.$ac_ext <<_ACEOF
34320 /* end confdefs.h. */
34321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34323 #define $ac_func innocuous_$ac_func
34325 /* System header to define __stub macros and hopefully few prototypes,
34326 which can conflict with char $ac_func (); below.
34327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34328 <limits.h> exists even on freestanding compilers. */
34330 #ifdef __STDC__
34331 # include <limits.h>
34332 #else
34333 # include <assert.h>
34334 #endif
34336 #undef $ac_func
34338 /* Override any GCC internal prototype to avoid an error.
34339 Use char because int might match the return type of a GCC
34340 builtin and then its argument prototype would still apply. */
34341 #ifdef __cplusplus
34342 extern "C"
34343 #endif
34344 char $ac_func ();
34345 /* The GNU C library defines this for functions which it implements
34346 to always fail with ENOSYS. Some functions are actually named
34347 something starting with __ and the normal name is an alias. */
34348 #if defined __stub_$ac_func || defined __stub___$ac_func
34349 choke me
34350 #endif
34353 main ()
34355 return $ac_func ();
34357 return 0;
34359 _ACEOF
34360 rm -f conftest.$ac_objext conftest$ac_exeext
34361 if { (ac_try="$ac_link"
34362 case "(($ac_try" in
34363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364 *) ac_try_echo=$ac_try;;
34365 esac
34366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367 (eval "$ac_link") 2>conftest.er1
34368 ac_status=$?
34369 grep -v '^ *+' conftest.er1 >conftest.err
34370 rm -f conftest.er1
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } &&
34374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34375 { (case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34378 esac
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_try") 2>&5
34381 ac_status=$?
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); }; } &&
34384 { ac_try='test -s conftest$ac_exeext'
34385 { (case "(($ac_try" in
34386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387 *) ac_try_echo=$ac_try;;
34388 esac
34389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390 (eval "$ac_try") 2>&5
34391 ac_status=$?
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); }; }; then
34394 eval "$as_ac_var=yes"
34395 else
34396 echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34399 eval "$as_ac_var=no"
34402 rm -f core conftest.err conftest.$ac_objext \
34403 conftest$ac_exeext conftest.$ac_ext
34405 ac_res=`eval echo '${'$as_ac_var'}'`
34406 { echo "$as_me:$LINENO: result: $ac_res" >&5
34407 echo "${ECHO_T}$ac_res" >&6; }
34408 if test `eval echo '${'$as_ac_var'}'` = yes; then
34409 cat >>confdefs.h <<_ACEOF
34410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34411 _ACEOF
34414 done
34416 { echo "$as_me:$LINENO: checking for working mmap" >&5
34417 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34418 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34419 echo $ECHO_N "(cached) $ECHO_C" >&6
34420 else
34421 if test "$cross_compiling" = yes; then
34422 ac_cv_func_mmap_fixed_mapped=no
34423 else
34424 cat >conftest.$ac_ext <<_ACEOF
34425 /* confdefs.h. */
34426 _ACEOF
34427 cat confdefs.h >>conftest.$ac_ext
34428 cat >>conftest.$ac_ext <<_ACEOF
34429 /* end confdefs.h. */
34430 $ac_includes_default
34431 /* malloc might have been renamed as rpl_malloc. */
34432 #undef malloc
34434 /* Thanks to Mike Haertel and Jim Avera for this test.
34435 Here is a matrix of mmap possibilities:
34436 mmap private not fixed
34437 mmap private fixed at somewhere currently unmapped
34438 mmap private fixed at somewhere already mapped
34439 mmap shared not fixed
34440 mmap shared fixed at somewhere currently unmapped
34441 mmap shared fixed at somewhere already mapped
34442 For private mappings, we should verify that changes cannot be read()
34443 back from the file, nor mmap's back from the file at a different
34444 address. (There have been systems where private was not correctly
34445 implemented like the infamous i386 svr4.0, and systems where the
34446 VM page cache was not coherent with the file system buffer cache
34447 like early versions of FreeBSD and possibly contemporary NetBSD.)
34448 For shared mappings, we should conversely verify that changes get
34449 propagated back to all the places they're supposed to be.
34451 Grep wants private fixed already mapped.
34452 The main things grep needs to know about mmap are:
34453 * does it exist and is it safe to write into the mmap'd area
34454 * how to use it (BSD variants) */
34456 #include <fcntl.h>
34457 #include <sys/mman.h>
34459 #if !STDC_HEADERS && !HAVE_STDLIB_H
34460 char *malloc ();
34461 #endif
34463 /* This mess was copied from the GNU getpagesize.h. */
34464 #if !HAVE_GETPAGESIZE
34465 /* Assume that all systems that can run configure have sys/param.h. */
34466 # if !HAVE_SYS_PARAM_H
34467 # define HAVE_SYS_PARAM_H 1
34468 # endif
34470 # ifdef _SC_PAGESIZE
34471 # define getpagesize() sysconf(_SC_PAGESIZE)
34472 # else /* no _SC_PAGESIZE */
34473 # if HAVE_SYS_PARAM_H
34474 # include <sys/param.h>
34475 # ifdef EXEC_PAGESIZE
34476 # define getpagesize() EXEC_PAGESIZE
34477 # else /* no EXEC_PAGESIZE */
34478 # ifdef NBPG
34479 # define getpagesize() NBPG * CLSIZE
34480 # ifndef CLSIZE
34481 # define CLSIZE 1
34482 # endif /* no CLSIZE */
34483 # else /* no NBPG */
34484 # ifdef NBPC
34485 # define getpagesize() NBPC
34486 # else /* no NBPC */
34487 # ifdef PAGESIZE
34488 # define getpagesize() PAGESIZE
34489 # endif /* PAGESIZE */
34490 # endif /* no NBPC */
34491 # endif /* no NBPG */
34492 # endif /* no EXEC_PAGESIZE */
34493 # else /* no HAVE_SYS_PARAM_H */
34494 # define getpagesize() 8192 /* punt totally */
34495 # endif /* no HAVE_SYS_PARAM_H */
34496 # endif /* no _SC_PAGESIZE */
34498 #endif /* no HAVE_GETPAGESIZE */
34501 main ()
34503 char *data, *data2, *data3;
34504 int i, pagesize;
34505 int fd;
34507 pagesize = getpagesize ();
34509 /* First, make a file with some known garbage in it. */
34510 data = (char *) malloc (pagesize);
34511 if (!data)
34512 return 1;
34513 for (i = 0; i < pagesize; ++i)
34514 *(data + i) = rand ();
34515 umask (0);
34516 fd = creat ("conftest.mmap", 0600);
34517 if (fd < 0)
34518 return 1;
34519 if (write (fd, data, pagesize) != pagesize)
34520 return 1;
34521 close (fd);
34523 /* Next, try to mmap the file at a fixed address which already has
34524 something else allocated at it. If we can, also make sure that
34525 we see the same garbage. */
34526 fd = open ("conftest.mmap", O_RDWR);
34527 if (fd < 0)
34528 return 1;
34529 data2 = (char *) malloc (2 * pagesize);
34530 if (!data2)
34531 return 1;
34532 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34533 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34534 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34535 return 1;
34536 for (i = 0; i < pagesize; ++i)
34537 if (*(data + i) != *(data2 + i))
34538 return 1;
34540 /* Finally, make sure that changes to the mapped area do not
34541 percolate back to the file as seen by read(). (This is a bug on
34542 some variants of i386 svr4.0.) */
34543 for (i = 0; i < pagesize; ++i)
34544 *(data2 + i) = *(data2 + i) + 1;
34545 data3 = (char *) malloc (pagesize);
34546 if (!data3)
34547 return 1;
34548 if (read (fd, data3, pagesize) != pagesize)
34549 return 1;
34550 for (i = 0; i < pagesize; ++i)
34551 if (*(data + i) != *(data3 + i))
34552 return 1;
34553 close (fd);
34554 return 0;
34556 _ACEOF
34557 rm -f conftest$ac_exeext
34558 if { (ac_try="$ac_link"
34559 case "(($ac_try" in
34560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34561 *) ac_try_echo=$ac_try;;
34562 esac
34563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34564 (eval "$ac_link") 2>&5
34565 ac_status=$?
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34568 { (case "(($ac_try" in
34569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34570 *) ac_try_echo=$ac_try;;
34571 esac
34572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34573 (eval "$ac_try") 2>&5
34574 ac_status=$?
34575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34576 (exit $ac_status); }; }; then
34577 ac_cv_func_mmap_fixed_mapped=yes
34578 else
34579 echo "$as_me: program exited with status $ac_status" >&5
34580 echo "$as_me: failed program was:" >&5
34581 sed 's/^/| /' conftest.$ac_ext >&5
34583 ( exit $ac_status )
34584 ac_cv_func_mmap_fixed_mapped=no
34586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34591 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34592 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34593 if test $ac_cv_func_mmap_fixed_mapped = yes; then
34595 cat >>confdefs.h <<\_ACEOF
34596 #define HAVE_MMAP 1
34597 _ACEOF
34600 rm -f conftest.mmap
34602 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34603 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34604 if test "${ac_cv_func_mmap_file+set}" = set; then
34605 echo $ECHO_N "(cached) $ECHO_C" >&6
34606 else
34607 ac_ext=c
34608 ac_cpp='$CPP $CPPFLAGS'
34609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34613 if test "$cross_compiling" = yes; then
34614 ac_cv_func_mmap_file=no
34615 else
34616 cat >conftest.$ac_ext <<_ACEOF
34618 /* confdefs.h. */
34619 _ACEOF
34620 cat confdefs.h >>conftest.$ac_ext
34621 cat >>conftest.$ac_ext <<_ACEOF
34622 /* end confdefs.h. */
34624 #include <sys/types.h>
34625 #include <sys/mman.h>
34626 #include <fcntl.h>
34629 main ()
34632 int fd;
34633 fd = creat ("foo",0777);
34634 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34635 unlink ("foo");
34636 return (fd != (int) MAP_FAILED);
34638 return 0;
34640 _ACEOF
34641 rm -f conftest$ac_exeext
34642 if { (ac_try="$ac_link"
34643 case "(($ac_try" in
34644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34645 *) ac_try_echo=$ac_try;;
34646 esac
34647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34648 (eval "$ac_link") 2>&5
34649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34652 { (case "(($ac_try" in
34653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654 *) ac_try_echo=$ac_try;;
34655 esac
34656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34657 (eval "$ac_try") 2>&5
34658 ac_status=$?
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; }; then
34661 ac_cv_func_mmap_file=yes
34662 else
34663 echo "$as_me: program exited with status $ac_status" >&5
34664 echo "$as_me: failed program was:" >&5
34665 sed 's/^/| /' conftest.$ac_ext >&5
34667 ( exit $ac_status )
34668 ac_cv_func_mmap_file=no
34670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34674 ac_ext=c
34675 ac_cpp='$CPP $CPPFLAGS'
34676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34682 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34683 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34684 if test "$ac_cv_func_mmap_file" = yes; then
34686 cat >>confdefs.h <<\_ACEOF
34687 #define HAVE_MMAP_FILE
34688 _ACEOF
34690 MMAP_FILE=yes
34694 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34695 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34696 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34697 echo $ECHO_N "(cached) $ECHO_C" >&6
34698 else
34699 if test "$llvm_cv_os_type" = "Interix" ; then
34700 ac_cv_need_dev_zero_for_mmap=yes
34701 else
34702 ac_cv_need_dev_zero_for_mmap=no
34706 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34707 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34708 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34710 cat >>confdefs.h <<\_ACEOF
34711 #define NEED_DEV_ZERO_FOR_MMAP 1
34712 _ACEOF
34716 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34717 then
34718 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34719 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34721 if test "$ac_cv_func_mmap_file" = "no"
34722 then
34723 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34724 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34728 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
34729 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
34730 cat >conftest.$ac_ext <<_ACEOF
34731 /* confdefs.h. */
34732 _ACEOF
34733 cat confdefs.h >>conftest.$ac_ext
34734 cat >>conftest.$ac_ext <<_ACEOF
34735 /* end confdefs.h. */
34736 int main() {
34737 volatile unsigned long val = 1;
34738 __sync_synchronize();
34739 __sync_val_compare_and_swap(&val, 1, 0);
34740 __sync_add_and_fetch(&val, 1);
34741 __sync_sub_and_fetch(&val, 1);
34742 return 0;
34745 _ACEOF
34746 rm -f conftest.$ac_objext conftest$ac_exeext
34747 if { (ac_try="$ac_link"
34748 case "(($ac_try" in
34749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34750 *) ac_try_echo=$ac_try;;
34751 esac
34752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34753 (eval "$ac_link") 2>conftest.er1
34754 ac_status=$?
34755 grep -v '^ *+' conftest.er1 >conftest.err
34756 rm -f conftest.er1
34757 cat conftest.err >&5
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); } &&
34760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34761 { (case "(($ac_try" in
34762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34763 *) ac_try_echo=$ac_try;;
34764 esac
34765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34766 (eval "$ac_try") 2>&5
34767 ac_status=$?
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); }; } &&
34770 { ac_try='test -s conftest$ac_exeext'
34771 { (case "(($ac_try" in
34772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34773 *) ac_try_echo=$ac_try;;
34774 esac
34775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34776 (eval "$ac_try") 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; }; then
34780 { echo "$as_me:$LINENO: result: yes" >&5
34781 echo "${ECHO_T}yes" >&6; }
34783 cat >>confdefs.h <<\_ACEOF
34784 #define LLVM_MULTITHREADED 1
34785 _ACEOF
34787 else
34788 echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34791 { echo "$as_me:$LINENO: result: no" >&5
34792 echo "${ECHO_T}no" >&6; }
34794 cat >>confdefs.h <<\_ACEOF
34795 #define LLVM_MULTITHREADED 0
34796 _ACEOF
34798 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34799 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
34802 rm -f core conftest.err conftest.$ac_objext \
34803 conftest$ac_exeext conftest.$ac_ext
34807 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34808 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34809 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34810 if test "${llvm_cv_linux_mixed+set}" = set; then
34811 echo $ECHO_N "(cached) $ECHO_C" >&6
34812 else
34813 ac_ext=c
34814 ac_cpp='$CPP $CPPFLAGS'
34815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34819 cat >conftest.$ac_ext <<_ACEOF
34820 /* confdefs.h. */
34821 _ACEOF
34822 cat confdefs.h >>conftest.$ac_ext
34823 cat >>conftest.$ac_ext <<_ACEOF
34824 /* end confdefs.h. */
34825 #ifndef __x86_64__
34826 error: Not x86-64 even if uname says so!
34827 #endif
34830 main ()
34834 return 0;
34836 _ACEOF
34837 rm -f conftest.$ac_objext
34838 if { (ac_try="$ac_compile"
34839 case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34842 esac
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_compile") 2>conftest.er1
34845 ac_status=$?
34846 grep -v '^ *+' conftest.er1 >conftest.err
34847 rm -f conftest.er1
34848 cat conftest.err >&5
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
34851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34852 { (case "(($ac_try" in
34853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854 *) ac_try_echo=$ac_try;;
34855 esac
34856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_try") 2>&5
34858 ac_status=$?
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); }; } &&
34861 { ac_try='test -s conftest.$ac_objext'
34862 { (case "(($ac_try" in
34863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34864 *) ac_try_echo=$ac_try;;
34865 esac
34866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34867 (eval "$ac_try") 2>&5
34868 ac_status=$?
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; }; then
34871 llvm_cv_linux_mixed=no
34872 else
34873 echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34876 llvm_cv_linux_mixed=yes
34879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880 ac_ext=c
34881 ac_cpp='$CPP $CPPFLAGS'
34882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34888 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34889 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34891 if test "$llvm_cv_linux_mixed" = "yes"; then
34892 llvm_cv_target_arch="x86"
34893 ARCH="x86"
34898 for ac_func in __dso_handle
34900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34904 echo $ECHO_N "(cached) $ECHO_C" >&6
34905 else
34906 cat >conftest.$ac_ext <<_ACEOF
34907 /* confdefs.h. */
34908 _ACEOF
34909 cat confdefs.h >>conftest.$ac_ext
34910 cat >>conftest.$ac_ext <<_ACEOF
34911 /* end confdefs.h. */
34912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34914 #define $ac_func innocuous_$ac_func
34916 /* System header to define __stub macros and hopefully few prototypes,
34917 which can conflict with char $ac_func (); below.
34918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34919 <limits.h> exists even on freestanding compilers. */
34921 #ifdef __STDC__
34922 # include <limits.h>
34923 #else
34924 # include <assert.h>
34925 #endif
34927 #undef $ac_func
34929 /* Override any GCC internal prototype to avoid an error.
34930 Use char because int might match the return type of a GCC
34931 builtin and then its argument prototype would still apply. */
34932 #ifdef __cplusplus
34933 extern "C"
34934 #endif
34935 char $ac_func ();
34936 /* The GNU C library defines this for functions which it implements
34937 to always fail with ENOSYS. Some functions are actually named
34938 something starting with __ and the normal name is an alias. */
34939 #if defined __stub_$ac_func || defined __stub___$ac_func
34940 choke me
34941 #endif
34944 main ()
34946 return $ac_func ();
34948 return 0;
34950 _ACEOF
34951 rm -f conftest.$ac_objext conftest$ac_exeext
34952 if { (ac_try="$ac_link"
34953 case "(($ac_try" in
34954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34955 *) ac_try_echo=$ac_try;;
34956 esac
34957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34958 (eval "$ac_link") 2>conftest.er1
34959 ac_status=$?
34960 grep -v '^ *+' conftest.er1 >conftest.err
34961 rm -f conftest.er1
34962 cat conftest.err >&5
34963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964 (exit $ac_status); } &&
34965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34966 { (case "(($ac_try" in
34967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34968 *) ac_try_echo=$ac_try;;
34969 esac
34970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34971 (eval "$ac_try") 2>&5
34972 ac_status=$?
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); }; } &&
34975 { ac_try='test -s conftest$ac_exeext'
34976 { (case "(($ac_try" in
34977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34978 *) ac_try_echo=$ac_try;;
34979 esac
34980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34981 (eval "$ac_try") 2>&5
34982 ac_status=$?
34983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34984 (exit $ac_status); }; }; then
34985 eval "$as_ac_var=yes"
34986 else
34987 echo "$as_me: failed program was:" >&5
34988 sed 's/^/| /' conftest.$ac_ext >&5
34990 eval "$as_ac_var=no"
34993 rm -f core conftest.err conftest.$ac_objext \
34994 conftest$ac_exeext conftest.$ac_ext
34996 ac_res=`eval echo '${'$as_ac_var'}'`
34997 { echo "$as_me:$LINENO: result: $ac_res" >&5
34998 echo "${ECHO_T}$ac_res" >&6; }
34999 if test `eval echo '${'$as_ac_var'}'` = yes; then
35000 cat >>confdefs.h <<_ACEOF
35001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35002 _ACEOF
35005 done
35008 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35009 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35010 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35011 echo $ECHO_N "(cached) $ECHO_C" >&6
35012 else
35013 llvm_cv_llvmgcc_sanity="no"
35014 if test -x "$LLVMGCC" ; then
35015 cp /dev/null conftest.c
35016 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35017 grep 'target datalayout =' > /dev/null 2>&1
35018 if test $? -eq 0 ; then
35019 llvm_cv_llvmgcc_sanity="yes"
35021 rm conftest.c
35024 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35025 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35027 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35028 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35029 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35030 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35031 LLVMCC1=$llvmcc1path
35033 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35034 LLVMCC1PLUS=$llvmcc1pluspath
35036 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35037 LLVMGCCDIR=$llvmgccdir
35039 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35040 LLVMGCCLIBEXEC=$llvmgcclibexec
35042 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35043 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35044 LLVMGCC_VERSION=$llvmgccversion
35046 LLVMGCC_MAJVERS=$llvmgccmajvers
35048 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
35049 LLVMGCC_LANGS=$llvmgcclangs
35051 { echo "$as_me:$LINENO: result: ok" >&5
35052 echo "${ECHO_T}ok" >&6; }
35055 SHLIBEXT=$libltdl_cv_shlibext
35058 # Translate the various configuration directories and other basic
35059 # information into substitutions that will end up in Makefile.config.in
35060 # that these configured values can be used by the makefiles
35061 if test "${prefix}" = "NONE" ; then
35062 prefix="/usr/local"
35064 eval LLVM_PREFIX="${prefix}";
35065 eval LLVM_BINDIR="${prefix}/bin";
35066 eval LLVM_LIBDIR="${prefix}/lib";
35067 eval LLVM_DATADIR="${prefix}/share/llvm";
35068 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35069 eval LLVM_ETCDIR="${prefix}/etc/llvm";
35070 eval LLVM_INCLUDEDIR="${prefix}/include";
35071 eval LLVM_INFODIR="${prefix}/info";
35072 eval LLVM_MANDIR="${prefix}/man";
35073 LLVM_CONFIGTIME=`date`
35085 # Place the various directores into the config.h file as #defines so that we
35086 # can know about the installation paths within LLVM.
35088 cat >>confdefs.h <<_ACEOF
35089 #define LLVM_PREFIX "$LLVM_PREFIX"
35090 _ACEOF
35093 cat >>confdefs.h <<_ACEOF
35094 #define LLVM_BINDIR "$LLVM_BINDIR"
35095 _ACEOF
35098 cat >>confdefs.h <<_ACEOF
35099 #define LLVM_LIBDIR "$LLVM_LIBDIR"
35100 _ACEOF
35103 cat >>confdefs.h <<_ACEOF
35104 #define LLVM_DATADIR "$LLVM_DATADIR"
35105 _ACEOF
35108 cat >>confdefs.h <<_ACEOF
35109 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
35110 _ACEOF
35113 cat >>confdefs.h <<_ACEOF
35114 #define LLVM_ETCDIR "$LLVM_ETCDIR"
35115 _ACEOF
35118 cat >>confdefs.h <<_ACEOF
35119 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35120 _ACEOF
35123 cat >>confdefs.h <<_ACEOF
35124 #define LLVM_INFODIR "$LLVM_INFODIR"
35125 _ACEOF
35128 cat >>confdefs.h <<_ACEOF
35129 #define LLVM_MANDIR "$LLVM_MANDIR"
35130 _ACEOF
35133 cat >>confdefs.h <<_ACEOF
35134 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35135 _ACEOF
35138 cat >>confdefs.h <<_ACEOF
35139 #define LLVM_HOSTTRIPLE "$host"
35140 _ACEOF
35143 # Determine which bindings to build.
35144 if test "$BINDINGS_TO_BUILD" = auto ; then
35145 BINDINGS_TO_BUILD=""
35146 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35147 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35150 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35153 # This isn't really configurey, but it avoids having to repeat the list in
35154 # other files.
35155 ALL_BINDINGS=ocaml
35158 # Do any work necessary to ensure that bindings have what they need.
35159 binding_prereqs_failed=0
35160 for a_binding in $BINDINGS_TO_BUILD ; do
35161 case "$a_binding" in
35162 ocaml)
35163 if test "x$OCAMLC" = x ; then
35164 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35165 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35166 binding_prereqs_failed=1
35168 if test "x$OCAMLDEP" = x ; then
35169 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35170 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35171 binding_prereqs_failed=1
35173 if test "x$OCAMLOPT" = x ; then
35174 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35175 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35177 if test "x$with_ocaml_libdir" != xauto ; then
35178 OCAML_LIBDIR=$with_ocaml_libdir
35180 else
35181 ocaml_stdlib="`"$OCAMLC" -where`"
35182 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35183 then
35184 # ocaml stdlib is beneath our prefix; use stdlib
35185 OCAML_LIBDIR=$ocaml_stdlib
35187 else
35188 # ocaml stdlib is outside our prefix; use libdir/ocaml
35189 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35194 esac
35195 done
35196 if test "$binding_prereqs_failed" = 1 ; then
35197 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35198 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35199 { (exit 1); exit 1; }; }
35202 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35203 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35204 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35205 echo $ECHO_N "(cached) $ECHO_C" >&6
35206 else
35207 ac_ext=cpp
35208 ac_cpp='$CXXCPP $CPPFLAGS'
35209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35213 oldcxxflags="$CXXFLAGS"
35214 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35215 cat >conftest.$ac_ext <<_ACEOF
35216 /* confdefs.h. */
35217 _ACEOF
35218 cat confdefs.h >>conftest.$ac_ext
35219 cat >>conftest.$ac_ext <<_ACEOF
35220 /* end confdefs.h. */
35223 main ()
35227 return 0;
35229 _ACEOF
35230 rm -f conftest.$ac_objext
35231 if { (ac_try="$ac_compile"
35232 case "(($ac_try" in
35233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35234 *) ac_try_echo=$ac_try;;
35235 esac
35236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35237 (eval "$ac_compile") 2>conftest.er1
35238 ac_status=$?
35239 grep -v '^ *+' conftest.er1 >conftest.err
35240 rm -f conftest.er1
35241 cat conftest.err >&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); } &&
35244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35245 { (case "(($ac_try" in
35246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35247 *) ac_try_echo=$ac_try;;
35248 esac
35249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35250 (eval "$ac_try") 2>&5
35251 ac_status=$?
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); }; } &&
35254 { ac_try='test -s conftest.$ac_objext'
35255 { (case "(($ac_try" in
35256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35257 *) ac_try_echo=$ac_try;;
35258 esac
35259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35260 (eval "$ac_try") 2>&5
35261 ac_status=$?
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); }; }; then
35264 llvm_cv_cxx_visibility_inlines_hidden=yes
35265 else
35266 echo "$as_me: failed program was:" >&5
35267 sed 's/^/| /' conftest.$ac_ext >&5
35269 llvm_cv_cxx_visibility_inlines_hidden=no
35272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35273 CXXFLAGS="$oldcxxflags"
35274 ac_ext=c
35275 ac_cpp='$CPP $CPPFLAGS'
35276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35282 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35283 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35284 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35285 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35287 else
35288 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35293 if test "$llvm_cv_link_use_r" = "yes" ; then
35294 RPATH="-Wl,-R"
35295 else
35296 RPATH="-Wl,-rpath"
35300 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35301 RDYNAMIC="-Wl,-export-dynamic"
35302 else
35303 RDYNAMIC=""
35308 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35310 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35312 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35314 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35316 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
35319 ac_config_files="$ac_config_files Makefile.config"
35322 ac_config_files="$ac_config_files llvm.spec"
35325 ac_config_files="$ac_config_files docs/doxygen.cfg"
35328 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35331 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35334 ac_config_commands="$ac_config_commands setup"
35336 ac_config_commands="$ac_config_commands Makefile"
35339 ac_config_commands="$ac_config_commands Makefile.common"
35342 ac_config_commands="$ac_config_commands examples/Makefile"
35345 ac_config_commands="$ac_config_commands lib/Makefile"
35348 ac_config_commands="$ac_config_commands runtime/Makefile"
35351 ac_config_commands="$ac_config_commands test/Makefile"
35354 ac_config_commands="$ac_config_commands test/Makefile.tests"
35357 ac_config_commands="$ac_config_commands unittests/Makefile"
35360 ac_config_commands="$ac_config_commands tools/Makefile"
35363 ac_config_commands="$ac_config_commands utils/Makefile"
35366 ac_config_commands="$ac_config_commands projects/Makefile"
35369 ac_config_commands="$ac_config_commands bindings/Makefile"
35372 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35376 cat >confcache <<\_ACEOF
35377 # This file is a shell script that caches the results of configure
35378 # tests run on this system so they can be shared between configure
35379 # scripts and configure runs, see configure's option --config-cache.
35380 # It is not useful on other systems. If it contains results you don't
35381 # want to keep, you may remove or edit it.
35383 # config.status only pays attention to the cache file if you give it
35384 # the --recheck option to rerun configure.
35386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35388 # following values.
35390 _ACEOF
35392 # The following way of writing the cache mishandles newlines in values,
35393 # but we know of no workaround that is simple, portable, and efficient.
35394 # So, we kill variables containing newlines.
35395 # Ultrix sh set writes to stderr and can't be redirected directly,
35396 # and sets the high bit in the cache file unless we assign to the vars.
35398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35399 eval ac_val=\$$ac_var
35400 case $ac_val in #(
35401 *${as_nl}*)
35402 case $ac_var in #(
35403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35405 esac
35406 case $ac_var in #(
35407 _ | IFS | as_nl) ;; #(
35408 *) $as_unset $ac_var ;;
35409 esac ;;
35410 esac
35411 done
35413 (set) 2>&1 |
35414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35415 *${as_nl}ac_space=\ *)
35416 # `set' does not quote correctly, so add quotes (double-quote
35417 # substitution turns \\\\ into \\, and sed turns \\ into \).
35418 sed -n \
35419 "s/'/'\\\\''/g;
35420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35421 ;; #(
35423 # `set' quotes correctly as required by POSIX, so do not add quotes.
35424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35426 esac |
35427 sort
35429 sed '
35430 /^ac_cv_env_/b end
35431 t clear
35432 :clear
35433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35434 t end
35435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35436 :end' >>confcache
35437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35438 if test -w "$cache_file"; then
35439 test "x$cache_file" != "x/dev/null" &&
35440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35441 echo "$as_me: updating cache $cache_file" >&6;}
35442 cat confcache >$cache_file
35443 else
35444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35448 rm -f confcache
35450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35451 # Let make expand exec_prefix.
35452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35454 DEFS=-DHAVE_CONFIG_H
35456 ac_libobjs=
35457 ac_ltlibobjs=
35458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35459 # 1. Remove the extension, and $U if already installed.
35460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35461 ac_i=`echo "$ac_i" | sed "$ac_script"`
35462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35463 # will be set to the directory where LIBOBJS objects are built.
35464 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35465 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35466 done
35467 LIBOBJS=$ac_libobjs
35469 LTLIBOBJS=$ac_ltlibobjs
35472 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35473 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35474 Usually this means the macro was only invoked conditionally." >&5
35475 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35476 Usually this means the macro was only invoked conditionally." >&2;}
35477 { (exit 1); exit 1; }; }
35479 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35480 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35481 Usually this means the macro was only invoked conditionally." >&5
35482 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35483 Usually this means the macro was only invoked conditionally." >&2;}
35484 { (exit 1); exit 1; }; }
35487 : ${CONFIG_STATUS=./config.status}
35488 ac_clean_files_save=$ac_clean_files
35489 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35490 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35491 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35492 cat >$CONFIG_STATUS <<_ACEOF
35493 #! $SHELL
35494 # Generated by $as_me.
35495 # Run this file to recreate the current configuration.
35496 # Compiler output produced by configure, useful for debugging
35497 # configure, is in config.log if it exists.
35499 debug=false
35500 ac_cs_recheck=false
35501 ac_cs_silent=false
35502 SHELL=\${CONFIG_SHELL-$SHELL}
35503 _ACEOF
35505 cat >>$CONFIG_STATUS <<\_ACEOF
35506 ## --------------------- ##
35507 ## M4sh Initialization. ##
35508 ## --------------------- ##
35510 # Be Bourne compatible
35511 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35512 emulate sh
35513 NULLCMD=:
35514 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35515 # is contrary to our usage. Disable this feature.
35516 alias -g '${1+"$@"}'='"$@"'
35517 setopt NO_GLOB_SUBST
35518 else
35519 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
35521 BIN_SH=xpg4; export BIN_SH # for Tru64
35522 DUALCASE=1; export DUALCASE # for MKS sh
35525 # PATH needs CR
35526 # Avoid depending upon Character Ranges.
35527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35530 as_cr_digits='0123456789'
35531 as_cr_alnum=$as_cr_Letters$as_cr_digits
35533 # The user is always right.
35534 if test "${PATH_SEPARATOR+set}" != set; then
35535 echo "#! /bin/sh" >conf$$.sh
35536 echo "exit 0" >>conf$$.sh
35537 chmod +x conf$$.sh
35538 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35539 PATH_SEPARATOR=';'
35540 else
35541 PATH_SEPARATOR=:
35543 rm -f conf$$.sh
35546 # Support unset when possible.
35547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35548 as_unset=unset
35549 else
35550 as_unset=false
35554 # IFS
35555 # We need space, tab and new line, in precisely that order. Quoting is
35556 # there to prevent editors from complaining about space-tab.
35557 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35558 # splitting by setting IFS to empty value.)
35559 as_nl='
35561 IFS=" "" $as_nl"
35563 # Find who we are. Look in the path if we contain no directory separator.
35564 case $0 in
35565 *[\\/]* ) as_myself=$0 ;;
35566 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35567 for as_dir in $PATH
35569 IFS=$as_save_IFS
35570 test -z "$as_dir" && as_dir=.
35571 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35572 done
35573 IFS=$as_save_IFS
35576 esac
35577 # We did not find ourselves, most probably we were run as `sh COMMAND'
35578 # in which case we are not to be found in the path.
35579 if test "x$as_myself" = x; then
35580 as_myself=$0
35582 if test ! -f "$as_myself"; then
35583 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35584 { (exit 1); exit 1; }
35587 # Work around bugs in pre-3.0 UWIN ksh.
35588 for as_var in ENV MAIL MAILPATH
35589 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35590 done
35591 PS1='$ '
35592 PS2='> '
35593 PS4='+ '
35595 # NLS nuisances.
35596 for as_var in \
35597 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35598 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35599 LC_TELEPHONE LC_TIME
35601 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35602 eval $as_var=C; export $as_var
35603 else
35604 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35606 done
35608 # Required to use basename.
35609 if expr a : '\(a\)' >/dev/null 2>&1 &&
35610 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35611 as_expr=expr
35612 else
35613 as_expr=false
35616 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35617 as_basename=basename
35618 else
35619 as_basename=false
35623 # Name of the executable.
35624 as_me=`$as_basename -- "$0" ||
35625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35626 X"$0" : 'X\(//\)$' \| \
35627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35628 echo X/"$0" |
35629 sed '/^.*\/\([^/][^/]*\)\/*$/{
35630 s//\1/
35633 /^X\/\(\/\/\)$/{
35634 s//\1/
35637 /^X\/\(\/\).*/{
35638 s//\1/
35641 s/.*/./; q'`
35643 # CDPATH.
35644 $as_unset CDPATH
35648 as_lineno_1=$LINENO
35649 as_lineno_2=$LINENO
35650 test "x$as_lineno_1" != "x$as_lineno_2" &&
35651 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35654 # uniformly replaced by the line number. The first 'sed' inserts a
35655 # line-number line after each line using $LINENO; the second 'sed'
35656 # does the real work. The second script uses 'N' to pair each
35657 # line-number line with the line containing $LINENO, and appends
35658 # trailing '-' during substitution so that $LINENO is not a special
35659 # case at line end.
35660 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35661 # scripts with optimization help from Paolo Bonzini. Blame Lee
35662 # E. McMahon (1931-1989) for sed's syntax. :-)
35663 sed -n '
35665 /[$]LINENO/=
35666 ' <$as_myself |
35667 sed '
35668 s/[$]LINENO.*/&-/
35669 t lineno
35671 :lineno
35673 :loop
35674 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35675 t loop
35676 s/-\n.*//
35677 ' >$as_me.lineno &&
35678 chmod +x "$as_me.lineno" ||
35679 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35680 { (exit 1); exit 1; }; }
35682 # Don't try to exec as it changes $[0], causing all sort of problems
35683 # (the dirname of $[0] is not the place where we might find the
35684 # original and so on. Autoconf is especially sensitive to this).
35685 . "./$as_me.lineno"
35686 # Exit status is that of the last command.
35687 exit
35691 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35692 as_dirname=dirname
35693 else
35694 as_dirname=false
35697 ECHO_C= ECHO_N= ECHO_T=
35698 case `echo -n x` in
35699 -n*)
35700 case `echo 'x\c'` in
35701 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35702 *) ECHO_C='\c';;
35703 esac;;
35705 ECHO_N='-n';;
35706 esac
35708 if expr a : '\(a\)' >/dev/null 2>&1 &&
35709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35710 as_expr=expr
35711 else
35712 as_expr=false
35715 rm -f conf$$ conf$$.exe conf$$.file
35716 if test -d conf$$.dir; then
35717 rm -f conf$$.dir/conf$$.file
35718 else
35719 rm -f conf$$.dir
35720 mkdir conf$$.dir
35722 echo >conf$$.file
35723 if ln -s conf$$.file conf$$ 2>/dev/null; then
35724 as_ln_s='ln -s'
35725 # ... but there are two gotchas:
35726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35728 # In both cases, we have to default to `cp -p'.
35729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35730 as_ln_s='cp -p'
35731 elif ln conf$$.file conf$$ 2>/dev/null; then
35732 as_ln_s=ln
35733 else
35734 as_ln_s='cp -p'
35736 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35737 rmdir conf$$.dir 2>/dev/null
35739 if mkdir -p . 2>/dev/null; then
35740 as_mkdir_p=:
35741 else
35742 test -d ./-p && rmdir ./-p
35743 as_mkdir_p=false
35746 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
35747 # systems may use methods other than mode bits to determine executability.
35748 cat >conf$$.file <<_ASEOF
35749 #! /bin/sh
35750 exit 0
35751 _ASEOF
35752 chmod +x conf$$.file
35753 if test -x conf$$.file >/dev/null 2>&1; then
35754 as_executable_p="test -x"
35755 else
35756 as_executable_p=:
35758 rm -f conf$$.file
35760 # Sed expression to map a string onto a valid CPP name.
35761 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35763 # Sed expression to map a string onto a valid variable name.
35764 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35767 exec 6>&1
35769 # Save the log message, to keep $[0] and so on meaningful, and to
35770 # report actual input values of CONFIG_FILES etc. instead of their
35771 # values after options handling.
35772 ac_log="
35773 This file was extended by llvm $as_me 2.7svn, which was
35774 generated by GNU Autoconf 2.60. Invocation command line was
35776 CONFIG_FILES = $CONFIG_FILES
35777 CONFIG_HEADERS = $CONFIG_HEADERS
35778 CONFIG_LINKS = $CONFIG_LINKS
35779 CONFIG_COMMANDS = $CONFIG_COMMANDS
35780 $ $0 $@
35782 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35785 _ACEOF
35787 cat >>$CONFIG_STATUS <<_ACEOF
35788 # Files that config.status was made for.
35789 config_files="$ac_config_files"
35790 config_headers="$ac_config_headers"
35791 config_commands="$ac_config_commands"
35793 _ACEOF
35795 cat >>$CONFIG_STATUS <<\_ACEOF
35796 ac_cs_usage="\
35797 \`$as_me' instantiates files from templates according to the
35798 current configuration.
35800 Usage: $0 [OPTIONS] [FILE]...
35802 -h, --help print this help, then exit
35803 -V, --version print version number, then exit
35804 -q, --quiet do not print progress messages
35805 -d, --debug don't remove temporary files
35806 --recheck update $as_me by reconfiguring in the same conditions
35807 --file=FILE[:TEMPLATE]
35808 instantiate the configuration file FILE
35809 --header=FILE[:TEMPLATE]
35810 instantiate the configuration header FILE
35812 Configuration files:
35813 $config_files
35815 Configuration headers:
35816 $config_headers
35818 Configuration commands:
35819 $config_commands
35821 Report bugs to <bug-autoconf@gnu.org>."
35823 _ACEOF
35824 cat >>$CONFIG_STATUS <<_ACEOF
35825 ac_cs_version="\\
35826 llvm config.status 2.7svn
35827 configured by $0, generated by GNU Autoconf 2.60,
35828 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35830 Copyright (C) 2006 Free Software Foundation, Inc.
35831 This config.status script is free software; the Free Software Foundation
35832 gives unlimited permission to copy, distribute and modify it."
35834 ac_pwd='$ac_pwd'
35835 srcdir='$srcdir'
35836 INSTALL='$INSTALL'
35837 _ACEOF
35839 cat >>$CONFIG_STATUS <<\_ACEOF
35840 # If no file are specified by the user, then we need to provide default
35841 # value. By we need to know if files were specified by the user.
35842 ac_need_defaults=:
35843 while test $# != 0
35845 case $1 in
35846 --*=*)
35847 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35849 ac_shift=:
35852 ac_option=$1
35853 ac_optarg=$2
35854 ac_shift=shift
35856 esac
35858 case $ac_option in
35859 # Handling of the options.
35860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35861 ac_cs_recheck=: ;;
35862 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35863 echo "$ac_cs_version"; exit ;;
35864 --debug | --debu | --deb | --de | --d | -d )
35865 debug=: ;;
35866 --file | --fil | --fi | --f )
35867 $ac_shift
35868 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35869 ac_need_defaults=false;;
35870 --header | --heade | --head | --hea )
35871 $ac_shift
35872 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35873 ac_need_defaults=false;;
35874 --he | --h)
35875 # Conflict between --help and --header
35876 { echo "$as_me: error: ambiguous option: $1
35877 Try \`$0 --help' for more information." >&2
35878 { (exit 1); exit 1; }; };;
35879 --help | --hel | -h )
35880 echo "$ac_cs_usage"; exit ;;
35881 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35882 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35883 ac_cs_silent=: ;;
35885 # This is an error.
35886 -*) { echo "$as_me: error: unrecognized option: $1
35887 Try \`$0 --help' for more information." >&2
35888 { (exit 1); exit 1; }; } ;;
35890 *) ac_config_targets="$ac_config_targets $1"
35891 ac_need_defaults=false ;;
35893 esac
35894 shift
35895 done
35897 ac_configure_extra_args=
35899 if $ac_cs_silent; then
35900 exec 6>/dev/null
35901 ac_configure_extra_args="$ac_configure_extra_args --silent"
35904 _ACEOF
35905 cat >>$CONFIG_STATUS <<_ACEOF
35906 if \$ac_cs_recheck; then
35907 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35908 CONFIG_SHELL=$SHELL
35909 export CONFIG_SHELL
35910 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35913 _ACEOF
35914 cat >>$CONFIG_STATUS <<\_ACEOF
35915 exec 5>>config.log
35917 echo
35918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35919 ## Running $as_me. ##
35920 _ASBOX
35921 echo "$ac_log"
35922 } >&5
35924 _ACEOF
35925 cat >>$CONFIG_STATUS <<_ACEOF
35927 # INIT-COMMANDS
35929 llvm_src="${srcdir}"
35931 _ACEOF
35933 cat >>$CONFIG_STATUS <<\_ACEOF
35935 # Handling of arguments.
35936 for ac_config_target in $ac_config_targets
35938 case $ac_config_target in
35939 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35940 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35941 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
35942 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
35943 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
35944 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35945 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35946 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35947 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
35948 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35949 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35950 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35951 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35952 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35953 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35954 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35955 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35956 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35957 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
35958 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35959 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35960 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
35961 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35962 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
35964 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35965 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35966 { (exit 1); exit 1; }; };;
35967 esac
35968 done
35971 # If the user did not use the arguments to specify the items to instantiate,
35972 # then the envvar interface is used. Set only those that are not.
35973 # We use the long form for the default assignment because of an extremely
35974 # bizarre bug on SunOS 4.1.3.
35975 if $ac_need_defaults; then
35976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35981 # Have a temporary directory for convenience. Make it in the build tree
35982 # simply because there is no reason against having it here, and in addition,
35983 # creating and moving files from /tmp can sometimes cause problems.
35984 # Hook for its removal unless debugging.
35985 # Note that there is a small window in which the directory will not be cleaned:
35986 # after its creation but before its name has been assigned to `$tmp'.
35987 $debug ||
35989 tmp=
35990 trap 'exit_status=$?
35991 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35993 trap '{ (exit 1); exit 1; }' 1 2 13 15
35995 # Create a (secure) tmp directory for tmp files.
35998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35999 test -n "$tmp" && test -d "$tmp"
36000 } ||
36002 tmp=./conf$$-$RANDOM
36003 (umask 077 && mkdir "$tmp")
36004 } ||
36006 echo "$me: cannot create a temporary directory in ." >&2
36007 { (exit 1); exit 1; }
36011 # Set up the sed scripts for CONFIG_FILES section.
36014 # No need to generate the scripts if there are no CONFIG_FILES.
36015 # This happens for instance when ./config.status config.h
36016 if test -n "$CONFIG_FILES"; then
36018 _ACEOF
36022 ac_delim='%!_!# '
36023 for ac_last_try in false false false false false :; do
36024 cat >conf$$subs.sed <<_ACEOF
36025 SHELL!$SHELL$ac_delim
36026 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36027 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36028 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36029 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36030 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36031 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36032 exec_prefix!$exec_prefix$ac_delim
36033 prefix!$prefix$ac_delim
36034 program_transform_name!$program_transform_name$ac_delim
36035 bindir!$bindir$ac_delim
36036 sbindir!$sbindir$ac_delim
36037 libexecdir!$libexecdir$ac_delim
36038 datarootdir!$datarootdir$ac_delim
36039 datadir!$datadir$ac_delim
36040 sysconfdir!$sysconfdir$ac_delim
36041 sharedstatedir!$sharedstatedir$ac_delim
36042 localstatedir!$localstatedir$ac_delim
36043 includedir!$includedir$ac_delim
36044 oldincludedir!$oldincludedir$ac_delim
36045 docdir!$docdir$ac_delim
36046 infodir!$infodir$ac_delim
36047 htmldir!$htmldir$ac_delim
36048 dvidir!$dvidir$ac_delim
36049 pdfdir!$pdfdir$ac_delim
36050 psdir!$psdir$ac_delim
36051 libdir!$libdir$ac_delim
36052 localedir!$localedir$ac_delim
36053 mandir!$mandir$ac_delim
36054 DEFS!$DEFS$ac_delim
36055 ECHO_C!$ECHO_C$ac_delim
36056 ECHO_N!$ECHO_N$ac_delim
36057 ECHO_T!$ECHO_T$ac_delim
36058 LIBS!$LIBS$ac_delim
36059 build_alias!$build_alias$ac_delim
36060 host_alias!$host_alias$ac_delim
36061 target_alias!$target_alias$ac_delim
36062 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36063 subdirs!$subdirs$ac_delim
36064 build!$build$ac_delim
36065 build_cpu!$build_cpu$ac_delim
36066 build_vendor!$build_vendor$ac_delim
36067 build_os!$build_os$ac_delim
36068 host!$host$ac_delim
36069 host_cpu!$host_cpu$ac_delim
36070 host_vendor!$host_vendor$ac_delim
36071 host_os!$host_os$ac_delim
36072 target!$target$ac_delim
36073 target_cpu!$target_cpu$ac_delim
36074 target_vendor!$target_vendor$ac_delim
36075 target_os!$target_os$ac_delim
36076 OS!$OS$ac_delim
36077 HOST_OS!$HOST_OS$ac_delim
36078 TARGET_OS!$TARGET_OS$ac_delim
36079 LINKALL!$LINKALL$ac_delim
36080 NOLINKALL!$NOLINKALL$ac_delim
36081 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36082 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
36083 ARCH!$ARCH$ac_delim
36084 ENDIAN!$ENDIAN$ac_delim
36085 CC!$CC$ac_delim
36086 CFLAGS!$CFLAGS$ac_delim
36087 LDFLAGS!$LDFLAGS$ac_delim
36088 CPPFLAGS!$CPPFLAGS$ac_delim
36089 ac_ct_CC!$ac_ct_CC$ac_delim
36090 EXEEXT!$EXEEXT$ac_delim
36091 OBJEXT!$OBJEXT$ac_delim
36092 CPP!$CPP$ac_delim
36093 GREP!$GREP$ac_delim
36094 EGREP!$EGREP$ac_delim
36095 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36096 BUILD_CC!$BUILD_CC$ac_delim
36097 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
36098 BUILD_CXX!$BUILD_CXX$ac_delim
36099 CVSBUILD!$CVSBUILD$ac_delim
36100 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
36101 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
36102 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36103 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36104 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36105 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36106 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
36107 JIT!$JIT$ac_delim
36108 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36109 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36110 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36111 ENABLE_PIC!$ENABLE_PIC$ac_delim
36112 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
36113 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36114 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
36115 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
36116 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36117 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
36118 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
36119 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
36120 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36121 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
36122 _ACEOF
36124 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36125 break
36126 elif $ac_last_try; then
36127 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36128 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36129 { (exit 1); exit 1; }; }
36130 else
36131 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36133 done
36135 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36136 if test -n "$ac_eof"; then
36137 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36138 ac_eof=`expr $ac_eof + 1`
36141 cat >>$CONFIG_STATUS <<_ACEOF
36142 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36144 _ACEOF
36145 sed '
36146 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36147 s/^/s,@/; s/!/@,|#_!!_#|/
36150 s/'"$ac_delim"'$/,g/; t
36151 s/$/\\/; p
36152 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36153 ' >>$CONFIG_STATUS <conf$$subs.sed
36154 rm -f conf$$subs.sed
36155 cat >>$CONFIG_STATUS <<_ACEOF
36156 CEOF$ac_eof
36157 _ACEOF
36160 ac_delim='%!_!# '
36161 for ac_last_try in false false false false false :; do
36162 cat >conf$$subs.sed <<_ACEOF
36163 CXX!$CXX$ac_delim
36164 CXXFLAGS!$CXXFLAGS$ac_delim
36165 ac_ct_CXX!$ac_ct_CXX$ac_delim
36166 NM!$NM$ac_delim
36167 ifGNUmake!$ifGNUmake$ac_delim
36168 LN_S!$LN_S$ac_delim
36169 CMP!$CMP$ac_delim
36170 CP!$CP$ac_delim
36171 DATE!$DATE$ac_delim
36172 FIND!$FIND$ac_delim
36173 MKDIR!$MKDIR$ac_delim
36174 MV!$MV$ac_delim
36175 RANLIB!$RANLIB$ac_delim
36176 RM!$RM$ac_delim
36177 SED!$SED$ac_delim
36178 TAR!$TAR$ac_delim
36179 BINPWD!$BINPWD$ac_delim
36180 GRAPHVIZ!$GRAPHVIZ$ac_delim
36181 DOT!$DOT$ac_delim
36182 FDP!$FDP$ac_delim
36183 NEATO!$NEATO$ac_delim
36184 TWOPI!$TWOPI$ac_delim
36185 CIRCO!$CIRCO$ac_delim
36186 GV!$GV$ac_delim
36187 DOTTY!$DOTTY$ac_delim
36188 PERL!$PERL$ac_delim
36189 HAVE_PERL!$HAVE_PERL$ac_delim
36190 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36191 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36192 INSTALL_DATA!$INSTALL_DATA$ac_delim
36193 BZIP2!$BZIP2$ac_delim
36194 DOXYGEN!$DOXYGEN$ac_delim
36195 GROFF!$GROFF$ac_delim
36196 GZIP!$GZIP$ac_delim
36197 POD2HTML!$POD2HTML$ac_delim
36198 POD2MAN!$POD2MAN$ac_delim
36199 RUNTEST!$RUNTEST$ac_delim
36200 TCLSH!$TCLSH$ac_delim
36201 ZIP!$ZIP$ac_delim
36202 OCAMLC!$OCAMLC$ac_delim
36203 OCAMLOPT!$OCAMLOPT$ac_delim
36204 OCAMLDEP!$OCAMLDEP$ac_delim
36205 OCAMLDOC!$OCAMLDOC$ac_delim
36206 GAS!$GAS$ac_delim
36207 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36208 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36209 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36210 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36211 LIBADD_DL!$LIBADD_DL$ac_delim
36212 ECHO!$ECHO$ac_delim
36213 AR!$AR$ac_delim
36214 STRIP!$STRIP$ac_delim
36215 CXXCPP!$CXXCPP$ac_delim
36216 F77!$F77$ac_delim
36217 FFLAGS!$FFLAGS$ac_delim
36218 ac_ct_F77!$ac_ct_F77$ac_delim
36219 LIBTOOL!$LIBTOOL$ac_delim
36220 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36221 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
36222 LLVMGCC!$LLVMGCC$ac_delim
36223 LLVMGXX!$LLVMGXX$ac_delim
36224 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
36225 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
36226 USE_UDIS86!$USE_UDIS86$ac_delim
36227 USE_OPROFILE!$USE_OPROFILE$ac_delim
36228 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36229 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36230 ALLOCA!$ALLOCA$ac_delim
36231 MMAP_FILE!$MMAP_FILE$ac_delim
36232 LLVMCC1!$LLVMCC1$ac_delim
36233 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36234 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36235 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36236 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36237 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36238 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36239 SHLIBEXT!$SHLIBEXT$ac_delim
36240 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36241 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36242 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36243 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36244 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36245 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36246 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36247 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36248 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36249 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
36250 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36251 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
36252 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
36253 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
36254 RPATH!$RPATH$ac_delim
36255 RDYNAMIC!$RDYNAMIC$ac_delim
36256 LIBOBJS!$LIBOBJS$ac_delim
36257 LTLIBOBJS!$LTLIBOBJS$ac_delim
36258 _ACEOF
36260 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
36261 break
36262 elif $ac_last_try; then
36263 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36264 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36265 { (exit 1); exit 1; }; }
36266 else
36267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36269 done
36271 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36272 if test -n "$ac_eof"; then
36273 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36274 ac_eof=`expr $ac_eof + 1`
36277 cat >>$CONFIG_STATUS <<_ACEOF
36278 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36279 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36280 _ACEOF
36281 sed '
36282 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36283 s/^/s,@/; s/!/@,|#_!!_#|/
36286 s/'"$ac_delim"'$/,g/; t
36287 s/$/\\/; p
36288 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36289 ' >>$CONFIG_STATUS <conf$$subs.sed
36290 rm -f conf$$subs.sed
36291 cat >>$CONFIG_STATUS <<_ACEOF
36292 :end
36293 s/|#_!!_#|//g
36294 CEOF$ac_eof
36295 _ACEOF
36298 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36299 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36300 # trailing colons and then remove the whole line if VPATH becomes empty
36301 # (actually we leave an empty line to preserve line numbers).
36302 if test "x$srcdir" = x.; then
36303 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36304 s/:*\$(srcdir):*/:/
36305 s/:*\${srcdir}:*/:/
36306 s/:*@srcdir@:*/:/
36307 s/^\([^=]*=[ ]*\):*/\1/
36308 s/:*$//
36309 s/^[^=]*=[ ]*$//
36313 cat >>$CONFIG_STATUS <<\_ACEOF
36314 fi # test -n "$CONFIG_FILES"
36317 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36319 case $ac_tag in
36320 :[FHLC]) ac_mode=$ac_tag; continue;;
36321 esac
36322 case $ac_mode$ac_tag in
36323 :[FHL]*:*);;
36324 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36325 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36326 { (exit 1); exit 1; }; };;
36327 :[FH]-) ac_tag=-:-;;
36328 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36329 esac
36330 ac_save_IFS=$IFS
36331 IFS=:
36332 set x $ac_tag
36333 IFS=$ac_save_IFS
36334 shift
36335 ac_file=$1
36336 shift
36338 case $ac_mode in
36339 :L) ac_source=$1;;
36340 :[FH])
36341 ac_file_inputs=
36342 for ac_f
36344 case $ac_f in
36345 -) ac_f="$tmp/stdin";;
36346 *) # Look for the file first in the build tree, then in the source tree
36347 # (if the path is not absolute). The absolute path cannot be DOS-style,
36348 # because $ac_f cannot contain `:'.
36349 test -f "$ac_f" ||
36350 case $ac_f in
36351 [\\/$]*) false;;
36352 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36353 esac ||
36354 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36355 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36356 { (exit 1); exit 1; }; };;
36357 esac
36358 ac_file_inputs="$ac_file_inputs $ac_f"
36359 done
36361 # Let's still pretend it is `configure' which instantiates (i.e., don't
36362 # use $as_me), people would be surprised to read:
36363 # /* config.h. Generated by config.status. */
36364 configure_input="Generated from "`IFS=:
36365 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36366 if test x"$ac_file" != x-; then
36367 configure_input="$ac_file. $configure_input"
36368 { echo "$as_me:$LINENO: creating $ac_file" >&5
36369 echo "$as_me: creating $ac_file" >&6;}
36372 case $ac_tag in
36373 *:-:* | *:-) cat >"$tmp/stdin";;
36374 esac
36376 esac
36378 ac_dir=`$as_dirname -- "$ac_file" ||
36379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36380 X"$ac_file" : 'X\(//\)[^/]' \| \
36381 X"$ac_file" : 'X\(//\)$' \| \
36382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36383 echo X"$ac_file" |
36384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36385 s//\1/
36388 /^X\(\/\/\)[^/].*/{
36389 s//\1/
36392 /^X\(\/\/\)$/{
36393 s//\1/
36396 /^X\(\/\).*/{
36397 s//\1/
36400 s/.*/./; q'`
36401 { as_dir="$ac_dir"
36402 case $as_dir in #(
36403 -*) as_dir=./$as_dir;;
36404 esac
36405 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36406 as_dirs=
36407 while :; do
36408 case $as_dir in #(
36409 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36410 *) as_qdir=$as_dir;;
36411 esac
36412 as_dirs="'$as_qdir' $as_dirs"
36413 as_dir=`$as_dirname -- "$as_dir" ||
36414 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36415 X"$as_dir" : 'X\(//\)[^/]' \| \
36416 X"$as_dir" : 'X\(//\)$' \| \
36417 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36418 echo X"$as_dir" |
36419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36420 s//\1/
36423 /^X\(\/\/\)[^/].*/{
36424 s//\1/
36427 /^X\(\/\/\)$/{
36428 s//\1/
36431 /^X\(\/\).*/{
36432 s//\1/
36435 s/.*/./; q'`
36436 test -d "$as_dir" && break
36437 done
36438 test -z "$as_dirs" || eval "mkdir $as_dirs"
36439 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36440 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36441 { (exit 1); exit 1; }; }; }
36442 ac_builddir=.
36444 case "$ac_dir" in
36445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36447 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36448 # A ".." for each directory in $ac_dir_suffix.
36449 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36450 case $ac_top_builddir_sub in
36451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36453 esac ;;
36454 esac
36455 ac_abs_top_builddir=$ac_pwd
36456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36457 # for backward compatibility:
36458 ac_top_builddir=$ac_top_build_prefix
36460 case $srcdir in
36461 .) # We are building in place.
36462 ac_srcdir=.
36463 ac_top_srcdir=$ac_top_builddir_sub
36464 ac_abs_top_srcdir=$ac_pwd ;;
36465 [\\/]* | ?:[\\/]* ) # Absolute name.
36466 ac_srcdir=$srcdir$ac_dir_suffix;
36467 ac_top_srcdir=$srcdir
36468 ac_abs_top_srcdir=$srcdir ;;
36469 *) # Relative name.
36470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36471 ac_top_srcdir=$ac_top_build_prefix$srcdir
36472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36473 esac
36474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36477 case $ac_mode in
36480 # CONFIG_FILE
36483 case $INSTALL in
36484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36485 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36486 esac
36487 _ACEOF
36489 cat >>$CONFIG_STATUS <<\_ACEOF
36490 # If the template does not know about datarootdir, expand it.
36491 # FIXME: This hack should be removed a few years after 2.60.
36492 ac_datarootdir_hack=; ac_datarootdir_seen=
36494 case `sed -n '/datarootdir/ {
36498 /@datadir@/p
36499 /@docdir@/p
36500 /@infodir@/p
36501 /@localedir@/p
36502 /@mandir@/p
36503 ' $ac_file_inputs` in
36504 *datarootdir*) ac_datarootdir_seen=yes;;
36505 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36506 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36507 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36508 _ACEOF
36509 cat >>$CONFIG_STATUS <<_ACEOF
36510 ac_datarootdir_hack='
36511 s&@datadir@&$datadir&g
36512 s&@docdir@&$docdir&g
36513 s&@infodir@&$infodir&g
36514 s&@localedir@&$localedir&g
36515 s&@mandir@&$mandir&g
36516 s&\\\${datarootdir}&$datarootdir&g' ;;
36517 esac
36518 _ACEOF
36520 # Neutralize VPATH when `$srcdir' = `.'.
36521 # Shell code in configure.ac might set extrasub.
36522 # FIXME: do we really want to maintain this feature?
36523 cat >>$CONFIG_STATUS <<_ACEOF
36524 sed "$ac_vpsub
36525 $extrasub
36526 _ACEOF
36527 cat >>$CONFIG_STATUS <<\_ACEOF
36529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36530 s&@configure_input@&$configure_input&;t t
36531 s&@top_builddir@&$ac_top_builddir_sub&;t t
36532 s&@srcdir@&$ac_srcdir&;t t
36533 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36534 s&@top_srcdir@&$ac_top_srcdir&;t t
36535 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36536 s&@builddir@&$ac_builddir&;t t
36537 s&@abs_builddir@&$ac_abs_builddir&;t t
36538 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36539 s&@INSTALL@&$ac_INSTALL&;t t
36540 $ac_datarootdir_hack
36541 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36543 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36544 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36545 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36546 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36547 which seems to be undefined. Please make sure it is defined." >&5
36548 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36549 which seems to be undefined. Please make sure it is defined." >&2;}
36551 rm -f "$tmp/stdin"
36552 case $ac_file in
36553 -) cat "$tmp/out"; rm -f "$tmp/out";;
36554 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36555 esac
36559 # CONFIG_HEADER
36561 _ACEOF
36563 # Transform confdefs.h into a sed script `conftest.defines', that
36564 # substitutes the proper values into config.h.in to produce config.h.
36565 rm -f conftest.defines conftest.tail
36566 # First, append a space to every undef/define line, to ease matching.
36567 echo 's/$/ /' >conftest.defines
36568 # Then, protect against being on the right side of a sed subst, or in
36569 # an unquoted here document, in config.status. If some macros were
36570 # called several times there might be several #defines for the same
36571 # symbol, which is useless. But do not sort them, since the last
36572 # AC_DEFINE must be honored.
36573 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36574 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36575 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36576 # PARAMS is the parameter list in the macro definition--in most cases, it's
36577 # just an empty string.
36578 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36579 ac_dB='\\)[ (].*,\\1define\\2'
36580 ac_dC=' '
36581 ac_dD=' ,'
36583 uniq confdefs.h |
36584 sed -n '
36585 t rset
36586 :rset
36587 s/^[ ]*#[ ]*define[ ][ ]*//
36588 t ok
36591 s/[\\&,]/\\&/g
36592 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36593 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36594 ' >>conftest.defines
36596 # Remove the space that was appended to ease matching.
36597 # Then replace #undef with comments. This is necessary, for
36598 # example, in the case of _POSIX_SOURCE, which is predefined and required
36599 # on some systems where configure will not decide to define it.
36600 # (The regexp can be short, since the line contains either #define or #undef.)
36601 echo 's/ $//
36602 s,^[ #]*u.*,/* & */,' >>conftest.defines
36604 # Break up conftest.defines:
36605 ac_max_sed_lines=50
36607 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36608 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36609 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36610 # et cetera.
36611 ac_in='$ac_file_inputs'
36612 ac_out='"$tmp/out1"'
36613 ac_nxt='"$tmp/out2"'
36615 while :
36617 # Write a here document:
36618 cat >>$CONFIG_STATUS <<_ACEOF
36619 # First, check the format of the line:
36620 cat >"\$tmp/defines.sed" <<\\CEOF
36621 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36622 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36624 :def
36625 _ACEOF
36626 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36627 echo 'CEOF
36628 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36629 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36630 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36631 grep . conftest.tail >/dev/null || break
36632 rm -f conftest.defines
36633 mv conftest.tail conftest.defines
36634 done
36635 rm -f conftest.defines conftest.tail
36637 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36638 cat >>$CONFIG_STATUS <<\_ACEOF
36639 if test x"$ac_file" != x-; then
36640 echo "/* $configure_input */" >"$tmp/config.h"
36641 cat "$ac_result" >>"$tmp/config.h"
36642 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36643 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36644 echo "$as_me: $ac_file is unchanged" >&6;}
36645 else
36646 rm -f $ac_file
36647 mv "$tmp/config.h" $ac_file
36649 else
36650 echo "/* $configure_input */"
36651 cat "$ac_result"
36653 rm -f "$tmp/out12"
36656 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36657 echo "$as_me: executing $ac_file commands" >&6;}
36659 esac
36662 case $ac_file$ac_mode in
36663 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36664 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
36665 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36666 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
36667 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36668 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
36669 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36670 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
36671 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36672 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36673 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36674 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
36675 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36676 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
36677 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36678 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
36679 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36680 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
36681 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36682 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
36683 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36684 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
36685 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36686 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36687 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36688 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
36690 esac
36691 done # for ac_tag
36694 { (exit 0); exit 0; }
36695 _ACEOF
36696 chmod +x $CONFIG_STATUS
36697 ac_clean_files=$ac_clean_files_save
36700 # configure is writing to config.log, and then calls config.status.
36701 # config.status does its own redirection, appending to config.log.
36702 # Unfortunately, on DOS this fails, as config.log is still kept open
36703 # by configure, so config.status won't be able to write to it; its
36704 # output is simply discarded. So we exec the FD to /dev/null,
36705 # effectively closing config.log, so it can be properly (re)opened and
36706 # appended to by config.status. When coming back to configure, we
36707 # need to make the FD available again.
36708 if test "$no_create" != yes; then
36709 ac_cs_success=:
36710 ac_config_status_args=
36711 test "$silent" = yes &&
36712 ac_config_status_args="$ac_config_status_args --quiet"
36713 exec 5>/dev/null
36714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36715 exec 5>>config.log
36716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36717 # would make configure fail if this is the last instruction.
36718 $ac_cs_success || { (exit 1); exit 1; }
36722 # CONFIG_SUBDIRS section.
36724 if test "$no_recursion" != yes; then
36726 # Remove --cache-file and --srcdir arguments so they do not pile up.
36727 ac_sub_configure_args=
36728 ac_prev=
36729 eval "set x $ac_configure_args"
36730 shift
36731 for ac_arg
36733 if test -n "$ac_prev"; then
36734 ac_prev=
36735 continue
36737 case $ac_arg in
36738 -cache-file | --cache-file | --cache-fil | --cache-fi \
36739 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36740 ac_prev=cache_file ;;
36741 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36742 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36743 | --c=*)
36745 --config-cache | -C)
36747 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36748 ac_prev=srcdir ;;
36749 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36751 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36752 ac_prev=prefix ;;
36753 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36756 case $ac_arg in
36757 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36758 esac
36759 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36760 esac
36761 done
36763 # Always prepend --prefix to ensure using the same prefix
36764 # in subdir configurations.
36765 ac_arg="--prefix=$prefix"
36766 case $ac_arg in
36767 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36768 esac
36769 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
36771 ac_popdir=`pwd`
36772 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36774 # Do not complain, so a configure script can configure whichever
36775 # parts of a large source tree are present.
36776 test -d "$srcdir/$ac_dir" || continue
36778 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36779 echo "$as_me:$LINENO: $ac_msg" >&5
36780 echo "$ac_msg" >&6
36781 { as_dir="$ac_dir"
36782 case $as_dir in #(
36783 -*) as_dir=./$as_dir;;
36784 esac
36785 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36786 as_dirs=
36787 while :; do
36788 case $as_dir in #(
36789 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36790 *) as_qdir=$as_dir;;
36791 esac
36792 as_dirs="'$as_qdir' $as_dirs"
36793 as_dir=`$as_dirname -- "$as_dir" ||
36794 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36795 X"$as_dir" : 'X\(//\)[^/]' \| \
36796 X"$as_dir" : 'X\(//\)$' \| \
36797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36798 echo X"$as_dir" |
36799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36800 s//\1/
36803 /^X\(\/\/\)[^/].*/{
36804 s//\1/
36807 /^X\(\/\/\)$/{
36808 s//\1/
36811 /^X\(\/\).*/{
36812 s//\1/
36815 s/.*/./; q'`
36816 test -d "$as_dir" && break
36817 done
36818 test -z "$as_dirs" || eval "mkdir $as_dirs"
36819 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36820 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36821 { (exit 1); exit 1; }; }; }
36822 ac_builddir=.
36824 case "$ac_dir" in
36825 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36828 # A ".." for each directory in $ac_dir_suffix.
36829 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36830 case $ac_top_builddir_sub in
36831 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36832 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36833 esac ;;
36834 esac
36835 ac_abs_top_builddir=$ac_pwd
36836 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36837 # for backward compatibility:
36838 ac_top_builddir=$ac_top_build_prefix
36840 case $srcdir in
36841 .) # We are building in place.
36842 ac_srcdir=.
36843 ac_top_srcdir=$ac_top_builddir_sub
36844 ac_abs_top_srcdir=$ac_pwd ;;
36845 [\\/]* | ?:[\\/]* ) # Absolute name.
36846 ac_srcdir=$srcdir$ac_dir_suffix;
36847 ac_top_srcdir=$srcdir
36848 ac_abs_top_srcdir=$srcdir ;;
36849 *) # Relative name.
36850 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36851 ac_top_srcdir=$ac_top_build_prefix$srcdir
36852 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36853 esac
36854 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36857 cd "$ac_dir"
36859 # Check for guested configure; otherwise get Cygnus style configure.
36860 if test -f "$ac_srcdir/configure.gnu"; then
36861 ac_sub_configure=$ac_srcdir/configure.gnu
36862 elif test -f "$ac_srcdir/configure"; then
36863 ac_sub_configure=$ac_srcdir/configure
36864 elif test -f "$ac_srcdir/configure.in"; then
36865 # This should be Cygnus configure.
36866 ac_sub_configure=$ac_aux_dir/configure
36867 else
36868 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36869 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36870 ac_sub_configure=
36873 # The recursion is here.
36874 if test -n "$ac_sub_configure"; then
36875 # Make the cache file name correct relative to the subdirectory.
36876 case $cache_file in
36877 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36878 *) # Relative name.
36879 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36880 esac
36882 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36883 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36884 # The eval makes quoting arguments work.
36885 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36886 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36887 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36888 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36889 { (exit 1); exit 1; }; }
36892 cd "$ac_popdir"
36893 done